@contentstack/cli 1.24.0 → 1.25.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/README.md CHANGED
@@ -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.24.0 linux-x64 node-v18.20.4
21
+ @contentstack/cli/1.25.1 linux-x64 node-v18.20.4
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -123,12 +123,12 @@ Perform audits and find possible errors in the exported Contentstack data
123
123
  ```
124
124
  USAGE
125
125
  $ csdx audit [--report-path <value>] [--modules
126
- content-types|global-fields|entries|extensions|workflows...] [--columns <value> | ] [--sort <value>] [--filter
127
- <value>] [--csv | --no-truncate]
126
+ content-types|global-fields|entries|extensions|workflows|custom-roles...] [--columns <value> | ] [--sort <value>]
127
+ [--filter <value>] [--csv | --no-truncate]
128
128
 
129
129
  FLAGS
130
130
  --modules=<option>... Provide the list of modules to be audited
131
- <options: content-types|global-fields|entries|extensions|workflows>
131
+ <options: content-types|global-fields|entries|extensions|workflows|custom-roles>
132
132
  --report-path=<value> Path to store the audit reports
133
133
 
134
134
  TABLE FLAGS
@@ -164,9 +164,9 @@ Perform audits and fix possible errors in the exported Contentstack data.
164
164
  ```
165
165
  USAGE
166
166
  $ csdx audit:fix [--report-path <value>] [--modules
167
- content-types|global-fields|entries|extensions|workflows...] [--copy-path <value> --copy-dir] [--fix-only
168
- reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value> | ] [--sort
169
- <value>] [--filter <value>] [--csv | --no-truncate]
167
+ content-types|global-fields|entries|extensions|workflows|custom-roles...] [--copy-path <value> --copy-dir]
168
+ [--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value> | ]
169
+ [--sort <value>] [--filter <value>] [--csv | --no-truncate]
170
170
 
171
171
  FLAGS
172
172
  --copy-dir Create backup from the original data.
@@ -174,7 +174,7 @@ FLAGS
174
174
  --fix-only=<option>... Provide the list of fix options
175
175
  <options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
176
176
  --modules=<option>... Provide the list of modules to be audited
177
- <options: content-types|global-fields|entries|extensions|workflows>
177
+ <options: content-types|global-fields|entries|extensions|workflows|custom-roles>
178
178
  --report-path=<value> Path to store the audit reports
179
179
 
180
180
  TABLE FLAGS
@@ -2145,21 +2145,22 @@ USAGE
2145
2145
  [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]
2146
2146
 
2147
2147
  FLAGS
2148
- -B, --branch=<value> [optional] branch name
2149
- -a, --alias=<value> alias of the management token
2150
- -b, --backup-dir=<value> [optional] backup directory name when using specific module
2151
- -c, --config=<value> [optional] path of config file
2152
- -d, --data-dir=<value> path and location where data is stored
2153
- -k, --stack-api-key=<value> API key of the target stack
2154
- -m, --module=<value> [optional] specific module name
2155
- -y, --yes [optional] Override marketplace prompts
2156
- --exclude-global-modules Excludes the branch-independent module from the import operation
2157
- --import-webhook-status=<option> [default: disable] [optional] Webhook state
2158
- <options: disable|current>
2159
- --replace-existing Replaces the existing module in the target stack.
2160
- --skip-app-recreation [optional] Skip private apps recreation if already exist
2161
- --skip-audit Skips the audit fix.
2162
- --skip-existing Skips the module exists warning messages.
2148
+ -B, --branch=<value> [optional] branch name
2149
+ -a, --alias=<value> alias of the management token
2150
+ -b, --backup-dir=<value> [optional] backup directory name when using specific module
2151
+ -c, --config=<value> [optional] path of config file
2152
+ -d, --data-dir=<value> path and location where data is stored
2153
+ -k, --stack-api-key=<value> API key of the target stack
2154
+ -m, --module=<value> [optional] specific module name
2155
+ -y, --yes [optional] Override marketplace prompts
2156
+ --exclude-global-modules Excludes the branch-independent module from the import operation
2157
+ --import-webhook-status=<option> [default: disable] [optional] Webhook state
2158
+ <options: disable|current>
2159
+ --personalize-project-name=<value> Personalize project name.
2160
+ --replace-existing Replaces the existing module in the target stack.
2161
+ --skip-app-recreation [optional] Skip private apps recreation if already exist
2162
+ --skip-audit Skips the audit fix.
2163
+ --skip-existing Skips the module exists warning messages.
2163
2164
 
