weboptimizer 2.0.1597 → 2.0.1599
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/browser.js +3 -4
- package/index.js +15 -16
- package/package.json +24 -24
package/browser.js
CHANGED
|
@@ -29,7 +29,7 @@ var _clientnode = require("clientnode");
|
|
|
29
29
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30
30
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
31
31
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
32
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var
|
|
32
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
33
33
|
// endregion
|
|
34
34
|
// region declaration
|
|
35
35
|
|
|
@@ -53,7 +53,7 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
|
|
|
53
53
|
"browser.initialized" at module loading time.
|
|
54
54
|
*/
|
|
55
55
|
(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
56
|
-
var _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, JSDOM, VirtualConsoleImplementation, path, virtualConsole, _iterator, _step, name, render, filePath, ejsLoader, content, _t
|
|
56
|
+
var _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, JSDOM, VirtualConsoleImplementation, path, virtualConsole, _iterator, _step, name, render, filePath, ejsLoader, content, _t;
|
|
57
57
|
return _regenerator["default"].wrap(function (_context) {
|
|
58
58
|
while (1) switch (_context.prev = _context.next) {
|
|
59
59
|
case 0:
|
|
@@ -178,8 +178,7 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
|
|
|
178
178
|
return _interopRequireWildcard(require('webOptimizerDefaultTemplateFilePath'));
|
|
179
179
|
});
|
|
180
180
|
case 6:
|
|
181
|
-
|
|
182
|
-
_t(_t2);
|
|
181
|
+
_t(_context.sent);
|
|
183
182
|
case 7:
|
|
184
183
|
case "end":
|
|
185
184
|
return _context.stop();
|
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var _path = _interopRequireWildcard(require("path"));
|
|
|
37
37
|
var _rimraf = require("rimraf");
|
|
38
38
|
var _configurator = require("./configurator");
|
|
39
39
|
var _helper = require("./helper");
|
|
40
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var
|
|
40
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t9 in e) "default" !== _t9 && {}.hasOwnProperty.call(e, _t9) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t9)) && (i.get || i.set) ? o(f, _t9, i) : f[_t9] = e[_t9]); return f; })(e, t); }
|
|
41
41
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
42
42
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
43
43
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -63,7 +63,7 @@ var main = function main(context) {
|
|
|
63
63
|
var webOptimizerPath = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : __dirname;
|
|
64
64
|
var environment = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : eval('process.env');
|
|
65
65
|
return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
66
|
-
var configuration, clear, processOptions, childProcessOptions, childProcesses, processPromises, possibleArguments, closeEventHandlers, dynamicConfiguration, count, filePath, additionalArguments, _iterator, _step, file, _iterator2, _step2, _filePath, buildConfigurations, tidiedUp, tidyUp, testModuleFilePaths, _iterator7, _step7, buildConfiguration, expression, _iterator8, _step8, _loop, handleTask, finished, closeHandler, _iterator1, _step1, closeEventName, _t3, _t4, _t5, _t6, _t7, _t8
|
|
66
|
+
var configuration, clear, processOptions, childProcessOptions, childProcesses, processPromises, possibleArguments, closeEventHandlers, dynamicConfiguration, count, filePath, additionalArguments, _iterator, _step, file, _iterator2, _step2, _filePath, buildConfigurations, tidiedUp, tidyUp, testModuleFilePaths, _iterator7, _step7, buildConfiguration, expression, _iterator8, _step8, _loop, handleTask, finished, closeHandler, _iterator1, _step1, closeEventName, _t3, _t4, _t5, _t6, _t7, _t8;
|
|
67
67
|
return _regenerator["default"].wrap(function (_context3) {
|
|
68
68
|
while (1) switch (_context3.prev = _context3.next) {
|
|
69
69
|
case 0:
|
|
@@ -204,8 +204,7 @@ var main = function main(context) {
|
|
|
204
204
|
return false;
|
|
205
205
|
}, configuration.encoding);
|
|
206
206
|
case 8:
|
|
207
|
-
|
|
208
|
-
_iterator = _t3(_t4);
|
|
207
|
+
_iterator = _t3(_context3.sent);
|
|
209
208
|
_context3.prev = 9;
|
|
210
209
|
_iterator.s();
|
|
211
210
|
case 10:
|
|
@@ -228,8 +227,8 @@ var main = function main(context) {
|
|
|
228
227
|
break;
|
|
229
228
|
case 13:
|
|
230
229
|
_context3.prev = 13;
|
|
231
|
-
|
|
232
|
-
_iterator.e(
|
|
230
|
+
_t4 = _context3["catch"](9);
|
|
231
|
+
_iterator.e(_t4);
|
|
233
232
|
case 14:
|
|
234
233
|
_context3.prev = 14;
|
|
235
234
|
_iterator.f();
|
|
@@ -470,8 +469,8 @@ var main = function main(context) {
|
|
|
470
469
|
break;
|
|
471
470
|
case 28:
|
|
472
471
|
_context3.prev = 28;
|
|
473
|
-
|
|
474
|
-
_iterator8.e(
|
|
472
|
+
_t5 = _context3["catch"](24);
|
|
473
|
+
_iterator8.e(_t5);
|
|
475
474
|
case 29:
|
|
476
475
|
_context3.prev = 29;
|
|
477
476
|
_iterator8.f();
|
|
@@ -484,8 +483,8 @@ var main = function main(context) {
|
|
|
484
483
|
break;
|
|
485
484
|
case 32:
|
|
486
485
|
_context3.prev = 32;
|
|
487
|
-
|
|
488
|
-
_iterator7.e(
|
|
486
|
+
_t6 = _context3["catch"](22);
|
|
487
|
+
_iterator7.e(_t6);
|
|
489
488
|
case 33:
|
|
490
489
|
_context3.prev = 33;
|
|
491
490
|
_iterator7.f();
|
|
@@ -579,22 +578,22 @@ var main = function main(context) {
|
|
|
579
578
|
break;
|
|
580
579
|
case 40:
|
|
581
580
|
_context3.prev = 40;
|
|
582
|
-
|
|
583
|
-
console.error(
|
|
584
|
-
process.exit(
|
|
581
|
+
_t7 = _context3["catch"](38);
|
|
582
|
+
console.error(_t7);
|
|
583
|
+
process.exit(_t7.returnCode);
|
|
585
584
|
case 41:
|
|
586
585
|
_context3.next = 44;
|
|
587
586
|
break;
|
|
588
587
|
case 42:
|
|
589
588
|
_context3.prev = 42;
|
|
590
|
-
|
|
589
|
+
_t8 = _context3["catch"](1);
|
|
591
590
|
if (!configuration.debug) {
|
|
592
591
|
_context3.next = 43;
|
|
593
592
|
break;
|
|
594
593
|
}
|
|
595
|
-
throw
|
|
594
|
+
throw _t8;
|
|
596
595
|
case 43:
|
|
597
|
-
console.error(
|
|
596
|
+
console.error(_t8);
|
|
598
597
|
case 44:
|
|
599
598
|
return _context3.abrupt("return", clear);
|
|
600
599
|
case 45:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1599",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -86,63 +86,63 @@
|
|
|
86
86
|
},
|
|
87
87
|
"runkitExample": "require('@babel/runtime/package.json')\n\nconst {default: main} = require('weboptimizer')\n\nawait main('./', './', ['clear'])",
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@babel/core": "^7.28.
|
|
89
|
+
"@babel/core": "^7.28.3",
|
|
90
90
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
91
91
|
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
92
92
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
93
93
|
"@babel/plugin-syntax-top-level-await": "^7.14.5",
|
|
94
|
-
"@babel/plugin-transform-runtime": "^7.28.
|
|
95
|
-
"@babel/preset-env": "^7.28.
|
|
94
|
+
"@babel/plugin-transform-runtime": "^7.28.3",
|
|
95
|
+
"@babel/preset-env": "^7.28.3",
|
|
96
96
|
"@babel/preset-typescript": "^7.27.1",
|
|
97
|
-
"@babel/runtime": "^7.
|
|
97
|
+
"@babel/runtime": "^7.28.3",
|
|
98
98
|
"babel-loader": "^10.0.0",
|
|
99
99
|
"babel-plugin-transform-modern-regexp": "^0.0.6",
|
|
100
100
|
"babel-preset-minify": "^0.5.2",
|
|
101
|
-
"clientnode": "3.0.
|
|
101
|
+
"clientnode": "3.0.1303",
|
|
102
102
|
"ejs": "^3.1.10",
|
|
103
103
|
"exports-loader": "^5.0.0",
|
|
104
104
|
"extract-loader": "^5.1.0",
|
|
105
105
|
"glob-all": "^3.3.1",
|
|
106
106
|
"html-loader": "^5.1.0",
|
|
107
107
|
"html-minifier": "^4.0.0",
|
|
108
|
-
"html-webpack-plugin": "^5.6.
|
|
108
|
+
"html-webpack-plugin": "^5.6.4",
|
|
109
109
|
"imports-loader": "^5.0.0",
|
|
110
|
-
"jest-environment-jsdom": "^30.0.
|
|
110
|
+
"jest-environment-jsdom": "^30.0.5",
|
|
111
111
|
"rimraf": "^6.0.1",
|
|
112
112
|
"script-loader": "^0.7.2",
|
|
113
|
-
"typescript": "^5.
|
|
114
|
-
"webpack": "^5.
|
|
113
|
+
"typescript": "^5.9.2",
|
|
114
|
+
"webpack": "^5.101.3",
|
|
115
115
|
"webpack-cli": "^6.0.1",
|
|
116
116
|
"webpack-sources": "^3.3.3"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@babel/cli": "^7.28.
|
|
119
|
+
"@babel/cli": "^7.28.3",
|
|
120
120
|
"@babel/eslint-parser": "^7.28.0",
|
|
121
|
-
"@stylistic/eslint-plugin": "^5.
|
|
121
|
+
"@stylistic/eslint-plugin": "^5.2.3",
|
|
122
122
|
"@types/ejs": "^3.1.5",
|
|
123
123
|
"@types/eslint": "^9.6.1",
|
|
124
124
|
"@types/html-minifier": "^4.0.5",
|
|
125
125
|
"@types/html-minifier-terser": "^7.0.2",
|
|
126
126
|
"@types/imagemin": "^9.0.1",
|
|
127
|
-
"@types/node": "^24.0
|
|
127
|
+
"@types/node": "^24.3.0",
|
|
128
128
|
"@types/postcss-import": "^14.0.3",
|
|
129
129
|
"@types/postcss-url": "^10.0.4",
|
|
130
130
|
"@types/webpack-env": "^1.18.8",
|
|
131
131
|
"@types/webpack-sources": "^3.2.3",
|
|
132
|
-
"@typescript-eslint/parser": "^8.
|
|
132
|
+
"@typescript-eslint/parser": "^8.40.0",
|
|
133
133
|
"css-loader": "^7.1.2",
|
|
134
134
|
"cssnano": "^7.1.0",
|
|
135
|
-
"documentation-website": "^1.0.
|
|
136
|
-
"eslint": "^9.
|
|
135
|
+
"documentation-website": "^1.0.394",
|
|
136
|
+
"eslint": "^9.33.0",
|
|
137
137
|
"eslint-config-google": "^0.14.0",
|
|
138
|
-
"eslint-plugin-jsdoc": "^
|
|
138
|
+
"eslint-plugin-jsdoc": "^54.1.1",
|
|
139
139
|
"favicons": "^7.2.0",
|
|
140
140
|
"favicons-webpack-plugin": "^6.0.1",
|
|
141
141
|
"globals": "^16.3.0",
|
|
142
|
-
"image-minimizer-webpack-plugin": "^4.1.
|
|
143
|
-
"jest": "^30.0.
|
|
142
|
+
"image-minimizer-webpack-plugin": "^4.1.4",
|
|
143
|
+
"jest": "^30.0.5",
|
|
144
144
|
"jsdoc": "^4.0.4",
|
|
145
|
-
"mini-css-extract-plugin": "^2.9.
|
|
145
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
146
146
|
"mkdirp": "^3.0.1",
|
|
147
147
|
"node-fetch": "^3.3.2",
|
|
148
148
|
"postcss": "^8.5.6",
|
|
@@ -154,11 +154,11 @@
|
|
|
154
154
|
"postcss-url": "^10.1.3",
|
|
155
155
|
"shx": "^0.4.0",
|
|
156
156
|
"style-loader": "^4.0.0",
|
|
157
|
-
"stylelint": "^16.
|
|
158
|
-
"stylelint-config-standard": "^
|
|
157
|
+
"stylelint": "^16.23.1",
|
|
158
|
+
"stylelint-config-standard": "^39.0.0",
|
|
159
159
|
"stylelint-config-standard-scss": "^15.0.1",
|
|
160
|
-
"typescript-eslint": "^8.
|
|
161
|
-
"typescript-plugin-css-modules": "^5.
|
|
160
|
+
"typescript-eslint": "^8.40.0",
|
|
161
|
+
"typescript-plugin-css-modules": "^5.2.0",
|
|
162
162
|
"workbox-webpack-plugin": "^7.3.0"
|
|
163
163
|
},
|
|
164
164
|
"peerDependencies": {
|