@contentstack/cli-command 1.2.1 → 1.2.3
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 +3 -7
- package/package.json +3 -4
- package/types/index.d.ts +1 -0
- package/types/interfaces/index.d.ts +4 -3
package/lib/index.js
CHANGED
|
@@ -55,6 +55,9 @@ class ContentstackCommand extends cli_utilities_1.Command {
|
|
|
55
55
|
}
|
|
56
56
|
return cda;
|
|
57
57
|
}
|
|
58
|
+
get uiHost() {
|
|
59
|
+
return this.region.uiHost;
|
|
60
|
+
}
|
|
58
61
|
get cdaAPIUrl() {
|
|
59
62
|
let cda = this.region.cda;
|
|
60
63
|
return cda.startsWith('http') ? cda : `https://${cda}`;
|
|
@@ -63,13 +66,6 @@ class ContentstackCommand extends cli_utilities_1.Command {
|
|
|
63
66
|
let cma = this.region.cma;
|
|
64
67
|
return cma.startsWith('http') ? cma : `https://${cma}`;
|
|
65
68
|
}
|
|
66
|
-
get authToken() {
|
|
67
|
-
if (this._authToken)
|
|
68
|
-
return this._authToken;
|
|
69
|
-
this._authToken = cli_utilities_1.configHandler.get('authtoken');
|
|
70
|
-
if (this._authToken)
|
|
71
|
-
return this._authToken;
|
|
72
|
-
}
|
|
73
69
|
getToken(alias) {
|
|
74
70
|
if (alias) {
|
|
75
71
|
const token = cli_utilities_1.configHandler.get(`tokens.${alias}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-command",
|
|
3
3
|
"description": "Contentstack CLI plugin for configuration",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"format": "eslint src/**/*.ts --fix"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contentstack/cli-utilities": "^1.
|
|
21
|
-
"@contentstack/management": "^1.6.1",
|
|
20
|
+
"@contentstack/cli-utilities": "^1.4.0",
|
|
22
21
|
"contentstack": "^3.10.1"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
@@ -66,4 +65,4 @@
|
|
|
66
65
|
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-command/<%- commandPath %>"
|
|
67
66
|
},
|
|
68
67
|
"repository": "contentstack/cli"
|
|
69
|
-
}
|
|
68
|
+
}
|
package/types/index.d.ts
CHANGED