diff --git a/package-lock.json b/package-lock.json index 5823b09a78..47e8e65968 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26626,7 +26626,7 @@ "@contentstack/cli-launch": "~1.3.0", "@contentstack/cli-migration": "~1.6.4", "@contentstack/cli-utilities": "~1.8.0", - "@contentstack/cli-variants": "~1.1.2", + "@contentstack/cli-variants": "~1.1.3", "@contentstack/management": "~1.18.3", "@oclif/core": "^3.27.0", "@oclif/plugin-help": "^5", @@ -27880,7 +27880,7 @@ "dependencies": { "@contentstack/cli-command": "~1.3.2", "@contentstack/cli-utilities": "~1.8.0", - "@contentstack/cli-variants": "~1.1.2", + "@contentstack/cli-variants": "~1.1.3", "@oclif/core": "^3.27.0", "async": "^3.2.6", "big-json": "^3.2.0", @@ -28244,7 +28244,7 @@ "@contentstack/cli-audit": "~1.7.3", "@contentstack/cli-command": "~1.3.2", "@contentstack/cli-utilities": "~1.8.0", - "@contentstack/cli-variants": "~1.1.2", + "@contentstack/cli-variants": "~1.1.3", "@contentstack/management": "~1.18.3", "@oclif/core": "^3.27.0", "big-json": "^3.2.0", @@ -29123,7 +29123,7 @@ }, "packages/contentstack-variants": { "name": "@contentstack/cli-variants", - "version": "1.1.2", + "version": "1.1.3", "license": "MIT", "dependencies": { "@contentstack/cli-utilities": "^1.8.0", diff --git a/packages/contentstack-audit/README.md b/packages/contentstack-audit/README.md index 17d77cf659..5463da3c4e 100644 --- a/packages/contentstack-audit/README.md +++ b/packages/contentstack-audit/README.md @@ -269,7 +269,7 @@ EXAMPLES $ csdx plugins ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/index.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/index.ts)_ ## `csdx plugins:add PLUGIN` @@ -343,7 +343,7 @@ EXAMPLES $ csdx plugins:inspect myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/inspect.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/inspect.ts)_ ## `csdx plugins:install PLUGIN` @@ -392,7 +392,7 @@ EXAMPLES $ csdx plugins:install someuser/someplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/install.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/install.ts)_ ## `csdx plugins:link PATH` @@ -423,7 +423,7 @@ EXAMPLES $ csdx plugins:link myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/link.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/link.ts)_ ## `csdx plugins:remove [PLUGIN]` @@ -464,7 +464,7 @@ FLAGS --reinstall Reinstall all plugins after uninstalling. ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/reset.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/reset.ts)_ ## `csdx plugins:uninstall [PLUGIN]` @@ -492,7 +492,7 @@ EXAMPLES $ csdx plugins:uninstall myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/uninstall.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/uninstall.ts)_ ## `csdx plugins:unlink [PLUGIN]` @@ -536,5 +536,5 @@ DESCRIPTION Update installed plugins. ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/update.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/update.ts)_ diff --git a/packages/contentstack-export/package.json b/packages/contentstack-export/package.json index 9efc9825c5..451bd72acd 100644 --- a/packages/contentstack-export/package.json +++ b/packages/contentstack-export/package.json @@ -6,7 +6,7 @@ "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { "@contentstack/cli-command": "~1.3.2", - "@contentstack/cli-variants": "~1.1.2", + "@contentstack/cli-variants": "~1.1.3", "@contentstack/cli-utilities": "~1.8.0", "@oclif/core": "^3.27.0", "async": "^3.2.6", diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 4a1cc74040..05d220e541 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -9,7 +9,7 @@ "@contentstack/cli-command": "~1.3.2", "@contentstack/cli-utilities": "~1.8.0", "@contentstack/management": "~1.18.3", - "@contentstack/cli-variants": "~1.1.2", + "@contentstack/cli-variants": "~1.1.3", "@oclif/core": "^3.27.0", "big-json": "^3.2.0", "bluebird": "^3.7.2", diff --git a/packages/contentstack-variants/package.json b/packages/contentstack-variants/package.json index 645e809017..51b8f426b3 100644 --- a/packages/contentstack-variants/package.json +++ b/packages/contentstack-variants/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-variants", - "version": "1.1.2", + "version": "1.1.3", "description": "Variants plugin", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/contentstack-variants/src/import/variant-entries.ts b/packages/contentstack-variants/src/import/variant-entries.ts index 7934b61fbf..9f1d1aa763 100644 --- a/packages/contentstack-variants/src/import/variant-entries.ts +++ b/packages/contentstack-variants/src/import/variant-entries.ts @@ -426,7 +426,7 @@ export default class VariantEntries extends VariantAdapter extends AdapterHelper implement try { this.apiClient.headers({ api_version: undefined }); const res = await this.apiClient.put(endpoint, { entry: input }); - const data = this.handleVariantAPIRes(res); + const data = await this.handleVariantAPIRes(res); if (res.status >= 200 && res.status < 300) { onSuccess(data); @@ -238,7 +238,7 @@ export class VariantHttpClient extends AdapterHelper implement try { this.apiClient.headers({ api_version: 3.2 }); const res = await this.apiClient.post(endpoint, input); - const data = this.handleVariantAPIRes(res); + const data = await this.handleVariantAPIRes(res); if (res.status >= 200 && res.status < 300) { onSuccess(data); diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index f719096ef2..e822e78866 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -3812,7 +3812,7 @@ EXAMPLES $ csdx plugins ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/index.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/index.ts)_ ## `csdx plugins:add PLUGIN` @@ -3886,7 +3886,7 @@ EXAMPLES $ csdx plugins:inspect myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/inspect.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/inspect.ts)_ ## `csdx plugins:install PLUGIN` @@ -3935,7 +3935,7 @@ EXAMPLES $ csdx plugins:install someuser/someplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/install.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/install.ts)_ ## `csdx plugins:link PATH` @@ -3966,7 +3966,7 @@ EXAMPLES $ csdx plugins:link myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/link.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/link.ts)_ ## `csdx plugins:remove [PLUGIN]` @@ -4007,7 +4007,7 @@ FLAGS --reinstall Reinstall all plugins after uninstalling. ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/reset.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/reset.ts)_ ## `csdx plugins:uninstall [PLUGIN]` @@ -4035,7 +4035,7 @@ EXAMPLES $ csdx plugins:uninstall myplugin ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/uninstall.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/uninstall.ts)_ ## `csdx plugins:unlink [PLUGIN]` @@ -4079,7 +4079,7 @@ DESCRIPTION Update installed plugins. ``` -_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.15/src/commands/plugins/update.ts)_ +_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/update.ts)_ ## `csdx tokens` diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 3e43bc1d0c..93008fa360 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -39,7 +39,7 @@ "@contentstack/cli-migration": "~1.6.4", "@contentstack/cli-utilities": "~1.8.0", "@contentstack/management": "~1.18.3", - "@contentstack/cli-variants": "~1.1.2", + "@contentstack/cli-variants": "~1.1.3", "@oclif/core": "^3.27.0", "@oclif/plugin-help": "^5", "@oclif/plugin-not-found": "^2.4.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9e0f6e86ef..0568011aa2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,7 +26,7 @@ importers: '@contentstack/cli-launch': ~1.3.0 '@contentstack/cli-migration': ~1.6.4 '@contentstack/cli-utilities': ~1.8.0 - '@contentstack/cli-variants': ~1.1.2 + '@contentstack/cli-variants': ~1.1.3 '@contentstack/management': ~1.18.3 '@oclif/core': ^3.27.0 '@oclif/plugin-help': ^5 @@ -613,7 +613,7 @@ importers: '@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 + '@contentstack/cli-variants': ~1.1.3 '@oclif/core': ^3.27.0 '@oclif/plugin-help': ^5.2.20 '@oclif/test': ^4.1.0 @@ -737,7 +737,7 @@ importers: '@contentstack/cli-audit': ~1.7.3 '@contentstack/cli-command': ~1.3.2 '@contentstack/cli-utilities': ~1.8.0 - '@contentstack/cli-variants': ~1.1.2 + '@contentstack/cli-variants': ~1.1.3 '@contentstack/management': ~1.18.3 '@oclif/core': ^3.27.0 '@oclif/test': ^4.1.0