@contentstack/cli-cm-import 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 +1 -1
- package/src/config/default.js +3 -0
- package/src/lib/util/lookupReplaceAssets.js +1 -1
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.
|
|
50
|
+
@contentstack/cli-cm-import/1.5.4 linux-x64 node-v16.20.0
|
|
41
51
|
$ csdx --help [COMMAND]
|
|
42
52
|
USAGE
|
|
43
53
|
$ csdx COMMAND
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
package/src/config/default.js
CHANGED
|
@@ -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) {
|