@contentstack/cli-command 1.2.4 → 1.2.6
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 +5 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -28,7 +28,11 @@ class ContentstackCommand extends cli_utilities_1.Command {
|
|
|
28
28
|
if (this._region)
|
|
29
29
|
return this._region;
|
|
30
30
|
this._region = cli_utilities_1.configHandler.get('region');
|
|
31
|
-
if (this._region)
|
|
31
|
+
if (!this._region) {
|
|
32
|
+
cli_utilities_1.cliux.print("Error: Region not configured. Please set the region.", { color: "red" });
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
else
|
|
32
36
|
return this._region;
|
|
33
37
|
}
|
|
34
38
|
get rateLimit() {
|
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.6",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"format": "eslint src/**/*.ts --fix"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contentstack/cli-utilities": "^1.4.
|
|
20
|
+
"@contentstack/cli-utilities": "^1.4.2",
|
|
21
21
|
"contentstack": "^3.10.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|