@contentstack/cli-cm-import 1.5.3 → 1.5.5

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
@@ -29,6 +29,16 @@ For switching to AZURE-NA region update the hosts at config/default.js
29
29
  }
30
30
  ```
31
31
 
32
+ For switching to AZURE-EU region update the hosts at config/default.js
33
+
34
+ ```js
35
+ {
36
+ host:'https://azure-eu-api.contentstack.com/v3',
37
+ cdn: 'https://azure-eu-cdn.contentstack.com/v3'
38
+ ...
39
+ }
40
+ ```
41
+
32
42
  # Usage
33
43
 
34
44
  <!-- usage -->
@@ -37,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import
37
47
  $ csdx COMMAND
38
48
  running command...
39
49
  $ csdx (--version)
40
- @contentstack/cli-cm-import/1.5.3 linux-x64 node-v16.20.0
50
+ @contentstack/cli-cm-import/1.5.5 linux-x64 node-v16.20.0
41
51
  $ csdx --help [COMMAND]
42
52
  USAGE
43
53
  $ csdx COMMAND
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.3",
2
+ "version": "1.5.5",
3
3
  "commands": {
4
4
  "cm:stacks:import": {
5
5
  "id": "cm:stacks:import",
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-import",
3
3
  "description": "Contentstack CLI plugin to import content into stack",
4
- "version": "1.5.3",
4
+ "version": "1.5.5",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-command": "^1.2.4",
8
+ "@contentstack/cli-command": "^1.2.5",
9
9
  "@contentstack/cli-utilities": "^1.4.1",
10
10
  "@oclif/config": "^1.18.3",
11
11
  "big-json": "^3.2.0",
@@ -4,6 +4,8 @@ module.exports = {
4
4
  // host:'https://eu-api.contentstack.com/v3',
5
5
  // use below hosts for azure-na region
6
6
  // host:'https://azure-na-api.contentstack.com/v3',
7
+ // use below hosts for azure-eu region
8
+ // host:'https://azure-eu-api.contentstack.com/v3',
7
9
  // pass locale, only to migrate entries from that locale
8
10
  // not passing `locale` will migrate all the locales present
9
11
  // locales: ['fr-fr'],
@@ -13,6 +15,7 @@ module.exports = {
13
15
  'https://api.contentstack.io': 'https://developerhub-api.contentstack.com',
14
16
  'https://eu-api.contentstack.com': 'https://eu-developerhub-api.contentstack.com',
15
17
  'https://azure-na-api.contentstack.com': 'https://azure-na-developerhub-api.contentstack.com',
18
+ 'https://azure-eu-api.contentstack.com': 'https://azure-eu-developerhub-api.contentstack.com',
16
19
  'https://stag-api.csnonprod.com': 'https://stag-developerhub-api.csnonprod.com',
17
20
  },
18
21
  modules: {
@@ -299,7 +299,7 @@ function findFileUrls(schema, _entry, assetUrls) {
299
299
  text = JSON.stringify(_entry);
300
300
  }
301
301
  markdownRegEx = new RegExp(
302
- '(https://(assets|(eu-|azure-na-)?images).contentstack.(io|com)/v3/assets/(.*?)/(.*?)/(.*?)/(.*?)(?="))',
302
+ '(https://(assets|(eu-|azure-na-|azure-eu-)?images).contentstack.(io|com)/v3/assets/(.*?)/(.*?)/(.*?)/(.*?)(?="))',
303
303
  'g',
304
304
  );
305
305
  while ((markdownMatch = markdownRegEx.exec(text)) !== null) {