@contentstack/cli-cm-export 1.5.3 → 1.5.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 +11 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
- package/src/config/default.js +3 -0
- package/src/lib/export/custom-roles.js +3 -1
package/README.md
CHANGED
|
@@ -30,6 +30,16 @@ For switching to AZURE-NA region update the hosts at config/default.js
|
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
For switching to AZURE-EU region update the hosts at config/default.js
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
{
|
|
37
|
+
host:'https://azure-eu-api.contentstack.com/v3',
|
|
38
|
+
cdn: 'https://azure-eu-cdn.contentstack.com/v3',
|
|
39
|
+
...
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
33
43
|
# Usage
|
|
34
44
|
|
|
35
45
|
<!-- usage -->
|
|
@@ -38,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export
|
|
|
38
48
|
$ csdx COMMAND
|
|
39
49
|
running command...
|
|
40
50
|
$ csdx (--version)
|
|
41
|
-
@contentstack/cli-cm-export/1.5.
|
|
51
|
+
@contentstack/cli-cm-export/1.5.4 linux-x64 node-v16.20.0
|
|
42
52
|
$ csdx --help [COMMAND]
|
|
43
53
|
USAGE
|
|
44
54
|
$ csdx COMMAND
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-export",
|
|
3
3
|
"description": "Contentstack CLI plugin to export content from stack",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.4",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"winston": "^3.7.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@contentstack/cli-auth": "^1.3.
|
|
27
|
-
"@contentstack/cli-config": "^1.4.
|
|
26
|
+
"@contentstack/cli-auth": "^1.3.4",
|
|
27
|
+
"@contentstack/cli-config": "^1.4.2",
|
|
28
28
|
"@contentstack/cli-dev-dependencies": "^1.2.2",
|
|
29
29
|
"@oclif/plugin-help": "^5.1.19",
|
|
30
30
|
"@oclif/test": "^1.2.6",
|
package/src/config/default.js
CHANGED
|
@@ -6,12 +6,15 @@ module.exports = {
|
|
|
6
6
|
'https://api.contentstack.io': 'https://developerhub-api.contentstack.com',
|
|
7
7
|
'https://eu-api.contentstack.com': 'https://eu-developerhub-api.contentstack.com',
|
|
8
8
|
'https://azure-na-api.contentstack.com': 'https://azure-na-developerhub-api.contentstack.com',
|
|
9
|
+
'https://azure-eu-api.contentstack.com': 'https://azure-eu-developerhub-api.contentstack.com',
|
|
9
10
|
'https://stag-api.csnonprod.com': 'https://stag-developerhub-api.csnonprod.com',
|
|
10
11
|
},
|
|
11
12
|
// use below hosts for eu region
|
|
12
13
|
// host:'https://eu-api.contentstack.com/v3',
|
|
13
14
|
// use below hosts for azure-na region
|
|
14
15
|
// host:'https://azure-na-api.contentstack.com/v3',
|
|
16
|
+
// use below hosts for azure-eu region
|
|
17
|
+
// host:'https://azure-eu-api.contentstack.com/v3',
|
|
15
18
|
modules: {
|
|
16
19
|
types: [
|
|
17
20
|
'stack',
|
|
@@ -82,7 +82,9 @@ module.exports = class ExportCustomRoles {
|
|
|
82
82
|
sourceLocalesMap[locale.uid] = locale;
|
|
83
83
|
}
|
|
84
84
|
for (const locale in localesMap) {
|
|
85
|
-
|
|
85
|
+
if(sourceLocalesMap[locale]!==undefined) {
|
|
86
|
+
delete sourceLocalesMap[locale]['stackHeaders'];
|
|
87
|
+
}
|
|
86
88
|
localesMap[locale] = sourceLocalesMap[locale];
|
|
87
89
|
}
|
|
88
90
|
helper.writeFileSync(customRolesLocalesFilepath, localesMap);
|