@contentstack/cli-migration 1.10.0 → 1.10.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/LICENSE +1 -1
- package/README.md +1 -1
- package/package.json +3 -3
- package/src/modules/parser.js +1 -1
- package/src/utils/error-helper.js +1 -1
- package/src/utils/modules.js +1 -1
package/LICENSE
CHANGED
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.
|
|
24
|
+
@contentstack/cli-migration/1.10.2 darwin-arm64 node-v22.14.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.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"author": "@contentstack",
|
|
5
5
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@contentstack/cli-command": "~1.
|
|
8
|
-
"@contentstack/cli-utilities": "~1.
|
|
7
|
+
"@contentstack/cli-command": "~1.7.1",
|
|
8
|
+
"@contentstack/cli-utilities": "~1.16.0",
|
|
9
9
|
"@oclif/core": "^4.3.0",
|
|
10
10
|
"@oclif/plugin-help": "^6.2.28",
|
|
11
11
|
"async": "^3.2.6",
|
package/src/modules/parser.js
CHANGED
|
@@ -72,7 +72,7 @@ class Parser {
|
|
|
72
72
|
base.dispatch(callsite, null, { typeErrors }, 'typeError');
|
|
73
73
|
}
|
|
74
74
|
} else {
|
|
75
|
-
console.log(error);
|
|
75
|
+
console.log('Error', error);
|
|
76
76
|
// eslint-disable-next-line
|
|
77
77
|
const [, filename, line] = error.stack.match(/\/([\/\w-_\.]+\.js):(\d*):(\d*)/);
|
|
78
78
|
const callsite = {
|
|
@@ -95,7 +95,7 @@ module.exports = (errors, filePath) => {
|
|
|
95
95
|
}
|
|
96
96
|
if (isEmpty(messages) && errors !== undefined && isEmpty(errorsByFile)) {
|
|
97
97
|
logger.log('error', { errors: errors });
|
|
98
|
-
console.log(chalk`{bold.red
|
|
98
|
+
console.log(chalk`{bold.red migration unsuccessful}`);
|
|
99
99
|
} else {
|
|
100
100
|
logger.log('error', { error: messages.join('\n') });
|
|
101
101
|
}
|
package/src/utils/modules.js
CHANGED
|
@@ -12,7 +12,7 @@ function checkWritePermissionToDirectory(directory) {
|
|
|
12
12
|
fs.accessSync(directory, fs.constants.W_OK);
|
|
13
13
|
return true;
|
|
14
14
|
} catch (err) {
|
|
15
|
-
console.log(`Permission
|
|
15
|
+
console.log(`Permission denied. You do not have the necessary write access for this directory.`);
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
18
18
|
}
|