@contentstack/cli-utilities 1.8.0 → 1.8.2
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/contentstack-management-sdk.js +2 -2
- package/lib/helpers.js +1 -1
- package/package.json +28 -36
|
@@ -14,8 +14,8 @@ class ManagementSDKInitiator {
|
|
|
14
14
|
async createAPIClient(config) {
|
|
15
15
|
const option = {
|
|
16
16
|
host: config.host,
|
|
17
|
-
maxContentLength: 100000000,
|
|
18
|
-
maxBodyLength: 1000000000,
|
|
17
|
+
maxContentLength: config.maxContentLength || 100000000,
|
|
18
|
+
maxBodyLength: config.maxBodyLength || 1000000000,
|
|
19
19
|
maxRequests: 10,
|
|
20
20
|
retryLimit: 3,
|
|
21
21
|
timeout: 60000,
|
package/lib/helpers.js
CHANGED
|
@@ -103,7 +103,7 @@ const formatError = function (error) {
|
|
|
103
103
|
return 'Self-signed certificate in the certificate chain! Please ensure your certificate configuration is correct and the necessary CA certificates are trusted.';
|
|
104
104
|
}
|
|
105
105
|
// Determine the error message
|
|
106
|
-
let message = parsedError.errorMessage || parsedError.error_message || parsedError.message || parsedError;
|
|
106
|
+
let message = parsedError.errorMessage || parsedError.error_message || (parsedError === null || parsedError === void 0 ? void 0 : parsedError.code) || parsedError.message || parsedError;
|
|
107
107
|
if (typeof message === 'object') {
|
|
108
108
|
message = JSON.stringify(message);
|
|
109
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-utilities",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Utilities for contentstack projects",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"posttest": "npm run lint",
|
|
15
15
|
"lint": "eslint src/**/*.ts",
|
|
16
16
|
"format": "eslint src/**/*.ts --fix",
|
|
17
|
-
"test:unit": "mocha --forbid-only \"test/unit
|
|
17
|
+
"test:unit": "mocha --forbid-only \"test/unit/**/*.test.ts\"",
|
|
18
18
|
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
@@ -32,57 +32,49 @@
|
|
|
32
32
|
"author": "contentstack",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@contentstack/management": "~1.
|
|
36
|
-
"@contentstack/marketplace-sdk": "^1.2.
|
|
37
|
-
"@oclif/core": "^3.
|
|
38
|
-
"axios": "^1.7.
|
|
39
|
-
"chalk": "^4.
|
|
35
|
+
"@contentstack/management": "~1.18.4",
|
|
36
|
+
"@contentstack/marketplace-sdk": "^1.2.5",
|
|
37
|
+
"@oclif/core": "^3.27.0",
|
|
38
|
+
"axios": "^1.7.9",
|
|
39
|
+
"chalk": "^4.1.2",
|
|
40
40
|
"cli-cursor": "^3.1.0",
|
|
41
41
|
"cli-table": "^0.3.11",
|
|
42
42
|
"conf": "^10.2.0",
|
|
43
|
-
"
|
|
44
|
-
"dotenv": "^16.4.5",
|
|
43
|
+
"dotenv": "^16.4.7",
|
|
45
44
|
"figures": "^3.2.0",
|
|
46
|
-
"inquirer": "8.2.
|
|
45
|
+
"inquirer": "8.2.6",
|
|
47
46
|
"inquirer-search-checkbox": "^1.0.0",
|
|
48
47
|
"inquirer-search-list": "^1.2.6",
|
|
49
48
|
"klona": "^2.0.6",
|
|
50
|
-
"lodash": "^4.17.
|
|
49
|
+
"lodash": "^4.17.21",
|
|
51
50
|
"mkdirp": "^1.0.4",
|
|
52
51
|
"open": "^8.4.2",
|
|
53
|
-
"ora": "^5.4.
|
|
52
|
+
"ora": "^5.4.1",
|
|
54
53
|
"recheck": "^4.4.5",
|
|
55
54
|
"rxjs": "^6.6.7",
|
|
56
|
-
"traverse": "^0.6.
|
|
55
|
+
"traverse": "^0.6.11",
|
|
57
56
|
"unique-string": "^2.0.0",
|
|
58
57
|
"uuid": "^9.0.1",
|
|
59
|
-
"winston": "^3.
|
|
58
|
+
"winston": "^3.17.0",
|
|
60
59
|
"xdg-basedir": "^4.0.0"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@types/
|
|
66
|
-
"@types/
|
|
67
|
-
"@types/
|
|
68
|
-
"@types/
|
|
69
|
-
"@types/
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"chai": "^4.3.4",
|
|
73
|
-
"eslint": "^8.18.0",
|
|
62
|
+
"@types/chai": "^4.3.20",
|
|
63
|
+
"@types/inquirer": "^9.0.7",
|
|
64
|
+
"@types/mkdirp": "^1.0.2",
|
|
65
|
+
"@types/mocha": "^10.0.10",
|
|
66
|
+
"@types/node": "^14.18.63",
|
|
67
|
+
"@types/sinon": "^10.0.20",
|
|
68
|
+
"@types/traverse": "^0.6.37",
|
|
69
|
+
"chai": "^4.5.0",
|
|
70
|
+
"eslint": "^8.57.1",
|
|
74
71
|
"eslint-config-oclif": "^4.0.0",
|
|
75
|
-
"eslint-config-oclif-typescript": "^3.
|
|
76
|
-
"fancy-test": "^2.0.
|
|
77
|
-
"
|
|
78
|
-
"mocha": "10.1.0",
|
|
79
|
-
"nock": "^13.1.0",
|
|
72
|
+
"eslint-config-oclif-typescript": "^3.1.14",
|
|
73
|
+
"fancy-test": "^2.0.42",
|
|
74
|
+
"mocha": "10.8.2",
|
|
80
75
|
"nyc": "^15.1.0",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"ts-node": "^10.9.1",
|
|
85
|
-
"tslib": "^1.13.0",
|
|
86
|
-
"typescript": "^4.9.3"
|
|
76
|
+
"sinon": "^19.0.2",
|
|
77
|
+
"ts-node": "^10.9.2",
|
|
78
|
+
"typescript": "^4.9.5"
|
|
87
79
|
}
|
|
88
80
|
}
|