@contentstack/cli-cm-export 1.10.0 → 1.10.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
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.10.
|
|
51
|
+
@contentstack/cli-cm-export/1.10.2 linux-x64 node-v18.18.2
|
|
52
52
|
$ csdx --help [COMMAND]
|
|
53
53
|
USAGE
|
|
54
54
|
$ csdx COMMAND
|
|
@@ -30,6 +30,7 @@ class ModuleExporter {
|
|
|
30
30
|
for (const branch of this.exportConfig.branches) {
|
|
31
31
|
try {
|
|
32
32
|
this.exportConfig.branchName = branch.uid;
|
|
33
|
+
this.stackAPIClient.stackHeaders.branch = branch.uid;
|
|
33
34
|
this.exportConfig.branchDir = path.join(this.exportConfig.exportDir, branch.uid);
|
|
34
35
|
(0, utils_1.log)(this.exportConfig, `Exporting content from branch ${branch.uid}`, 'success');
|
|
35
36
|
(0, utils_1.writeExportMetaFile)(this.exportConfig, this.exportConfig.branchDir);
|
|
@@ -22,7 +22,7 @@ const setupConfig = async (exportCmdFlags) => {
|
|
|
22
22
|
config.data = config.exportDir;
|
|
23
23
|
const managementTokenAlias = exportCmdFlags['management-token-alias'] || exportCmdFlags['alias'];
|
|
24
24
|
if (managementTokenAlias) {
|
|
25
|
-
const { token, apiKey } = cli_utilities_1.configHandler.get(`tokens.${managementTokenAlias}`);
|
|
25
|
+
const { token, apiKey } = cli_utilities_1.configHandler.get(`tokens.${managementTokenAlias}`) || {};
|
|
26
26
|
config.management_token = token;
|
|
27
27
|
config.apiKey = apiKey;
|
|
28
28
|
if (!config.management_token) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-export",
|
|
3
3
|
"description": "Contentstack CLI plugin to export content from stack",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.2",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-command": "~1.2.
|
|
9
|
-
"@contentstack/cli-utilities": "~1.5.
|
|
8
|
+
"@contentstack/cli-command": "~1.2.16",
|
|
9
|
+
"@contentstack/cli-utilities": "~1.5.8",
|
|
10
10
|
"@oclif/core": "^2.9.3",
|
|
11
11
|
"async": "^3.2.4",
|
|
12
12
|
"big-json": "^3.2.0",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"winston": "^3.7.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@contentstack/cli-auth": "~1.3.
|
|
28
|
-
"@contentstack/cli-config": "~1.4.
|
|
29
|
-
"@contentstack/cli-dev-dependencies": "~1.2.
|
|
27
|
+
"@contentstack/cli-auth": "~1.3.17",
|
|
28
|
+
"@contentstack/cli-config": "~1.4.15",
|
|
29
|
+
"@contentstack/cli-dev-dependencies": "~1.2.4",
|
|
30
30
|
"@oclif/plugin-help": "^5.1.19",
|
|
31
31
|
"@oclif/test": "^1.2.6",
|
|
32
32
|
"@types/big-json": "^3.2.0",
|