diff --git a/package-lock.json b/package-lock.json index f884d4ebc6..5823b09a78 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": { @@ -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", @@ -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.0", - "resolved": "https://registry.npmjs.org/@oclif/test/-/test-4.1.0.tgz", - "integrity": "sha512-2ugir6NhRsWJqHM9d2lMEWNiOTD678Jlx5chF/fg6TCAlc7E6E/6+zt+polrCTnTIpih5P/HxOtDekgtjgARwQ==", + "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", @@ -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", @@ -6400,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", @@ -6483,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", @@ -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.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" }, @@ -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", @@ -9544,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" }, @@ -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" @@ -26577,7 +26607,7 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.30.0", + "version": "1.31.0", "license": "MIT", "dependencies": { "@contentstack/cli-audit": "~1.7.3", @@ -26592,16 +26622,16 @@ "@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-launch": "~1.2.3", - "@contentstack/cli-migration": "~1.6.3", + "@contentstack/cli-config": "~1.9.0", + "@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/management": "~1.18.3", "@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", @@ -26616,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", @@ -26665,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", @@ -26788,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": { @@ -27119,7 +27149,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", @@ -27507,7 +27537,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 +27899,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", @@ -28263,7 +28293,7 @@ }, "packages/contentstack-launch": { "name": "@contentstack/cli-launch", - "version": "1.2.3", + "version": "1.3.0", "license": "MIT", "dependencies": { "@apollo/client": "^3.11.8", @@ -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-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-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/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-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-config/README.md b/packages/contentstack-config/README.md index 2d16285e7a..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.8.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-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/README.md b/packages/contentstack-launch/README.md index deb2e66ae1..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.2.3 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-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-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..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..90b6058ae1 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'); @@ -61,27 +61,22 @@ 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(' '); - execFileSync(cmd, args, { stdio: 'inherit', cwd: directory }); - 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}`); + 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/README.md b/packages/contentstack/README.md index 96f12bf658..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.8.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 c3690e5fbe..3e43bc1d0c 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" @@ -34,16 +34,16 @@ "@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-launch": "~1.2.3", - "@contentstack/cli-migration": "~1.6.3", + "@contentstack/cli-config": "~1.9.0", + "@contentstack/cli-launch": "~1.3.0", + "@contentstack/cli-migration": "~1.6.4", "@contentstack/cli-utilities": "~1.8.0", "@contentstack/management": "~1.18.3", "@contentstack/cli-variants": "~1.1.2", "@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 156d96cb62..9e0f6e86ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,17 +22,17 @@ 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-launch': ~1.2.3 - '@contentstack/cli-migration': ~1.6.3 + '@contentstack/cli-config': ~1.9.0 + '@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/management': ~1.18.3 '@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 @@ -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.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 @@ -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.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.0 + '@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.0 + '@oclif/test': 4.1.2 '@types/inquirer': 9.0.7 '@types/mkdirp': 1.0.2 '@types/node': 14.18.63 @@ -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 @@ -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.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.0 + '@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.0 + '@oclif/test': 4.1.2 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.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.0 + '@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.0_@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: @@ -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 @@ -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.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.0 + '@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.0_@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 @@ -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.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.0 + '@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.0 + '@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.0_@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.0 + '@oclif/test': 4.1.2 '@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.33: + resolution: {integrity: sha512-NoTDwJ2L/ywpsSjcN7jAAHf3m70Px4Yim2SJrm16r70XpnfbNOdlj1x0HEJ0t95gfD+p/y5uy+qPT/VXTh/1gw==} 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.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.0: - resolution: {integrity: sha512-2ugir6NhRsWJqHM9d2lMEWNiOTD678Jlx5chF/fg6TCAlc7E6E/6+zt+polrCTnTIpih5P/HxOtDekgtjgARwQ==} + /@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.0_@oclif+core@3.27.0: - resolution: {integrity: sha512-2ugir6NhRsWJqHM9d2lMEWNiOTD678Jlx5chF/fg6TCAlc7E6E/6+zt+polrCTnTIpih5P/HxOtDekgtjgARwQ==} + /@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' @@ -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.63 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 @@ -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.55: - resolution: {integrity: sha512-6maZ2ASDOTBtjt9FhqYPRnbvKU5tjG0IN9SztUOWYw2AzNDNpKJYLJmlK0/En4Hs/aiWnB+JZ+gW19PIGszgKg==} + /electron-to-chromium/1.5.63: + resolution: {integrity: sha512-ddeXKuY9BHo/mw145axlyWjlJ1UBt4WK3AlvkT7W2AbqfRQoacVoRUCF6wL3uIx/8wT9oLKXzI+rFqHHscByaA==} 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 @@ -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: @@ -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: @@ -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 @@ -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: @@ -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==} @@ -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