@contentstack/cli-cm-export 1.13.0 → 1.14.0
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
|
@@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export
|
|
|
48
48
|
$ csdx COMMAND
|
|
49
49
|
running command...
|
|
50
50
|
$ csdx (--version)
|
|
51
|
-
@contentstack/cli-cm-export/1.
|
|
51
|
+
@contentstack/cli-cm-export/1.14.0 linux-x64 node-v18.20.4
|
|
52
52
|
$ csdx --help [COMMAND]
|
|
53
53
|
USAGE
|
|
54
54
|
$ csdx COMMAND
|
|
@@ -101,9 +101,11 @@ class ExportMarketplaceApps {
|
|
|
101
101
|
* identifier (uid), and other installation data.
|
|
102
102
|
*/
|
|
103
103
|
async getAppConfigurations(index, appInstallation) {
|
|
104
|
-
var _a;
|
|
104
|
+
var _a, _b;
|
|
105
105
|
const appName = (_a = appInstallation === null || appInstallation === void 0 ? void 0 : appInstallation.manifest) === null || _a === void 0 ? void 0 : _a.name;
|
|
106
|
-
(0
|
|
106
|
+
const appUid = (_b = appInstallation === null || appInstallation === void 0 ? void 0 : appInstallation.manifest) === null || _b === void 0 ? void 0 : _b.uid;
|
|
107
|
+
const app = appName || appUid;
|
|
108
|
+
(0, utils_1.log)(this.exportConfig, `Exporting ${app} app and it's config.`, 'info');
|
|
107
109
|
await this.appSdk
|
|
108
110
|
.marketplace(this.exportConfig.org_uid)
|
|
109
111
|
.installation(appInstallation.uid)
|
|
@@ -119,19 +121,19 @@ class ExportMarketplaceApps {
|
|
|
119
121
|
}
|
|
120
122
|
if (!(0, isEmpty_1.default)(data === null || data === void 0 ? void 0 : data.server_configuration)) {
|
|
121
123
|
this.installedApps[index]['server_configuration'] = this.nodeCrypto.encrypt(data.server_configuration);
|
|
122
|
-
(0, utils_1.log)(this.exportConfig, `Exported ${
|
|
124
|
+
(0, utils_1.log)(this.exportConfig, `Exported ${app} app and it's config.`, 'success');
|
|
123
125
|
}
|
|
124
126
|
else {
|
|
125
|
-
(0, utils_1.log)(this.exportConfig, `Exported ${
|
|
127
|
+
(0, utils_1.log)(this.exportConfig, `Exported ${app} app`, 'success');
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
else if (error) {
|
|
129
|
-
(0, utils_1.log)(this.exportConfig, `Error on exporting ${
|
|
131
|
+
(0, utils_1.log)(this.exportConfig, `Error on exporting ${app} app and it's config.`, 'error');
|
|
130
132
|
(0, utils_1.log)(this.exportConfig, error, 'error');
|
|
131
133
|
}
|
|
132
134
|
})
|
|
133
135
|
.catch((error) => {
|
|
134
|
-
(0, utils_1.log)(this.exportConfig, `Failed to export ${
|
|
136
|
+
(0, utils_1.log)(this.exportConfig, `Failed to export ${app} app config ${(0, utils_1.formatError)(error)}`, 'error');
|
|
135
137
|
(0, utils_1.log)(this.exportConfig, error, 'error');
|
|
136
138
|
});
|
|
137
139
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-export",
|
|
3
3
|
"description": "Contentstack CLI plugin to export content from stack",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.14.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-command": "~1.3.
|
|
9
|
-
"@contentstack/cli-variants": "~1.
|
|
10
|
-
"@contentstack/cli-utilities": "~1.
|
|
8
|
+
"@contentstack/cli-command": "~1.3.2",
|
|
9
|
+
"@contentstack/cli-variants": "~1.1.0",
|
|
10
|
+
"@contentstack/cli-utilities": "~1.8.0",
|
|
11
11
|
"@oclif/core": "^3.26.5",
|
|
12
12
|
"async": "^3.2.4",
|
|
13
13
|
"big-json": "^3.2.0",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"winston": "^3.7.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@contentstack/cli-auth": "~1.3.
|
|
29
|
-
"@contentstack/cli-config": "~1.7.
|
|
28
|
+
"@contentstack/cli-auth": "~1.3.22",
|
|
29
|
+
"@contentstack/cli-config": "~1.7.3",
|
|
30
30
|
"@contentstack/cli-dev-dependencies": "~1.2.4",
|
|
31
31
|
"@oclif/plugin-help": "^5.1.19",
|
|
32
32
|
"@oclif/test": "^2.5.6",
|