@contentstack/cli-cm-import 1.28.2 → 1.28.3

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
@@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import
47
47
  $ csdx COMMAND
48
48
  running command...
49
49
  $ csdx (--version)
50
- @contentstack/cli-cm-import/1.28.2 linux-x64 node-v22.20.0
50
+ @contentstack/cli-cm-import/1.28.3 linux-x64 node-v22.20.0
51
51
  $ csdx --help [COMMAND]
52
52
  USAGE
53
53
  $ csdx COMMAND
@@ -139,7 +139,7 @@ class ImportWorkflows extends base_class_1.default {
139
139
  utils_1.fsUtil.writeFile(this.workflowUidMapperPath, this.workflowUidMapper);
140
140
  };
141
141
  const onReject = ({ error, apiData }) => {
142
- var _a, _b;
142
+ var _a, _b, _c;
143
143
  const err = (error === null || error === void 0 ? void 0 : error.message) ? JSON.parse(error.message) : error;
144
144
  const { name, uid } = apiData;
145
145
  cli_utilities_1.log.debug(`Workflow '${name}' (${uid}) failed to import`, this.importConfig.context);
@@ -149,7 +149,7 @@ class ImportWorkflows extends base_class_1.default {
149
149
  }
150
150
  else {
151
151
  this.failedWebhooks.push(apiData);
152
- if (error.errors['workflow_stages.0.users']) {
152
+ if ((_c = error.errors) === null || _c === void 0 ? void 0 : _c['workflow_stages.0.users']) {
153
153
  cli_utilities_1.log.error("Failed to import Workflows as you've specified certain roles in the Stage transition and access rules section. We currently don't import roles to the stack.", this.importConfig.context);
154
154
  }
155
155
  else {
@@ -212,5 +212,5 @@
212
212
  ]
213
213
  }
214
214
  },
215
- "version": "1.28.2"
215
+ "version": "1.28.3"
216
216
  }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-import",
3
3
  "description": "Contentstack CLI plugin to import content into stack",
4
- "version": "1.28.2",
4
+ "version": "1.28.3",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
8
  "@contentstack/cli-audit": "~1.15.0",
9
9
  "@contentstack/cli-command": "~1.6.1",
10
- "@contentstack/cli-utilities": "~1.14.1",
10
+ "@contentstack/cli-utilities": "~1.14.4",
11
11
  "@contentstack/management": "~1.22.0",
12
- "@contentstack/cli-variants": "~1.3.3",
12
+ "@contentstack/cli-variants": "~1.3.4",
13
13
  "@oclif/core": "^4.3.0",
14
14
  "big-json": "^3.2.0",
15
15
  "bluebird": "^3.7.2",
@@ -32,6 +32,7 @@
32
32
  "@types/mkdirp": "^1.0.2",
33
33
  "@types/mocha": "^8.2.3",
34
34
  "@types/node": "^14.18.63",
35
+ "@types/rewire": "^2.5.30",
35
36
  "@types/tar": "^6.1.13",
36
37
  "@types/uuid": "^9.0.8",
37
38
  "@typescript-eslint/eslint-plugin": "^5.62.0",
@@ -40,6 +41,7 @@
40
41
  "mocha": "^10.8.2",
41
42
  "nyc": "^15.1.0",
42
43
  "oclif": "^4.17.46",
44
+ "rewire": "^9.0.1",
43
45
  "ts-node": "^10.9.2",
44
46
  "typescript": "^4.9.5"
45
47
  },