2164
2165
  DESCRIPTION
2165
2166
  Import content from a stack
@@ -2377,12 +2378,12 @@ Perform audits and find possible errors in the exported Contentstack data
2377
2378
  ```
2378
2379
  USAGE
2379
2380
  $ csdx cm:stacks:audit [--report-path <value>] [--modules
2380
- content-types|global-fields|entries|extensions|workflows...] [--columns <value> | ] [--sort <value>] [--filter
2381
- <value>] [--csv | --no-truncate]
2381
+ content-types|global-fields|entries|extensions|workflows|custom-roles...] [--columns <value> | ] [--sort <value>]
2382
+ [--filter <value>] [--csv | --no-truncate]
2382
2383
 
2383
2384
  FLAGS
2384
2385
  --modules=<option>... Provide the list of modules to be audited
2385
- <options: content-types|global-fields|entries|extensions|workflows>
2386
+ <options: content-types|global-fields|entries|extensions|workflows|custom-roles>
2386
2387
  --report-path=<value> Path to store the audit reports
2387
2388
 
2388
2389
  TABLE FLAGS
@@ -2420,9 +2421,9 @@ Perform audits and fix possible errors in the exported Contentstack data.
2420
2421
  ```
2421
2422
  USAGE
2422
2423
  $ csdx cm:stacks:audit:fix [--report-path <value>] [--modules
2423
- content-types|global-fields|entries|extensions|workflows...] [--copy-path <value> --copy-dir] [--fix-only
2424
- reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value> | ] [--sort
2425
- <value>] [--filter <value>] [--csv | --no-truncate]
2424
+ content-types|global-fields|entries|extensions|workflows|custom-roles...] [--copy-path <value> --copy-dir]
2425
+ [--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value> | ]
2426
+ [--sort <value>] [--filter <value>] [--csv | --no-truncate]
2426
2427
 
2427
2428
  FLAGS
2428
2429
  --copy-dir Create backup from the original data.
@@ -2430,7 +2431,7 @@ FLAGS
2430
2431
  --fix-only=<option>... Provide the list of fix options
2431
2432
  <options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
2432
2433
  --modules=<option>... Provide the list of modules to be audited
2433
- <options: content-types|global-fields|entries|extensions|workflows>
2434
+ <options: content-types|global-fields|entries|extensions|workflows|custom-roles>
2434
2435
  --report-path=<value> Path to store the audit reports
2435
2436
 
2436
2437
  TABLE FLAGS
@@ -2570,21 +2571,22 @@ USAGE
2570
2571
  <value>] [--branch <value>] [--import-webhook-status disable|current]
2571
2572
 
2572
2573
  FLAGS
