weboptimizer 2.0.1516 → 2.0.1518
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 +2 -2
- package/eslint.config.mjs +2 -1
- package/index.js +2 -2
- package/package.json +15 -15
package/browser.js
CHANGED
|
@@ -53,7 +53,7 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
|
|
|
53
53
|
NOTE: We use an asynchronous wrapper method to initialize
|
|
54
54
|
"browser.initialized" at module loading time.
|
|
55
55
|
*/
|
|
56
|
-
(0, _asyncToGenerator2["default"])(
|
|
56
|
+
(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
57
57
|
var _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, JSDOM, VirtualConsoleImplementation, path, virtualConsole, _iterator, _step, name, render, filePath, ejsLoader, content;
|
|
58
58
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
59
59
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -220,7 +220,7 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
|
|
|
220
220
|
* @returns Determined environment.
|
|
221
221
|
*/
|
|
222
222
|
var getInitializedBrowser = exports.getInitializedBrowser = /*#__PURE__*/function () {
|
|
223
|
-
var _ref3 = (0, _asyncToGenerator2["default"])(
|
|
223
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
224
224
|
var replaceWindow,
|
|
225
225
|
resolvePromise,
|
|
226
226
|
promise,
|
package/eslint.config.mjs
CHANGED
|
@@ -83,9 +83,10 @@ export const config = typescript.config({
|
|
|
83
83
|
reportUsedIgnorePattern: false
|
|
84
84
|
}],
|
|
85
85
|
// NOTE: Too strcit for now but could be actvated in future maybe.
|
|
86
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
|
|
87
|
+
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
|
86
88
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
87
89
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
88
|
-
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
|
89
90
|
'jsdoc/check-param-names': 'error',
|
|
90
91
|
'jsdoc/check-tag-names': 'error',
|
|
91
92
|
'jsdoc/require-description-complete-sentence': 'error',
|
package/index.js
CHANGED
|
@@ -63,7 +63,7 @@ var main = function main(context) {
|
|
|
63
63
|
var commandLineArguments = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : process.argv;
|
|
64
64
|
var webOptimizerPath = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : __dirname;
|
|
65
65
|
var environment = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : eval('process.env');
|
|
66
|
-
return (0, _asyncToGenerator2["default"])(
|
|
66
|
+
return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
67
67
|
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, _iterator11, _step11, closeEventName;
|
|
68
68
|
return _regenerator["default"].wrap(function _callee2$(_context3) {
|
|
69
69
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -146,7 +146,7 @@ var main = function main(context) {
|
|
|
146
146
|
}
|
|
147
147
|
_context3.next = 33;
|
|
148
148
|
return (0, _clientnode.walkDirectoryRecursively)(configuration.path.target.base, /*#__PURE__*/function () {
|
|
149
|
-
var _ref2 = (0, _asyncToGenerator2["default"])(
|
|
149
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(file) {
|
|
150
150
|
var type, _file$stats;
|
|
151
151
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
152
152
|
while (1) switch (_context.prev = _context.next) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1518",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
},
|
|
90
90
|
"runkitExample": "require('@babel/runtime/package.json')\n\nconst {default: main} = require('weboptimizer')\n\nawait main('./', './', ['clear'])",
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@babel/core": "^7.25.
|
|
92
|
+
"@babel/core": "^7.25.7",
|
|
93
93
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
94
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
94
|
+
"@babel/plugin-proposal-decorators": "^7.25.7",
|
|
95
95
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
96
|
-
"@babel/plugin-transform-runtime": "^7.25.
|
|
97
|
-
"@babel/preset-env": "^7.25.
|
|
98
|
-
"@babel/preset-typescript": "^7.
|
|
99
|
-
"@babel/runtime": "^7.25.
|
|
96
|
+
"@babel/plugin-transform-runtime": "^7.25.7",
|
|
97
|
+
"@babel/preset-env": "^7.25.7",
|
|
98
|
+
"@babel/preset-typescript": "^7.25.7",
|
|
99
|
+
"@babel/runtime": "^7.25.7",
|
|
100
100
|
"babel-loader": "^9.2.1",
|
|
101
101
|
"babel-plugin-transform-modern-regexp": "^0.0.6",
|
|
102
102
|
"babel-preset-minify": "^0.5.2",
|
|
103
|
-
"clientnode": "3.0.
|
|
103
|
+
"clientnode": "3.0.1192",
|
|
104
104
|
"ejs": "^3.1.10",
|
|
105
105
|
"exports-loader": "^5.0.0",
|
|
106
106
|
"extract-loader": "^5.1.0",
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
"webpack-sources": "^3.2.3"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@babel/cli": "^7.25.
|
|
122
|
-
"@babel/eslint-parser": "^7.25.
|
|
121
|
+
"@babel/cli": "^7.25.7",
|
|
122
|
+
"@babel/eslint-parser": "^7.25.7",
|
|
123
123
|
"@stylistic/eslint-plugin": "^2.8.0",
|
|
124
124
|
"@stylistic/eslint-plugin-ts": "^2.8.0",
|
|
125
125
|
"@types/ejs": "^3.1.5",
|
|
@@ -132,16 +132,16 @@
|
|
|
132
132
|
"@types/postcss-url": "^10.0.4",
|
|
133
133
|
"@types/webpack-env": "^1.18.5",
|
|
134
134
|
"@types/webpack-sources": "^3.2.3",
|
|
135
|
-
"@typescript-eslint/parser": "^8.
|
|
135
|
+
"@typescript-eslint/parser": "^8.8.0",
|
|
136
136
|
"css-loader": "^7.1.2",
|
|
137
137
|
"cssnano": "^7.0.6",
|
|
138
|
-
"documentation-website": "^1.0.
|
|
138
|
+
"documentation-website": "^1.0.333",
|
|
139
139
|
"eslint": "^9.11.1",
|
|
140
140
|
"eslint-config-google": "^0.14.0",
|
|
141
|
-
"eslint-plugin-jsdoc": "^50.3.
|
|
141
|
+
"eslint-plugin-jsdoc": "^50.3.1",
|
|
142
142
|
"favicons": "^7.2.0",
|
|
143
143
|
"favicons-webpack-plugin": "^6.0.1",
|
|
144
|
-
"globals": "^15.
|
|
144
|
+
"globals": "^15.10.0",
|
|
145
145
|
"image-minimizer-webpack-plugin": "^4.1.0",
|
|
146
146
|
"jest": "^29.7.0",
|
|
147
147
|
"jsdoc": "^4.0.3",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"stylelint": "^16.9.0",
|
|
161
161
|
"stylelint-config-standard": "^36.0.1",
|
|
162
162
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
163
|
-
"typescript-eslint": "^8.
|
|
163
|
+
"typescript-eslint": "^8.8.0",
|
|
164
164
|
"typescript-plugin-css-modules": "^5.1.0",
|
|
165
165
|
"workbox-webpack-plugin": "^7.1.0"
|
|
166
166
|
},
|