@contentstack/cli-config 1.4.13 → 1.4.15
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/README.md +1 -1
- package/lib/utils/region-handler.js +9 -7
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version)
|
|
21
|
-
@contentstack/cli-config/1.4.
|
|
21
|
+
@contentstack/cli-config/1.4.15 linux-x64 node-v18.18.2
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const cli_utilities_1 = require("@contentstack/cli-utilities");
|
|
4
4
|
function validURL(str) {
|
|
5
|
-
const pattern = new RegExp('^(https
|
|
6
|
-
'(
|
|
7
|
-
'((
|
|
8
|
-
'(
|
|
9
|
-
'(
|
|
10
|
-
'(
|
|
11
|
-
|
|
5
|
+
const pattern = new RegExp('^(https?:\\/\\/)?' + // protocol (http or https)
|
|
6
|
+
'([a-zA-Z0-9.-]+|' + // domain name
|
|
7
|
+
'((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))' + // IP address
|
|
8
|
+
'(:\\d+)?' + // port
|
|
9
|
+
'(/[-a-zA-Z0-9_.~+-]*)*' + // path
|
|
10
|
+
'(\\?[;&a-zA-Z0-9_.~+=-]*)?' + // query string
|
|
11
|
+
'(\\#[-a-zA-Z0-9_]*)?$', // fragment
|
|
12
|
+
'i');
|
|
13
|
+
return pattern.test(str);
|
|
12
14
|
}
|
|
13
15
|
// Available region list
|
|
14
16
|
const regions = {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-config",
|
|
3
3
|
"description": "Contentstack CLI plugin for configuration",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.15",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm run clean && npm run compile",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@contentstack/cli-command": "~1.2.
|
|
25
|
-
"@contentstack/cli-utilities": "~1.5.
|
|
24
|
+
"@contentstack/cli-command": "~1.2.16",
|
|
25
|
+
"@contentstack/cli-utilities": "~1.5.7",
|
|
26
26
|
"chalk": "^4.0.0",
|
|
27
27
|
"debug": "^4.1.1",
|
|
28
|
-
"mkdirp": "^1.0.4",
|
|
29
28
|
"inquirer": "8.2.4",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
29
|
+
"lodash": "^4.17.20",
|
|
30
|
+
"mkdirp": "^1.0.4",
|
|
31
|
+
"winston": "^3.7.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@oclif/test": "^2.2.10",
|