@contentstack/cli-command 1.2.19 → 1.3.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/index.d.ts +3 -0
- package/lib/index.js +9 -0
- package/lib/interfaces/index.d.ts +3 -0
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -16,5 +16,8 @@ declare abstract class ContentstackCommand extends Command {
|
|
|
16
16
|
get cdaAPIUrl(): string;
|
|
17
17
|
get cmaAPIUrl(): string;
|
|
18
18
|
getToken(alias: any): any;
|
|
19
|
+
get developerHubUrl(): string;
|
|
20
|
+
get launchHubUrl(): string;
|
|
21
|
+
get personalizeUrl(): string;
|
|
19
22
|
}
|
|
20
23
|
export { ContentstackCommand as Command };
|
package/lib/index.js
CHANGED
|
@@ -80,6 +80,15 @@ class ContentstackCommand extends cli_utilities_1.Command {
|
|
|
80
80
|
}
|
|
81
81
|
throw new cli_utilities_1.CLIError('No token found');
|
|
82
82
|
}
|
|
83
|
+
get developerHubUrl() {
|
|
84
|
+
return this.region.developerHubUrl;
|
|
85
|
+
}
|
|
86
|
+
get launchHubUrl() {
|
|
87
|
+
return this.region.launchHubUrl;
|
|
88
|
+
}
|
|
89
|
+
get personalizeUrl() {
|
|
90
|
+
return this.region.personalizeUrl;
|
|
91
|
+
}
|
|
83
92
|
}
|
|
84
93
|
exports.Command = ContentstackCommand;
|
|
85
94
|
module.exports = {
|
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.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"format": "eslint src/**/*.ts --fix"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contentstack/cli-utilities": "~1.7.
|
|
20
|
+
"@contentstack/cli-utilities": "~1.7.2",
|
|
21
21
|
"contentstack": "^3.10.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"mocha": "10.1.0",
|
|
35
35
|
"nyc": "^15.1.0",
|
|
36
36
|
"rimraf": "^2.7.1",
|
|
37
|
-
"sinon": "^
|
|
37
|
+
"sinon": "^19.0.0",
|
|
38
38
|
"ts-node": "^8.10.2",
|
|
39
39
|
"typescript": "^4.9.3"
|
|
40
40
|
},
|