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 60
60
"webpack-cli" : " ^6.0.1"
61
61
},
62
62
"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"
64
65
},
65
66
"packageManager" :
" [email protected] +sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
66
67
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
23
23
IBanditLogger ,
24
24
IObfuscatedPrecomputedConfigurationResponse ,
25
25
} from '@eppo/js-client-sdk-common' ;
26
- import { getMD5Hash } from '@eppo/js-client-sdk-common/dist/obfuscation ' ;
26
+ import SparkMD5 from 'spark-md5 ' ;
27
27
28
28
import { assignmentCacheFactory } from './cache/assignment-cache-factory' ;
29
29
import HybridAssignmentCache from './cache/hybrid-assignment-cache' ;
@@ -365,7 +365,7 @@ export class EppoJSClient extends EppoClient {
365
365
*/
366
366
export function buildStorageKeySuffix ( apiKey : string ) : string {
367
367
// 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 ) ;
369
369
}
370
370
371
371
/**
You can’t perform that action at this time.
0 commit comments