Skip to content

Commit feffa46

Browse files
update utilities helper
1 parent f96ca2a commit feffa46

File tree

2 files changed

+9
-0
lines changed
  • packages

2 files changed

+9
-0
lines changed

packages/contentstack-export-to-csv/src/messages/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const messages = {
1111
FLAG_ALIAS: 'Alias of the management token',
1212
FLAG_ORG: 'Provide organization UID to clone org users',
1313
FLAG_STACK_NAME: 'Name of the stack that needs to be created as CSV filename',
14+
// deepcode ignore HardcodedNonCryptoSecret: <Its not a secret>
1415
FLAG_STACK_API_KEY: 'Provide the stack API key of the source stack',
1516
FLAG_ORG_NAME: 'Name of the organization that needs to be created as CSV filename',
1617
FLAG_LOCALE: 'Locale of entries that will be exported',

packages/contentstack-utilities/src/helpers.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,14 @@ const sensitiveKeys = [
253253
/delivery[-._]?token/i,
254254
];
255255

256+
export function clearProgressModuleSetting(): void {
257+
const logConfig = configHandler.get('log') || {};
258+
if (logConfig?.progressSupportedModule) {
259+
delete logConfig.progressSupportedModule;
260+
configHandler.set('log', logConfig);
261+
}
262+
}
263+
256264
/**
257265
* Get authentication method from config
258266
* @returns Authentication method string ('OAuth', 'Basic Auth', or empty string)

0 commit comments

Comments
 (0)