@contentstack/cli-migration 1.4.1 → 1.4.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
@@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration
21
21
  $ csdx COMMAND
22
22
  running command...
23
23
  $ csdx (--version)
24
- @contentstack/cli-migration/1.4.0 darwin-arm64 node-v20.8.0
24
+ @contentstack/cli-migration/1.4.2 darwin-arm64 node-v20.8.0
25
25
  $ csdx --help [COMMAND]
26
26
  USAGE
27
27
  $ csdx COMMAND
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@contentstack/cli-migration",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "author": "@contentstack",
5
5
  "bugs": "https://github.com/contentstack/cli/issues",
6
6
  "dependencies": {
7
7
  "@contentstack/cli-command": "~1.2.16",
8
- "@contentstack/cli-utilities": "~1.5.7",
8
+ "@contentstack/cli-utilities": "~1.5.9",
9
9
  "async": "^3.2.4",
10
10
  "callsites": "^3.1.0",
11
11
  "cardinal": "^2.1.1",
@@ -75,8 +75,10 @@ class MigrationCommand extends Command {
75
75
 
76
76
  if (Array.isArray(config) && config.length > 0) {
77
77
  let configObj = config.reduce((a, v) => {
78
- let objArr = v.split(':');
79
- return { ...a, [objArr[0]]: objArr[1] };
78
+ //NOTE: Temp code to handle only one spilt(Window absolute path issue).Need to replace with hardcoded config key
79
+ let [key, ...value] = v.split(':');
80
+ value = value?.length > 1 ? value?.join(':') : value?.join( );
81
+ return { ...a, [key]: value };
80
82
  }, {});
81
83
  set('config', mapInstance, configObj);
82
84
  }