@contentstack/cli-command 2.0.0-beta → 2.0.0-beta.10
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/index.js +4 -4
- package/package.json +23 -21
package/lib/index.js
CHANGED
|
@@ -44,7 +44,7 @@ class ContentstackCommand extends cli_utilities_1.Command {
|
|
|
44
44
|
return defaultRateLimit;
|
|
45
45
|
}
|
|
46
46
|
get cmaHost() {
|
|
47
|
-
|
|
47
|
+
const cma = this.region.cma;
|
|
48
48
|
if (cma.startsWith('http')) {
|
|
49
49
|
const u = new url_1.URL(cma);
|
|
50
50
|
if (u.host)
|
|
@@ -53,7 +53,7 @@ class ContentstackCommand extends cli_utilities_1.Command {
|
|
|
53
53
|
return cma;
|
|
54
54
|
}
|
|
55
55
|
get cdaHost() {
|
|
56
|
-
|
|
56
|
+
const cda = this.region.cda;
|
|
57
57
|
if (cda.startsWith('http')) {
|
|
58
58
|
const u = new url_1.URL(cda);
|
|
59
59
|
if (u.host)
|
|
@@ -65,11 +65,11 @@ class ContentstackCommand extends cli_utilities_1.Command {
|
|
|
65
65
|
return this.region.uiHost;
|
|
66
66
|
}
|
|
67
67
|
get cdaAPIUrl() {
|
|
68
|
-
|
|
68
|
+
const cda = this.region.cda;
|
|
69
69
|
return cda.startsWith('http') ? cda : `https://${cda}`;
|
|
70
70
|
}
|
|
71
71
|
get cmaAPIUrl() {
|
|
72
|
-
|
|
72
|
+
const cma = this.region.cma;
|
|
73
73
|
return cma.startsWith('http') ? cma : `https://${cma}`;
|
|
74
74
|
}
|
|
75
75
|
getToken(alias) {
|
package/package.json
CHANGED
|
@@ -1,44 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-command",
|
|
3
3
|
"description": "Contentstack CLI plugin for configuration",
|
|
4
|
-
"version": "2.0.0-beta",
|
|
4
|
+
"version": "2.0.0-beta.10",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
+
"build": "pnpm compile",
|
|
9
10
|
"prepack": "pnpm compile",
|
|
10
|
-
"clean": "rm -rf ./lib ./node_modules tsconfig.
|
|
11
|
+
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
|
|
11
12
|
"compile": "tsc -b tsconfig.json",
|
|
12
|
-
"test
|
|
13
|
-
"
|
|
14
|
-
"posttest": "npm run lint",
|
|
15
|
-
"lint": "eslint src/**/*.ts",
|
|
16
|
-
"format": "eslint src/**/*.ts --fix",
|
|
17
|
-
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
|
|
18
|
-
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"",
|
|
19
|
-
"test:unit": "mocha --timeout 10000 --forbid-only \"test/unit/**/*.test.ts\""
|
|
13
|
+
"test": "mocha \"test/unit/**/*.test.ts\"",
|
|
14
|
+
"lint": "eslint src/**/*.ts"
|
|
20
15
|
},
|
|
21
16
|
"dependencies": {
|
|
22
|
-
"@contentstack/cli-utilities": "~2.0.0-beta",
|
|
23
|
-
"contentstack": "^3.
|
|
24
|
-
"@oclif/core": "^4.
|
|
25
|
-
|
|
17
|
+
"@contentstack/cli-utilities": "~2.0.0-beta.11",
|
|
18
|
+
"contentstack": "^3.27.0",
|
|
19
|
+
"@oclif/core": "^4.11.4"
|
|
20
|
+
},
|
|
21
|
+
"overrides": {
|
|
22
|
+
"@oclif/core": {
|
|
23
|
+
"picomatch": "^4.0.4"
|
|
24
|
+
}
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
|
-
"@oclif/test": "^4.1.
|
|
29
|
-
"@types/mkdirp": "^1.0.2",
|
|
27
|
+
"@oclif/test": "^4.1.18",
|
|
30
28
|
"@types/mocha": "^8.2.3",
|
|
31
29
|
"@types/node": "^14.18.63",
|
|
32
|
-
"eslint": "^
|
|
30
|
+
"eslint": "^10.5.0",
|
|
33
31
|
"eslint-config-oclif": "^6.0.15",
|
|
34
|
-
"eslint-config-oclif-typescript": "^3.1.
|
|
32
|
+
"eslint-config-oclif-typescript": "^3.1.14",
|
|
35
33
|
"mocha": "10.8.2",
|
|
36
34
|
"nyc": "^15.1.0",
|
|
37
35
|
"ts-node": "^8.10.2",
|
|
38
36
|
"typescript": "^4.9.5"
|
|
39
37
|
},
|
|
40
38
|
"engines": {
|
|
41
|
-
"node": ">=
|
|
39
|
+
"node": ">=22.0.0"
|
|
42
40
|
},
|
|
43
41
|
"files": [
|
|
44
42
|
"/types",
|
|
@@ -63,5 +61,9 @@
|
|
|
63
61
|
"bin": "csdx",
|
|
64
62
|
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-command/<%- commandPath %>"
|
|
65
63
|
},
|
|
66
|
-
"repository":
|
|
67
|
-
|
|
64
|
+
"repository": {
|
|
65
|
+
"type": "git",
|
|
66
|
+
"url": "git+https://github.com/contentstack/cli.git",
|
|
67
|
+
"directory": "packages/contentstack-command"
|
|
68
|
+
}
|
|
69
|
+
}
|