@contentstack/cli-cm-import 1.16.5 → 1.16.6
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.
|
|
50
|
+
@contentstack/cli-cm-import/1.16.6 linux-x64 node-v18.20.4
|
|
51
51
|
$ csdx --help [COMMAND]
|
|
52
52
|
USAGE
|
|
53
53
|
$ csdx COMMAND
|
|
@@ -17,6 +17,7 @@ class ImportCommand extends cli_command_1.Command {
|
|
|
17
17
|
let importConfig = await (0, utils_1.setupImportConfig)(flags);
|
|
18
18
|
// Note setting host to create cma client
|
|
19
19
|
importConfig.host = this.cmaHost;
|
|
20
|
+
importConfig.developerHubBaseUrl = this.developerHubUrl;
|
|
20
21
|
backupDir = importConfig.cliLogsPath || importConfig.backupDir;
|
|
21
22
|
const managementAPIClient = await (0, cli_utilities_1.managementSDKClient)(importConfig);
|
|
22
23
|
const moduleImporter = new import_1.ModuleImporter(managementAPIClient, importConfig);
|
|
@@ -721,14 +721,9 @@ class EntriesImport extends base_class_1.default {
|
|
|
721
721
|
if (chunk) {
|
|
722
722
|
let apiContent = (0, lodash_1.values)(chunk);
|
|
723
723
|
let apiContentDuplicate = [];
|
|
724
|
-
apiContent.
|
|
724
|
+
apiContentDuplicate = apiContent.flatMap((content) => {
|
|
725
725
|
var _a;
|
|
726
|
-
(_a = content === null || content === void 0 ? void 0 : content.publish_details) === null || _a === void 0 ? void 0 : _a.
|
|
727
|
-
let c2 = Object.assign({}, content);
|
|
728
|
-
c2.locale = publish.locale;
|
|
729
|
-
c2.publish_details = [publish];
|
|
730
|
-
apiContentDuplicate.push(c2);
|
|
731
|
-
});
|
|
726
|
+
return (_a = content === null || content === void 0 ? void 0 : content.publish_details) === null || _a === void 0 ? void 0 : _a.map((publish) => (Object.assign(Object.assign({}, content), { locale: publish.locale, publish_details: [publish] })));
|
|
732
727
|
});
|
|
733
728
|
apiContent = apiContentDuplicate;
|
|
734
729
|
await this.makeConcurrentCall({
|
|
@@ -12,7 +12,7 @@ const { cliux, HttpClient, NodeCrypto, managementSDKClient, isAuthenticated, Htt
|
|
|
12
12
|
const { log, formatError, fileHelper: { readFileSync, writeFile }, } = require('../../utils');
|
|
13
13
|
const { trace } = require('../../utils/log');
|
|
14
14
|
const { default: config } = require('../../config');
|
|
15
|
-
const {
|
|
15
|
+
const { getAllStackSpecificApps } = require('../../utils/marketplace-app-helper');
|
|
16
16
|
module.exports = class ImportMarketplaceApps {
|
|
17
17
|
constructor(importConfig, stackAPIClient) {
|
|
18
18
|
this.appUidMapping = {};
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-import",
|
|
3
3
|
"description": "Contentstack CLI plugin to import content into stack",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.6",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@contentstack/cli-audit": "~1.6.5",
|
|
9
|
-
"@contentstack/cli-command": "~1.
|
|
9
|
+
"@contentstack/cli-command": "~1.3.0",
|
|
10
10
|
"@contentstack/cli-utilities": "~1.7.1",
|
|
11
11
|
"@contentstack/management": "~1.17.0",
|
|
12
12
|
"@oclif/core": "^3.26.5",
|