weboptimizer 3.0.21 → 3.0.22-2
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 +11 -2
- package/package.json +17 -18
- package/readme.md +2 -2
package/browser.js
CHANGED
|
@@ -95,7 +95,16 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
|
|
|
95
95
|
beforeParse: function beforeParse(window) {
|
|
96
96
|
var _ref2;
|
|
97
97
|
// We want to use it in a polymorphic way.
|
|
98
|
+
/*
|
|
99
|
+
eslint-disable
|
|
100
|
+
@typescript-eslint/no-unnecessary-type-assertion
|
|
101
|
+
*/
|
|
98
102
|
browser.window = (_ref2 = global.window) !== null && _ref2 !== void 0 ? _ref2 : window;
|
|
103
|
+
/*
|
|
104
|
+
eslint-enable
|
|
105
|
+
@typescript-eslint/no-unnecessary-type-assertion
|
|
106
|
+
*/
|
|
107
|
+
|
|
99
108
|
window.document.addEventListener('DOMContentLoaded', function () {
|
|
100
109
|
/*
|
|
101
110
|
Move template results into global
|
|
@@ -129,7 +138,7 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
|
|
|
129
138
|
try {
|
|
130
139
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
131
140
|
var callback = _step3.value;
|
|
132
|
-
callback();
|
|
141
|
+
void callback();
|
|
133
142
|
}
|
|
134
143
|
} catch (err) {
|
|
135
144
|
_iterator3.e(err);
|
|
@@ -204,7 +213,7 @@ if (typeof TARGET_TECHNOLOGY === 'undefined' || TARGET_TECHNOLOGY === 'node')
|
|
|
204
213
|
try {
|
|
205
214
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
206
215
|
var callback = _step4.value;
|
|
207
|
-
callback();
|
|
216
|
+
void callback();
|
|
208
217
|
}
|
|
209
218
|
} catch (err) {
|
|
210
219
|
_iterator4.e(err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.22-2",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -82,9 +82,8 @@
|
|
|
82
82
|
"test:coverage:report": "yarn test:coverage --coverageDirectory=.coverage --coverageReporters=lcov --outputFile=lcov.info",
|
|
83
83
|
"test:watch": "yarn test --watch",
|
|
84
84
|
"test:watch:all": "yarn test --watchAll",
|
|
85
|
-
"update:documentation": "documentation
|
|
85
|
+
"update:documentation": "web-documentation"
|
|
86
86
|
},
|
|
87
|
-
"runkitExample": "require('@babel/runtime/package.json')\n\nconst {default: main} = require('weboptimizer')\n\nawait main('./', './', ['clear'])",
|
|
88
87
|
"dependencies": {
|
|
89
88
|
"@babel/core": "^7.29.0",
|
|
90
89
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -98,20 +97,20 @@
|
|
|
98
97
|
"babel-loader": "^10.1.1",
|
|
99
98
|
"babel-plugin-transform-modern-regexp": "^0.0.6",
|
|
100
99
|
"babel-preset-minify": "^0.5.2",
|
|
101
|
-
"clientnode": "4.0.
|
|
102
|
-
"ejs": "^5.0.
|
|
100
|
+
"clientnode": "4.0.1388",
|
|
101
|
+
"ejs": "^5.0.2",
|
|
103
102
|
"exports-loader": "^5.0.0",
|
|
104
103
|
"extract-loader": "^5.1.0",
|
|
105
104
|
"glob-all": "^3.3.1",
|
|
106
105
|
"html-loader": "^5.1.0",
|
|
107
106
|
"html-minifier": "^4.0.0",
|
|
108
|
-
"html-webpack-plugin": "^5.6.
|
|
107
|
+
"html-webpack-plugin": "^5.6.7",
|
|
109
108
|
"imports-loader": "^5.0.0",
|
|
110
109
|
"jest-environment-jsdom": "^30.3.0",
|
|
111
110
|
"rimraf": "^6.1.3",
|
|
112
111
|
"script-loader": "^0.7.2",
|
|
113
|
-
"typescript": "^6.0.
|
|
114
|
-
"webpack": "^5.106.
|
|
112
|
+
"typescript": "^6.0.3",
|
|
113
|
+
"webpack": "^5.106.2",
|
|
115
114
|
"webpack-cli": "^7.0.2",
|
|
116
115
|
"webpack-sources": "^3.3.4"
|
|
117
116
|
},
|
|
@@ -130,36 +129,36 @@
|
|
|
130
129
|
"@types/postcss-url": "^10.0.4",
|
|
131
130
|
"@types/webpack-env": "^1.18.8",
|
|
132
131
|
"@types/webpack-sources": "^3.2.3",
|
|
133
|
-
"@typescript-eslint/parser": "^8.
|
|
132
|
+
"@typescript-eslint/parser": "^8.59.0",
|
|
134
133
|
"css-loader": "^7.1.4",
|
|
135
|
-
"cssnano": "^7.1.
|
|
136
|
-
"
|
|
137
|
-
"eslint": "^10.2.0",
|
|
134
|
+
"cssnano": "^7.1.7",
|
|
135
|
+
"eslint": "^10.2.1",
|
|
138
136
|
"eslint-config-google": "^0.14.0",
|
|
139
137
|
"eslint-plugin-jsdoc": "^62.9.0",
|
|
140
138
|
"favicons": "^7.2.0",
|
|
141
139
|
"favicons-webpack-plugin": "^6.0.1",
|
|
142
|
-
"globals": "^17.
|
|
140
|
+
"globals": "^17.5.0",
|
|
143
141
|
"image-minimizer-webpack-plugin": "^5.0.0",
|
|
144
142
|
"jest": "^30.3.0",
|
|
145
143
|
"jsdoc": "^4.0.5",
|
|
146
144
|
"mini-css-extract-plugin": "^2.10.2",
|
|
147
145
|
"mkdirp": "^3.0.1",
|
|
148
146
|
"node-fetch": "^3.3.2",
|
|
149
|
-
"postcss": "^8.5.
|
|
147
|
+
"postcss": "^8.5.10",
|
|
150
148
|
"postcss-fontpath": "^1.0.0",
|
|
151
149
|
"postcss-import": "^16.1.1",
|
|
152
150
|
"postcss-loader": "^8.2.1",
|
|
153
|
-
"postcss-preset-env": "^11.2.
|
|
151
|
+
"postcss-preset-env": "^11.2.1",
|
|
154
152
|
"postcss-sprites": "^4.2.1",
|
|
155
153
|
"postcss-url": "^10.1.3",
|
|
156
154
|
"shx": "^0.4.0",
|
|
157
155
|
"style-loader": "^4.0.0",
|
|
158
|
-
"stylelint": "^17.
|
|
156
|
+
"stylelint": "^17.8.0",
|
|
159
157
|
"stylelint-config-standard": "^40.0.0",
|
|
160
158
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
161
|
-
"typescript-eslint": "^8.
|
|
159
|
+
"typescript-eslint": "^8.59.0",
|
|
162
160
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
161
|
+
"web-documentation": "^1.0.3",
|
|
163
162
|
"workbox-webpack-plugin": "^7.4.0"
|
|
164
163
|
},
|
|
165
164
|
"peerDependencies": {
|
|
@@ -1748,5 +1747,5 @@
|
|
|
1748
1747
|
}
|
|
1749
1748
|
}
|
|
1750
1749
|
},
|
|
1751
|
-
"packageManager": "yarn@4.
|
|
1750
|
+
"packageManager": "yarn@4.14.1+sha512.64df448055b2d37ba269d7db535a469b8da93f8ef1140c25fd7a83c00a8fbaacb214ca0e02553b92a2c54cef78bb67d0b4817fab02001df0e24fac0faccc3b42"
|
|
1752
1751
|
}
|
package/readme.md
CHANGED
|
@@ -25,10 +25,10 @@ Project status
|
|
|
25
25
|
|
|
26
26
|
[](https://coveralls.io/github/thaibault/weboptimizer)
|
|
27
27
|
|
|
28
|
-
[](https://github.com/thaibault/weboptimizer/actions/workflows/deploy-web-documentation.yaml)
|
|
29
29
|
[](https://torben.website/weboptimizer)
|
|
30
30
|
|
|
31
|
-
[](https://githubbox.com/thaibault/weboptimizer)
|
|
32
32
|
|
|
33
33
|
Use case
|
|
34
34
|
--------
|