@contentstack/apps-cli 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,7 +208,7 @@ async function fetchInstalledApps(flags, orgUid, options) {
208
208
  return batchRequests.flat();
209
209
  }
210
210
  // To remove the relative path
211
- const sanitizePath = (str) => str === null || str === void 0 ? void 0 : str.replace(/^(\.\.(\/|\\|$))+/, "");
211
+ const sanitizePath = (str) => str === null || str === void 0 ? void 0 : str.replace(/^([\/\\]){2,}/, "./").replace(/[\/\\]+/g, "/").replace(/(\.\.(\/|\\|$))+/g, ""); // Remove directory traversal (../ or ..\)
212
212
  exports.sanitizePath = sanitizePath;
213
213
  async function updateApp(flags, orgUid, options, updateReqPayload) {
214
214
  const { managementSdk } = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentstack/apps-cli",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "App ClI",
5
5
  "author": "Contentstack CLI",
6
6
  "homepage": "https://github.com/contentstack/contentstack-apps-cli",
@@ -20,42 +20,41 @@
20
20
  "/oclif.manifest.json"
21
21
  ],
22
22
  "dependencies": {
23
- "@apollo/client": "^3.11.8",
23
+ "@apollo/client": "^3.13.8",
24
24
  "@contentstack/cli-command": "^1.5.0",
25
- "@contentstack/cli-launch": "^1.8.0",
25
+ "@contentstack/cli-launch": "^1.9.0",
26
26
  "@contentstack/cli-utilities": "^1.11.0",
27
27
  "adm-zip": "^0.5.16",
28
- "chai-as-promised": "^8.0.0",
29
28
  "chalk": "^4.1.2",
30
- "fancy-test": "^3.0.16",
31
29
  "lodash": "^4.17.21",
32
- "shelljs": "^0.9.0",
30
+ "shelljs": "^0.9.2",
33
31
  "tmp": "^0.2.3",
34
- "winston": "^3.15.0"
32
+ "winston": "^3.17.0"
35
33
  },
36
34
  "devDependencies": {
37
- "@oclif/test": "^4.0.10",
38
- "@types/adm-zip": "^0.5.5",
35
+ "@oclif/test": "^4.1.12",
36
+ "@types/adm-zip": "^0.5.7",
39
37
  "@types/chai": "^4.3.20",
40
- "@types/lodash": "^4.17.10",
41
- "@types/mocha": "^10.0.9",
42
- "@types/node": "^20.16.11",
38
+ "@types/lodash": "^4.17.16",
39
+ "@types/mocha": "^10.0.10",
40
+ "@types/node": "^20.17.30",
43
41
  "@types/shelljs": "^0.8.15",
44
42
  "@types/tmp": "^0.2.6",
45
- "axios": "^1.7.7",
43
+ "axios": "^1.8.4",
46
44
  "chai": "^4.5.0",
47
- "dotenv": "^16.4.5",
45
+ "dotenv": "^16.5.0",
48
46
  "eslint": "^8.57.1",
49
- "eslint-config-oclif": "^6.0.15",
50
- "eslint-config-oclif-typescript": "^3.1.12",
47
+ "eslint-config-oclif": "^6.0.46",
48
+ "eslint-config-oclif-typescript": "^3.1.14",
51
49
  "fancy-test": "3.0.16",
52
- "mocha": "^10.7.3",
50
+ "mocha": "^10.8.2",
53
51
  "nyc": "^15.1.0",
54
- "oclif": "^4.17.30",
55
- "shx": "^0.3.4",
52
+ "oclif": "^4.17.46",
53
+ "shx": "^0.4.0",
56
54
  "ts-node": "^10.9.2",
57
- "tslib": "^2.8.0",
58
- "typescript": "^5.6.3"
55
+ "tslib": "^2.8.1",
56
+ "typescript": "^5.8.3",
57
+ "fancy-test": "3.0.16"
59
58
  },
60
59
  "oclif": {
61
60
  "bin": "csdx",