@node-minify/yui 6.1.0 → 7.0.0
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/lib/yui.js +18 -18
- package/package.json +5 -5
package/LICENSE
CHANGED
package/lib/yui.js
CHANGED
|
@@ -8,26 +8,26 @@ var _run = require("@node-minify/run");
|
|
|
8
8
|
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
|
|
11
|
-
/*!
|
|
12
|
-
* node-minify
|
|
13
|
-
* Copyright(c) 2011-
|
|
14
|
-
* MIT Licensed
|
|
11
|
+
/*!
|
|
12
|
+
* node-minify
|
|
13
|
+
* Copyright(c) 2011-2022 Rodolphe Stoclin
|
|
14
|
+
* MIT Licensed
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Module dependencies.
|
|
17
|
+
/**
|
|
18
|
+
* Module dependencies.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* Module variables.
|
|
21
|
+
/**
|
|
22
|
+
* Module variables.
|
|
23
23
|
*/
|
|
24
24
|
const binYui = _path.default.normalize(__dirname + '/binaries/yuicompressor-2.4.7.jar');
|
|
25
|
-
/**
|
|
26
|
-
* Run YUI Compressor.
|
|
27
|
-
*
|
|
28
|
-
* @param {Object} settings
|
|
29
|
-
* @param {String} content
|
|
30
|
-
* @param {Function} callback
|
|
25
|
+
/**
|
|
26
|
+
* Run YUI Compressor.
|
|
27
|
+
*
|
|
28
|
+
* @param {Object} settings
|
|
29
|
+
* @param {String} content
|
|
30
|
+
* @param {Function} callback
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
|
|
@@ -66,16 +66,16 @@ const minifyYUI = ({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
-
/**
|
|
70
|
-
* YUI Compressor CSS command line.
|
|
69
|
+
/**
|
|
70
|
+
* YUI Compressor CSS command line.
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
const yuiCommand = (type = 'js', options) => {
|
|
75
75
|
return ['-jar', '-Xss2048k', binYui, '--type', type].concat(_utils.utils.buildArgs(options || {}));
|
|
76
76
|
};
|
|
77
|
-
/**
|
|
78
|
-
* Expose `minifyYUI()`.
|
|
77
|
+
/**
|
|
78
|
+
* Expose `minifyYUI()`.
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
81
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-minify/yui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "yui - yahoo compressor plugin for @node-minify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compressor",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "lib/yui.js",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">=14.0.0"
|
|
17
17
|
},
|
|
18
18
|
"directories": {
|
|
19
19
|
"lib": "lib",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"url": "https://github.com/srod/node-minify/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@node-minify/run": "^
|
|
37
|
-
"@node-minify/utils": "^
|
|
36
|
+
"@node-minify/run": "^7.0.0",
|
|
37
|
+
"@node-minify/utils": "^7.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "8b5bda6f1ac9fe7180006f2a19ec3253e8fff4ec"
|
|
40
40
|
}
|