jscrambler 8.6.0 → 8.6.1
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/CHANGELOG.md +7 -0
- package/dist/utils.js +4 -4
- package/package.json +5 -9
package/CHANGELOG.md
CHANGED
package/dist/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.concatenate = concatenate;
|
|
|
8
8
|
exports.getMatchedFiles = getMatchedFiles;
|
|
9
9
|
exports.isJavascriptFile = isJavascriptFile;
|
|
10
10
|
exports.validateNProtections = validateNProtections;
|
|
11
|
-
var _glob =
|
|
11
|
+
var _glob = require("glob");
|
|
12
12
|
var _fs = _interopRequireDefault(require("fs"));
|
|
13
13
|
var _path = require("path");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -18,7 +18,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
18
18
|
* @returns {string[]}
|
|
19
19
|
*/
|
|
20
20
|
function getMatchedFiles(pattern) {
|
|
21
|
-
let matchedFiles = _glob.
|
|
21
|
+
let matchedFiles = _glob.glob.sync(pattern, {
|
|
22
22
|
dot: true
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -43,7 +43,7 @@ const APPEND_JS_TYPE = exports.APPEND_JS_TYPE = 'append-js';
|
|
|
43
43
|
const PREPEND_JS_TYPE = exports.PREPEND_JS_TYPE = 'prepend-js';
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
*
|
|
47
47
|
* @param {*} firstFile if prepending: script file; if appending: target file.
|
|
48
48
|
* @param {*} secondFile if prepending: target file; if appending: script file.
|
|
49
49
|
* @returns first and second files concatenated
|
|
@@ -56,7 +56,7 @@ function handleScriptConcatenation(firstFile, secondFile) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
*
|
|
60
60
|
* @param {*} scriptObject the object with the script content: { target: '/path/to/target/file', source: '/path/to/script/file', type: 'append-js' | 'prepend-js' }. Its used for both appending and prepending.
|
|
61
61
|
* @param {*} cwd current working directory, passed by argument
|
|
62
62
|
* @param {*} path file path (file being parsed)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jscrambler",
|
|
3
3
|
"description": "Jscrambler API client.",
|
|
4
|
-
"version": "8.6.
|
|
4
|
+
"version": "8.6.1",
|
|
5
5
|
"homepage": "https://github.com/jscrambler/jscrambler",
|
|
6
6
|
"author": "Jscrambler <support@jscrambler.com>",
|
|
7
7
|
"repository": {
|
|
@@ -21,23 +21,19 @@
|
|
|
21
21
|
"node": ">= 12.17.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"axios": "^1.
|
|
24
|
+
"axios": "^1.7.2",
|
|
25
25
|
"commander": "^2.8.1",
|
|
26
|
-
"core-js": "^3.16.4",
|
|
27
26
|
"filesize-parser": "1.5.0",
|
|
28
|
-
"glob": "
|
|
27
|
+
"glob": "10.4.5",
|
|
29
28
|
"http-proxy-agent": "7.0.2",
|
|
30
29
|
"https-proxy-agent": "7.0.4",
|
|
31
|
-
"jszip": "^3.
|
|
30
|
+
"jszip": "^3.8.0",
|
|
32
31
|
"lodash.clone": "^4.0.3",
|
|
33
32
|
"lodash.clonedeep": "^4.5.0",
|
|
34
33
|
"lodash.defaults": "^4.0.1",
|
|
35
34
|
"lodash.keys": "^4.0.1",
|
|
36
35
|
"lodash.size": "^4.0.1",
|
|
37
|
-
"
|
|
38
|
-
"rc": "^1.1.0",
|
|
39
|
-
"snake-case": "^2.1.0",
|
|
40
|
-
"temp": "^0.8.3"
|
|
36
|
+
"rc": "^1.1.0"
|
|
41
37
|
},
|
|
42
38
|
"devDependencies": {
|
|
43
39
|
"@babel/cli": "^7.23.4",
|