@contentstack/cli-cm-export 1.5.2 → 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 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.2 linux-x64 node-v16.20.0
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.2",
2
+ "version": "1.5.4",
3
3
  "commands": {
4
4
  "cm:stacks:export": {
5
5
  "id": "cm:stacks:export",
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.5.2",
4
+ "version": "1.5.4",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-command": "^1.2.3",
9
- "@contentstack/cli-utilities": "^1.4.0",
8
+ "@contentstack/cli-command": "^1.2.4",
9
+ "@contentstack/cli-utilities": "^1.4.1",
10
10
  "@oclif/command": "^1.8.16",
11
11
  "@oclif/config": "^1.18.3",
12
12
  "async": "^3.2.4",
@@ -23,9 +23,9 @@
23
23
  "winston": "^3.7.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@contentstack/cli-auth": "^1.3.1",
27
- "@contentstack/cli-config": "^1.3.1",
28
- "@contentstack/cli-dev-dependencies": "^1.2.0",
26
+ "@contentstack/cli-auth": "^1.3.4",
27
+ "@contentstack/cli-config": "^1.4.2",
28
+ "@contentstack/cli-dev-dependencies": "^1.2.2",
29
29
  "@oclif/plugin-help": "^5.1.19",
30
30
  "@oclif/test": "^1.2.6",
31
31
  "assert": "^2.0.0",
@@ -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
- delete sourceLocalesMap[locale]['stackHeaders'];
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);