2573
- -B, --branch=<value> [optional] branch name
2574
- -a, --alias=<value> alias of the management token
2575
- -b, --backup-dir=<value> [optional] backup directory name when using specific module
2576
- -c, --config=<value> [optional] path of config file
2577
- -d, --data-dir=<value> path and location where data is stored
2578
- -k, --stack-api-key=<value> API key of the target stack
2579
- -m, --module=<value> [optional] specific module name
2580
- -y, --yes [optional] Override marketplace prompts
2581
- --exclude-global-modules Excludes the branch-independent module from the import operation
2582
- --import-webhook-status=<option> [default: disable] [optional] Webhook state
2583
- <options: disable|current>
2584
- --replace-existing Replaces the existing module in the target stack.
2585
- --skip-app-recreation [optional] Skip private apps recreation if already exist
2586
- --skip-audit Skips the audit fix.
2587
- --skip-existing Skips the module exists warning messages.
2574
+ -B, --branch=<value> [optional] branch name
2575
+ -a, --alias=<value> alias of the management token
2576
+ -b, --backup-dir=<value> [optional] backup directory name when using specific module
2577
+ -c, --config=<value> [optional] path of config file
2578
+ -d, --data-dir=<value> path and location where data is stored
2579
+ -k, --stack-api-key=<value> API key of the target stack
2580
+ -m, --module=<value> [optional] specific module name
2581
+ -y, --yes [optional] Override marketplace prompts
2582
+ --exclude-global-modules Excludes the branch-independent module from the import operation
2583
+ --import-webhook-status=<option> [default: disable] [optional] Webhook state
2584
+ <options: disable|current>
2585
+ --personalize-project-name=<value> Personalize project name.
2586
+ --replace-existing Replaces the existing module in the target stack.
2587
+ --skip-app-recreation [optional] Skip private apps recreation if already exist
2588
+ --skip-audit Skips the audit fix.
2589
+ --skip-existing Skips the module exists warning messages.
2588
2590
 
2589
2591
  DESCRIPTION
2590
2592
  Import content from a stack
@@ -3523,7 +3525,7 @@ EXAMPLES
3523
3525
  $ csdx plugins
3524
3526
  ```
3525
3527
 
3526
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/index.ts)_
3528
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.9/src/commands/plugins/index.ts)_
3527
3529
 
3528
3530
  ## `csdx plugins:add PLUGIN`
3529
3531
 
@@ -3597,7 +3599,7 @@ EXAMPLES
3597
3599
  $ csdx plugins:inspect myplugin
3598
3600
  ```
3599
3601
 
3600
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/inspect.ts)_
3602
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.9/src/commands/plugins/inspect.ts)_
3601
3603
 
3602
3604
  ## `csdx plugins:install PLUGIN`
3603
3605
 
@@ -3646,7 +3648,7 @@ EXAMPLES
3646
3648
  $ csdx plugins:install someuser/someplugin
3647
3649
  ```
3648
3650
 
3649
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/install.ts)_
3651
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.9/src/commands/plugins/install.ts)_
3650
3652
 
3651
3653
  ## `csdx plugins:link PATH`
3652
3654
 
@@ -3676,7 +3678,7 @@ EXAMPLES
3676
3678
  $ csdx plugins:link myplugin
3677
3679
  ```
3678
3680
 
3679
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/link.ts)_
3681
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.9/src/commands/plugins/link.ts)_
3680
3682
 
3681
3683
  ## `csdx plugins:remove [PLUGIN]`
3682
3684
 
@@ -3717,7 +3719,7 @@ FLAGS
3717
3719
  --reinstall Reinstall all plugins after uninstalling.
3718
3720
  ```
3719
3721
 
3720
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/reset.ts)_
3722
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.9/src/commands/plugins/reset.ts)_
3721
3723
 
3722
3724
  ## `csdx plugins:uninstall [PLUGIN]`
3723
3725
 
@@ -3745,7 +3747,7 @@ EXAMPLES
3745
3747
  $ csdx plugins:uninstall myplugin
3746
3748
  ```
3747
3749
 
3748
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/uninstall.ts)_
3750
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.9/src/commands/plugins/uninstall.ts)_
3749
3751
 
3750
3752
  ## `csdx plugins:unlink [PLUGIN]`
3751
3753
 
@@ -3789,7 +3791,7 @@ DESCRIPTION
3789
3791
  Update installed plugins.
