@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.
- package/lib/util/common-utils.js +1 -1
- package/package.json +20 -21
package/lib/util/common-utils.js
CHANGED
|
@@ -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.
|
|
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.
|
|
23
|
+
"@apollo/client": "^3.13.8",
|
|
24
24
|
"@contentstack/cli-command": "^1.5.0",
|
|
25
|
-
"@contentstack/cli-launch": "^1.
|
|
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.
|
|
30
|
+
"shelljs": "^0.9.2",
|
|
33
31
|
"tmp": "^0.2.3",
|
|
34
|
-
"winston": "^3.
|
|
32
|
+
"winston": "^3.17.0"
|
|
35
33
|
},
|
|
36
34
|
"devDependencies": {
|
|
37
|
-
"@oclif/test": "^4.
|
|
38
|
-
"@types/adm-zip": "^0.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.
|
|
41
|
-
"@types/mocha": "^10.0.
|
|
42
|
-
"@types/node": "^20.
|
|
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.
|
|
43
|
+
"axios": "^1.8.4",
|
|
46
44
|
"chai": "^4.5.0",
|
|
47
|
-
"dotenv": "^16.
|
|
45
|
+
"dotenv": "^16.5.0",
|
|
48
46
|
"eslint": "^8.57.1",
|
|
49
|
-
"eslint-config-oclif": "^6.0.
|
|
50
|
-
"eslint-config-oclif-typescript": "^3.1.
|
|
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.
|
|
50
|
+
"mocha": "^10.8.2",
|
|
53
51
|
"nyc": "^15.1.0",
|
|
54
|
-
"oclif": "^4.17.
|
|
55
|
-
"shx": "^0.
|
|
52
|
+
"oclif": "^4.17.46",
|
|
53
|
+
"shx": "^0.4.0",
|
|
56
54
|
"ts-node": "^10.9.2",
|
|
57
|
-
"tslib": "^2.8.
|
|
58
|
-
"typescript": "^5.
|
|
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",
|