@contentstack/cli-utilities 2.0.0-beta → 2.0.0-beta.10

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.
Files changed (39) hide show
  1. package/lib/auth-handler.d.ts +5 -2
  2. package/lib/auth-handler.js +29 -29
  3. package/lib/chalk.d.ts +15 -0
  4. package/lib/chalk.js +66 -0
  5. package/lib/cli-ux.js +23 -10
  6. package/lib/config-handler.js +4 -4
  7. package/lib/constants/logging.d.ts +1 -1
  8. package/lib/constants/logging.js +3 -3
  9. package/lib/content-type-utils.d.ts +7 -0
  10. package/lib/content-type-utils.js +44 -0
  11. package/lib/contentstack-management-sdk.js +14 -4
  12. package/lib/contentstack-marketplace-sdk.d.ts +2 -2
  13. package/lib/contentstack-marketplace-sdk.js +1 -1
  14. package/lib/fs-utility/core.d.ts +0 -1
  15. package/lib/fs-utility/core.js +2 -6
  16. package/lib/fs-utility/helper.js +2 -3
  17. package/lib/helpers.d.ts +3 -1
  18. package/lib/helpers.js +14 -4
  19. package/lib/http-client/client.d.ts +2 -2
  20. package/lib/http-client/client.js +22 -2
  21. package/lib/http-client/http-response.d.ts +1 -1
  22. package/lib/http-client/http-response.js +1 -0
  23. package/lib/index.d.ts +4 -1
  24. package/lib/index.js +5 -1
  25. package/lib/inquirer-table-prompt.d.ts +49 -28
  26. package/lib/inquirer-table-prompt.js +144 -136
  27. package/lib/interfaces/index.d.ts +3 -1
  28. package/lib/logger/cli-error-handler.js +1 -1
  29. package/lib/logger/log.js +4 -4
  30. package/lib/logger/session-path.d.ts +5 -0
  31. package/lib/logger/session-path.js +18 -3
  32. package/lib/message-handler.d.ts +0 -3
  33. package/lib/message-handler.js +6 -10
  34. package/lib/progress-summary/cli-progress-manager.d.ts +3 -1
  35. package/lib/progress-summary/cli-progress-manager.js +46 -36
  36. package/lib/progress-summary/summary-manager.js +30 -30
  37. package/lib/proxy-helper.d.ts +42 -1
  38. package/lib/proxy-helper.js +183 -32
  39. package/package.json +28 -27
package/package.json CHANGED
@@ -1,21 +1,16 @@
1
1
  {
2
2
  "name": "@contentstack/cli-utilities",
3
- "version": "2.0.0-beta",
3
+ "version": "2.0.0-beta.10",
4
4
  "description": "Utilities for contentstack projects",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "scripts": {
8
8
  "prepack": "pnpm compile",
9
- "clean": "rm -rf ./lib ./node_modules tsconfig.build.tsbuildinfo",
9
+ "build": "pnpm compile",
10
+ "clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo",
10
11
  "compile": "tsc -b tsconfig.json",
11
- "test:report": "tsc -p test && nyc --reporter=lcov --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
12
- "pretest": "tsc -p test",
13
- "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
14
- "posttest": "npm run lint",
15
- "lint": "eslint src/**/*.ts",
16
- "format": "eslint src/**/*.ts --fix",
17
- "test:unit": "mocha --forbid-only \"test/unit/**/*.test.ts\"",
18
- "test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
12
+ "test": "mocha \"test/unit/**/*.test.ts\"",
13
+ "lint": "eslint src/**/*.ts"
19
14
  },
20
15
  "repository": {
21
16
  "type": "git",
@@ -32,53 +27,59 @@
32
27
  "author": "contentstack",
33
28
  "license": "MIT",
34
29
  "dependencies": {
35
- "@contentstack/management": "~1.27.5",
36
- "@contentstack/marketplace-sdk": "^1.5.0",
37
- "@oclif/core": "^4.3.0",
38
- "axios": "^1.13.5",
39
- "chalk": "^4.1.2",
30
+ "@contentstack/management": "~1.30.3",
31
+ "@contentstack/marketplace-sdk": "^1.5.2",
32
+ "@oclif/core": "^4.11.4",
33
+ "axios": "^1.16.1",
34
+ "chalk": "^5.6.2",
40
35
  "cli-cursor": "^3.1.0",
41
36
  "cli-progress": "^3.12.0",
42
37
  "cli-table": "^0.3.11",
43
38
  "conf": "^10.2.0",
44
39
  "dotenv": "^16.6.1",
45
40
  "figures": "^3.2.0",
46
- "inquirer": "8.2.7",
41
+ "inquirer": "12.11.1",
47
42
  "inquirer-search-checkbox": "^1.0.0",
48
43
  "inquirer-search-list": "^1.2.6",
49
- "js-yaml": "^4.1.1",
44
+ "js-yaml": "^4.2.0",
50
45
  "klona": "^2.0.6",
51
- "lodash": "^4.17.23",
46
+ "lodash": "^4.18.1",
52
47
  "mkdirp": "^1.0.4",
53
48
  "open": "^8.4.2",
54
49
  "ora": "^5.4.1",
55
50
  "papaparse": "^5.5.3",
56
- "recheck": "~4.4.5",
51
+ "recheck": "~4.5.0",
57
52
  "rxjs": "^6.6.7",
58
53
  "traverse": "^0.6.11",
59
54
  "tty-table": "^4.2.3",
60
55
  "unique-string": "^2.0.0",
61
- "uuid": "^9.0.1",
62
- "winston": "^3.17.0",
56
+ "short-uuid": "^6.0.3",
57
+ "uuid": "^14.0.0",
58
+ "winston": "^3.19.0",
63
59
  "xdg-basedir": "^4.0.0"
64
60
  },
61
+ "overrides": {
62
+ "@oclif/core": {
63
+ "picomatch": "^4.0.4"
64
+ }
65
+ },
65
66
  "devDependencies": {
66
67
  "@types/chai": "^4.3.20",
67
- "@types/inquirer": "^9.0.8",
68
+ "@types/inquirer": "^9.0.9",
68
69
  "@types/mkdirp": "^1.0.2",
69
70
  "@types/mocha": "^10.0.10",
70
- "@types/node": "^14.18.63",
71
+ "@types/node": "^18.19.130",
71
72
  "@types/sinon": "^21.0.0",
72
73
  "@types/traverse": "^0.6.37",
73
74
  "chai": "^4.5.0",
74
- "eslint": "^8.57.1",
75
+ "eslint": "^10.5.0",
75
76
  "eslint-config-oclif": "^6.0.62",
76
77
  "eslint-config-oclif-typescript": "^3.1.14",
77
- "fancy-test": "^2.0.42",
78
78
  "mocha": "10.8.2",
79
79
  "nyc": "^15.1.0",
80
- "sinon": "^21.0.1",
80
+ "sinon": "^21.1.2",
81
+ "fancy-test": "^2.0.42",
81
82
  "ts-node": "^10.9.2",
82
- "typescript": "^4.9.5"
83
+ "typescript": "^5.9.3"
83
84
  }
84
85
  }