3790
3792
  ```
3791
3793
 
3792
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.4/src/commands/plugins/update.ts)_
3794
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.9/src/commands/plugins/update.ts)_
3793
3795
 
3794
3796
  ## `csdx tokens`
3795
3797
 
package/bin/run.js CHANGED
@@ -7,8 +7,20 @@
7
7
 
8
8
  // Override process.emitWarning to filter out the punycode deprecation warning
9
9
  process.emitWarning = (warning, type, code, ...args) => {
10
- if (type === 'DeprecationWarning' && typeof warning === 'string' && warning.includes('punycode')) {
11
- // Ignore punycode deprecation warning
10
+ // List of libraries for which deprecation warnings should be ignored
11
+ const ignoreWarningLibraries = ['punycode', 'bluebird', 'eslint-plugin-node', 'lodash'];
12
+ const ignoreWarningMessages = [
13
+ 'The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.'
14
+ ];
15
+ // Check if the warning belongs to any of the ignored libraries
16
+ const libraryWarning = ignoreWarningLibraries.some(library =>
17
+ type === 'DeprecationWarning' && typeof warning === 'string' && warning.includes(library)
18
+ );
19
+ const specificWarning = ignoreWarningMessages.some(msg =>
20
+ typeof warning === 'string' && warning.includes(msg)
21
+ );
22
+ // If the warning is in the list of libraries to ignore, return early
23
+ if (libraryWarning || specificWarning) {
12
24
  return;
13
25
  }
14
26
  // Call the original emitWarning function for other warnings
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.24.0",
2
+ "version": "1.25.1",
3
3
  "commands": {}
4
4
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli",
3
3
  "description": "Command-line tool (CLI) to interact with Contentstack",
4
- "version": "1.24.0",
4
+ "version": "1.25.1",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run.js"
@@ -22,22 +22,22 @@
22
22
  "prepack": "pnpm compile && oclif manifest && oclif readme"
23
23
  },
24
24
  "dependencies": {
25
- "@contentstack/cli-audit": "~1.6.5",
26
- "@contentstack/cli-auth": "~1.3.20",
27
- "@contentstack/cli-cm-bootstrap": "~1.10.0",
28
- "@contentstack/cli-cm-branches": "~1.1.2",
25
+ "@contentstack/cli-audit": "~1.7.1",
26
+ "@contentstack/cli-auth": "~1.3.21",
27
+ "@contentstack/cli-cm-bootstrap": "~1.11.0",
28
+ "@contentstack/cli-cm-branches": "~1.1.3",
29
29
  "@contentstack/cli-cm-bulk-publish": "~1.4.8",
30
- "@contentstack/cli-cm-export": "~1.11.7",
31
- "@contentstack/cli-cm-clone": "~1.10.7",
30
+ "@contentstack/cli-cm-export": "~1.12.1",
31
+ "@contentstack/cli-cm-clone": "~1.11.1",
32
32
  "@contentstack/cli-cm-export-to-csv": "~1.7.2",
33
- "@contentstack/cli-cm-import": "~1.16.6",
34
- "@contentstack/cli-cm-migrate-rte": "~1.4.18",
35
- "@contentstack/cli-cm-seed": "~1.7.8",
36
- "@contentstack/cli-command": "~1.3.0",
37
- "@contentstack/cli-config": "~1.7.0",
38
- "@contentstack/cli-launch": "~1.2.1",
33
+ "@contentstack/cli-cm-import": "~1.17.1",
34
+ "@contentstack/cli-cm-migrate-rte": "~1.4.19",
35
+ "@contentstack/cli-cm-seed": "~1.8.0",
36
+ "@contentstack/cli-command": "~1.3.1",
37
+ "@contentstack/cli-config": "~1.7.1",
38
+ "@contentstack/cli-launch": "~1.2.2",
39
39
  "@contentstack/cli-migration": "~1.6.1",
40
- "@contentstack/cli-utilities": "~1.7.1",
40
+ "@contentstack/cli-utilities": "~1.7.3",
41
41
  "@contentstack/management": "~1.17.0",
42
42
  "@oclif/core": "^3.26.5",
43
43
  "@oclif/plugin-help": "^5",
@@ -72,7 +72,7 @@
72
72
  "oclif": "^3.8.1",
73
73
  "rimraf": "^2.7.1",
74
74
  "shelljs": "^0.8.4",
75
- "sinon": "^15.0.1",
75
+ "sinon": "^19.0.0",
76
76
  "tmp": "^0.2.2",
77
77
  "ts-node": "^10.9.1",
78
78
  "tslib": "^2.4.1",