@contentstack/cli-cm-import 1.19.0 → 1.19.2
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 +1 -1
- package/lib/import/modules/entries.js +2 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
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.19.
|
|
50
|
+
@contentstack/cli-cm-import/1.19.2 linux-x64 node-v18.20.4
|
|
51
51
|
$ csdx --help [COMMAND]
|
|
52
52
|
USAGE
|
|
53
53
|
$ csdx COMMAND
|
|
@@ -252,9 +252,9 @@ class EntriesImport extends base_class_1.default {
|
|
|
252
252
|
const contentType = (0, lodash_1.find)(this.cTs, { uid: cTUid });
|
|
253
253
|
const onSuccess = ({ response, apiData: entry, additionalInfo }) => {
|
|
254
254
|
var _a, _b;
|
|
255
|
-
this.entriesForVariant.push({ content_type: cTUid, entry_uid: entry.uid, locale });
|
|
256
255
|
if ((_a = additionalInfo[entry.uid]) === null || _a === void 0 ? void 0 : _a.isLocalized) {
|
|
257
256
|
let oldUid = additionalInfo[entry.uid].entryOldUid;
|
|
257
|
+
this.entriesForVariant.push({ content_type: cTUid, entry_uid: oldUid, locale });
|
|
258
258
|
(0, utils_1.log)(this.importConfig, `Localized entry: '${entry.title}' of content type ${cTUid} in locale ${locale}`, 'info');
|
|
259
259
|
entry.uid = oldUid;
|
|
260
260
|
entry.entryOldUid = oldUid;
|
|
@@ -263,6 +263,7 @@ class EntriesImport extends base_class_1.default {
|
|
|
263
263
|
}
|
|
264
264
|
else {
|
|
265
265
|
(0, utils_1.log)(this.importConfig, `Created entry: '${entry.title}' of content type ${cTUid} in locale ${locale}`, 'info');
|
|
266
|
+
this.entriesForVariant.push({ content_type: cTUid, entry_uid: entry.uid, locale });
|
|
266
267
|
// This is for creating localized entries that do not have a counterpart in master locale.
|
|
267
268
|
// For example : To create entry1 in fr-fr, where en-us is the master locale
|
|
268
269
|
// entry1 will get created in en-us first, then fr-fr version will be created
|
package/oclif.manifest.json
CHANGED
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.19.
|
|
4
|
+
"version": "1.19.2",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@contentstack/cli-command": "~1.3.2",
|
|
10
10
|
"@contentstack/cli-utilities": "~1.8.0",
|
|
11
11
|
"@contentstack/management": "~1.17.0",
|
|
12
|
-
"@contentstack/cli-variants": "~1.1.
|
|
12
|
+
"@contentstack/cli-variants": "~1.1.2",
|
|
13
13
|
"@oclif/core": "^3.26.5",
|
|
14
14
|
"big-json": "^3.2.0",
|
|
15
15
|
"bluebird": "^3.7.2",
|