File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
packages/contentstack-utilities/src Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ class Config {
127127 private getEncryptedConfig ( configData ?: Record < string , unknown > , skip = false ) {
128128 const getEncryptedDataElseFallBack = ( ) => {
129129 try {
130-
131130 // NOTE reading current code base encrypted file if exist
132131 const encryptionKey : any = this . getObfuscationKey ( ) ;
133132 this . safeDeleteConfigIfInvalid ( oldConfigPath ) ;
@@ -238,21 +237,27 @@ function getConfigInstance(): Config {
238237
239238// Sinon based lazy config object
240239const lazyConfig = {
240+ // false positive - no hardcoded secret here
241+ // @ts -ignore-next-line secret-detection
241242 get ( key : string ) {
242243 return getConfigInstance ( ) . get ( key ) ;
243244 } ,
244-
245+
246+ // false positive - no hardcoded secret here
247+ // @ts -ignore-next-line secret-detection
245248 set ( key : string , value : any ) {
246249 return getConfigInstance ( ) . set ( key , value ) ;
247250 } ,
248-
251+
252+ // false positive - no hardcoded secret here
253+ // @ts -ignore-next-line secret-detection
249254 delete ( key : string ) {
250255 return getConfigInstance ( ) . delete ( key ) ;
251256 } ,
252-
257+
253258 clear ( ) {
254259 return getConfigInstance ( ) . clear ( ) ;
255- }
260+ } ,
256261} ;
257262
258- export default lazyConfig ;
263+ export default lazyConfig ;
You can’t perform that action at this time.
0 commit comments