diff --git a/.gitignore b/.gitignore index 636bcbe56e..329aeebd38 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ oclif.manifest.json contentstack-cli-logs packages/**/package-lock.json .dccache -yarn.lock \ No newline at end of file +yarn.lock +contents-* \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f2bf30e239..3d69b66d7f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2599,9 +2599,9 @@ "dev": true }, "node_modules/@types/fs-extra": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.1.tgz", - "integrity": "sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.2.tgz", + "integrity": "sha512-c0hrgAOVYr21EX8J0jBMXGLMgJqVf/v6yxi0dLaJboW9aQPh16Id+z6w2Tx1hm+piJOLv8xPfVKZCLfjPw/IMQ==", "dev": true, "dependencies": { "@types/jsonfile": "*", @@ -2903,6 +2903,12 @@ "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" }, + "node_modules/@types/uuid": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.4.tgz", + "integrity": "sha512-zAuJWQflfx6dYJM62vna+Sn5aeSWhh3OB+wfUEACNcqUSc0AGc5JKl+ycL1vrH7frGTXhJchYjE1Hak8L819dA==", + "dev": true + }, "node_modules/@types/vinyl": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.7.tgz", @@ -8116,6 +8122,19 @@ } ] }, + "node_modules/fs-extra": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/fs-minipass": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", @@ -21174,9 +21193,13 @@ } }, "node_modules/uuid": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", - "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } @@ -22741,25 +22764,25 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.9.2", + "version": "1.10.0", "license": "MIT", "dependencies": { - "@contentstack/cli-audit": "~1.0.0", - "@contentstack/cli-auth": "~1.3.14", - "@contentstack/cli-cm-bootstrap": "~1.5.1", - "@contentstack/cli-cm-branches": "~1.0.14", - "@contentstack/cli-cm-bulk-publish": "~1.3.12", - "@contentstack/cli-cm-clone": "~1.5.1", - "@contentstack/cli-cm-export": "~1.9.1", - "@contentstack/cli-cm-export-to-csv": "~1.4.3", - "@contentstack/cli-cm-import": "~1.9.2", - "@contentstack/cli-cm-migrate-rte": "~1.4.12", - "@contentstack/cli-cm-seed": "~1.5.1", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-config": "~1.4.12", - "@contentstack/cli-launch": "~1.0.12", - "@contentstack/cli-migration": "~1.3.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-audit": "~1.2.0", + "@contentstack/cli-auth": "~1.3.15", + "@contentstack/cli-cm-bootstrap": "~1.6.0", + "@contentstack/cli-cm-branches": "~1.0.15", + "@contentstack/cli-cm-bulk-publish": "~1.3.13", + "@contentstack/cli-cm-clone": "~1.6.0", + "@contentstack/cli-cm-export": "~1.9.2", + "@contentstack/cli-cm-export-to-csv": "~1.4.4", + "@contentstack/cli-cm-import": "~1.10.0", + "@contentstack/cli-cm-migrate-rte": "~1.4.13", + "@contentstack/cli-cm-seed": "~1.6.0", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-config": "~1.4.13", + "@contentstack/cli-launch": "~1.0.13", + "@contentstack/cli-migration": "~1.3.14", + "@contentstack/cli-utilities": "~1.5.4", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", @@ -22809,17 +22832,19 @@ }, "packages/contentstack-audit": { "name": "@contentstack/cli-audit", - "version": "1.0.0", + "version": "1.2.0", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", - "@oclif/plugin-help": "^5.2.20", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", + "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.8.4", "chalk": "^4.1.2", "fast-csv": "^4.3.6", + "fs-extra": "^11.1.1", "lodash": "^4.17.21", - "winston": "^3.9.0" + "uuid": "^9.0.1", + "winston": "^3.10.0" }, "bin": { "audit": "bin/run" @@ -22827,7 +22852,9 @@ "devDependencies": { "@oclif/test": "^2.0.3", "@types/chai": "^4.3.5", + "@types/fs-extra": "^11.0.2", "@types/node": "^20.3.1", + "@types/uuid": "^9.0.4", "chai": "^4.3.7", "eslint": "^8.43.0", "eslint-config-oclif": "^4.0.0", @@ -23454,11 +23481,11 @@ }, "packages/contentstack-auth": { "name": "@contentstack/cli-auth", - "version": "1.3.14", + "version": "1.3.15", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-utilities": "~1.5.4", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", @@ -23495,12 +23522,12 @@ }, "packages/contentstack-bootstrap": { "name": "@contentstack/cli-cm-bootstrap", - "version": "1.5.1", + "version": "1.6.0", "license": "MIT", "dependencies": { - "@contentstack/cli-cm-seed": "~1.5.0", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-cm-seed": "~1.6.0", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "inquirer": "8.2.4", "mkdirp": "^1.0.4", "tar": "^6.1.13" @@ -23574,7 +23601,7 @@ }, "packages/contentstack-branches": { "name": "@contentstack/cli-cm-branches", - "version": "1.0.14", + "version": "1.0.15", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.13", @@ -23635,11 +23662,11 @@ }, "packages/contentstack-bulk-publish": { "name": "@contentstack/cli-cm-bulk-publish", - "version": "1.3.12", + "version": "1.3.13", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "bluebird": "^3.7.2", "chalk": "^4.1.2", "dotenv": "^16.1.4", @@ -23684,14 +23711,14 @@ }, "packages/contentstack-clone": { "name": "@contentstack/cli-cm-clone", - "version": "1.5.1", + "version": "1.6.0", "license": "MIT", "dependencies": { "@colors/colors": "^1.5.0", "@contentstack/cli-cm-export": "~1.9.0", - "@contentstack/cli-cm-import": "~1.9.0", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-cm-import": "~1.10.0", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "async": "^3.2.4", "chalk": "^4.1.0", "child_process": "^1.0.2", @@ -23746,10 +23773,10 @@ }, "packages/contentstack-command": { "name": "@contentstack/cli-command", - "version": "1.2.13", + "version": "1.2.14", "license": "MIT", "dependencies": { - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-utilities": "~1.5.4", "contentstack": "^3.10.1" }, "devDependencies": { @@ -23820,11 +23847,11 @@ }, "packages/contentstack-config": { "name": "@contentstack/cli-config", - "version": "1.4.12", + "version": "1.4.13", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", @@ -24108,11 +24135,11 @@ }, "packages/contentstack-export": { "name": "@contentstack/cli-cm-export", - "version": "1.9.1", + "version": "1.9.2", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/core": "^2.9.3", "async": "^3.2.4", "big-json": "^3.2.0", @@ -24158,11 +24185,11 @@ }, "packages/contentstack-export-to-csv": { "name": "@contentstack/cli-cm-export-to-csv", - "version": "1.4.3", + "version": "1.4.4", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "chalk": "^4.1.0", "fast-csv": "^4.3.6", "inquirer": "8.2.4", @@ -24423,11 +24450,11 @@ }, "packages/contentstack-import": { "name": "@contentstack/cli-cm-import", - "version": "1.9.2", + "version": "1.10.0", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@contentstack/management": "~1.10.2", "@oclif/core": "^2.9.3", "big-json": "^3.2.0", @@ -24523,19 +24550,6 @@ "@types/node": "*" } }, - "packages/contentstack-import/node_modules/fs-extra": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, "packages/contentstack-import/node_modules/sinon": { "version": "11.1.2", "resolved": "https://registry.npmjs.org/sinon/-/sinon-11.1.2.tgz", @@ -24568,12 +24582,12 @@ }, "packages/contentstack-launch": { "name": "@contentstack/cli-launch", - "version": "1.0.12", + "version": "1.0.13", "license": "MIT", "dependencies": { "@apollo/client": "^3.7.9", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.3.0", @@ -24607,7 +24621,7 @@ "eslint": "^7.32.0", "eslint-config-oclif": "^4", "eslint-config-oclif-typescript": "^1.0.3", - "oclif": "^3", + "oclif": "^3.11.3", "shx": "^0.3.3", "ts-node": "^10.9.1", "tslib": "^2.5.0", @@ -25059,11 +25073,11 @@ }, "packages/contentstack-migrate-rte": { "name": "@contentstack/cli-cm-migrate-rte", - "version": "1.4.12", + "version": "1.4.13", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@contentstack/json-rte-serializer": "~2.0.2", "chalk": "^4.1.2", "collapse-whitespace": "^1.1.7", @@ -25083,7 +25097,7 @@ "globby": "^10.0.2", "mocha": "^10.0.0", "nyc": "^15.1.0", - "oclif": "^3.8.1", + "oclif": "^3.11.3", "tslib": "^1.13.0" }, "engines": { @@ -25098,11 +25112,11 @@ }, "packages/contentstack-migration": { "name": "@contentstack/cli-migration", - "version": "1.3.13", + "version": "1.3.14", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "async": "^3.2.4", "callsites": "^3.1.0", "cardinal": "^2.1.1", @@ -25123,7 +25137,7 @@ "mkdirp": "^1.0.4", "nock": "^13.1.1", "nyc": "^15.1.0", - "oclif": "^3.8.1" + "oclif": "^3.11.3" }, "engines": { "node": ">=8.3.0" @@ -25131,12 +25145,12 @@ }, "packages/contentstack-seed": { "name": "@contentstack/cli-cm-seed", - "version": "1.5.1", + "version": "1.6.0", "license": "MIT", "dependencies": { - "@contentstack/cli-cm-import": "~1.9.0", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-cm-import": "~1.10.0", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "axios": "1.3.4", "inquirer": "8.2.4", "mkdirp": "^1.0.4", @@ -25224,7 +25238,7 @@ }, "packages/contentstack-utilities": { "name": "@contentstack/cli-utilities", - "version": "1.5.3", + "version": "1.5.4", "license": "MIT", "dependencies": { "@contentstack/management": "~1.10.2", @@ -26824,22 +26838,22 @@ "@contentstack/cli": { "version": "file:packages/contentstack", "requires": { - "@contentstack/cli-audit": "~1.0.0", - "@contentstack/cli-auth": "~1.3.14", - "@contentstack/cli-cm-bootstrap": "~1.5.1", - "@contentstack/cli-cm-branches": "~1.0.14", - "@contentstack/cli-cm-bulk-publish": "~1.3.12", - "@contentstack/cli-cm-clone": "~1.5.1", - "@contentstack/cli-cm-export": "~1.9.1", - "@contentstack/cli-cm-export-to-csv": "~1.4.3", - "@contentstack/cli-cm-import": "~1.9.2", - "@contentstack/cli-cm-migrate-rte": "~1.4.12", - "@contentstack/cli-cm-seed": "~1.5.1", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-config": "~1.4.12", - "@contentstack/cli-launch": "~1.0.12", - "@contentstack/cli-migration": "~1.3.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-audit": "~1.2.0", + "@contentstack/cli-auth": "~1.3.15", + "@contentstack/cli-cm-bootstrap": "~1.6.0", + "@contentstack/cli-cm-branches": "~1.0.15", + "@contentstack/cli-cm-bulk-publish": "~1.3.13", + "@contentstack/cli-cm-clone": "~1.6.0", + "@contentstack/cli-cm-export": "~1.9.2", + "@contentstack/cli-cm-export-to-csv": "~1.4.4", + "@contentstack/cli-cm-import": "~1.10.0", + "@contentstack/cli-cm-migrate-rte": "~1.4.13", + "@contentstack/cli-cm-seed": "~1.6.0", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-config": "~1.4.13", + "@contentstack/cli-launch": "~1.0.13", + "@contentstack/cli-migration": "~1.3.14", + "@contentstack/cli-utilities": "~1.5.4", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", @@ -26882,19 +26896,22 @@ "@contentstack/cli-audit": { "version": "file:packages/contentstack-audit", "requires": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", - "@oclif/plugin-help": "^5.2.20", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", + "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.8.4", "@oclif/test": "^2.0.3", "@types/chai": "^4.3.5", + "@types/fs-extra": "^11.0.2", "@types/node": "^20.3.1", + "@types/uuid": "^9.0.4", "chai": "^4.3.7", "chalk": "^4.1.2", "eslint": "^8.43.0", "eslint-config-oclif": "^4.0.0", "eslint-config-oclif-typescript": "^1.0.3", "fast-csv": "^4.3.6", + "fs-extra": "^11.1.1", "lodash": "^4.17.21", "mocha": "^10.2.0", "nyc": "^15.1.0", @@ -26903,7 +26920,8 @@ "ts-node": "^10.9.1", "tslib": "^2.5.3", "typescript": "^5.1.3", - "winston": "^3.9.0" + "uuid": "^9.0.1", + "winston": "^3.10.0" }, "dependencies": { "@babel/code-frame": { @@ -27350,7 +27368,7 @@ "version": "file:packages/contentstack-auth", "requires": { "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-utilities": "~1.5.4", "@fancy-test/nock": "^0.1.1", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^2.2.10", @@ -27383,9 +27401,9 @@ "@contentstack/cli-cm-bootstrap": { "version": "file:packages/contentstack-bootstrap", "requires": { - "@contentstack/cli-cm-seed": "~1.5.0", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-cm-seed": "~1.6.0", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/test": "^2.2.10", "@types/inquirer": "^9.0.3", "@types/mkdirp": "^1.0.1", @@ -27495,8 +27513,8 @@ "@contentstack/cli-cm-bulk-publish": { "version": "file:packages/contentstack-bulk-publish", "requires": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/test": "^1.2.6", "bluebird": "^3.7.2", "chai": "^4.2.0", @@ -27538,9 +27556,9 @@ "requires": { "@colors/colors": "^1.5.0", "@contentstack/cli-cm-export": "~1.9.0", - "@contentstack/cli-cm-import": "~1.9.0", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-cm-import": "~1.10.0", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/test": "^1.2.7", "async": "^3.2.4", "chai": "^4.2.0", @@ -27585,10 +27603,10 @@ "version": "file:packages/contentstack-export", "requires": { "@contentstack/cli-auth": "~1.3.14", - "@contentstack/cli-command": "~1.2.13", + "@contentstack/cli-command": "~1.2.14", "@contentstack/cli-config": "~1.4.11", "@contentstack/cli-dev-dependencies": "~1.2.3", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", @@ -27638,8 +27656,8 @@ "@contentstack/cli-cm-export-to-csv": { "version": "file:packages/contentstack-export-to-csv", "requires": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/test": "^2.2.10", "chai": "^4.2.0", "chalk": "^4.1.0", @@ -27832,8 +27850,8 @@ "@contentstack/cli-cm-import": { "version": "file:packages/contentstack-import", "requires": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@contentstack/management": "~1.10.2", "@oclif/core": "^2.9.3", "@oclif/test": "^1.2.6", @@ -27921,16 +27939,6 @@ "@types/node": "*" } }, - "fs-extra": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, "sinon": { "version": "11.1.2", "resolved": "https://registry.npmjs.org/sinon/-/sinon-11.1.2.tgz", @@ -27959,8 +27967,8 @@ "@contentstack/cli-cm-migrate-rte": { "version": "file:packages/contentstack-migrate-rte", "requires": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@contentstack/json-rte-serializer": "~2.0.2", "@oclif/test": "^2.2.10", "chai": "^4.3.4", @@ -27975,7 +27983,7 @@ "mocha": "^10.0.0", "nock": "^13.1.0", "nyc": "^15.1.0", - "oclif": "^3.8.1", + "oclif": "^3.11.3", "omit-deep-lodash": "^1.1.5", "sinon": "^15.0.1", "tslib": "^1.13.0", @@ -27993,9 +28001,9 @@ "@contentstack/cli-cm-seed": { "version": "file:packages/contentstack-seed", "requires": { - "@contentstack/cli-cm-import": "~1.9.0", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-cm-import": "~1.10.0", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/plugin-help": "^5.1.19", "@types/inquirer": "^9.0.3", "@types/jest": "^26.0.15", @@ -28065,7 +28073,7 @@ "@contentstack/cli-command": { "version": "file:packages/contentstack-command", "requires": { - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/test": "^2.2.10", "@types/chai": "^4.2.18", "@types/mkdirp": "^1.0.1", @@ -28119,8 +28127,8 @@ "@contentstack/cli-config": { "version": "file:packages/contentstack-config", "requires": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/test": "^2.2.10", "@types/chai": "^4.2.18", "@types/inquirer": "^9.0.3", @@ -28351,8 +28359,8 @@ "version": "file:packages/contentstack-launch", "requires": { "@apollo/client": "^3.7.9", - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.3.0", @@ -28379,7 +28387,7 @@ "graphql": "^16.8.1", "ini": "^3.0.1", "lodash": "^4.17.21", - "oclif": "^3", + "oclif": "^3.11.3", "open": "^8.4.2", "shx": "^0.3.3", "ts-node": "^10.9.1", @@ -28695,8 +28703,8 @@ "@contentstack/cli-migration": { "version": "file:packages/contentstack-migration", "requires": { - "@contentstack/cli-command": "~1.2.13", - "@contentstack/cli-utilities": "~1.5.3", + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", "@oclif/test": "^2.2.10", "async": "^3.2.4", "callsites": "^3.1.0", @@ -28714,7 +28722,7 @@ "mkdirp": "^1.0.4", "nock": "^13.1.1", "nyc": "^15.1.0", - "oclif": "^3.8.1", + "oclif": "^3.11.3", "winston": "^3.7.2" } }, @@ -31074,9 +31082,9 @@ "dev": true }, "@types/fs-extra": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.1.tgz", - "integrity": "sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.2.tgz", + "integrity": "sha512-c0hrgAOVYr21EX8J0jBMXGLMgJqVf/v6yxi0dLaJboW9aQPh16Id+z6w2Tx1hm+piJOLv8xPfVKZCLfjPw/IMQ==", "dev": true, "requires": { "@types/jsonfile": "*", @@ -31379,6 +31387,12 @@ "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" }, + "@types/uuid": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.4.tgz", + "integrity": "sha512-zAuJWQflfx6dYJM62vna+Sn5aeSWhh3OB+wfUEACNcqUSc0AGc5JKl+ycL1vrH7frGTXhJchYjE1Hak8L819dA==", + "dev": true + }, "@types/vinyl": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/vinyl/-/vinyl-2.0.7.tgz", @@ -35254,6 +35268,16 @@ "integrity": "sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==", "dev": true }, + "fs-extra": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, "fs-minipass": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", @@ -44903,9 +44927,9 @@ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" }, "uuid": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", - "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==" + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==" }, "v8-compile-cache": { "version": "2.3.0", diff --git a/packages/contentstack-audit/README.md b/packages/contentstack-audit/README.md index 6f4b4c946b..0b662fc7e2 100644 --- a/packages/contentstack-audit/README.md +++ b/packages/contentstack-audit/README.md @@ -2,6 +2,7 @@ # @contentstack/cli-audit + Audit plugin ## How to install this plugin @@ -12,15 +13,13 @@ $ csdx plugins:install @contentstack/cli-audit ## How to use this plugin -This plugin requires you to be authenticated using [csdx auth:login](https://www.contentstack.com/docs/developers/cli/authenticate-with-the-cli/). - ```sh-session $ npm install -g @contentstack/cli-audit $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-audit/0.0.0-alpha darwin-arm64 node-v16.19.0 +@contentstack/cli-audit/1.2.0 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -29,10 +28,12 @@ USAGE # Commands + -* [`csdx cm::stacks:audit:fix`](#csdx-cmstacksauditfix) +* [`csdx audit`](#csdx-audit) +* [`csdx audit:fix`](#csdx-auditfix) * [`csdx cm:stacks:audit`](#csdx-cmstacksaudit) -* [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix-1) +* [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix) * [`csdx help [COMMANDS]`](#csdx-help-commands) * [`csdx plugins`](#csdx-plugins) * [`csdx plugins:install PLUGIN...`](#csdx-pluginsinstall-plugin) @@ -44,33 +45,93 @@ USAGE * [`csdx plugins:uninstall PLUGIN...`](#csdx-pluginsuninstall-plugin-2) * [`csdx plugins:update`](#csdx-pluginsupdate) -## `csdx cm::stacks:audit:fix` +## `csdx audit` -Audit fix command +Perform audits and find possible errors in the exported Contentstack data ``` USAGE - $ csdx cm::stacks:audit:fix [-c ] [-d ] + $ csdx audit [-c ] [-d ] [--report-path ] [--modules + content-types|global-fields|entries] [--columns | ] [--sort ] [--filter ] [--csv | + --no-truncate] FLAGS - -c, --config= Path of the external config. - -d, --data-dir= Path where the data is stored. + -c, --config= Path of the external config + -d, --data-dir= Path where the data is stored + --columns= only show provided columns (comma-separated) + --csv output is csv format [alias: --output=csv] + --filter= filter property by partial string matching, ex: name=foo + --modules=