@contentstack/cli-cm-clone 1.10.4 → 1.10.6
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 +1 -1
- package/package.json +5 -5
- package/src/lib/util/log.js +4 -4
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone
|
|
|
16
16
|
$ csdx COMMAND
|
|
17
17
|
running command...
|
|
18
18
|
$ csdx (--version)
|
|
19
|
-
@contentstack/cli-cm-clone/1.10.
|
|
19
|
+
@contentstack/cli-cm-clone/1.10.6 darwin-arm64 node-v22.2.0
|
|
20
20
|
$ csdx --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ csdx COMMAND
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-clone",
|
|
3
3
|
"description": "Contentstack stack clone plugin",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.6",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@colors/colors": "^1.5.0",
|
|
9
|
-
"@contentstack/cli-cm-export": "~1.11.
|
|
10
|
-
"@contentstack/cli-cm-import": "~1.
|
|
9
|
+
"@contentstack/cli-cm-export": "~1.11.5",
|
|
10
|
+
"@contentstack/cli-cm-import": "~1.16.0",
|
|
11
11
|
"@contentstack/cli-command": "~1.2.18",
|
|
12
|
-
"@contentstack/cli-utilities": "~1.6.
|
|
12
|
+
"@contentstack/cli-utilities": "~1.6.3",
|
|
13
13
|
"async": "^3.2.4",
|
|
14
14
|
"chalk": "^4.1.0",
|
|
15
15
|
"child_process": "^1.0.2",
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
"cm:stack-clone": "O-CLN"
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
}
|
|
75
|
+
}
|
package/src/lib/util/log.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Contentstack Import
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Contentstack LLC
|
|
4
4
|
* MIT Licensed
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
var winston = require('winston');
|
|
8
8
|
var path = require('path');
|
|
9
9
|
var mkdirp = require('mkdirp');
|
|
10
|
-
const { pathValidator } = require('@contentstack/cli-utilities');
|
|
10
|
+
const { pathValidator, sanitizePath } = require('@contentstack/cli-utilities');
|
|
11
11
|
var slice = Array.prototype.slice;
|
|
12
12
|
|
|
13
13
|
function returnString(args) {
|
|
@@ -42,10 +42,10 @@ var myCustomLevels = {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
function init(_logPath, logfileName) {
|
|
45
|
-
var logsDir = pathValidator(path.resolve(_logPath, 'logs', 'import'));
|
|
45
|
+
var logsDir = pathValidator(path.resolve(sanitizePath(_logPath), 'logs', 'import'));
|
|
46
46
|
// Create dir if doesn't already exist
|
|
47
47
|
mkdirp.sync(logsDir);
|
|
48
|
-
var logPath = path.join(logsDir, pathValidator(logfileName) + '.log');
|
|
48
|
+
var logPath = path.join(sanitizePath(logsDir), pathValidator(sanitizePath(logfileName)) + '.log');
|
|
49
49
|
|
|
50
50
|
var transports = [
|
|
51
51
|
new winston.transports.File({
|