File tree 22 files changed +190
-205
lines changed
contentstack-bulk-publish
contentstack-export-to-csv
contentstack-import-setup
22 files changed +190
-205
lines changed Original file line number Diff line number Diff line change 19
19
],
20
20
"dependencies" : {
21
21
"@contentstack/cli-command" : " ~1.3.3" ,
22
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
22
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
23
23
"@oclif/plugin-help" : " ^5.2.20" ,
24
24
"@oclif/plugin-plugins" : " ^5.4.24" ,
25
25
"chalk" : " ^4.1.2" ,
Original file line number Diff line number Diff line change 23
23
},
24
24
"dependencies" : {
25
25
"@contentstack/cli-command" : " ~1.3.3" ,
26
- "@contentstack/cli-utilities" : " ~1.8.2 "
26
+ "@contentstack/cli-utilities" : " ~1.8.3 "
27
27
},
28
28
"devDependencies" : {
29
29
"@fancy-test/nock" : " ^0.1.1" ,
Original file line number Diff line number Diff line change 19
19
"dependencies" : {
20
20
"@contentstack/cli-cm-seed" : " ~1.10.1" ,
21
21
"@contentstack/cli-command" : " ~1.3.3" ,
22
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
22
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
23
23
"inquirer" : " 8.2.6" ,
24
24
"mkdirp" : " ^1.0.4" ,
25
25
"tar" : " ^6.2.1 "
Original file line number Diff line number Diff line change 6
6
"bugs" : " https://github.com/contentstack/cli/issues" ,
7
7
"dependencies" : {
8
8
"@contentstack/cli-command" : " ~1.3.3" ,
9
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
9
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
10
10
"@oclif/core" : " ^3.27.0" ,
11
11
"chalk" : " ^4.1.2" ,
12
12
"just-diff" : " ^6.0.2" ,
Original file line number Diff line number Diff line change 6
6
"bugs" : " https://github.com/contentstack/cli/issues" ,
7
7
"dependencies" : {
8
8
"@contentstack/cli-command" : " ~1.3.3" ,
9
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
9
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
10
10
"chalk" : " ^4.1.2" ,
11
11
"dotenv" : " ^16.4.7" ,
12
12
"inquirer" : " 8.2.6" ,
Original file line number Diff line number Diff line change 9
9
"@contentstack/cli-cm-export" : " ~1.14.2" ,
10
10
"@contentstack/cli-cm-import" : " ~1.19.5" ,
11
11
"@contentstack/cli-command" : " ~1.3.3" ,
12
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
12
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
13
13
"chalk" : " ^4.1.2" ,
14
14
"inquirer" : " 8.2.6" ,
15
15
"lodash" : " ^4.17.21" ,
Original file line number Diff line number Diff line change 17
17
"format" : " eslint src/**/*.ts --fix"
18
18
},
19
19
"dependencies" : {
20
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
20
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
21
21
"contentstack" : " ^3.22.1"
22
22
},
23
23
"devDependencies" : {
Original file line number Diff line number Diff line change 22
22
},
23
23
"dependencies" : {
24
24
"@contentstack/cli-command" : " ~1.3.3" ,
25
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
25
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
26
26
"lodash" : " ^4.17.21"
27
27
},
28
28
"devDependencies" : {
Original file line number Diff line number Diff line change 6
6
"bugs" : " https://github.com/contentstack/cli/issues" ,
7
7
"dependencies" : {
8
8
"@contentstack/cli-command" : " ~1.3.3" ,
9
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
9
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
10
10
"fast-csv" : " ^4.3.6" ,
11
11
"inquirer" : " 8.2.6" ,
12
12
"inquirer-checkbox-plus-prompt" : " 1.4.2" ,
Original file line number Diff line number Diff line change 7
7
"dependencies" : {
8
8
"@contentstack/cli-command" : " ~1.3.3" ,
9
9
"@contentstack/cli-variants" : " ~1.1.5" ,
10
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
10
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
11
11
"@oclif/core" : " ^3.27.0" ,
12
12
"async" : " ^3.2.6" ,
13
13
"big-json" : " ^3.2.0" ,
Original file line number Diff line number Diff line change 6
6
"bugs" : " https://github.com/contentstack/cli/issues" ,
7
7
"dependencies" : {
8
8
"@contentstack/cli-command" : " ~1.3.3" ,
9
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
9
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
10
10
"@oclif/core" : " ^3.27.0" ,
11
11
"big-json" : " ^3.2.0" ,
12
12
"chalk" : " ^4.1.2" ,
Original file line number Diff line number Diff line change 7
7
"dependencies" : {
8
8
"@contentstack/cli-audit" : " ~1.7.5" ,
9
9
"@contentstack/cli-command" : " ~1.3.3" ,
10
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
10
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
11
11
"@contentstack/management" : " ~1.18.4" ,
12
12
"@contentstack/cli-variants" : " ~1.1.5" ,
13
13
"@oclif/core" : " ^3.27.0" ,
Original file line number Diff line number Diff line change 6
6
"bugs" : " https://github.com/contentstack/cli/issues" ,
7
7
"dependencies" : {
8
8
"@contentstack/cli-command" : " ~1.3.3" ,
9
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
9
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
10
10
"@contentstack/json-rte-serializer" : " ~2.0.11" ,
11
11
"collapse-whitespace" : " ^1.1.7" ,
12
12
"chalk" : " ^4.1.2" ,
Original file line number Diff line number Diff line change 5
5
"bugs" : " https://github.com/contentstack/cli/issues" ,
6
6
"dependencies" : {
7
7
"@contentstack/cli-command" : " ~1.3.3" ,
8
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
8
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
9
9
"async" : " ^3.2.6" ,
10
10
"callsites" : " ^3.1.0" ,
11
11
"cardinal" : " ^2.1.1" ,
Original file line number Diff line number Diff line change 7
7
"dependencies" : {
8
8
"@contentstack/cli-cm-import" : " ~1.19.5" ,
9
9
"@contentstack/cli-command" : " ~1.3.3" ,
10
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
10
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
11
11
"@contentstack/management" : " ~1.18.4" ,
12
12
"inquirer" : " 8.2.6" ,
13
13
"mkdirp" : " ^1.0.4" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @contentstack/cli-utilities" ,
3
- "version" : " 1.8.2 " ,
3
+ "version" : " 1.8.3 " ,
4
4
"description" : " Utilities for contentstack projects" ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " lib/index.d.ts" ,
50
50
"mkdirp" : " ^1.0.4" ,
51
51
"open" : " ^8.4.2" ,
52
52
"ora" : " ^5.4.1" ,
53
- "recheck" : " ^ 4.4.5" ,
53
+ "recheck" : " ~ 4.4.5" ,
54
54
"rxjs" : " ^6.6.7" ,
55
55
"traverse" : " ^0.6.11" ,
56
56
"unique-string" : " ^2.0.0" ,
Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ export const validateUids = (uid) => /^[a-zA-Z0-9]+$/.test(uid);
62
62
export const validateFileName = ( fileName ) => / ^ [ a - z A - Z 0 - 9 -_ \. ] + $ / . test ( fileName ) ;
63
63
64
64
// Validate Regex for ReDDos
65
- export const validateRegex = ( str ) => checkSync ( str , '' ) ;
65
+ export const validateRegex = ( str : unknown ) => {
66
+ const stringValue = typeof str === 'string' ? str : str . toString ( ) ;
67
+ return checkSync ( stringValue , '' ) ;
68
+ } ;
66
69
67
70
export const formatError = function ( error : any ) {
68
71
let parsedError : any ;
Original file line number Diff line number Diff line change 26
26
"typescript" : " ^5.7.3"
27
27
},
28
28
"dependencies" : {
29
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
29
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
30
30
"lodash" : " ^4.17.21" ,
31
31
"mkdirp" : " ^1.0.4" ,
32
32
"winston" : " ^3.17.0"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
18
18
$ csdx COMMAND
19
19
running command...
20
20
$ csdx (--version| -v)
21
- @contentstack/cli/1.35.4 darwin-arm64 node-v22.14.0
21
+ @contentstack/cli/1.35.5 darwin-arm64 node-v22.14.0
22
22
$ csdx --help [COMMAND]
23
23
USAGE
24
24
$ csdx COMMAND
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @contentstack/cli" ,
3
3
"description" : " Command-line tool (CLI) to interact with Contentstack" ,
4
- "version" : " 1.35.4 " ,
4
+ "version" : " 1.35.5 " ,
5
5
"author" : " Contentstack" ,
6
6
"bin" : {
7
7
"csdx" : " ./bin/run.js"
38
38
"@contentstack/cli-config" : " ~1.9.1" ,
39
39
"@contentstack/cli-launch" : " ^1.5.1" ,
40
40
"@contentstack/cli-migration" : " ~1.6.5" ,
41
- "@contentstack/cli-utilities" : " ~1.8.2 " ,
41
+ "@contentstack/cli-utilities" : " ~1.8.3 " ,
42
42
"@contentstack/cli-variants" : " ~1.1.5" ,
43
43
"@contentstack/management" : " ~1.18.4" ,
44
44
"@oclif/core" : " ^3.27.0" ,
You can’t perform that action at this time.
0 commit comments