webpack-dev-server 5.0.0 → 5.0.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/README.md +4 -4
- package/client/modules/logger/index.js +15 -2906
- package/client/overlay.js +1 -1
- package/lib/getPort.js +1 -1
- package/package.json +8 -5
package/client/overlay.js
CHANGED
|
@@ -151,7 +151,7 @@ var createOverlay = function createOverlay(options) {
|
|
|
151
151
|
*/
|
|
152
152
|
function ensureOverlayExists(callback, trustedTypesPolicyName) {
|
|
153
153
|
if (containerElement) {
|
|
154
|
-
containerElement.innerHTML = "";
|
|
154
|
+
containerElement.innerHTML = overlayTrustedTypesPolicy ? overlayTrustedTypesPolicy.createHTML("") : "";
|
|
155
155
|
// Everything is ready, call the callback right away.
|
|
156
156
|
callback(containerElement);
|
|
157
157
|
return;
|
package/lib/getPort.js
CHANGED
|
@@ -46,7 +46,7 @@ const checkAvailablePort = (basePort, host) =>
|
|
|
46
46
|
server.on("error", reject);
|
|
47
47
|
|
|
48
48
|
server.listen(basePort, host, () => {
|
|
49
|
-
// Next line should return
|
|
49
|
+
// Next line should return AddressInfo because we're calling it after listen() and before close()
|
|
50
50
|
const { port } = /** @type {import("net").AddressInfo} */ (
|
|
51
51
|
server.address()
|
|
52
52
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-dev-server",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Serves a webpack app. Updates the browser on changes.",
|
|
5
5
|
"bin": "bin/webpack-dev-server.js",
|
|
6
6
|
"main": "lib/Server.js",
|
|
@@ -25,12 +25,14 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
|
|
28
|
-
"lint:
|
|
28
|
+
"lint:prettier": "prettier --cache --list-different .",
|
|
29
|
+
"lint:js": "eslint --cache .",
|
|
29
30
|
"lint:types": "tsc --pretty --noEmit",
|
|
30
|
-
"lint": "
|
|
31
|
-
"
|
|
31
|
+
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
|
|
32
|
+
"lint": "npm-run-all -l -p \"lint:**\"",
|
|
32
33
|
"fix:js": "npm run lint:js -- --fix",
|
|
33
|
-
"fix": "npm
|
|
34
|
+
"fix:prettier": "npm run lint:prettier -- --write",
|
|
35
|
+
"fix": "npm-run-all -l fix:js fix:prettier",
|
|
34
36
|
"commitlint": "commitlint --from=master",
|
|
35
37
|
"build:client": "rimraf -g ./client/* && babel client-src/ --out-dir client/ --ignore \"client-src/webpack.config.js\" --ignore \"client-src/modules\" && webpack --config client-src/webpack.config.js",
|
|
36
38
|
"build:types": "rimraf -g ./types/* && tsc --declaration --emitDeclarationOnly --outDir types && node ./scripts/extend-webpack-types.js && prettier \"types/**/*.ts\" --write && prettier \"types/**/*.ts\" --write",
|
|
@@ -96,6 +98,7 @@
|
|
|
96
98
|
"babel-loader": "^9.1.0",
|
|
97
99
|
"body-parser": "^1.19.2",
|
|
98
100
|
"core-js": "^3.31.0",
|
|
101
|
+
"cspell": "^8.3.2",
|
|
99
102
|
"css-loader": "^6.8.1",
|
|
100
103
|
"eslint": "^8.43.0",
|
|
101
104
|
"eslint-config-prettier": "^9.1.0",
|