@contentstack/cli 1.25.0 → 1.26.0

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.25.0 linux-x64 node-v18.20.4
21
+ @contentstack/cli/1.26.0 linux-x64 node-v18.20.4
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -3525,7 +3525,7 @@ EXAMPLES
3525
3525
  $ csdx plugins
3526
3526
  ```
3527
3527
 
3528
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/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)_
3529
3529
 
3530
3530
  ## `csdx plugins:add PLUGIN`
3531
3531
 
@@ -3599,7 +3599,7 @@ EXAMPLES
3599
3599
  $ csdx plugins:inspect myplugin
3600
3600
  ```
3601
3601
 
3602
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/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)_
3603
3603
 
3604
3604
  ## `csdx plugins:install PLUGIN`
3605
3605
 
@@ -3648,7 +3648,7 @@ EXAMPLES
3648
3648
  $ csdx plugins:install someuser/someplugin
3649
3649
  ```
3650
3650
 
3651
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/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)_
3652
3652
 
3653
3653
  ## `csdx plugins:link PATH`
3654
3654
 
@@ -3678,7 +3678,7 @@ EXAMPLES
3678
3678
  $ csdx plugins:link myplugin
3679
3679
  ```
3680
3680
 
3681
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/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)_
3682
3682
 
3683
3683
  ## `csdx plugins:remove [PLUGIN]`
3684
3684
 
@@ -3719,7 +3719,7 @@ FLAGS
3719
3719
  --reinstall Reinstall all plugins after uninstalling.
3720
3720
  ```
3721
3721
 
3722
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/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)_
3723
3723
 
3724
3724
  ## `csdx plugins:uninstall [PLUGIN]`
3725
3725
 
@@ -3747,7 +3747,7 @@ EXAMPLES
3747
3747
  $ csdx plugins:uninstall myplugin
3748
3748
  ```
3749
3749
 
3750
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/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)_
3751
3751
 
3752
3752
  ## `csdx plugins:unlink [PLUGIN]`
3753
3753
 
@@ -3791,7 +3791,7 @@ DESCRIPTION
3791
3791
  Update installed plugins.
3792
3792
  ```
3793
3793
 
3794
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.6/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)_
3795
3795
 
3796
3796
  ## `csdx tokens`
3797
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.25.0",
2
+ "version": "1.26.0",
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.25.0",
4
+ "version": "1.26.0",
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.7.0",
26
- "@contentstack/cli-auth": "~1.3.20",
27
- "@contentstack/cli-cm-bootstrap": "~1.11.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.12.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.12.0",
31
- "@contentstack/cli-cm-clone": "~1.11.0",
30
+ "@contentstack/cli-cm-export": "~1.13.0",
31
+ "@contentstack/cli-cm-clone": "~1.12.0",
32
32
  "@contentstack/cli-cm-export-to-csv": "~1.7.2",
33
- "@contentstack/cli-cm-import": "~1.17.0",
34
- "@contentstack/cli-cm-migrate-rte": "~1.4.18",
35
- "@contentstack/cli-cm-seed": "~1.8.0",
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.18.0",
34
+ "@contentstack/cli-cm-migrate-rte": "~1.4.19",
35
+ "@contentstack/cli-cm-seed": "~1.9.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.2",
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",