diff --git a/package-lock.json b/package-lock.json index 191bf6a788..6352aac57f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23522,7 +23522,7 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.13.0", + "version": "1.13.1", "license": "MIT", "dependencies": { "@contentstack/cli-audit": "~1.3.4", @@ -23533,11 +23533,11 @@ "@contentstack/cli-cm-clone": "~1.9.0", "@contentstack/cli-cm-export": "~1.10.4", "@contentstack/cli-cm-export-to-csv": "~1.6.2", - "@contentstack/cli-cm-import": "~1.13.2", + "@contentstack/cli-cm-import": "~1.13.3", "@contentstack/cli-cm-migrate-rte": "~1.4.15", "@contentstack/cli-cm-seed": "~1.7.1", "@contentstack/cli-command": "~1.2.17", - "@contentstack/cli-config": "~1.6.0", + "@contentstack/cli-config": "~1.6.1", "@contentstack/cli-launch": "~1.0.15", "@contentstack/cli-migration": "~1.4.2", "@contentstack/cli-utilities": "~1.5.11", @@ -24163,7 +24163,7 @@ }, "devDependencies": { "@contentstack/cli-auth": "~1.3.17", - "@contentstack/cli-config": "~1.6.0", + "@contentstack/cli-config": "~1.6.1", "@contentstack/cli-dev-dependencies": "~1.2.4", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", @@ -24230,7 +24230,7 @@ "dependencies": { "@colors/colors": "^1.5.0", "@contentstack/cli-cm-export": "~1.10.4", - "@contentstack/cli-cm-import": "~1.13.2", + "@contentstack/cli-cm-import": "~1.13.3", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-utilities": "~1.5.11", "async": "^3.2.4", @@ -24387,7 +24387,7 @@ }, "packages/contentstack-config": { "name": "@contentstack/cli-config", - "version": "1.6.0", + "version": "1.6.1", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", @@ -24759,7 +24759,7 @@ }, "devDependencies": { "@contentstack/cli-auth": "~1.3.17", - "@contentstack/cli-config": "~1.6.0", + "@contentstack/cli-config": "~1.6.1", "@contentstack/cli-dev-dependencies": "~1.2.4", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^2.5.6", @@ -25268,7 +25268,7 @@ }, "packages/contentstack-import": { "name": "@contentstack/cli-cm-import", - "version": "1.13.2", + "version": "1.13.3", "license": "MIT", "dependencies": { "@contentstack/cli-audit": "^1.3.3", @@ -25843,7 +25843,7 @@ "version": "1.7.1", "license": "MIT", "dependencies": { - "@contentstack/cli-cm-import": "~1.13.2", + "@contentstack/cli-cm-import": "~1.13.3", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-utilities": "~1.5.11", "inquirer": "8.2.4", diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index 833f7fd81d..89e597fc93 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -26,7 +26,7 @@ }, "devDependencies": { "@contentstack/cli-auth": "~1.3.17", - "@contentstack/cli-config": "~1.6.0", + "@contentstack/cli-config": "~1.6.1", "@contentstack/cli-dev-dependencies": "~1.2.4", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", diff --git a/packages/contentstack-clone/package.json b/packages/contentstack-clone/package.json index e7a9b9a29e..ba05673879 100644 --- a/packages/contentstack-clone/package.json +++ b/packages/contentstack-clone/package.json @@ -6,7 +6,7 @@ "bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues", "dependencies": { "@contentstack/cli-cm-export": "~1.10.4", - "@contentstack/cli-cm-import": "~1.13.2", + "@contentstack/cli-cm-import": "~1.13.3", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-utilities": "~1.5.11", "@colors/colors": "^1.5.0", diff --git a/packages/contentstack-config/package.json b/packages/contentstack-config/package.json index fdb392ba37..2af9a9967d 100644 --- a/packages/contentstack-config/package.json +++ b/packages/contentstack-config/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-config", "description": "Contentstack CLI plugin for configuration", - "version": "1.6.0", + "version": "1.6.1", "author": "Contentstack", "scripts": { "build": "npm run clean && npm run compile", diff --git a/packages/contentstack-config/src/commands/config/set/region.ts b/packages/contentstack-config/src/commands/config/set/region.ts index c41acf2b68..30151477d4 100644 --- a/packages/contentstack-config/src/commands/config/set/region.ts +++ b/packages/contentstack-config/src/commands/config/set/region.ts @@ -88,7 +88,7 @@ export default class RegionSetCommand extends BaseCommand => { { name: 'EU', value: 'EU' }, { name: 'AZURE-NA', value: 'AZURE-NA' }, { name: 'AZURE-EU', value: 'AZURE-EU' }, + { name: 'GCP-NA', value: 'GCP-NA' }, { name: 'Custom', value: 'custom' }, { name: 'exit', value: 'exit' }, ], diff --git a/packages/contentstack-export/package.json b/packages/contentstack-export/package.json index 3583b17951..2b54eea5f8 100644 --- a/packages/contentstack-export/package.json +++ b/packages/contentstack-export/package.json @@ -25,7 +25,7 @@ }, "devDependencies": { "@contentstack/cli-auth": "~1.3.17", - "@contentstack/cli-config": "~1.6.0", + "@contentstack/cli-config": "~1.6.1", "@contentstack/cli-dev-dependencies": "~1.2.4", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^2.5.6", diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 22a6d0dee9..517df7977f 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-import", "description": "Contentstack CLI plugin to import content into stack", - "version": "1.13.2", + "version": "1.13.3", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-import/src/commands/cm/stacks/import.ts b/packages/contentstack-import/src/commands/cm/stacks/import.ts index 047a528453..eba9275aff 100644 --- a/packages/contentstack-import/src/commands/cm/stacks/import.ts +++ b/packages/contentstack-import/src/commands/cm/stacks/import.ts @@ -141,7 +141,7 @@ export default class ImportCommand extends Command { 'success', ); } catch (error) { - log({ data: backupDir } as ImportConfig, `Failed to import stack content - ${formatError(error)}`, 'error'); + log({ data: backupDir ?? path.join(backupDir || __dirname, 'logs', 'import') } as ImportConfig, `Failed to import stack content - ${formatError(error)}`, 'error'); log( { data: backupDir } as ImportConfig, `The log has been stored at ${ diff --git a/packages/contentstack-import/src/utils/import-config-handler.ts b/packages/contentstack-import/src/utils/import-config-handler.ts index 1421a3e5c6..233a47ff00 100644 --- a/packages/contentstack-import/src/utils/import-config-handler.ts +++ b/packages/contentstack-import/src/utils/import-config-handler.ts @@ -35,7 +35,7 @@ const setupConfig = async (importCmdFlags: any): Promise => { const managementTokenAlias = importCmdFlags['management-token-alias'] || importCmdFlags['alias']; if (managementTokenAlias) { - const { token, apiKey } = configHandler.get(`tokens.${managementTokenAlias}`); + const { token, apiKey } = configHandler.get(`tokens.${managementTokenAlias}`) ?? {}; config.management_token = token; config.apiKey = apiKey; if (!config.management_token) { diff --git a/packages/contentstack-seed/package.json b/packages/contentstack-seed/package.json index 044e5f36b2..2322efead6 100644 --- a/packages/contentstack-seed/package.json +++ b/packages/contentstack-seed/package.json @@ -5,7 +5,7 @@ "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-cm-import": "~1.13.2", + "@contentstack/cli-cm-import": "~1.13.3", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-utilities": "~1.5.11", "inquirer": "8.2.4", diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index c996fcd951..bfda54cbaf 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli", "description": "Command-line tool (CLI) to interact with Contentstack", - "version": "1.13.0", + "version": "1.13.1", "author": "Contentstack", "bin": { "csdx": "./bin/run" @@ -30,11 +30,11 @@ "@contentstack/cli-cm-clone": "~1.9.0", "@contentstack/cli-cm-export": "~1.10.4", "@contentstack/cli-cm-export-to-csv": "~1.6.2", - "@contentstack/cli-cm-import": "~1.13.2", + "@contentstack/cli-cm-import": "~1.13.3", "@contentstack/cli-cm-migrate-rte": "~1.4.15", "@contentstack/cli-cm-seed": "~1.7.1", "@contentstack/cli-command": "~1.2.17", - "@contentstack/cli-config": "~1.6.0", + "@contentstack/cli-config": "~1.6.1", "@contentstack/cli-launch": "~1.0.15", "@contentstack/cli-migration": "~1.4.2", "@contentstack/cli-utilities": "~1.5.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c7b4e926c9..d76f8211f5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,11 +18,11 @@ importers: '@contentstack/cli-cm-clone': ~1.9.0 '@contentstack/cli-cm-export': ~1.10.4 '@contentstack/cli-cm-export-to-csv': ~1.6.2 - '@contentstack/cli-cm-import': ~1.13.2 + '@contentstack/cli-cm-import': ~1.13.3 '@contentstack/cli-cm-migrate-rte': ~1.4.15 '@contentstack/cli-cm-seed': ~1.7.1 '@contentstack/cli-command': ~1.2.17 - '@contentstack/cli-config': ~1.6.0 + '@contentstack/cli-config': ~1.6.1 '@contentstack/cli-launch': ~1.0.15 '@contentstack/cli-migration': ~1.4.2 '@contentstack/cli-utilities': ~1.5.11 @@ -302,7 +302,7 @@ importers: specifiers: '@contentstack/cli-auth': ~1.3.17 '@contentstack/cli-command': ~1.2.16 - '@contentstack/cli-config': ~1.6.0 + '@contentstack/cli-config': ~1.6.1 '@contentstack/cli-dev-dependencies': ~1.2.4 '@contentstack/cli-utilities': ~1.5.11 '@oclif/core': ^2.9.3 @@ -424,7 +424,7 @@ importers: specifiers: '@colors/colors': ^1.5.0 '@contentstack/cli-cm-export': ~1.10.4 - '@contentstack/cli-cm-import': ~1.13.2 + '@contentstack/cli-cm-import': ~1.13.3 '@contentstack/cli-command': ~1.2.16 '@contentstack/cli-utilities': ~1.5.11 '@oclif/test': ^1.2.7 @@ -604,7 +604,7 @@ importers: specifiers: '@contentstack/cli-auth': ~1.3.17 '@contentstack/cli-command': ~1.2.16 - '@contentstack/cli-config': ~1.6.0 + '@contentstack/cli-config': ~1.6.1 '@contentstack/cli-dev-dependencies': ~1.2.4 '@contentstack/cli-utilities': ~1.5.11 '@oclif/core': ^2.9.3 @@ -986,7 +986,7 @@ importers: packages/contentstack-seed: specifiers: - '@contentstack/cli-cm-import': ~1.13.2 + '@contentstack/cli-cm-import': ~1.13.3 '@contentstack/cli-command': ~1.2.16 '@contentstack/cli-utilities': ~1.5.11 '@oclif/plugin-help': ^5.1.19