File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 6060 "webpack-cli" : " ^6.0.1"
6161 },
6262 "dependencies" : {
63- "@eppo/js-client-sdk-common" : " 4.8.4"
63+ "@eppo/js-client-sdk-common" : " 4.8.4" ,
64+ "spark-md5" : " ^3.0.2"
6465 },
6566 "packageManager" :
" [email protected] +sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" 6667}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
2323 IBanditLogger ,
2424 IObfuscatedPrecomputedConfigurationResponse ,
2525} from '@eppo/js-client-sdk-common' ;
26- import { getMD5Hash } from '@eppo/js-client-sdk-common/dist/obfuscation ' ;
26+ import SparkMD5 from 'spark-md5 ' ;
2727
2828import { assignmentCacheFactory } from './cache/assignment-cache-factory' ;
2929import HybridAssignmentCache from './cache/hybrid-assignment-cache' ;
@@ -365,7 +365,7 @@ export class EppoJSClient extends EppoClient {
365365 */
366366export function buildStorageKeySuffix ( apiKey : string ) : string {
367367 // Note that we use the last 8 characters of hashed API key to create per-API key persistent storages and caches
368- return getMD5Hash ( apiKey ) . slice ( - 8 ) ;
368+ return new SparkMD5 ( ) . append ( apiKey ) . end ( ) . slice ( - 8 ) ;
369369}
370370
371371/**
You can’t perform that action at this time.
0 commit comments