From 844c24ce8bbd38f0184c1dfbb7c1a3097c877892 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Fri, 15 Nov 2024 18:54:24 +0530 Subject: [PATCH 01/20] feat: CLI integration on GCP --- package-lock.json | 4 ++-- packages/contentstack-audit/README.md | 2 +- packages/contentstack-branches/README.md | 2 +- packages/contentstack-clone/README.md | 2 +- packages/contentstack-export/README.md | 2 +- packages/contentstack-import/README.md | 2 +- packages/contentstack-launch/README.md | 2 +- packages/contentstack-launch/package.json | 2 +- .../src/adapters/file-upload.ts | 22 +++++++++---------- .../src/graphql/mutation.ts | 1 + packages/contentstack/README.md | 2 +- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 2 +- 13 files changed, 24 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index f884d4ebc6..fe5386c508 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26593,7 +26593,7 @@ "@contentstack/cli-cm-seed": "~1.10.0", "@contentstack/cli-command": "~1.3.2", "@contentstack/cli-config": "~1.8.0", - "@contentstack/cli-launch": "~1.2.3", + "@contentstack/cli-launch": "~1.3.0", "@contentstack/cli-migration": "~1.6.3", "@contentstack/cli-utilities": "~1.8.0", "@contentstack/cli-variants": "~1.1.2", @@ -28263,7 +28263,7 @@ }, "packages/contentstack-launch": { "name": "@contentstack/cli-launch", - "version": "1.2.3", + "version": "1.3.0", "license": "MIT", "dependencies": { "@apollo/client": "^3.11.8", diff --git a/packages/contentstack-audit/README.md b/packages/contentstack-audit/README.md index 17d77cf659..e05e478503 100644 --- a/packages/contentstack-audit/README.md +++ b/packages/contentstack-audit/README.md @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-audit/1.7.3 darwin-arm64 node-v22.8.0 +@contentstack/cli-audit/1.7.3 darwin-arm64 node-v22.2.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index 86878e4e0c..c4ab52bb2c 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.2.0 darwin-arm64 node-v22.8.0 +@contentstack/cli-cm-branches/1.2.0 darwin-arm64 node-v22.2.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-clone/README.md b/packages/contentstack-clone/README.md index c4a8aba55a..30ad3aab98 100644 --- a/packages/contentstack-clone/README.md +++ b/packages/contentstack-clone/README.md @@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-clone/1.13.0 darwin-arm64 node-v22.8.0 +@contentstack/cli-cm-clone/1.13.0 darwin-arm64 node-v22.2.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-export/README.md b/packages/contentstack-export/README.md index 30aaac0996..2f5f11db33 100755 --- a/packages/contentstack-export/README.md +++ b/packages/contentstack-export/README.md @@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-export/1.14.1 darwin-arm64 node-v22.8.0 +@contentstack/cli-cm-export/1.14.1 darwin-arm64 node-v22.2.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index ec43c1d56f..3b62de0c0d 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.19.2 darwin-arm64 node-v22.8.0 +@contentstack/cli-cm-import/1.19.2 darwin-arm64 node-v22.2.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-launch/README.md b/packages/contentstack-launch/README.md index deb2e66ae1..13e84a46b9 100755 --- a/packages/contentstack-launch/README.md +++ b/packages/contentstack-launch/README.md @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-launch $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-launch/1.2.3 darwin-arm64 node-v22.2.0 +@contentstack/cli-launch/1.3.0 darwin-arm64 node-v22.2.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-launch/package.json b/packages/contentstack-launch/package.json index 7fb6977fff..4085a17da5 100755 --- a/packages/contentstack-launch/package.json +++ b/packages/contentstack-launch/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-launch", - "version": "1.2.3", + "version": "1.3.0", "description": "Launch related operations", "author": "Contentstack CLI", "bin": { diff --git a/packages/contentstack-launch/src/adapters/file-upload.ts b/packages/contentstack-launch/src/adapters/file-upload.ts index dafd13a68d..ba687da0d5 100755 --- a/packages/contentstack-launch/src/adapters/file-upload.ts +++ b/packages/contentstack-launch/src/adapters/file-upload.ts @@ -8,7 +8,7 @@ import includes from 'lodash/includes'; import isEmpty from 'lodash/isEmpty'; import { basename, resolve } from 'path'; import { cliux, configHandler, HttpClient, ux } from '@contentstack/cli-utilities'; -import { createReadStream, existsSync, PathLike, statSync } from 'fs'; +import { createReadStream, existsSync, PathLike, statSync, readFileSync } from 'fs'; import { print } from '../util'; import BaseClass from './base-class'; @@ -63,7 +63,6 @@ export default class FileUpload extends BaseClass { */ async createNewProject(): Promise { const { framework, projectName, buildCommand, outputDirectory, environmentName } = this.config; - await this.apolloClient .mutate({ mutation: importProjectMutation, @@ -215,7 +214,7 @@ export default class FileUpload extends BaseClass { switch (true) { case state.isDirectory(): // NOTE folder - await zip.addLocalFolderPromise(entryPath, { zipPath: entry }); + zip.addLocalFolder(entryPath, entry); break; case state.isFile(): // NOTE check is file zip.addLocalFile(entryPath); @@ -264,7 +263,7 @@ export default class FileUpload extends BaseClass { * @memberof FileUpload */ async uploadFile(fileName: string, filePath: PathLike): Promise { - const { uploadUrl, fields, headers } = this.signedUploadUrlData; + const { uploadUrl, fields, headers, method } = this.signedUploadUrlData; const formData = new FormData(); if (!isEmpty(fields)) { @@ -274,8 +273,8 @@ export default class FileUpload extends BaseClass { formData.append('file', createReadStream(filePath), fileName); await this.submitFormData(formData, uploadUrl); - } else if (!isEmpty(headers)) { - await this.uploadWithHttpClient(filePath, uploadUrl, headers, fileName); + } else if (method === 'PUT') { + await this.uploadWithHttpClient(filePath, uploadUrl, headers); } } @@ -307,21 +306,21 @@ export default class FileUpload extends BaseClass { filePath: PathLike, uploadUrl: string, headers: Array<{ key: string; value: string }>, - fileName: string, ): Promise { ux.action.start('Starting file upload...'); const httpClient = new HttpClient(); - const form = new FormData(); - form.append('file', createReadStream(filePath), fileName); + const file = readFileSync(filePath); // Convert headers array to a headers object - const headerObject = headers.reduce((acc, { key, value }) => { + const headerObject = headers?.reduce((acc, { key, value }) => { acc[key] = value; return acc; }, {} as Record); try { - const response = await httpClient.headers(headerObject).put(uploadUrl, form); + httpClient.headers({ 'Content-Type': 'application/zip' }); + if (headerObject !== undefined) httpClient.headers(headerObject); + const response = (await httpClient.put(uploadUrl, file)) as any; const { status } = response; if (status >= 200 && status < 300) { @@ -329,6 +328,7 @@ export default class FileUpload extends BaseClass { } else { ux.action.stop('File upload failed!'); this.log('File upload failed. Please try again.', 'error'); + this.log(`Error: ${status}, ${response?.statusText}`, 'error'); this.exit(1); } } catch (error) { diff --git a/packages/contentstack-launch/src/graphql/mutation.ts b/packages/contentstack-launch/src/graphql/mutation.ts index 0cab22b360..c474fb2653 100755 --- a/packages/contentstack-launch/src/graphql/mutation.ts +++ b/packages/contentstack-launch/src/graphql/mutation.ts @@ -32,6 +32,7 @@ const createSignedUploadUrlMutation: DocumentNode = gql` key value } + method } } `; diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index 96f12bf658..ac860bc54b 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.30.0 darwin-arm64 node-v22.8.0 +@contentstack/cli/1.30.0 darwin-arm64 node-v22.2.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index c3690e5fbe..6ad9f53694 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -35,7 +35,7 @@ "@contentstack/cli-cm-seed": "~1.10.0", "@contentstack/cli-command": "~1.3.2", "@contentstack/cli-config": "~1.8.0", - "@contentstack/cli-launch": "~1.2.3", + "@contentstack/cli-launch": "~1.3.0", "@contentstack/cli-migration": "~1.6.3", "@contentstack/cli-utilities": "~1.8.0", "@contentstack/management": "~1.18.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 156d96cb62..c946812919 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,7 +23,7 @@ importers: '@contentstack/cli-cm-seed': ~1.10.0 '@contentstack/cli-command': ~1.3.2 '@contentstack/cli-config': ~1.8.0 - '@contentstack/cli-launch': ~1.2.3 + '@contentstack/cli-launch': ~1.3.0 '@contentstack/cli-migration': ~1.6.3 '@contentstack/cli-utilities': ~1.8.0 '@contentstack/cli-variants': ~1.1.2 From 3913b2932955f6287defcb1080c93b275b6b54cd Mon Sep 17 00:00:00 2001 From: raj pandey Date: Mon, 18 Nov 2024 12:30:14 +0530 Subject: [PATCH 02/20] change the installation command --- package-lock.json | 66 ++++++++++++++----- packages/contentstack-migration/README.md | 2 +- packages/contentstack-migration/package.json | 2 +- .../src/utils/modules.js | 7 +- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 2 +- 6 files changed, 56 insertions(+), 25 deletions(-) diff --git a/package-lock.json b/package-lock.json index f884d4ebc6..4c753dab12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2391,12 +2391,12 @@ } }, "node_modules/@oclif/plugin-plugins": { - "version": "5.4.15", - "resolved": "https://registry.npmjs.org/@oclif/plugin-plugins/-/plugin-plugins-5.4.15.tgz", - "integrity": "sha512-0cnTFaRWdXkWgKTrwgjoggcq/A3MaIl1GkDs3BFFjesYlFEs5Fb2HcN42rY+2ja4jBkXrjXBkLS+9faAtdCH6A==", + "version": "5.4.17", + "resolved": "https://registry.npmjs.org/@oclif/plugin-plugins/-/plugin-plugins-5.4.17.tgz", + "integrity": "sha512-V5W5jiGfWYEFS1v6j0+l0sTkRdvuHpZm9zKyEzC1i6IFFx4S4oR2IMjTwJRopyGH2TZDNVQOGilp3Cxu73pbsQ==", "license": "MIT", "dependencies": { - "@oclif/core": "^4.0.28", + "@oclif/core": "^4.0.32", "ansis": "^3.3.2", "debug": "^4.3.7", "npm": "^10.9.0", @@ -2550,9 +2550,9 @@ } }, "node_modules/@oclif/test": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@oclif/test/-/test-4.1.0.tgz", - "integrity": "sha512-2ugir6NhRsWJqHM9d2lMEWNiOTD678Jlx5chF/fg6TCAlc7E6E/6+zt+polrCTnTIpih5P/HxOtDekgtjgARwQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@oclif/test/-/test-4.1.1.tgz", + "integrity": "sha512-eltLnzdRKXaCQbwl7fSWHUHaHGvYNld0gpKjav6QHvM03w7NV7k4jYMEwQXwf+qmh9LuaFyADDi/tpZfrWNQVQ==", "license": "MIT", "dependencies": { "ansis": "^3.3.2", @@ -5043,6 +5043,21 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "license": "MIT" }, + "node_modules/body-parser/node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", @@ -7197,9 +7212,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.58", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.58.tgz", - "integrity": "sha512-al2l4r+24ZFL7WzyPTlyD0fC33LLzvxqLCwurtBibVPghRGO9hSTl+tis8t1kD7biPiH/en4U0I7o/nQbYeoVA==", + "version": "1.5.62", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.62.tgz", + "integrity": "sha512-t8c+zLmJHa9dJy96yBZRXGQYoiCEnHYgFwn1asvSPZSUdVxnB62A4RASd7k41ytG3ErFBA0TpHlKg9D9SQBmLg==", "dev": true, "license": "ISC" }, @@ -7352,9 +7367,9 @@ } }, "node_modules/es-abstract": { - "version": "1.23.4", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.4.tgz", - "integrity": "sha512-HR1gxH5OaiN7XH7uiWH0RLw0RcFySiSoW1ctxmD1ahTw3uGBtkmm/ng0tDU1OtYx5OK6EOL5Y6O21cDflG3Jcg==", + "version": "1.23.5", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.5.tgz", + "integrity": "sha512-vlmniQ0WNPwXqA0BnmwV3Ng7HxiGlh6r5U6JcTMNx8OilcAGqVJBHJcPjqOMaczU9fRuRK5Px2BdVyPRnKMMVQ==", "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", @@ -9008,6 +9023,21 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "license": "MIT" }, + "node_modules/express/node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", @@ -21059,9 +21089,9 @@ "license": "MIT" }, "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.1.tgz", + "integrity": "sha512-EJPeIn0CYrGu+hli1xilKAPXODtJ12T0sP63Ijx2/khC2JtuaN3JyNIpvmnkmaEtha9ocbG4A4cMcr+TvqvwQg==", "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" @@ -26594,7 +26624,7 @@ "@contentstack/cli-command": "~1.3.2", "@contentstack/cli-config": "~1.8.0", "@contentstack/cli-launch": "~1.2.3", - "@contentstack/cli-migration": "~1.6.3", + "@contentstack/cli-migration": "~1.6.4", "@contentstack/cli-utilities": "~1.8.0", "@contentstack/cli-variants": "~1.1.2", "@contentstack/management": "~1.18.3", @@ -28613,7 +28643,7 @@ }, "packages/contentstack-migration": { "name": "@contentstack/cli-migration", - "version": "1.6.3", + "version": "1.6.4", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.3.2", diff --git a/packages/contentstack-migration/README.md b/packages/contentstack-migration/README.md index f30eab7c23..7f353c0e94 100644 --- a/packages/contentstack-migration/README.md +++ b/packages/contentstack-migration/README.md @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-migration/1.6.3 darwin-arm64 node-v22.2.0 +@contentstack/cli-migration/1.6.4 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migration/package.json b/packages/contentstack-migration/package.json index 2fc48bf895..b7e0338b14 100644 --- a/packages/contentstack-migration/package.json +++ b/packages/contentstack-migration/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-migration", - "version": "1.6.3", + "version": "1.6.4", "author": "@contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-migration/src/utils/modules.js b/packages/contentstack-migration/src/utils/modules.js index 7144d81b61..6b460114b3 100644 --- a/packages/contentstack-migration/src/utils/modules.js +++ b/packages/contentstack-migration/src/utils/modules.js @@ -1,5 +1,5 @@ const fs = require('fs'); -const { execFileSync } = require('child_process'); +const { spawnSync } = require('child_process'); const path = require('path'); const { sanitizePath } = require('@contentstack/cli-utilities'); const os = require('os'); @@ -72,7 +72,9 @@ function executeShellCommand(command, directory = '') { try { if (command.startsWith('npm i')) { const [cmd, ...args] = command.split(' '); - execFileSync(cmd, args, { stdio: 'inherit', cwd: directory }); + const result = spawnSync(cmd, args, { stdio: 'inherit', cwd: directory, shell: true }); + + if (result.error) throw result.error; console.log(`Command executed successfully: ${command}`); } else { console.log(`Command should only be 'npm i '`); @@ -81,7 +83,6 @@ function executeShellCommand(command, directory = '') { console.error(`Command execution failed. Error: ${error.message}`); } } - async function installModules(filePath, multiple) { const files = multiple ? [] : [path.basename(filePath)]; const dirPath = multiple ? filePath : path.dirname(filePath); diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index c3690e5fbe..9b0a06d856 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -36,7 +36,7 @@ "@contentstack/cli-command": "~1.3.2", "@contentstack/cli-config": "~1.8.0", "@contentstack/cli-launch": "~1.2.3", - "@contentstack/cli-migration": "~1.6.3", + "@contentstack/cli-migration": "~1.6.4", "@contentstack/cli-utilities": "~1.8.0", "@contentstack/management": "~1.18.3", "@contentstack/cli-variants": "~1.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 156d96cb62..d1c2d84774 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,7 +24,7 @@ importers: '@contentstack/cli-command': ~1.3.2 '@contentstack/cli-config': ~1.8.0 '@contentstack/cli-launch': ~1.2.3 - '@contentstack/cli-migration': ~1.6.3 + '@contentstack/cli-migration': ~1.6.4 '@contentstack/cli-utilities': ~1.8.0 '@contentstack/cli-variants': ~1.1.2 '@contentstack/management': ~1.18.3 From 13714d04ef99b597626853c0d63f8ab768ecc759 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Mon, 18 Nov 2024 12:52:08 +0530 Subject: [PATCH 03/20] 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 From 41bccc1f5949a5026838826133d6646e9b5c8283 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Mon, 18 Nov 2024 13:51:13 +0530 Subject: [PATCH 04/20] version bumped --- package-lock.json | 39 +------------------- packages/contentstack-audit/README.md | 2 +- packages/contentstack-auth/README.md | 2 +- packages/contentstack-bootstrap/README.md | 2 +- packages/contentstack-branches/README.md | 2 +- packages/contentstack-bulk-publish/README.md | 2 +- packages/contentstack-clone/README.md | 2 +- packages/contentstack-config/README.md | 2 +- packages/contentstack-export/README.md | 2 +- packages/contentstack-import/README.md | 2 +- packages/contentstack-launch/README.md | 2 +- packages/contentstack-migrate-rte/README.md | 2 +- packages/contentstack-migration/README.md | 2 +- packages/contentstack/README.md | 2 +- packages/contentstack/package.json | 2 +- 15 files changed, 15 insertions(+), 52 deletions(-) diff --git a/package-lock.json b/package-lock.json index d3c76b1007..cd34759306 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26577,7 +26577,7 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.30.0", + "version": "1.31.0", "license": "MIT", "dependencies": { "@contentstack/cli-audit": "~1.7.3", @@ -27182,33 +27182,6 @@ "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", @@ -27288,16 +27261,6 @@ "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", diff --git a/packages/contentstack-audit/README.md b/packages/contentstack-audit/README.md index e05e478503..17d77cf659 100644 --- a/packages/contentstack-audit/README.md +++ b/packages/contentstack-audit/README.md @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-audit/1.7.3 darwin-arm64 node-v22.2.0 +@contentstack/cli-audit/1.7.3 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-auth/README.md b/packages/contentstack-auth/README.md index 9dd85b7b54..9415b27d9f 100644 --- a/packages/contentstack-auth/README.md +++ b/packages/contentstack-auth/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-auth/1.3.22 darwin-arm64 node-v22.2.0 +@contentstack/cli-auth/1.3.22 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-bootstrap/README.md b/packages/contentstack-bootstrap/README.md index b7cbd34f9f..0d61a59245 100644 --- a/packages/contentstack-bootstrap/README.md +++ b/packages/contentstack-bootstrap/README.md @@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bootstrap/1.13.0 darwin-arm64 node-v22.2.0 +@contentstack/cli-cm-bootstrap/1.13.0 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index c4ab52bb2c..86878e4e0c 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.2.0 darwin-arm64 node-v22.2.0 +@contentstack/cli-cm-branches/1.2.0 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-bulk-publish/README.md b/packages/contentstack-bulk-publish/README.md index 3f834b2766..730424e93c 100644 --- a/packages/contentstack-bulk-publish/README.md +++ b/packages/contentstack-bulk-publish/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bulk-publish/1.7.0 darwin-arm64 node-v22.2.0 +@contentstack/cli-cm-bulk-publish/1.7.0 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-clone/README.md b/packages/contentstack-clone/README.md index 30ad3aab98..c4a8aba55a 100644 --- a/packages/contentstack-clone/README.md +++ b/packages/contentstack-clone/README.md @@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-clone/1.13.0 darwin-arm64 node-v22.2.0 +@contentstack/cli-cm-clone/1.13.0 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-config/README.md b/packages/contentstack-config/README.md index 9a2906ddc4..3896211a93 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.9.0 darwin-arm64 node-v22.2.0 +@contentstack/cli-config/1.9.0 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-export/README.md b/packages/contentstack-export/README.md index 2f5f11db33..30aaac0996 100755 --- a/packages/contentstack-export/README.md +++ b/packages/contentstack-export/README.md @@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-export/1.14.1 darwin-arm64 node-v22.2.0 +@contentstack/cli-cm-export/1.14.1 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index 3b62de0c0d..ec43c1d56f 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.19.2 darwin-arm64 node-v22.2.0 +@contentstack/cli-cm-import/1.19.2 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-launch/README.md b/packages/contentstack-launch/README.md index 13e84a46b9..969ce89574 100755 --- a/packages/contentstack-launch/README.md +++ b/packages/contentstack-launch/README.md @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-launch $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-launch/1.3.0 darwin-arm64 node-v22.2.0 +@contentstack/cli-launch/1.3.0 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migrate-rte/README.md b/packages/contentstack-migrate-rte/README.md index a5edd9f051..150f41b01a 100644 --- a/packages/contentstack-migrate-rte/README.md +++ b/packages/contentstack-migrate-rte/README.md @@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-migrate-rte $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-migrate-rte/1.4.20 darwin-arm64 node-v22.2.0 +@contentstack/cli-cm-migrate-rte/1.4.20 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migration/README.md b/packages/contentstack-migration/README.md index f30eab7c23..d21856cf35 100644 --- a/packages/contentstack-migration/README.md +++ b/packages/contentstack-migration/README.md @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-migration/1.6.3 darwin-arm64 node-v22.2.0 +@contentstack/cli-migration/1.6.3 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index ac860bc54b..f719096ef2 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.30.0 darwin-arm64 node-v22.2.0 +@contentstack/cli/1.31.0 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index c37037954c..19663af1bc 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.30.0", + "version": "1.31.0", "author": "Contentstack", "bin": { "csdx": "./bin/run.js" From 29f170eabbe00dfd971e07418000d06347ad91f2 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Mon, 18 Nov 2024 13:53:06 +0530 Subject: [PATCH 05/20] refactor: removed console --- packages/contentstack-launch/src/commands/launch/logs.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/contentstack-launch/src/commands/launch/logs.ts b/packages/contentstack-launch/src/commands/launch/logs.ts index 8499ec796b..581d56ce66 100755 --- a/packages/contentstack-launch/src/commands/launch/logs.ts +++ b/packages/contentstack-launch/src/commands/launch/logs.ts @@ -78,7 +78,6 @@ 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(); From fe871a5f5ceb8956ff2a536a099b068cf08a9f19 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Mon, 18 Nov 2024 15:07:29 +0530 Subject: [PATCH 06/20] lock-file update --- package-lock.json | 12 ++-- pnpm-lock.yaml | 141 ++++++++++++++++++++++++---------------------- 2 files changed, 80 insertions(+), 73 deletions(-) diff --git a/package-lock.json b/package-lock.json index 879347b49f..fbc0f65ef4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -890,9 +890,9 @@ } }, "node_modules/@contentstack/utils": { - "version": "1.3.14", - "resolved": "https://registry.npmjs.org/@contentstack/utils/-/utils-1.3.14.tgz", - "integrity": "sha512-TFOwN0lKKot06DTSwiOFwbgQoyAB8toNWrDcOGR6JdMg3IMecLPawOk38uJMg+q8u7gMpta70HSVaKbSW9JlEw==", + "version": "1.3.15", + "resolved": "https://registry.npmjs.org/@contentstack/utils/-/utils-1.3.15.tgz", + "integrity": "sha512-m/FNx8LwSquMWo+KQ+zyBALEQTeFuldpLkqTrWXPEtmkPMCNnrF3aLcYHmcpLs7B1nux3wPRD6njhMDUU57giQ==", "license": "MIT" }, "node_modules/@cspotcode/source-map-support": { @@ -6415,9 +6415,9 @@ } }, "node_modules/contentstack": { - "version": "3.22.1", - "resolved": "https://registry.npmjs.org/contentstack/-/contentstack-3.22.1.tgz", - "integrity": "sha512-E2WiBbTw5vzHXy9KwxL4rcw2LrFaNl2KcvlPC3Tn4KEQoRsoKFx+/bFoq5tKwpuAcuch6M6IhA2Qkt1JS52gcA==", + "version": "3.22.2", + "resolved": "https://registry.npmjs.org/contentstack/-/contentstack-3.22.2.tgz", + "integrity": "sha512-rEP/SM9orgbmirB7p0pa0lDGNHO7D3HaH2TIkMhSqdQia02Ov3Tmwcqnv7CJb7+mbXBsHWH5D7Bj5w9MHnhrDg==", "license": "MIT", "dependencies": { "@contentstack/utils": "^1.3.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a7664aa75b..c073752fb7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -86,7 +86,7 @@ importers: '@oclif/core': 3.27.0 '@oclif/plugin-help': 5.2.20_ogreqof3k35xezedraj6pnd45y '@oclif/plugin-not-found': 2.4.3_ogreqof3k35xezedraj6pnd45y - '@oclif/plugin-plugins': 5.4.15 + '@oclif/plugin-plugins': 5.4.17 chalk: 4.1.2 debug: 4.3.7 figlet: 1.8.0 @@ -97,7 +97,7 @@ importers: uuid: 9.0.1 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.0_@oclif+core@3.27.0 + '@oclif/test': 4.1.1_@oclif+core@3.27.0 '@types/chai': 4.3.20 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 @@ -157,7 +157,7 @@ importers: '@contentstack/cli-command': link:../contentstack-command '@contentstack/cli-utilities': link:../contentstack-utilities '@oclif/plugin-help': 5.2.20_qh5aoajehayk656fvrs5ardgyy - '@oclif/plugin-plugins': 5.4.15 + '@oclif/plugin-plugins': 5.4.17 chalk: 4.1.2 fast-csv: 4.3.6 fs-extra: 11.2.0 @@ -166,7 +166,7 @@ importers: winston: 3.17.0 devDependencies: '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 '@types/chai': 4.3.20 '@types/fs-extra': 11.0.4 '@types/mocha': 10.0.9 @@ -227,7 +227,7 @@ importers: devDependencies: '@fancy-test/nock': 0.1.1 '@oclif/plugin-help': 5.2.20_ogreqof3k35xezedraj6pnd45y - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 '@types/chai': 4.3.20 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 @@ -282,7 +282,7 @@ importers: mkdirp: 1.0.4 tar: 6.2.1 devDependencies: - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 '@types/node': 14.18.63 @@ -363,7 +363,7 @@ importers: '@contentstack/cli-config': link:../contentstack-config '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies '@oclif/plugin-help': 5.2.20_typescript@4.9.5 - '@oclif/test': 4.1.0_@oclif+core@3.27.0 + '@oclif/test': 4.1.1_@oclif+core@3.27.0 '@types/flat': 5.0.5 assert: 2.1.0 chai: 4.5.0 @@ -412,7 +412,7 @@ importers: nock: 13.5.6 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 chai: 4.5.0 eslint: 8.57.1 eslint-config-oclif: 4.0.0_eslint@8.57.1 @@ -468,7 +468,7 @@ importers: rimraf: 5.0.10 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 chai: 4.5.0 eslint: 8.57.1 eslint-config-oclif: 4.0.0_eslint@8.57.1 @@ -501,9 +501,9 @@ importers: typescript: ^4.9.5 dependencies: '@contentstack/cli-utilities': link:../contentstack-utilities - contentstack: 3.22.1 + contentstack: 3.22.2 devDependencies: - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 '@types/chai': 4.3.20 '@types/mkdirp': 1.0.2 '@types/mocha': 8.2.3 @@ -560,7 +560,7 @@ importers: mkdirp: 1.0.4 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 '@types/chai': 4.3.20 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 @@ -595,7 +595,7 @@ importers: typescript: ^4.9.5 dependencies: '@oclif/core': 3.27.0 - '@oclif/test': 4.1.0_@oclif+core@3.27.0 + '@oclif/test': 4.1.1_@oclif+core@3.27.0 fancy-test: 2.0.42 lodash: 4.17.21 devDependencies: @@ -671,7 +671,7 @@ importers: '@contentstack/cli-config': link:../contentstack-config '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies '@oclif/plugin-help': 5.2.20_typescript@4.9.5 - '@oclif/test': 4.1.0_@oclif+core@3.27.0 + '@oclif/test': 4.1.1_@oclif+core@3.27.0 '@types/big-json': 3.2.5 '@types/mkdirp': 1.0.2 '@types/progress-stream': 2.0.5 @@ -719,7 +719,7 @@ importers: inquirer-checkbox-plus-prompt: 1.4.2_inquirer@8.2.6 mkdirp: 3.0.1 devDependencies: - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 '@types/chai': 4.3.20 '@types/mocha': 10.0.9 chai: 4.5.0 @@ -798,7 +798,7 @@ importers: uuid: 9.0.1 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.0_@oclif+core@3.27.0 + '@oclif/test': 4.1.1_@oclif+core@3.27.0 '@types/big-json': 3.2.5 '@types/bluebird': 3.5.42 '@types/chai': 4.3.20 @@ -862,12 +862,12 @@ importers: typescript: ^4.9.5 winston: ^3.17.0 dependencies: - '@apollo/client': 3.11.9_graphql@16.9.0 + '@apollo/client': 3.11.10_graphql@16.9.0 '@contentstack/cli-command': link:../contentstack-command '@contentstack/cli-utilities': link:../contentstack-utilities '@oclif/core': 3.27.0 '@oclif/plugin-help': 5.2.20_lmilhoolc66wzdtep3wqgfj6km - '@oclif/plugin-plugins': 5.4.15 + '@oclif/plugin-plugins': 5.4.17 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.19.6 adm-zip: 0.5.16 @@ -883,7 +883,7 @@ importers: open: 8.4.2 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.0_@oclif+core@3.27.0 + '@oclif/test': 4.1.1_@oclif+core@3.27.0 '@types/adm-zip': 0.5.6 '@types/chai': 4.3.20 '@types/esm': 3.2.2 @@ -937,7 +937,7 @@ importers: sinon: 19.0.2 uuid: 9.0.1 devDependencies: - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 chai: 4.5.0 eslint: 8.57.1 eslint-config-oclif: 4.0.0_eslint@8.57.1 @@ -984,7 +984,7 @@ importers: listr: 0.14.3 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 chai: 4.5.0 eslint: 8.57.1 globby: 10.0.2 @@ -1134,7 +1134,7 @@ importers: xdg-basedir: 4.0.0 devDependencies: '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies - '@oclif/test': 4.1.0_@oclif+core@3.27.0 + '@oclif/test': 4.1.1_@oclif+core@3.27.0 '@types/chai': 4.3.20 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 @@ -1182,7 +1182,7 @@ importers: winston: 3.17.0 devDependencies: '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies - '@oclif/test': 4.1.0 + '@oclif/test': 4.1.1 '@types/chai': 4.3.20 '@types/node': 20.17.6 chai: 4.5.0 @@ -1203,8 +1203,8 @@ packages: '@jridgewell/trace-mapping': 0.3.25 dev: true - /@apollo/client/3.11.9_graphql@16.9.0: - resolution: {integrity: sha512-aQ6VL+CPO1G4DLS/3FelfA+nl+ZQCP5qeN1NS6J8xh9wumUM/2W1ccneqCYmbTMDtoSunxE1BV2W6u0FF4axwQ==} + /@apollo/client/3.11.10_graphql@16.9.0: + resolution: {integrity: sha512-IfGc+X4il0rDqVQBBWdxIKM+ciDCiDzBq9+Bg9z4tJMi87uF6po4v+ddiac1wP0ARgVPsFwEIGxK7jhN4pW8jg==} peerDependencies: graphql: ^15.0.0 || ^16.0.0 graphql-ws: ^5.5.5 @@ -1639,7 +1639,7 @@ packages: axios: 1.7.7 form-data: 3.0.2 lodash: 4.17.21 - qs: 6.13.0 + qs: 6.13.1 transitivePeerDependencies: - debug dev: false @@ -1651,7 +1651,7 @@ packages: axios: 1.7.7_debug@4.3.7 form-data: 3.0.2 lodash: 4.17.21 - qs: 6.13.0 + qs: 6.13.1 transitivePeerDependencies: - debug dev: false @@ -1664,8 +1664,8 @@ packages: - debug dev: false - /@contentstack/utils/1.3.13: - resolution: {integrity: sha512-Lp4UIHMdSxMjCmcK93L987Kxa/wnucRlR7CjVBMd1bD8auJSPFh7E3aP9fnvzjzSWockBRYbXkOq6KLojgXlPA==} + /@contentstack/utils/1.3.15: + resolution: {integrity: sha512-m/FNx8LwSquMWo+KQ+zyBALEQTeFuldpLkqTrWXPEtmkPMCNnrF3aLcYHmcpLs7B1nux3wPRD6njhMDUU57giQ==} dev: false /@cspotcode/source-map-support/0.8.1: @@ -2743,8 +2743,8 @@ packages: wordwrap: 1.0.0 wrap-ansi: 7.0.0 - /@oclif/core/4.0.31: - resolution: {integrity: sha512-7oyIZv/C1TP+fPc2tSzVPYqG1zU+nel1QvJxjAWyVhud0J8B5SpKZnryedxs3nlSVPJ6K1MT31C9esupCBYgZw==} + /@oclif/core/4.0.32: + resolution: {integrity: sha512-O3jfIAhqaJxXI2dzF81PLTMhKpFFA0Nyz8kfBnc9WYDJnvdmXK0fVAOSpwpi2mHTow/9FXxY6Kww8+Kbe7/sag==} engines: {node: '>=18.0.0'} dependencies: ansi-escapes: 4.3.2 @@ -2893,11 +2893,11 @@ packages: - typescript dev: true - /@oclif/plugin-plugins/5.4.15: - resolution: {integrity: sha512-0cnTFaRWdXkWgKTrwgjoggcq/A3MaIl1GkDs3BFFjesYlFEs5Fb2HcN42rY+2ja4jBkXrjXBkLS+9faAtdCH6A==} + /@oclif/plugin-plugins/5.4.17: + resolution: {integrity: sha512-V5W5jiGfWYEFS1v6j0+l0sTkRdvuHpZm9zKyEzC1i6IFFx4S4oR2IMjTwJRopyGH2TZDNVQOGilp3Cxu73pbsQ==} engines: {node: '>=18.0.0'} dependencies: - '@oclif/core': 4.0.31 + '@oclif/core': 4.0.32 ansis: 3.3.2 debug: 4.3.7 npm: 10.9.0 @@ -3002,8 +3002,8 @@ packages: - typescript dev: true - /@oclif/test/4.1.0: - resolution: {integrity: sha512-2ugir6NhRsWJqHM9d2lMEWNiOTD678Jlx5chF/fg6TCAlc7E6E/6+zt+polrCTnTIpih5P/HxOtDekgtjgARwQ==} + /@oclif/test/4.1.1: + resolution: {integrity: sha512-eltLnzdRKXaCQbwl7fSWHUHaHGvYNld0gpKjav6QHvM03w7NV7k4jYMEwQXwf+qmh9LuaFyADDi/tpZfrWNQVQ==} engines: {node: '>=18.0.0'} peerDependencies: '@oclif/core': '>= 3.0.0' @@ -3014,8 +3014,8 @@ packages: - supports-color dev: true - /@oclif/test/4.1.0_@oclif+core@3.27.0: - resolution: {integrity: sha512-2ugir6NhRsWJqHM9d2lMEWNiOTD678Jlx5chF/fg6TCAlc7E6E/6+zt+polrCTnTIpih5P/HxOtDekgtjgARwQ==} + /@oclif/test/4.1.1_@oclif+core@3.27.0: + resolution: {integrity: sha512-eltLnzdRKXaCQbwl7fSWHUHaHGvYNld0gpKjav6QHvM03w7NV7k4jYMEwQXwf+qmh9LuaFyADDi/tpZfrWNQVQ==} engines: {node: '>=18.0.0'} peerDependencies: '@oclif/core': '>= 3.0.0' @@ -4560,7 +4560,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 es-object-atoms: 1.0.0 get-intrinsic: 1.2.4 is-string: 1.0.7 @@ -4576,7 +4576,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 es-errors: 1.3.0 es-object-atoms: 1.0.0 es-shim-unscopables: 1.0.2 @@ -4588,7 +4588,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 es-shim-unscopables: 1.0.2 dev: true @@ -4598,7 +4598,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 es-shim-unscopables: 1.0.2 dev: true @@ -4609,7 +4609,7 @@ packages: array-buffer-byte-length: 1.0.1 call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 es-errors: 1.3.0 get-intrinsic: 1.2.4 is-array-buffer: 3.0.4 @@ -4899,7 +4899,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001680 - electron-to-chromium: 1.5.55 + electron-to-chromium: 1.5.62 node-releases: 2.0.18 update-browserslist-db: 1.1.1_browserslist@4.24.2 dev: true @@ -5243,7 +5243,7 @@ packages: parse5: 7.2.1 parse5-htmlparser2-tree-adapter: 7.1.0 parse5-parser-stream: 7.1.2 - undici: 6.20.1 + undici: 6.21.0 whatwg-mimetype: 4.0.0 dev: false @@ -5637,17 +5637,17 @@ packages: resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} engines: {node: '>= 0.6'} - /contentstack/3.22.1: - resolution: {integrity: sha512-E2WiBbTw5vzHXy9KwxL4rcw2LrFaNl2KcvlPC3Tn4KEQoRsoKFx+/bFoq5tKwpuAcuch6M6IhA2Qkt1JS52gcA==} + /contentstack/3.22.2: + resolution: {integrity: sha512-rEP/SM9orgbmirB7p0pa0lDGNHO7D3HaH2TIkMhSqdQia02Ov3Tmwcqnv7CJb7+mbXBsHWH5D7Bj5w9MHnhrDg==} engines: {node: '>= 10.14.2'} dependencies: - '@contentstack/utils': 1.3.13 + '@contentstack/utils': 1.3.15 cheerio: 1.0.0 es6-promise: 4.2.8 fetch-mock: 11.1.5 isomorphic-fetch: 3.0.0 localStorage: 1.0.4 - qs: 6.13.0 + qs: 6.13.1 transitivePeerDependencies: - encoding - node-fetch @@ -6160,8 +6160,8 @@ packages: dependencies: jake: 10.9.2 - /electron-to-chromium/1.5.55: - resolution: {integrity: sha512-6maZ2ASDOTBtjt9FhqYPRnbvKU5tjG0IN9SztUOWYw2AzNDNpKJYLJmlK0/En4Hs/aiWnB+JZ+gW19PIGszgKg==} + /electron-to-chromium/1.5.62: + resolution: {integrity: sha512-t8c+zLmJHa9dJy96yBZRXGQYoiCEnHYgFwn1asvSPZSUdVxnB62A4RASd7k41ytG3ErFBA0TpHlKg9D9SQBmLg==} dev: true /elegant-spinner/1.0.1: @@ -6253,8 +6253,8 @@ packages: resolution: {integrity: sha512-YxIFEJuhgcICugOUvRx5th0UM+ActZ9sjY0QJmeVwsQdvosZ7kYzc9QqS0Da3R5iUmgU5meGIxh0xBeZpMVeLw==} dev: true - /es-abstract/1.23.3: - resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==} + /es-abstract/1.23.5: + resolution: {integrity: sha512-vlmniQ0WNPwXqA0BnmwV3Ng7HxiGlh6r5U6JcTMNx8OilcAGqVJBHJcPjqOMaczU9fRuRK5Px2BdVyPRnKMMVQ==} engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.1 @@ -7912,7 +7912,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 functions-have-names: 1.2.3 /functional-red-black-tree/1.0.1: @@ -10942,7 +10942,7 @@ packages: resolution: {integrity: sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==} engines: {node: '>=8'} dependencies: - process-on-spawn: 1.0.0 + process-on-spawn: 1.1.0 dev: true /node-releases/2.0.18: @@ -11306,7 +11306,7 @@ packages: make-dir: 3.1.0 node-preload: 0.2.1 p-map: 3.0.0 - process-on-spawn: 1.0.0 + process-on-spawn: 1.1.0 resolve-from: 5.0.0 rimraf: 3.0.2 signal-exit: 3.0.7 @@ -11370,7 +11370,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 es-object-atoms: 1.0.0 dev: true @@ -11380,7 +11380,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 dev: true /object.values/1.2.0: @@ -12175,8 +12175,8 @@ packages: /process-nextick-args/2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} - /process-on-spawn/1.0.0: - resolution: {integrity: sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==} + /process-on-spawn/1.1.0: + resolution: {integrity: sha512-JOnOPQ/8TZgjs1JIH/m9ni7FfimjNa/PRx7y/Wb5qdItsnhO0jE4AT7fC0HjC28DUQWDr50dwSYZLdRMlqDq3Q==} engines: {node: '>=8'} dependencies: fromentries: 1.3.2 @@ -12325,6 +12325,13 @@ packages: side-channel: 1.0.6 dev: false + /qs/6.13.1: + resolution: {integrity: sha512-EJPeIn0CYrGu+hli1xilKAPXODtJ12T0sP63Ijx2/khC2JtuaN3JyNIpvmnkmaEtha9ocbG4A4cMcr+TvqvwQg==} + engines: {node: '>=0.6'} + dependencies: + side-channel: 1.0.6 + dev: false + /querystring/0.2.0: resolution: {integrity: sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==} engines: {node: '>=0.4.x'} @@ -13087,7 +13094,7 @@ packages: optional: true dependencies: array-back: 6.2.2 - typical: 7.2.0 + typical: 7.3.0 dev: true /sort-keys/4.2.0: @@ -13270,7 +13277,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 es-object-atoms: 1.0.0 /string.prototype.trimend/1.0.8: @@ -13988,7 +13995,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.23.3 + es-abstract: 1.23.5 es-errors: 1.3.0 typed-array-buffer: 1.0.2 typed-array-byte-offset: 1.0.2 @@ -14017,8 +14024,8 @@ packages: engines: {node: '>=8'} dev: true - /typical/7.2.0: - resolution: {integrity: sha512-W1+HdVRUl8fS3MZ9ogD51GOb46xMmhAZzR0WPw5jcgIZQJVvkddYzAl4YTU6g5w33Y1iRQLdIi2/1jhi2RNL0g==} + /typical/7.3.0: + resolution: {integrity: sha512-ya4mg/30vm+DOWfBg4YK3j2WD6TWtRkCbasOJr40CseYENzCUby/7rIvXA99JGsQHeNxLbnXdyLLxKSv3tauFw==} engines: {node: '>=12.17'} dev: true @@ -14049,8 +14056,8 @@ packages: /undici-types/6.19.8: resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} - /undici/6.20.1: - resolution: {integrity: sha512-AjQF1QsmqfJys+LXfGTNum+qw4S88CojRInG/6t31W/1fk6G59s92bnAvGz5Cmur+kQv2SURXEvvudLmbrE8QA==} + /undici/6.21.0: + resolution: {integrity: sha512-BUgJXc752Kou3oOIuU1i+yZZypyZRqNPW0vqoMPl8VaoalSfeR0D8/t4iAS3yirs79SSMTxTag+ZC86uswv+Cw==} engines: {node: '>=18.17'} dev: false From 3eff6adfc6cd4323917d8ea29ea25b5004cb7614 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Mon, 18 Nov 2024 16:44:12 +0530 Subject: [PATCH 07/20] optional chaingin --- packages/contentstack-migration/src/utils/modules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/contentstack-migration/src/utils/modules.js b/packages/contentstack-migration/src/utils/modules.js index 6b460114b3..11e54f02ef 100644 --- a/packages/contentstack-migration/src/utils/modules.js +++ b/packages/contentstack-migration/src/utils/modules.js @@ -74,13 +74,13 @@ function executeShellCommand(command, directory = '') { const [cmd, ...args] = command.split(' '); const result = spawnSync(cmd, args, { stdio: 'inherit', cwd: directory, shell: true }); - if (result.error) throw result.error; + if (result?.error) throw result.error; console.log(`Command executed successfully: ${command}`); } else { console.log(`Command should only be 'npm i '`); } } catch (error) { - console.error(`Command execution failed. Error: ${error.message}`); + console.error(`Command execution failed. Error: ${error?.message}`); } } async function installModules(filePath, multiple) { From 66ac6689aee2f16742d7961a085d04d787c0373d Mon Sep 17 00:00:00 2001 From: raj pandey Date: Tue, 19 Nov 2024 16:14:16 +0530 Subject: [PATCH 08/20] fixed semgrep issues --- package-lock.json | 42 ++++----- packages/contentstack-audit/package.json | 2 +- .../src/utils/modules.js | 16 +--- packages/contentstack/package.json | 4 +- pnpm-lock.yaml | 92 +++++++++---------- 5 files changed, 75 insertions(+), 81 deletions(-) diff --git a/package-lock.json b/package-lock.json index fbc0f65ef4..5823b09a78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2413,9 +2413,9 @@ } }, "node_modules/@oclif/plugin-plugins/node_modules/@oclif/core": { - "version": "4.0.32", - "resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.0.32.tgz", - "integrity": "sha512-O3jfIAhqaJxXI2dzF81PLTMhKpFFA0Nyz8kfBnc9WYDJnvdmXK0fVAOSpwpi2mHTow/9FXxY6Kww8+Kbe7/sag==", + "version": "4.0.33", + "resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.0.33.tgz", + "integrity": "sha512-NoTDwJ2L/ywpsSjcN7jAAHf3m70Px4Yim2SJrm16r70XpnfbNOdlj1x0HEJ0t95gfD+p/y5uy+qPT/VXTh/1gw==", "license": "MIT", "dependencies": { "ansi-escapes": "^4.3.2", @@ -2550,9 +2550,9 @@ } }, "node_modules/@oclif/test": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@oclif/test/-/test-4.1.1.tgz", - "integrity": "sha512-eltLnzdRKXaCQbwl7fSWHUHaHGvYNld0gpKjav6QHvM03w7NV7k4jYMEwQXwf+qmh9LuaFyADDi/tpZfrWNQVQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@oclif/test/-/test-4.1.2.tgz", + "integrity": "sha512-N8eibgRnH/5TTExC/RxjpLuVbyAy0bGXKHdJxD75tLxH01Ygds90gnSDtkNm14z6kPH90ac+A+LwY1IFZmg1bg==", "license": "MIT", "dependencies": { "ansis": "^3.3.2", @@ -6498,9 +6498,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.5.tgz", - "integrity": "sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -7212,9 +7212,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.62", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.62.tgz", - "integrity": "sha512-t8c+zLmJHa9dJy96yBZRXGQYoiCEnHYgFwn1asvSPZSUdVxnB62A4RASd7k41ytG3ErFBA0TpHlKg9D9SQBmLg==", + "version": "1.5.63", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.63.tgz", + "integrity": "sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA==", "dev": true, "license": "ISC" }, @@ -9574,9 +9574,9 @@ } }, "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", "dev": true, "license": "ISC" }, @@ -26631,7 +26631,7 @@ "@oclif/core": "^3.27.0", "@oclif/plugin-help": "^5", "@oclif/plugin-not-found": "^2.4.3", - "@oclif/plugin-plugins": "^5.4.15", + "@oclif/plugin-plugins": "^5.4.17", "chalk": "^4.1.2", "debug": "^4.3.7", "figlet": "^1.8.0", @@ -26646,7 +26646,7 @@ "csdx": "bin/run.js" }, "devDependencies": { - "@oclif/test": "^4.1.0", + "@oclif/test": "^4.1.2", "@types/chai": "^4.3.20", "@types/inquirer": "^9.0.7", "@types/mkdirp": "^1.0.2", @@ -26695,7 +26695,7 @@ }, "devDependencies": { "@contentstack/cli-dev-dependencies": "^1.2.4", - "@oclif/test": "^4.1.0", + "@oclif/test": "^4.1.2", "@types/chai": "^4.3.20", "@types/fs-extra": "^11.0.4", "@types/mocha": "^10.0.9", @@ -26818,9 +26818,9 @@ "license": "MIT" }, "packages/contentstack-auth/node_modules/eslint-config-oclif": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/eslint-config-oclif/-/eslint-config-oclif-5.2.1.tgz", - "integrity": "sha512-f0I7oB3lkbEnTqH+F18tKNmZG78aDjiCWz7co0Zbz6s12k655jUvb6FtzHniCmATqaHfcVVdrOldBT6P3bKpxA==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/eslint-config-oclif/-/eslint-config-oclif-5.2.2.tgz", + "integrity": "sha512-NNTyyolSmKJicgxtoWZ/hoy2Rw56WIoWCFxgnBkXqDgi9qPKMwZs2Nx2b6SHLJvCiWWhZhWr5V46CFPo3PSPag==", "dev": true, "license": "MIT", "dependencies": { diff --git a/packages/contentstack-audit/package.json b/packages/contentstack-audit/package.json index 72173a89cc..65083b5a62 100644 --- a/packages/contentstack-audit/package.json +++ b/packages/contentstack-audit/package.json @@ -31,7 +31,7 @@ }, "devDependencies": { "@contentstack/cli-dev-dependencies": "^1.2.4", - "@oclif/test": "^4.1.0", + "@oclif/test": "^4.1.2", "@types/chai": "^4.3.20", "@types/fs-extra": "^11.0.4", "@types/mocha": "^10.0.9", diff --git a/packages/contentstack-migration/src/utils/modules.js b/packages/contentstack-migration/src/utils/modules.js index 11e54f02ef..90b6058ae1 100644 --- a/packages/contentstack-migration/src/utils/modules.js +++ b/packages/contentstack-migration/src/utils/modules.js @@ -61,24 +61,18 @@ function installDependencies(dependencies, directory) { if (!internalModules.has(dep)) { const pkg = dep.startsWith('@') ? dep : dep.split('/')[0]; if (!installedDependencies.has(pkg)) { - executeShellCommand(`npm i ${pkg}`, directory); + executeShellCommand(pkg, directory); installedDependencies.add(pkg); } } }); } -function executeShellCommand(command, directory = '') { +function executeShellCommand(pkg, directory = '') { try { - if (command.startsWith('npm i')) { - const [cmd, ...args] = command.split(' '); - const result = spawnSync(cmd, args, { stdio: 'inherit', cwd: directory, shell: true }); - - if (result?.error) throw result.error; - console.log(`Command executed successfully: ${command}`); - } else { - console.log(`Command should only be 'npm i '`); - } + const result = spawnSync(`npm`, ['i', pkg], { stdio: 'inherit', cwd: directory, shell: false }); + if (result?.error) throw result.error; + console.log(`Command executed successfully: ${command}`); } catch (error) { console.error(`Command execution failed. Error: ${error?.message}`); } diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 3b39c66590..3e43bc1d0c 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -43,7 +43,7 @@ "@oclif/core": "^3.27.0", "@oclif/plugin-help": "^5", "@oclif/plugin-not-found": "^2.4.3", - "@oclif/plugin-plugins": "^5.4.15", + "@oclif/plugin-plugins": "^5.4.17", "chalk": "^4.1.2", "debug": "^4.3.7", "figlet": "^1.8.0", @@ -55,7 +55,7 @@ "winston": "^3.17.0" }, "devDependencies": { - "@oclif/test": "^4.1.0", + "@oclif/test": "^4.1.2", "@types/chai": "^4.3.20", "@types/inquirer": "^9.0.7", "@types/mkdirp": "^1.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c073752fb7..9e0f6e86ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,8 +31,8 @@ importers: '@oclif/core': ^3.27.0 '@oclif/plugin-help': ^5 '@oclif/plugin-not-found': ^2.4.3 - '@oclif/plugin-plugins': ^5.4.15 - '@oclif/test': ^4.1.0 + '@oclif/plugin-plugins': ^5.4.17 + '@oclif/test': ^4.1.2 '@types/chai': ^4.3.20 '@types/inquirer': ^9.0.7 '@types/mkdirp': ^1.0.2 @@ -97,7 +97,7 @@ importers: uuid: 9.0.1 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.1_@oclif+core@3.27.0 + '@oclif/test': 4.1.2_@oclif+core@3.27.0 '@types/chai': 4.3.20 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 @@ -128,7 +128,7 @@ importers: '@contentstack/cli-utilities': ~1.8.0 '@oclif/plugin-help': ^5.2.20 '@oclif/plugin-plugins': ^5.4.15 - '@oclif/test': ^4.1.0 + '@oclif/test': ^4.1.2 '@types/chai': ^4.3.20 '@types/fs-extra': ^11.0.4 '@types/mocha': ^10.0.9 @@ -166,7 +166,7 @@ importers: winston: 3.17.0 devDependencies: '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 '@types/chai': 4.3.20 '@types/fs-extra': 11.0.4 '@types/mocha': 10.0.9 @@ -227,7 +227,7 @@ importers: devDependencies: '@fancy-test/nock': 0.1.1 '@oclif/plugin-help': 5.2.20_ogreqof3k35xezedraj6pnd45y - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 '@types/chai': 4.3.20 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 @@ -237,7 +237,7 @@ importers: chai: 4.5.0 dotenv: 16.4.5 eslint: 8.57.1 - eslint-config-oclif: 5.2.1_eslint@8.57.1 + eslint-config-oclif: 5.2.2_eslint@8.57.1 eslint-config-oclif-typescript: 3.1.12_avq3eyf5kaj6ssrwo7fvkrwnji globby: 10.0.2 mocha: 10.7.3 @@ -282,7 +282,7 @@ importers: mkdirp: 1.0.4 tar: 6.2.1 devDependencies: - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 '@types/node': 14.18.63 @@ -363,7 +363,7 @@ importers: '@contentstack/cli-config': link:../contentstack-config '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies '@oclif/plugin-help': 5.2.20_typescript@4.9.5 - '@oclif/test': 4.1.1_@oclif+core@3.27.0 + '@oclif/test': 4.1.2_@oclif+core@3.27.0 '@types/flat': 5.0.5 assert: 2.1.0 chai: 4.5.0 @@ -412,7 +412,7 @@ importers: nock: 13.5.6 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 chai: 4.5.0 eslint: 8.57.1 eslint-config-oclif: 4.0.0_eslint@8.57.1 @@ -468,7 +468,7 @@ importers: rimraf: 5.0.10 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 chai: 4.5.0 eslint: 8.57.1 eslint-config-oclif: 4.0.0_eslint@8.57.1 @@ -503,7 +503,7 @@ importers: '@contentstack/cli-utilities': link:../contentstack-utilities contentstack: 3.22.2 devDependencies: - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 '@types/chai': 4.3.20 '@types/mkdirp': 1.0.2 '@types/mocha': 8.2.3 @@ -560,7 +560,7 @@ importers: mkdirp: 1.0.4 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 '@types/chai': 4.3.20 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 @@ -595,7 +595,7 @@ importers: typescript: ^4.9.5 dependencies: '@oclif/core': 3.27.0 - '@oclif/test': 4.1.1_@oclif+core@3.27.0 + '@oclif/test': 4.1.2_@oclif+core@3.27.0 fancy-test: 2.0.42 lodash: 4.17.21 devDependencies: @@ -671,7 +671,7 @@ importers: '@contentstack/cli-config': link:../contentstack-config '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies '@oclif/plugin-help': 5.2.20_typescript@4.9.5 - '@oclif/test': 4.1.1_@oclif+core@3.27.0 + '@oclif/test': 4.1.2_@oclif+core@3.27.0 '@types/big-json': 3.2.5 '@types/mkdirp': 1.0.2 '@types/progress-stream': 2.0.5 @@ -719,7 +719,7 @@ importers: inquirer-checkbox-plus-prompt: 1.4.2_inquirer@8.2.6 mkdirp: 3.0.1 devDependencies: - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 '@types/chai': 4.3.20 '@types/mocha': 10.0.9 chai: 4.5.0 @@ -798,7 +798,7 @@ importers: uuid: 9.0.1 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.1_@oclif+core@3.27.0 + '@oclif/test': 4.1.2_@oclif+core@3.27.0 '@types/big-json': 3.2.5 '@types/bluebird': 3.5.42 '@types/chai': 4.3.20 @@ -883,7 +883,7 @@ importers: open: 8.4.2 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.1_@oclif+core@3.27.0 + '@oclif/test': 4.1.2_@oclif+core@3.27.0 '@types/adm-zip': 0.5.6 '@types/chai': 4.3.20 '@types/esm': 3.2.2 @@ -937,7 +937,7 @@ importers: sinon: 19.0.2 uuid: 9.0.1 devDependencies: - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 chai: 4.5.0 eslint: 8.57.1 eslint-config-oclif: 4.0.0_eslint@8.57.1 @@ -984,7 +984,7 @@ importers: listr: 0.14.3 winston: 3.17.0 devDependencies: - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 chai: 4.5.0 eslint: 8.57.1 globby: 10.0.2 @@ -1134,7 +1134,7 @@ importers: xdg-basedir: 4.0.0 devDependencies: '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies - '@oclif/test': 4.1.1_@oclif+core@3.27.0 + '@oclif/test': 4.1.2_@oclif+core@3.27.0 '@types/chai': 4.3.20 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 @@ -1182,7 +1182,7 @@ importers: winston: 3.17.0 devDependencies: '@contentstack/cli-dev-dependencies': link:../contentstack-dev-dependencies - '@oclif/test': 4.1.1 + '@oclif/test': 4.1.2 '@types/chai': 4.3.20 '@types/node': 20.17.6 chai: 4.5.0 @@ -2743,8 +2743,8 @@ packages: wordwrap: 1.0.0 wrap-ansi: 7.0.0 - /@oclif/core/4.0.32: - resolution: {integrity: sha512-O3jfIAhqaJxXI2dzF81PLTMhKpFFA0Nyz8kfBnc9WYDJnvdmXK0fVAOSpwpi2mHTow/9FXxY6Kww8+Kbe7/sag==} + /@oclif/core/4.0.33: + resolution: {integrity: sha512-NoTDwJ2L/ywpsSjcN7jAAHf3m70Px4Yim2SJrm16r70XpnfbNOdlj1x0HEJ0t95gfD+p/y5uy+qPT/VXTh/1gw==} engines: {node: '>=18.0.0'} dependencies: ansi-escapes: 4.3.2 @@ -2897,7 +2897,7 @@ packages: resolution: {integrity: sha512-V5W5jiGfWYEFS1v6j0+l0sTkRdvuHpZm9zKyEzC1i6IFFx4S4oR2IMjTwJRopyGH2TZDNVQOGilp3Cxu73pbsQ==} engines: {node: '>=18.0.0'} dependencies: - '@oclif/core': 4.0.32 + '@oclif/core': 4.0.33 ansis: 3.3.2 debug: 4.3.7 npm: 10.9.0 @@ -3002,8 +3002,8 @@ packages: - typescript dev: true - /@oclif/test/4.1.1: - resolution: {integrity: sha512-eltLnzdRKXaCQbwl7fSWHUHaHGvYNld0gpKjav6QHvM03w7NV7k4jYMEwQXwf+qmh9LuaFyADDi/tpZfrWNQVQ==} + /@oclif/test/4.1.2: + resolution: {integrity: sha512-N8eibgRnH/5TTExC/RxjpLuVbyAy0bGXKHdJxD75tLxH01Ygds90gnSDtkNm14z6kPH90ac+A+LwY1IFZmg1bg==} engines: {node: '>=18.0.0'} peerDependencies: '@oclif/core': '>= 3.0.0' @@ -3014,8 +3014,8 @@ packages: - supports-color dev: true - /@oclif/test/4.1.1_@oclif+core@3.27.0: - resolution: {integrity: sha512-eltLnzdRKXaCQbwl7fSWHUHaHGvYNld0gpKjav6QHvM03w7NV7k4jYMEwQXwf+qmh9LuaFyADDi/tpZfrWNQVQ==} + /@oclif/test/4.1.2_@oclif+core@3.27.0: + resolution: {integrity: sha512-N8eibgRnH/5TTExC/RxjpLuVbyAy0bGXKHdJxD75tLxH01Ygds90gnSDtkNm14z6kPH90ac+A+LwY1IFZmg1bg==} engines: {node: '>=18.0.0'} peerDependencies: '@oclif/core': '>= 3.0.0' @@ -4899,7 +4899,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001680 - electron-to-chromium: 1.5.62 + electron-to-chromium: 1.5.63 node-releases: 2.0.18 update-browserslist-db: 1.1.1_browserslist@4.24.2 dev: true @@ -5722,8 +5722,8 @@ packages: - encoding dev: false - /cross-spawn/7.0.5: - resolution: {integrity: sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==} + /cross-spawn/7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -6160,8 +6160,8 @@ packages: dependencies: jake: 10.9.2 - /electron-to-chromium/1.5.62: - resolution: {integrity: sha512-t8c+zLmJHa9dJy96yBZRXGQYoiCEnHYgFwn1asvSPZSUdVxnB62A4RASd7k41ytG3ErFBA0TpHlKg9D9SQBmLg==} + /electron-to-chromium/1.5.63: + resolution: {integrity: sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA==} dev: true /elegant-spinner/1.0.1: @@ -6485,8 +6485,8 @@ packages: - supports-color dev: true - /eslint-config-oclif/5.2.1_eslint@8.57.1: - resolution: {integrity: sha512-f0I7oB3lkbEnTqH+F18tKNmZG78aDjiCWz7co0Zbz6s12k655jUvb6FtzHniCmATqaHfcVVdrOldBT6P3bKpxA==} + /eslint-config-oclif/5.2.2_eslint@8.57.1: + resolution: {integrity: sha512-NNTyyolSmKJicgxtoWZ/hoy2Rw56WIoWCFxgnBkXqDgi9qPKMwZs2Nx2b6SHLJvCiWWhZhWr5V46CFPo3PSPag==} engines: {node: '>=18.0.0'} dependencies: eslint-config-xo-space: 0.35.0_eslint@8.57.1 @@ -7243,7 +7243,7 @@ packages: '@humanwhocodes/config-array': 0.5.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.5 + cross-spawn: 7.0.6 debug: 4.3.7 doctrine: 3.0.0 enquirer: 2.4.1 @@ -7298,7 +7298,7 @@ packages: '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.5 + cross-spawn: 7.0.6 debug: 4.3.7 doctrine: 3.0.0 escape-string-regexp: 4.0.0 @@ -7413,7 +7413,7 @@ packages: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} dependencies: - cross-spawn: 7.0.5 + cross-spawn: 7.0.6 get-stream: 6.0.1 human-signals: 2.1.0 is-stream: 2.0.1 @@ -7759,7 +7759,7 @@ packages: resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flatted: 3.3.1 + flatted: 3.3.2 keyv: 4.5.4 rimraf: 3.0.2 dev: true @@ -7769,8 +7769,8 @@ packages: hasBin: true dev: true - /flatted/3.3.1: - resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + /flatted/3.3.2: + resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==} dev: true /fn.name/1.1.0: @@ -7807,7 +7807,7 @@ packages: resolution: {integrity: sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==} engines: {node: '>=8.0.0'} dependencies: - cross-spawn: 7.0.5 + cross-spawn: 7.0.6 signal-exit: 3.0.7 dev: true @@ -7815,7 +7815,7 @@ packages: resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} engines: {node: '>=14'} dependencies: - cross-spawn: 7.0.5 + cross-spawn: 7.0.6 signal-exit: 4.1.0 /form-data/3.0.2: @@ -8986,7 +8986,7 @@ packages: engines: {node: '>=8'} dependencies: archy: 1.0.0 - cross-spawn: 7.0.5 + cross-spawn: 7.0.6 istanbul-lib-coverage: 3.2.2 p-map: 3.0.0 rimraf: 3.0.2 @@ -12009,7 +12009,7 @@ packages: resolution: {integrity: sha512-HkrjG2aJlvF0t2BMH0e2LB/EHf3Lcq3fNMzy4GYHcQblAvOl+QQji1Lx7WRBMqpVK8p+KR7bCg7oqAMXtdgqyw==} dependencies: ansi-escapes: 4.3.2 - cross-spawn: 7.0.5 + cross-spawn: 7.0.6 /path-exists/3.0.0: resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} From ad337c8364a1c7c4be162a67d0ebed48fa93708a Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Thu, 21 Nov 2024 12:16:01 +0530 Subject: [PATCH 09/20] [DX-648] - implemented a warning if the user is using older versions of the CLI --- package-lock.json | 1 + packages/contentstack/package.json | 4 +- .../hooks/prerun/latest-version-warning.ts | 60 +++++++++++++++++++ pnpm-lock.yaml | 2 + 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 packages/contentstack/src/hooks/prerun/latest-version-warning.ts diff --git a/package-lock.json b/package-lock.json index 5823b09a78..3fdfc93723 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26652,6 +26652,7 @@ "@types/mkdirp": "^1.0.2", "@types/mocha": "^8.2.3", "@types/node": "^14.18.63", + "@types/semver": "^7.5.8", "@types/sinon": "^10.0.20", "chai": "^4.5.0", "eslint": "^8.57.1", diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 3e43bc1d0c..22c8e7ff6a 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -61,6 +61,7 @@ "@types/mkdirp": "^1.0.2", "@types/mocha": "^8.2.3", "@types/node": "^14.18.63", + "@types/semver": "^7.5.8", "@types/sinon": "^10.0.20", "chai": "^4.5.0", "eslint": "^8.57.1", @@ -153,7 +154,8 @@ "hooks": { "prerun": [ "./lib/hooks/prerun/command-deprecation-check", - "./lib/hooks/prerun/default-rate-limit-check" + "./lib/hooks/prerun/default-rate-limit-check", + "./lib/hooks/prerun/latest-version-warning" ], "init": [ "./lib/hooks/init/context-init", diff --git a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts new file mode 100644 index 0000000000..4bf110faf9 --- /dev/null +++ b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts @@ -0,0 +1,60 @@ +import { cliux, configHandler, HttpClient, LoggerService } from '@contentstack/cli-utilities'; +import * as semver from 'semver'; +interface ICacheData { + lastChecked: number; + lastWarnedDate: string; + latestVersion: string; +} +interface IVersionUpgradeWarningFrequency { + versionSyncDuration: number; +} +const versionUpgradeWarningFrequency: IVersionUpgradeWarningFrequency = { + versionSyncDuration: 3 * 24 * 60 * 60 * 1000, +}; +export default async function (_opts): Promise { + const now = Date.now(); + const today = '2023-11-21'; + let logger!: LoggerService; + logger = new LoggerService(process.cwd(), 'cli-log'); + let cache: ICacheData = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' }; + + if (!configHandler.get('versionUpgradeWarningFrequency')) { + configHandler.set('versionUpgradeWarningFrequency', versionUpgradeWarningFrequency); + } + const versionUpgradeWarningFrequencyConfig: IVersionUpgradeWarningFrequency = configHandler.get( + 'versionUpgradeWarningFrequency', + ); + + // Load cache if it exists + if (configHandler.get('versionUpgradeWarningCache')) { + cache = configHandler.get('versionUpgradeWarningCache'); + } + + // Perform update check if needed + const httpClient = new HttpClient(); + + if (now - cache.lastChecked > versionUpgradeWarningFrequencyConfig.versionSyncDuration) { + try { + const latestVersion = (await httpClient.get(`https://registry.npmjs.org/@contentstack/cli/latest`)).data.version; + cache.latestVersion = latestVersion; + cache.lastChecked = now; + + // Save updated cache + configHandler.set('versionUpgradeWarningCache', cache); + } catch (error) { + logger.error('Failed to check the latest version', error); + return; + } + } + + // Show warning if an update is available and last warning was > 3 hours ago + if (semver.gt(cache.latestVersion, this.config.version) && cache.lastWarnedDate !== today) { + cliux.print( + `You are using version ${this.config.version}, but the latest version is ${cache.latestVersion}. Please update your CLI for the best experience.`, + { color: 'yellow' }, + ); + // Update the last warned timestamp + cache.lastWarnedDate = today; + configHandler.set('versionUpgradeWarningCache', cache); + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9e0f6e86ef..a3b55f2329 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,6 +38,7 @@ importers: '@types/mkdirp': ^1.0.2 '@types/mocha': ^8.2.3 '@types/node': ^14.18.63 + '@types/semver': ^7.5.8 '@types/sinon': ^10.0.20 chai: ^4.5.0 chalk: ^4.1.2 @@ -103,6 +104,7 @@ importers: '@types/mkdirp': 1.0.2 '@types/mocha': 8.2.3 '@types/node': 14.18.63 + '@types/semver': 7.5.8 '@types/sinon': 10.0.20 chai: 4.5.0 eslint: 8.57.1 From 534ee1e9a59ccf09ef075bbce8343363a599f6ce Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Thu, 21 Nov 2024 12:49:58 +0530 Subject: [PATCH 10/20] [DX-648] - removed static date --- .../contentstack/src/hooks/prerun/latest-version-warning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts index 4bf110faf9..6144989b80 100644 --- a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts +++ b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts @@ -13,7 +13,7 @@ const versionUpgradeWarningFrequency: IVersionUpgradeWarningFrequency = { }; export default async function (_opts): Promise { const now = Date.now(); - const today = '2023-11-21'; + const today = new Date().toISOString().split('T')[0]; let logger!: LoggerService; logger = new LoggerService(process.cwd(), 'cli-log'); let cache: ICacheData = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' }; From 4567e3d30a376d5a63a8d4f343914989b38a479f Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Thu, 21 Nov 2024 12:57:11 +0530 Subject: [PATCH 11/20] [DX-648]-moved interfaces to inteface index file --- .../src/hooks/prerun/latest-version-warning.ts | 12 +++--------- packages/contentstack/src/interfaces/index.ts | 9 +++++++++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts index 6144989b80..a345f8d599 100644 --- a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts +++ b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts @@ -1,13 +1,7 @@ import { cliux, configHandler, HttpClient, LoggerService } from '@contentstack/cli-utilities'; import * as semver from 'semver'; -interface ICacheData { - lastChecked: number; - lastWarnedDate: string; - latestVersion: string; -} -interface IVersionUpgradeWarningFrequency { - versionSyncDuration: number; -} +import { IVersionUpgradeCache, IVersionUpgradeWarningFrequency } from '../../interfaces'; + const versionUpgradeWarningFrequency: IVersionUpgradeWarningFrequency = { versionSyncDuration: 3 * 24 * 60 * 60 * 1000, }; @@ -16,7 +10,7 @@ export default async function (_opts): Promise { const today = new Date().toISOString().split('T')[0]; let logger!: LoggerService; logger = new LoggerService(process.cwd(), 'cli-log'); - let cache: ICacheData = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' }; + let cache: IVersionUpgradeCache = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' }; if (!configHandler.get('versionUpgradeWarningFrequency')) { configHandler.set('versionUpgradeWarningFrequency', versionUpgradeWarningFrequency); diff --git a/packages/contentstack/src/interfaces/index.ts b/packages/contentstack/src/interfaces/index.ts index ec662c6733..975af29c15 100644 --- a/packages/contentstack/src/interfaces/index.ts +++ b/packages/contentstack/src/interfaces/index.ts @@ -33,3 +33,12 @@ export interface Context { export interface CLIConfig extends Config { context: Context; } + +export interface IVersionUpgradeCache { + lastChecked: number; + lastWarnedDate: string; + latestVersion: string; +} +export interface IVersionUpgradeWarningFrequency { + versionSyncDuration: number; +} From 8df65cadd820ba9f8ddcbb9e9e4fabe54e638529 Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Thu, 21 Nov 2024 13:12:27 +0530 Subject: [PATCH 12/20] [DX-648]- updated intialization of logger service --- .../contentstack/src/hooks/prerun/latest-version-warning.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts index a345f8d599..4e7193ae95 100644 --- a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts +++ b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts @@ -8,8 +8,7 @@ const versionUpgradeWarningFrequency: IVersionUpgradeWarningFrequency = { export default async function (_opts): Promise { const now = Date.now(); const today = new Date().toISOString().split('T')[0]; - let logger!: LoggerService; - logger = new LoggerService(process.cwd(), 'cli-log'); + const logger: LoggerService = new LoggerService(process.cwd(), 'cli-log'); let cache: IVersionUpgradeCache = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' }; if (!configHandler.get('versionUpgradeWarningFrequency')) { From 937c6ef09736a61f62c724b492bf57de94669fa9 Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Thu, 21 Nov 2024 14:43:14 +0530 Subject: [PATCH 13/20] [DX-648]- added fallback in case of version is not fetched --- .../src/hooks/prerun/latest-version-warning.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts index 4e7193ae95..66fd244816 100644 --- a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts +++ b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts @@ -28,7 +28,12 @@ export default async function (_opts): Promise { if (now - cache.lastChecked > versionUpgradeWarningFrequencyConfig.versionSyncDuration) { try { - const latestVersion = (await httpClient.get(`https://registry.npmjs.org/@contentstack/cli/latest`)).data.version; + const latestVersion = (await httpClient.get(`https://registry.npmjs.org/@contentstack/cli/latest`))?.data + ?.version; + if (!latestVersion) { + logger.error('Failed to retrieve the latest version from the registry.'); + return; + } cache.latestVersion = latestVersion; cache.lastChecked = now; From a7a4abefa652d2e640ae191b4b68f510804e7d9c Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Thu, 21 Nov 2024 15:29:35 +0530 Subject: [PATCH 14/20] [DX-648]- updated logger intialisation --- .../contentstack/src/hooks/prerun/latest-version-warning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts index 66fd244816..06e65c7373 100644 --- a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts +++ b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts @@ -8,7 +8,7 @@ const versionUpgradeWarningFrequency: IVersionUpgradeWarningFrequency = { export default async function (_opts): Promise { const now = Date.now(); const today = new Date().toISOString().split('T')[0]; - const logger: LoggerService = new LoggerService(process.cwd(), 'cli-log'); + const logger: LoggerService = new LoggerService(process.env.CS_CLI_LOG_PATH || process.cwd(), 'cli-log'); let cache: IVersionUpgradeCache = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' }; if (!configHandler.get('versionUpgradeWarningFrequency')) { From 94e6a7910146075e4f49973a9cb8f3cab17a241a Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Fri, 22 Nov 2024 12:51:58 +0530 Subject: [PATCH 15/20] [DX-648] - updated the commented code --- .../contentstack/src/hooks/prerun/latest-version-warning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts index 06e65c7373..03cb777637 100644 --- a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts +++ b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts @@ -45,7 +45,7 @@ export default async function (_opts): Promise { } } - // Show warning if an update is available and last warning was > 3 hours ago + // Show warning if an update is available and last warning was yesterday if (semver.gt(cache.latestVersion, this.config.version) && cache.lastWarnedDate !== today) { cliux.print( `You are using version ${this.config.version}, but the latest version is ${cache.latestVersion}. Please update your CLI for the best experience.`, From 3b3fdd73df9cd0e7e7ced22bbab9825db1645ec9 Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Fri, 22 Nov 2024 13:40:18 +0530 Subject: [PATCH 16/20] [DX-648] - updated the package version --- packages/contentstack/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 22c8e7ff6a..4ddfc9a6d5 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.31.0", + "version": "1.31.1", "author": "Contentstack", "bin": { "csdx": "./bin/run.js" From cc3d0336c184d9d228502f06d74d037494f1ee6a Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Fri, 22 Nov 2024 14:19:35 +0530 Subject: [PATCH 17/20] [DX-648] - updated the cli version 1.31.0 -> 1.32.0 --- package-lock.json | 725 +++++++++++++---------------- packages/contentstack/README.md | 16 +- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 133 ++++-- 4 files changed, 427 insertions(+), 449 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3fdfc93723..916bfe63c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5458,9 +5458,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001680", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz", - "integrity": "sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==", + "version": "1.0.30001683", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001683.tgz", + "integrity": "sha512-iqmNnThZ0n70mNwvxpEC2nBJ037ZHZUoBI5Gorh1Mw6IlEAZujEoU1tXA628iZfzm7R9FvFzxbfdgml82a3k8Q==", "dev": true, "funding": [ { @@ -7212,9 +7212,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.63", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.63.tgz", - "integrity": "sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA==", + "version": "1.5.64", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.64.tgz", + "integrity": "sha512-IXEuxU+5ClW2IGEYFC2T7szbyVgehupCWQe5GNh+H065CD6U6IFN0s4KeAMFGNmQolRU4IV7zGBWSYMmZ8uuqQ==", "dev": true, "license": "ISC" }, @@ -11469,6 +11469,21 @@ "dev": true, "license": "MIT" }, + "node_modules/is-async-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", + "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -11617,6 +11632,18 @@ "node": ">=0.10.0" } }, + "node_modules/is-finalizationregistry": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", + "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -11640,7 +11667,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dev": true, "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" @@ -11713,6 +11739,18 @@ "dev": true, "license": "MIT" }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-nan": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", @@ -11885,6 +11923,18 @@ "node": ">=8" } }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-shared-array-buffer": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", @@ -12001,6 +12051,18 @@ "node": ">=0.10.0" } }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -12013,6 +12075,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-weakset": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz", + "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", @@ -15762,9 +15840,9 @@ } }, "node_modules/npm": { - "version": "10.9.0", - "resolved": "https://registry.npmjs.org/npm/-/npm-10.9.0.tgz", - "integrity": "sha512-ZanDioFylI9helNhl2LNd+ErmVD+H5I53ry41ixlLyCBgkuYb+58CvbAp99hW+zr5L9W4X7CchSoeqKdngOLSw==", + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/npm/-/npm-10.9.1.tgz", + "integrity": "sha512-yJUw03xLqjiv1D52oHeoS5qmOEC5hkJlhP1cWlSrCgshuxWVyFEEK3M3hLC0NwbTaklLTYrhoIanYsuNP5WUKg==", "bundleDependencies": [ "@isaacs/string-locale-compare", "@npmcli/arborist", @@ -15850,21 +15928,21 @@ "@npmcli/fs": "^4.0.0", "@npmcli/map-workspaces": "^4.0.1", "@npmcli/package-json": "^6.0.1", - "@npmcli/promise-spawn": "^8.0.1", + "@npmcli/promise-spawn": "^8.0.2", "@npmcli/redact": "^3.0.0", "@npmcli/run-script": "^9.0.1", - "@sigstore/tuf": "^2.3.4", + "@sigstore/tuf": "^3.0.0", "abbrev": "^3.0.0", "archy": "~1.0.0", "cacache": "^19.0.1", "chalk": "^5.3.0", - "ci-info": "^4.0.0", + "ci-info": "^4.1.0", "cli-columns": "^4.0.0", "fastest-levenshtein": "^1.0.16", "fs-minipass": "^3.0.3", "glob": "^10.4.5", "graceful-fs": "^4.2.11", - "hosted-git-info": "^8.0.0", + "hosted-git-info": "^8.0.2", "ini": "^5.0.0", "init-package-json": "^7.0.1", "is-cidr": "^5.1.0", @@ -15876,11 +15954,11 @@ "libnpmhook": "^11.0.0", "libnpmorg": "^7.0.0", "libnpmpack": "^8.0.0", - "libnpmpublish": "^10.0.0", + "libnpmpublish": "^10.0.1", "libnpmsearch": "^8.0.0", "libnpmteam": "^7.0.0", "libnpmversion": "^7.0.0", - "make-fetch-happen": "^14.0.1", + "make-fetch-happen": "^14.0.3", "minimatch": "^9.0.5", "minipass": "^7.1.1", "minipass-pipeline": "^1.2.4", @@ -15889,14 +15967,14 @@ "nopt": "^8.0.0", "normalize-package-data": "^7.0.0", "npm-audit-report": "^6.0.0", - "npm-install-checks": "^7.1.0", + "npm-install-checks": "^7.1.1", "npm-package-arg": "^12.0.0", "npm-pick-manifest": "^10.0.0", "npm-profile": "^11.0.1", - "npm-registry-fetch": "^18.0.1", + "npm-registry-fetch": "^18.0.2", "npm-user-validate": "^3.0.0", "p-map": "^4.0.0", - "pacote": "^19.0.0", + "pacote": "^19.0.1", "parse-conflict-json": "^4.0.0", "proc-log": "^5.0.0", "qrcode-terminal": "^0.12.0", @@ -16485,7 +16563,7 @@ } }, "node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", + "version": "6.1.0", "inBundle": true, "license": "MIT", "engines": { @@ -16687,13 +16765,13 @@ } }, "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { - "version": "8.0.0", + "version": "8.0.1", "inBundle": true, "license": "ISC", "dependencies": { "cacache": "^19.0.0", "json-parse-even-better-errors": "^4.0.0", - "pacote": "^19.0.0", + "pacote": "^20.0.0", "proc-log": "^5.0.0", "semver": "^7.3.5" }, @@ -16701,6 +16779,36 @@ "node": "^18.17.0 || >=20.5.0" } }, + "node_modules/npm/node_modules/@npmcli/metavuln-calculator/node_modules/pacote": { + "version": "20.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^6.0.0", + "@npmcli/installed-package-contents": "^3.0.0", + "@npmcli/package-json": "^6.0.0", + "@npmcli/promise-spawn": "^8.0.0", + "@npmcli/run-script": "^9.0.0", + "cacache": "^19.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^7.0.2", + "npm-package-arg": "^12.0.0", + "npm-packlist": "^9.0.0", + "npm-pick-manifest": "^10.0.0", + "npm-registry-fetch": "^18.0.0", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1", + "sigstore": "^3.0.0", + "ssri": "^12.0.0", + "tar": "^6.1.11" + }, + "bin": { + "pacote": "bin/index.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, "node_modules/npm/node_modules/@npmcli/name-from-folder": { "version": "3.0.0", "inBundle": true, @@ -16735,7 +16843,7 @@ } }, "node_modules/npm/node_modules/@npmcli/promise-spawn": { - "version": "8.0.1", + "version": "8.0.2", "inBundle": true, "license": "ISC", "dependencies": { @@ -16789,25 +16897,6 @@ "node": ">=14" } }, - "node_modules/npm/node_modules/@sigstore/bundle": { - "version": "2.3.2", - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@sigstore/protobuf-specs": "^0.3.2" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/core": { - "version": "1.1.0", - "inBundle": true, - "license": "Apache-2.0", - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, "node_modules/npm/node_modules/@sigstore/protobuf-specs": { "version": "0.3.2", "inBundle": true, @@ -16816,172 +16905,16 @@ "node": "^16.14.0 || >=18.0.0" } }, - "node_modules/npm/node_modules/@sigstore/sign": { - "version": "2.3.2", - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@sigstore/bundle": "^2.3.2", - "@sigstore/core": "^1.0.0", - "@sigstore/protobuf-specs": "^0.3.2", - "make-fetch-happen": "^13.0.1", - "proc-log": "^4.2.0", - "promise-retry": "^2.0.1" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/@npmcli/agent": { - "version": "2.2.2", - "inBundle": true, - "license": "ISC", - "dependencies": { - "agent-base": "^7.1.0", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.1", - "lru-cache": "^10.0.1", - "socks-proxy-agent": "^8.0.3" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/@npmcli/fs": { - "version": "3.1.1", - "inBundle": true, - "license": "ISC", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/cacache": { - "version": "18.0.4", - "inBundle": true, - "license": "ISC", - "dependencies": { - "@npmcli/fs": "^3.1.0", - "fs-minipass": "^3.0.0", - "glob": "^10.2.2", - "lru-cache": "^10.0.1", - "minipass": "^7.0.3", - "minipass-collect": "^2.0.1", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "p-map": "^4.0.0", - "ssri": "^10.0.0", - "tar": "^6.1.11", - "unique-filename": "^3.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/make-fetch-happen": { - "version": "13.0.1", - "inBundle": true, - "license": "ISC", - "dependencies": { - "@npmcli/agent": "^2.0.0", - "cacache": "^18.0.0", - "http-cache-semantics": "^4.1.1", - "is-lambda": "^1.0.1", - "minipass": "^7.0.2", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "proc-log": "^4.2.0", - "promise-retry": "^2.0.1", - "ssri": "^10.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/minipass-fetch": { - "version": "3.0.5", - "inBundle": true, - "license": "MIT", - "dependencies": { - "minipass": "^7.0.3", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/proc-log": { - "version": "4.2.0", - "inBundle": true, - "license": "ISC", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/ssri": { - "version": "10.0.6", - "inBundle": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/unique-filename": { - "version": "3.0.0", - "inBundle": true, - "license": "ISC", - "dependencies": { - "unique-slug": "^4.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/sign/node_modules/unique-slug": { - "version": "4.0.0", - "inBundle": true, - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, "node_modules/npm/node_modules/@sigstore/tuf": { - "version": "2.3.4", + "version": "3.0.0", "inBundle": true, "license": "Apache-2.0", "dependencies": { "@sigstore/protobuf-specs": "^0.3.2", - "tuf-js": "^2.2.1" + "tuf-js": "^3.0.1" }, "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/@sigstore/verify": { - "version": "1.2.1", - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@sigstore/bundle": "^2.3.2", - "@sigstore/core": "^1.1.0", - "@sigstore/protobuf-specs": "^0.3.2" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/npm/node_modules/@tufjs/canonical-json": { @@ -16992,18 +16925,6 @@ "node": "^16.14.0 || >=18.0.0" } }, - "node_modules/npm/node_modules/@tufjs/models": { - "version": "2.0.1", - "inBundle": true, - "license": "MIT", - "dependencies": { - "@tufjs/canonical-json": "2.0.0", - "minimatch": "^9.0.4" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, "node_modules/npm/node_modules/abbrev": { "version": "3.0.0", "inBundle": true, @@ -17214,7 +17135,7 @@ } }, "node_modules/npm/node_modules/ci-info": { - "version": "4.0.0", + "version": "4.1.0", "funding": [ { "type": "github", @@ -17288,7 +17209,7 @@ "license": "ISC" }, "node_modules/npm/node_modules/cross-spawn": { - "version": "7.0.3", + "version": "7.0.6", "inBundle": true, "license": "MIT", "dependencies": { @@ -17326,11 +17247,11 @@ } }, "node_modules/npm/node_modules/debug": { - "version": "4.3.6", + "version": "4.3.7", "inBundle": true, "license": "MIT", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -17341,11 +17262,6 @@ } } }, - "node_modules/npm/node_modules/debug/node_modules/ms": { - "version": "2.1.2", - "inBundle": true, - "license": "MIT" - }, "node_modules/npm/node_modules/diff": { "version": "5.2.0", "inBundle": true, @@ -17450,7 +17366,7 @@ "license": "ISC" }, "node_modules/npm/node_modules/hosted-git-info": { - "version": "8.0.0", + "version": "8.0.2", "inBundle": true, "license": "ISC", "dependencies": { @@ -17758,7 +17674,7 @@ } }, "node_modules/npm/node_modules/libnpmpublish": { - "version": "10.0.0", + "version": "10.0.1", "inBundle": true, "license": "ISC", "dependencies": { @@ -17768,7 +17684,7 @@ "npm-registry-fetch": "^18.0.1", "proc-log": "^5.0.0", "semver": "^7.3.7", - "sigstore": "^2.2.0", + "sigstore": "^3.0.0", "ssri": "^12.0.0" }, "engines": { @@ -17819,7 +17735,7 @@ "license": "ISC" }, "node_modules/npm/node_modules/make-fetch-happen": { - "version": "14.0.1", + "version": "14.0.3", "inBundle": true, "license": "ISC", "dependencies": { @@ -17830,7 +17746,7 @@ "minipass-fetch": "^4.0.0", "minipass-flush": "^1.0.5", "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", + "negotiator": "^1.0.0", "proc-log": "^5.0.0", "promise-retry": "^2.0.1", "ssri": "^12.0.0" @@ -17839,6 +17755,14 @@ "node": "^18.17.0 || >=20.5.0" } }, + "node_modules/npm/node_modules/make-fetch-happen/node_modules/negotiator": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/npm/node_modules/minimatch": { "version": "9.0.5", "inBundle": true, @@ -18014,7 +17938,7 @@ } }, "node_modules/npm/node_modules/negotiator": { - "version": "0.6.3", + "version": "0.6.4", "inBundle": true, "license": "MIT", "engines": { @@ -18270,7 +18194,7 @@ } }, "node_modules/npm/node_modules/npm-install-checks": { - "version": "7.1.0", + "version": "7.1.1", "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -18340,7 +18264,7 @@ } }, "node_modules/npm/node_modules/npm-registry-fetch": { - "version": "18.0.1", + "version": "18.0.2", "inBundle": true, "license": "ISC", "dependencies": { @@ -18392,12 +18316,12 @@ } }, "node_modules/npm/node_modules/package-json-from-dist": { - "version": "1.0.0", + "version": "1.0.1", "inBundle": true, "license": "BlueOak-1.0.0" }, "node_modules/npm/node_modules/pacote": { - "version": "19.0.0", + "version": "19.0.1", "inBundle": true, "license": "ISC", "dependencies": { @@ -18415,7 +18339,7 @@ "npm-registry-fetch": "^18.0.0", "proc-log": "^5.0.0", "promise-retry": "^2.0.1", - "sigstore": "^2.2.0", + "sigstore": "^3.0.0", "ssri": "^12.0.0", "tar": "^6.1.11" }, @@ -18499,7 +18423,7 @@ } }, "node_modules/npm/node_modules/promise-call-limit": { - "version": "3.0.1", + "version": "3.0.2", "inBundle": true, "license": "ISC", "funding": { @@ -18642,19 +18566,67 @@ } }, "node_modules/npm/node_modules/sigstore": { - "version": "2.3.1", + "version": "3.0.0", "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@sigstore/bundle": "^2.3.2", - "@sigstore/core": "^1.0.0", + "@sigstore/bundle": "^3.0.0", + "@sigstore/core": "^2.0.0", "@sigstore/protobuf-specs": "^0.3.2", - "@sigstore/sign": "^2.3.2", - "@sigstore/tuf": "^2.3.4", - "@sigstore/verify": "^1.2.1" + "@sigstore/sign": "^3.0.0", + "@sigstore/tuf": "^3.0.0", + "@sigstore/verify": "^2.0.0" }, "engines": { - "node": "^16.14.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/sigstore/node_modules/@sigstore/bundle": { + "version": "3.0.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.3.2" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/sigstore/node_modules/@sigstore/core": { + "version": "2.0.0", + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/sigstore/node_modules/@sigstore/sign": { + "version": "3.0.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^3.0.0", + "@sigstore/core": "^2.0.0", + "@sigstore/protobuf-specs": "^0.3.2", + "make-fetch-happen": "^14.0.1", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/sigstore/node_modules/@sigstore/verify": { + "version": "2.0.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^3.0.0", + "@sigstore/core": "^2.0.0", + "@sigstore/protobuf-specs": "^0.3.2" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/npm/node_modules/smart-buffer": { @@ -18725,7 +18697,7 @@ } }, "node_modules/npm/node_modules/spdx-license-ids": { - "version": "3.0.18", + "version": "3.0.20", "inBundle": true, "license": "CC0-1.0" }, @@ -18871,143 +18843,28 @@ } }, "node_modules/npm/node_modules/tuf-js": { - "version": "2.2.1", + "version": "3.0.1", "inBundle": true, "license": "MIT", "dependencies": { - "@tufjs/models": "2.0.1", - "debug": "^4.3.4", - "make-fetch-happen": "^13.0.1" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/tuf-js/node_modules/@npmcli/agent": { - "version": "2.2.2", - "inBundle": true, - "license": "ISC", - "dependencies": { - "agent-base": "^7.1.0", - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.1", - "lru-cache": "^10.0.1", - "socks-proxy-agent": "^8.0.3" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/tuf-js/node_modules/@npmcli/fs": { - "version": "3.1.1", - "inBundle": true, - "license": "ISC", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/tuf-js/node_modules/cacache": { - "version": "18.0.4", - "inBundle": true, - "license": "ISC", - "dependencies": { - "@npmcli/fs": "^3.1.0", - "fs-minipass": "^3.0.0", - "glob": "^10.2.2", - "lru-cache": "^10.0.1", - "minipass": "^7.0.3", - "minipass-collect": "^2.0.1", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "p-map": "^4.0.0", - "ssri": "^10.0.0", - "tar": "^6.1.11", - "unique-filename": "^3.0.0" - }, - "engines": { - "node": "^16.14.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/tuf-js/node_modules/make-fetch-happen": { - "version": "13.0.1", - "inBundle": true, - "license": "ISC", - "dependencies": { - "@npmcli/agent": "^2.0.0", - "cacache": "^18.0.0", - "http-cache-semantics": "^4.1.1", - "is-lambda": "^1.0.1", - "minipass": "^7.0.2", - "minipass-fetch": "^3.0.0", - "minipass-flush": "^1.0.5", - "minipass-pipeline": "^1.2.4", - "negotiator": "^0.6.3", - "proc-log": "^4.2.0", - "promise-retry": "^2.0.1", - "ssri": "^10.0.0" + "@tufjs/models": "3.0.1", + "debug": "^4.3.6", + "make-fetch-happen": "^14.0.1" }, "engines": { - "node": "^16.14.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/npm/node_modules/tuf-js/node_modules/minipass-fetch": { - "version": "3.0.5", + "node_modules/npm/node_modules/tuf-js/node_modules/@tufjs/models": { + "version": "3.0.1", "inBundle": true, "license": "MIT", "dependencies": { - "minipass": "^7.0.3", - "minipass-sized": "^1.0.3", - "minizlib": "^2.1.2" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "optionalDependencies": { - "encoding": "^0.1.13" - } - }, - "node_modules/npm/node_modules/tuf-js/node_modules/proc-log": { - "version": "4.2.0", - "inBundle": true, - "license": "ISC", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/tuf-js/node_modules/ssri": { - "version": "10.0.6", - "inBundle": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.3" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/tuf-js/node_modules/unique-filename": { - "version": "3.0.0", - "inBundle": true, - "license": "ISC", - "dependencies": { - "unique-slug": "^4.0.0" - }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/npm/node_modules/tuf-js/node_modules/unique-slug": { - "version": "4.0.0", - "inBundle": true, - "license": "ISC", - "dependencies": { - "imurmurhash": "^0.1.4" + "@tufjs/canonical-json": "2.0.0", + "minimatch": "^9.0.5" }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/npm/node_modules/unique-filename": { @@ -19138,7 +18995,7 @@ } }, "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "6.0.1", + "version": "6.1.0", "inBundle": true, "license": "MIT", "engines": { @@ -19856,27 +19713,15 @@ } }, "node_modules/optimism": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/optimism/-/optimism-0.18.0.tgz", - "integrity": "sha512-tGn8+REwLRNFnb9WmcY5IfpOqeX2kpaYJ1s6Ae3mn12AeydLkR3j+jSCmVQFoXqU8D41PAJ1RG1rCRNWmNZVmQ==", + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/optimism/-/optimism-0.18.1.tgz", + "integrity": "sha512-mLXNwWPa9dgFyDqkNi54sjDyNJ9/fTI6WGBLgnXku1vdKY/jovHfZT5r+aiVeFFLOz+foPNOm5YJ4mqgld2GBQ==", "license": "MIT", "dependencies": { "@wry/caches": "^1.0.0", "@wry/context": "^0.7.0", - "@wry/trie": "^0.4.3", - "tslib": "^2.3.0" - } - }, - "node_modules/optimism/node_modules/@wry/trie": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@wry/trie/-/trie-0.4.3.tgz", - "integrity": "sha512-I6bHwH0fSf6RqQcnnXLJKhkSXG45MFral3GxPaY4uAl0LYDZM+YDVDAiU9bYwjTuysy1S0IeecWtmq1SZA3M1w==", - "license": "MIT", - "dependencies": { + "@wry/trie": "^0.5.0", "tslib": "^2.3.0" - }, - "engines": { - "node": ">=8" } }, "node_modules/optionator": { @@ -21033,9 +20878,9 @@ } }, "node_modules/psl": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.10.0.tgz", - "integrity": "sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.13.0.tgz", + "integrity": "sha512-BFwmFXiJoFqlUpZ5Qssolv15DMyc84gTBds1BjsV1BfXEo1UyyD7GsmN67n7J77uRhoSNW1AXtXKPLcBFQn9Aw==", "license": "MIT", "dependencies": { "punycode": "^2.3.1" @@ -21310,9 +21155,9 @@ } }, "node_modules/read-package-json/node_modules/hosted-git-info": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.1.tgz", - "integrity": "sha512-r0EI+HBMcXadMrugk0GCQ+6BQV39PiWAZVfq7oIckeGiN7sjRGyQxPdft3nQekFTCQbYxLBH+/axZMeH8UX6+w==", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.3.tgz", + "integrity": "sha512-HVJyzUrLIL1c0QmviVh5E8VGyUS7xCFPS6yydaVd1UegW+ibV/CohqTH9MkOLDp5o+rb82DMo77PTuc9F/8GKw==", "dev": true, "license": "ISC", "dependencies": { @@ -21714,6 +21559,27 @@ "node": ">=0.10.0" } }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.6.tgz", + "integrity": "sha512-fmfw4XgoDke3kdI6h4xcUz1dG8uaiv5q9gcEwLS4Pnth2kxT+GZ7YehS1JTMGBQmtV7Y4GFGbs2re2NqhdozUg==", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.1", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "globalthis": "^1.0.3", + "which-builtin-type": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/regenerator-runtime": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", @@ -24444,9 +24310,9 @@ } }, "node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", - "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.3.tgz", + "integrity": "sha512-GsvTyUHTriq6o/bHcTd0vM7OQ9JEdlvluu9YISaA7+KzDzPaIzEeDFNkTfhdE3MYcNhNi0vq/LlegYgIs5yPAw==", "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", @@ -24454,7 +24320,8 @@ "for-each": "^0.3.3", "gopd": "^1.0.1", "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "is-typed-array": "^1.1.13", + "reflect.getprototypeof": "^1.0.6" }, "engines": { "node": ">= 0.4" @@ -25015,6 +24882,56 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/which-builtin-type": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.4.tgz", + "integrity": "sha512-bppkmBSsHFmIMSl8BO9TbsyzsvGjVoppt8xUiGzwiu/bhDCGxnpOKCxgqj6GuyHE0mINMDecBFPlOm2hzY084w==", + "license": "MIT", + "dependencies": { + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.0.5", + "is-finalizationregistry": "^1.0.2", + "is-generator-function": "^1.0.10", + "is-regex": "^1.1.4", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.15" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "license": "MIT" + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/which-module": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", @@ -25897,9 +25814,9 @@ } }, "node_modules/yeoman-generator/node_modules/hosted-git-info": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.1.tgz", - "integrity": "sha512-r0EI+HBMcXadMrugk0GCQ+6BQV39PiWAZVfq7oIckeGiN7sjRGyQxPdft3nQekFTCQbYxLBH+/axZMeH8UX6+w==", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.3.tgz", + "integrity": "sha512-HVJyzUrLIL1c0QmviVh5E8VGyUS7xCFPS6yydaVd1UegW+ibV/CohqTH9MkOLDp5o+rb82DMo77PTuc9F/8GKw==", "dev": true, "license": "ISC", "dependencies": { @@ -26607,7 +26524,7 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.31.0", + "version": "1.32.0", "license": "MIT", "dependencies": { "@contentstack/cli-audit": "~1.7.3", @@ -26721,9 +26638,9 @@ } }, "packages/contentstack-audit/node_modules/@types/mocha": { - "version": "10.0.9", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.9.tgz", - "integrity": "sha512-sicdRoWtYevwxjOHNMPTl3vSfJM6oyW8o1wXeI7uww6b6xHg8eBznQDNSGBCDJmsE8UMxP05JgZRtsKbTqt//Q==", + "version": "10.0.10", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", + "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", "dev": true, "license": "MIT" }, @@ -28012,9 +27929,9 @@ "license": "BSD-3-Clause" }, "packages/contentstack-export-to-csv/node_modules/@types/mocha": { - "version": "10.0.9", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.9.tgz", - "integrity": "sha512-sicdRoWtYevwxjOHNMPTl3vSfJM6oyW8o1wXeI7uww6b6xHg8eBznQDNSGBCDJmsE8UMxP05JgZRtsKbTqt//Q==", + "version": "10.0.10", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", + "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", "dev": true, "license": "MIT" }, diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index f719096ef2..325987c961 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.31.0 darwin-arm64 node-v22.8.0 +@contentstack/cli/1.32.0 darwin-arm64 node-v22.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -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 4ddfc9a6d5..32feb76f7d 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.31.1", + "version": "1.32.0", "author": "Contentstack", "bin": { "csdx": "./bin/run.js" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a3b55f2329..f9dee6243d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -171,7 +171,7 @@ importers: '@oclif/test': 4.1.2 '@types/chai': 4.3.20 '@types/fs-extra': 11.0.4 - '@types/mocha': 10.0.9 + '@types/mocha': 10.0.10 '@types/node': 20.17.6 '@types/uuid': 9.0.8 chai: 4.5.0 @@ -723,7 +723,7 @@ importers: devDependencies: '@oclif/test': 4.1.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 + '@types/mocha': 10.0.10 chai: 4.5.0 debug: 4.3.7 dotenv: 16.4.5 @@ -1230,7 +1230,7 @@ packages: graphql: 16.9.0 graphql-tag: 2.12.6_graphql@16.9.0 hoist-non-react-statics: 3.3.2 - optimism: 0.18.0 + optimism: 0.18.1 prop-types: 15.8.1 rehackt: 0.1.0 response-iterator: 0.2.6 @@ -2902,7 +2902,7 @@ packages: '@oclif/core': 4.0.33 ansis: 3.3.2 debug: 4.3.7 - npm: 10.9.0 + npm: 10.9.1 npm-package-arg: 11.0.3 npm-run-path: 5.3.0 object-treeify: 4.0.1 @@ -3501,8 +3501,8 @@ packages: '@types/node': 14.18.63 dev: true - /@types/mocha/10.0.9: - resolution: {integrity: sha512-sicdRoWtYevwxjOHNMPTl3vSfJM6oyW8o1wXeI7uww6b6xHg8eBznQDNSGBCDJmsE8UMxP05JgZRtsKbTqt//Q==} + /@types/mocha/10.0.10: + resolution: {integrity: sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==} dev: true /@types/mocha/8.2.3: @@ -4210,13 +4210,6 @@ packages: tslib: 2.8.1 dev: false - /@wry/trie/0.4.3: - resolution: {integrity: sha512-I6bHwH0fSf6RqQcnnXLJKhkSXG45MFral3GxPaY4uAl0LYDZM+YDVDAiU9bYwjTuysy1S0IeecWtmq1SZA3M1w==} - engines: {node: '>=8'} - dependencies: - tslib: 2.8.1 - dev: false - /@wry/trie/0.5.0: resolution: {integrity: sha512-FNoYzHawTMk/6KMQoEG5O4PuioX19UbwdQKF44yw0nLfOypfQdjtfZzo/UIJWAJ23sNIFbD1Ug9lbaDGMwbqQA==} engines: {node: '>=8'} @@ -4900,8 +4893,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001680 - electron-to-chromium: 1.5.63 + caniuse-lite: 1.0.30001683 + electron-to-chromium: 1.5.64 node-releases: 2.0.18 update-browserslist-db: 1.1.1_browserslist@4.24.2 dev: true @@ -5146,8 +5139,8 @@ packages: engines: {node: '>=10'} dev: true - /caniuse-lite/1.0.30001680: - resolution: {integrity: sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==} + /caniuse-lite/1.0.30001683: + resolution: {integrity: sha512-iqmNnThZ0n70mNwvxpEC2nBJ037ZHZUoBI5Gorh1Mw6IlEAZujEoU1tXA628iZfzm7R9FvFzxbfdgml82a3k8Q==} dev: true /cardinal/2.1.1: @@ -6162,8 +6155,8 @@ packages: dependencies: jake: 10.9.2 - /electron-to-chromium/1.5.63: - resolution: {integrity: sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA==} + /electron-to-chromium/1.5.64: + resolution: {integrity: sha512-IXEuxU+5ClW2IGEYFC2T7szbyVgehupCWQe5GNh+H065CD6U6IFN0s4KeAMFGNmQolRU4IV7zGBWSYMmZ8uuqQ==} dev: true /elegant-spinner/1.0.1: @@ -6301,7 +6294,7 @@ packages: string.prototype.trimstart: 1.0.8 typed-array-buffer: 1.0.2 typed-array-byte-length: 1.0.1 - typed-array-byte-offset: 1.0.2 + typed-array-byte-offset: 1.0.3 typed-array-length: 1.0.6 unbox-primitive: 1.0.2 which-typed-array: 1.1.15 @@ -8273,8 +8266,8 @@ packages: lru-cache: 6.0.0 dev: true - /hosted-git-info/6.1.1: - resolution: {integrity: sha512-r0EI+HBMcXadMrugk0GCQ+6BQV39PiWAZVfq7oIckeGiN7sjRGyQxPdft3nQekFTCQbYxLBH+/axZMeH8UX6+w==} + /hosted-git-info/6.1.3: + resolution: {integrity: sha512-HVJyzUrLIL1c0QmviVh5E8VGyUS7xCFPS6yydaVd1UegW+ibV/CohqTH9MkOLDp5o+rb82DMo77PTuc9F/8GKw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: lru-cache: 7.18.3 @@ -8621,6 +8614,12 @@ packages: /is-arrayish/0.3.2: resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==} + /is-async-function/2.0.0: + resolution: {integrity: sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + /is-bigint/1.0.4: resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} dependencies: @@ -8689,6 +8688,11 @@ packages: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} + /is-finalizationregistry/1.0.2: + resolution: {integrity: sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==} + dependencies: + call-bind: 1.0.7 + /is-fullwidth-code-point/1.0.0: resolution: {integrity: sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==} engines: {node: '>=0.10.0'} @@ -8715,7 +8719,6 @@ packages: engines: {node: '>= 0.4'} dependencies: has-tostringtag: 1.0.2 - dev: true /is-glob/2.0.1: resolution: {integrity: sha512-a1dBeB19NXsf/E0+FHqkagizel/LQw2DjSQpvQrj3zT+jYPpaUCryPnrQajXKFLCMuf4I6FhRpaGtw4lPrG6Eg==} @@ -8745,6 +8748,10 @@ packages: resolution: {integrity: sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==} dev: true + /is-map/2.0.3: + resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==} + engines: {node: '>= 0.4'} + /is-nan/1.3.2: resolution: {integrity: sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==} engines: {node: '>= 0.4'} @@ -8824,6 +8831,10 @@ packages: scoped-regex: 2.1.0 dev: true + /is-set/2.0.3: + resolution: {integrity: sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==} + engines: {node: '>= 0.4'} + /is-shared-array-buffer/1.0.3: resolution: {integrity: sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==} engines: {node: '>= 0.4'} @@ -8880,11 +8891,22 @@ packages: is-invalid-path: 0.1.0 dev: false + /is-weakmap/2.0.2: + resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==} + engines: {node: '>= 0.4'} + /is-weakref/1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: call-bind: 1.0.7 + /is-weakset/2.0.3: + resolution: {integrity: sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + get-intrinsic: 1.2.4 + /is-windows/1.0.2: resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} engines: {node: '>=0.10.0'} @@ -10990,7 +11012,7 @@ packages: resolution: {integrity: sha512-h9iPVIfrVZ9wVYQnxFgtw1ugSvGEMOlyPWWtm8BMJhnwyEL/FLbYbTY3V3PpjI/BUK67n9PEWDu6eHzu1fB15Q==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - hosted-git-info: 6.1.1 + hosted-git-info: 6.1.3 is-core-module: 2.15.1 semver: 7.6.3 validate-npm-package-license: 3.0.4 @@ -11051,7 +11073,7 @@ packages: resolution: {integrity: sha512-uFyyCEmgBfZTtrKk/5xDfHp6+MdrqGotX/VoOyEEl3mBwiEE5FlBaePanazJSVMPT7vKepcjYBY2ztg9A3yPIA==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - hosted-git-info: 6.1.1 + hosted-git-info: 6.1.3 proc-log: 3.0.0 semver: 7.6.3 validate-npm-package-name: 5.0.1 @@ -11172,8 +11194,8 @@ packages: path-key: 4.0.0 dev: false - /npm/10.9.0: - resolution: {integrity: sha512-ZanDioFylI9helNhl2LNd+ErmVD+H5I53ry41ixlLyCBgkuYb+58CvbAp99hW+zr5L9W4X7CchSoeqKdngOLSw==} + /npm/10.9.1: + resolution: {integrity: sha512-yJUw03xLqjiv1D52oHeoS5qmOEC5hkJlhP1cWlSrCgshuxWVyFEEK3M3hLC0NwbTaklLTYrhoIanYsuNP5WUKg==} engines: {node: ^18.17.0 || >=20.5.0} hasBin: true dev: false @@ -11686,12 +11708,12 @@ packages: is-wsl: 2.2.0 dev: false - /optimism/0.18.0: - resolution: {integrity: sha512-tGn8+REwLRNFnb9WmcY5IfpOqeX2kpaYJ1s6Ae3mn12AeydLkR3j+jSCmVQFoXqU8D41PAJ1RG1rCRNWmNZVmQ==} + /optimism/0.18.1: + resolution: {integrity: sha512-mLXNwWPa9dgFyDqkNi54sjDyNJ9/fTI6WGBLgnXku1vdKY/jovHfZT5r+aiVeFFLOz+foPNOm5YJ4mqgld2GBQ==} dependencies: '@wry/caches': 1.0.1 '@wry/context': 0.7.4 - '@wry/trie': 0.4.3 + '@wry/trie': 0.5.0 tslib: 2.8.1 dev: false @@ -12290,8 +12312,8 @@ packages: resolve: 1.22.8 dev: false - /psl/1.10.0: - resolution: {integrity: sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==} + /psl/1.13.0: + resolution: {integrity: sha512-BFwmFXiJoFqlUpZ5Qssolv15DMyc84gTBds1BjsV1BfXEo1UyyD7GsmN67n7J77uRhoSNW1AXtXKPLcBFQn9Aw==} dependencies: punycode: 2.3.1 dev: false @@ -12572,6 +12594,18 @@ packages: test-value: 2.1.0 dev: true + /reflect.getprototypeof/1.0.6: + resolution: {integrity: sha512-fmfw4XgoDke3kdI6h4xcUz1dG8uaiv5q9gcEwLS4Pnth2kxT+GZ7YehS1JTMGBQmtV7Y4GFGbs2re2NqhdozUg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.23.5 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + globalthis: 1.0.4 + which-builtin-type: 1.1.4 + /regenerator-runtime/0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} dev: true @@ -13560,7 +13594,7 @@ packages: resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} engines: {node: '>=6'} dependencies: - psl: 1.10.0 + psl: 1.13.0 punycode: 2.3.1 universalify: 0.2.0 url-parse: 1.5.10 @@ -13963,8 +13997,8 @@ packages: has-proto: 1.0.3 is-typed-array: 1.1.13 - /typed-array-byte-offset/1.0.2: - resolution: {integrity: sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==} + /typed-array-byte-offset/1.0.3: + resolution: {integrity: sha512-GsvTyUHTriq6o/bHcTd0vM7OQ9JEdlvluu9YISaA7+KzDzPaIzEeDFNkTfhdE3MYcNhNi0vq/LlegYgIs5yPAw==} engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.7 @@ -13973,6 +14007,7 @@ packages: gopd: 1.0.1 has-proto: 1.0.3 is-typed-array: 1.1.13 + reflect.getprototypeof: 1.0.6 /typed-array-length/1.0.6: resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==} @@ -14000,7 +14035,7 @@ packages: es-abstract: 1.23.5 es-errors: 1.3.0 typed-array-buffer: 1.0.2 - typed-array-byte-offset: 1.0.2 + typed-array-byte-offset: 1.0.3 dev: false /typedarray/0.0.6: @@ -14365,6 +14400,32 @@ packages: is-string: 1.0.7 is-symbol: 1.0.4 + /which-builtin-type/1.1.4: + resolution: {integrity: sha512-bppkmBSsHFmIMSl8BO9TbsyzsvGjVoppt8xUiGzwiu/bhDCGxnpOKCxgqj6GuyHE0mINMDecBFPlOm2hzY084w==} + engines: {node: '>= 0.4'} + dependencies: + function.prototype.name: 1.1.6 + has-tostringtag: 1.0.2 + is-async-function: 2.0.0 + is-date-object: 1.0.5 + is-finalizationregistry: 1.0.2 + is-generator-function: 1.0.10 + is-regex: 1.1.4 + is-weakref: 1.0.2 + isarray: 2.0.5 + which-boxed-primitive: 1.0.2 + which-collection: 1.0.2 + which-typed-array: 1.1.15 + + /which-collection/1.0.2: + resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==} + engines: {node: '>= 0.4'} + dependencies: + is-map: 2.0.3 + is-set: 2.0.3 + is-weakmap: 2.0.2 + is-weakset: 2.0.3 + /which-module/2.0.1: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} dev: true From be9f5ea23bf2472c309d1c456b1ada20edf01f5d Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Fri, 22 Nov 2024 16:54:51 +0530 Subject: [PATCH 18/20] [DX-648] - added semver in dependencies --- package-lock.json | 1 + packages/contentstack/package.json | 1 + pnpm-lock.yaml | 2 ++ 3 files changed, 4 insertions(+) diff --git a/package-lock.json b/package-lock.json index 916bfe63c1..1900fb4a4a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26555,6 +26555,7 @@ "inquirer": "8.2.6", "node-machine-id": "^1.1.12", "open": "^8.4.2", + "semver": "^7.6.3", "short-uuid": "^4.2.2", "uuid": "^9.0.1", "winston": "^3.17.0" diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 32feb76f7d..e3457bdb09 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -50,6 +50,7 @@ "inquirer": "8.2.6", "node-machine-id": "^1.1.12", "open": "^8.4.2", + "semver": "^7.6.3", "short-uuid": "^4.2.2", "uuid": "^9.0.1", "winston": "^3.17.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f9dee6243d..698781e3e6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,6 +56,7 @@ importers: oclif: ^3.17.2 open: ^8.4.2 rimraf: ^2.7.1 + semver: ^7.6.3 shelljs: ^0.8.5 short-uuid: ^4.2.2 sinon: ^19.0.2 @@ -94,6 +95,7 @@ importers: inquirer: 8.2.6 node-machine-id: 1.1.12 open: 8.4.2 + semver: 7.6.3 short-uuid: 4.2.2 uuid: 9.0.1 winston: 3.17.0 From 2e04cc3e5e3a911528109f729a442cd0d92406ca Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Mon, 25 Nov 2024 08:56:30 +0530 Subject: [PATCH 19/20] fix: UnhandledPromiseRejection in variant plugin --- package-lock.json | 8 ++++---- packages/contentstack-audit/README.md | 14 +++++++------- packages/contentstack-export/package.json | 2 +- packages/contentstack-import/package.json | 2 +- packages/contentstack-variants/package.json | 2 +- .../src/import/variant-entries.ts | 2 +- .../src/utils/variant-api-adapter.ts | 4 ++-- packages/contentstack/README.md | 14 +++++++------- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 6 +++--- 10 files changed, 28 insertions(+), 28 deletions(-) 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 From 3584d48cf683cc7f5338ffc42ac76b851a1d4cd6 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Mon, 25 Nov 2024 12:23:58 +0530 Subject: [PATCH 20/20] reverted failedVariantEntries condition check --- packages/contentstack-variants/src/import/variant-entries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack-variants/src/import/variant-entries.ts b/packages/contentstack-variants/src/import/variant-entries.ts index 9f1d1aa763..7934b61fbf 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