From 13714d04ef99b597626853c0d63f8ab768ecc759 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Mon, 18 Nov 2024 12:52:08 +0530 Subject: [PATCH] add gcp na url in config plugin --- package-lock.json | 45 +++++++++++++++++-- packages/contentstack-branches/package.json | 2 +- packages/contentstack-config/README.md | 2 +- packages/contentstack-config/package.json | 2 +- .../src/utils/region-handler.ts | 2 +- packages/contentstack-export/package.json | 2 +- .../src/commands/launch/logs.ts | 1 + packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 6 +-- 9 files changed, 51 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index fe5386c508..d3c76b1007 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26592,7 +26592,7 @@ "@contentstack/cli-cm-migrate-rte": "~1.4.20", "@contentstack/cli-cm-seed": "~1.10.0", "@contentstack/cli-command": "~1.3.2", - "@contentstack/cli-config": "~1.8.0", + "@contentstack/cli-config": "~1.9.0", "@contentstack/cli-launch": "~1.3.0", "@contentstack/cli-migration": "~1.6.3", "@contentstack/cli-utilities": "~1.8.0", @@ -27119,7 +27119,7 @@ }, "devDependencies": { "@contentstack/cli-auth": "~1.3.22", - "@contentstack/cli-config": "~1.8.0", + "@contentstack/cli-config": "~1.9.0", "@contentstack/cli-dev-dependencies": "~1.2.4", "@oclif/plugin-help": "^5.2.20", "@oclif/test": "^4.1.0", @@ -27182,6 +27182,33 @@ "url": "https://github.com/sponsors/isaacs" } }, + "packages/contentstack-branches/node_modules/inquirer": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.4.tgz", + "integrity": "sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, "packages/contentstack-branches/node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -27261,6 +27288,16 @@ "node": ">= 14.0.0" } }, + "packages/contentstack-branches/node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, "packages/contentstack-branches/node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", @@ -27507,7 +27544,7 @@ }, "packages/contentstack-config": { "name": "@contentstack/cli-config", - "version": "1.8.0", + "version": "1.9.0", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.3.2", @@ -27869,7 +27906,7 @@ }, "devDependencies": { "@contentstack/cli-auth": "~1.3.22", - "@contentstack/cli-config": "~1.8.0", + "@contentstack/cli-config": "~1.9.0", "@contentstack/cli-dev-dependencies": "~1.2.4", "@oclif/plugin-help": "^5.2.20", "@oclif/test": "^4.1.0", diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index 76b15f5e8b..6650befcac 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -26,7 +26,7 @@ }, "devDependencies": { "@contentstack/cli-auth": "~1.3.22", - "@contentstack/cli-config": "~1.8.0", + "@contentstack/cli-config": "~1.9.0", "@contentstack/cli-dev-dependencies": "~1.2.4", "@oclif/plugin-help": "^5.2.20", "@oclif/test": "^4.1.0", diff --git a/packages/contentstack-config/README.md b/packages/contentstack-config/README.md index 2d16285e7a..9a2906ddc4 100644 --- a/packages/contentstack-config/README.md +++ b/packages/contentstack-config/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-config/1.8.0 darwin-arm64 node-v22.2.0 +@contentstack/cli-config/1.9.0 darwin-arm64 node-v22.2.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-config/package.json b/packages/contentstack-config/package.json index 27d5365f0d..fcadd8ce98 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.8.0", + "version": "1.9.0", "author": "Contentstack", "scripts": { "build": "npm run clean && npm run compile", diff --git a/packages/contentstack-config/src/utils/region-handler.ts b/packages/contentstack-config/src/utils/region-handler.ts index 4b63978112..58ff346d1c 100644 --- a/packages/contentstack-config/src/utils/region-handler.ts +++ b/packages/contentstack-config/src/utils/region-handler.ts @@ -59,7 +59,7 @@ const regions = { uiHost: 'https://gcp-na-app.contentstack.com', name: 'GCP-NA', 'developerHubUrl': 'https://gcp-na-developerhub-api.contentstack.com', - 'launchHubUrl': 'Not available', + 'launchHubUrl': 'https://gcp-na-launch-api.contentstack.com', 'personalizeUrl': 'https://gcp-na-personalize-api.contentstack.com', }, }; diff --git a/packages/contentstack-export/package.json b/packages/contentstack-export/package.json index 5127f40242..9efc9825c5 100644 --- a/packages/contentstack-export/package.json +++ b/packages/contentstack-export/package.json @@ -26,7 +26,7 @@ }, "devDependencies": { "@contentstack/cli-auth": "~1.3.22", - "@contentstack/cli-config": "~1.8.0", + "@contentstack/cli-config": "~1.9.0", "@contentstack/cli-dev-dependencies": "~1.2.4", "@oclif/plugin-help": "^5.2.20", "@oclif/test": "^4.1.0", diff --git a/packages/contentstack-launch/src/commands/launch/logs.ts b/packages/contentstack-launch/src/commands/launch/logs.ts index 581d56ce66..8499ec796b 100755 --- a/packages/contentstack-launch/src/commands/launch/logs.ts +++ b/packages/contentstack-launch/src/commands/launch/logs.ts @@ -78,6 +78,7 @@ export default class Logs extends BaseCommand { }); if (this.flags.type === 's') { this.$event.on('server-logs', (event: EmitMessage) => { + console.log('event', event); this.showLogs(event); }); await logPolling.serverLogs(); diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 6ad9f53694..c37037954c 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -34,7 +34,7 @@ "@contentstack/cli-cm-migrate-rte": "~1.4.20", "@contentstack/cli-cm-seed": "~1.10.0", "@contentstack/cli-command": "~1.3.2", - "@contentstack/cli-config": "~1.8.0", + "@contentstack/cli-config": "~1.9.0", "@contentstack/cli-launch": "~1.3.0", "@contentstack/cli-migration": "~1.6.3", "@contentstack/cli-utilities": "~1.8.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c946812919..f286c89372 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,7 +22,7 @@ importers: '@contentstack/cli-cm-migrate-rte': ~1.4.20 '@contentstack/cli-cm-seed': ~1.10.0 '@contentstack/cli-command': ~1.3.2 - '@contentstack/cli-config': ~1.8.0 + '@contentstack/cli-config': ~1.9.0 '@contentstack/cli-launch': ~1.3.0 '@contentstack/cli-migration': ~1.6.3 '@contentstack/cli-utilities': ~1.8.0 @@ -304,7 +304,7 @@ importers: specifiers: '@contentstack/cli-auth': ~1.3.22 '@contentstack/cli-command': ~1.3.2 - '@contentstack/cli-config': ~1.8.0 + '@contentstack/cli-config': ~1.9.0 '@contentstack/cli-dev-dependencies': ~1.2.4 '@contentstack/cli-utilities': ~1.8.0 '@oclif/core': ^3.27.0 @@ -610,7 +610,7 @@ importers: specifiers: '@contentstack/cli-auth': ~1.3.22 '@contentstack/cli-command': ~1.3.2 - '@contentstack/cli-config': ~1.8.0 + '@contentstack/cli-config': ~1.9.0 '@contentstack/cli-dev-dependencies': ~1.2.4 '@contentstack/cli-utilities': ~1.8.0 '@contentstack/cli-variants': ~1.1.2