@contentstack/cli-cm-import 1.16.3 → 1.16.4

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.16.3 linux-x64 node-v18.20.4
50
+ @contentstack/cli-cm-import/1.16.4 linux-x64 node-v18.20.4
51
51
  $ csdx --help [COMMAND]
52
52
  USAGE
53
53
  $ csdx COMMAND
@@ -244,7 +244,7 @@ class BaseClass {
244
244
  .entry(apiData.entryUid)
245
245
  .publish({
246
246
  publishDetails: { environments: apiData.environments, locales: apiData.locales },
247
- locale: additionalInfo.locale,
247
+ locale: apiData.locales[0],
248
248
  })
249
249
  .then(onSuccess)
250
250
  .catch(onReject);
@@ -720,6 +720,17 @@ class EntriesImport extends base_class_1.default {
720
720
  });
721
721
  if (chunk) {
722
722
  let apiContent = (0, lodash_1.values)(chunk);
723
+ let apiContentDuplicate = [];
724
+ apiContent.forEach((content) => {
725
+ var _a;
726
+ (_a = content === null || content === void 0 ? void 0 : content.publish_details) === null || _a === void 0 ? void 0 : _a.forEach((publish) => {
727
+ let c2 = Object.assign({}, content);
728
+ c2.locale = publish.locale;
729
+ c2.publish_details = [publish];
730
+ apiContentDuplicate.push(c2);
731
+ });
732
+ });
733
+ apiContent = apiContentDuplicate;
723
734
  await this.makeConcurrentCall({
724
735
  apiContent,
725
736
  processName,
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.16.3",
2
+ "version": "1.16.4",
3
3
  "commands": {
4
4
  "cm:stacks:import": {
5
5
  "id": "cm:stacks:import",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-import",
3
3
  "description": "Contentstack CLI plugin to import content into stack",
4
- "version": "1.16.3",
4
+ "version": "1.16.4",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {