webpack-dev-server 4.11.1 → 4.13.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/bin/cli-flags.js +17 -0
- package/bin/webpack-dev-server.js +12 -0
- package/client/clients/SockJSClient.js +7 -14
- package/client/clients/WebSocketClient.js +7 -14
- package/client/index.js +49 -71
- package/client/modules/logger/index.js +66 -165
- package/client/modules/sockjs-client/index.js +516 -1166
- package/client/overlay/fsm.js +64 -0
- package/client/overlay/runtime-error.js +31 -0
- package/client/overlay/state-machine.js +95 -0
- package/client/overlay/styles.js +74 -0
- package/client/overlay.js +202 -167
- package/client/socket.js +13 -12
- package/client/utils/createSocketURL.js +20 -36
- package/client/utils/getCurrentScriptSource.js +4 -6
- package/client/utils/log.js +8 -13
- package/client/utils/parseURL.js +3 -8
- package/client/utils/reloadApp.js +9 -18
- package/client/utils/sendMessage.js +1 -2
- package/client/utils/stripAnsi.js +1 -3
- package/lib/Server.js +56 -16
- package/lib/options.json +7 -0
- package/lib/servers/SockJSServer.js +22 -10
- package/package.json +15 -12
- package/types/bin/cli-flags.d.ts +12 -0
- package/types/lib/Server.d.ts +173 -196
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-dev-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
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",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"html-entities": "^2.3.2",
|
|
64
64
|
"http-proxy-middleware": "^2.0.3",
|
|
65
65
|
"ipaddr.js": "^2.0.1",
|
|
66
|
+
"launch-editor": "^2.6.0",
|
|
66
67
|
"open": "^8.0.9",
|
|
67
68
|
"p-retry": "^4.5.0",
|
|
68
69
|
"rimraf": "^3.0.2",
|
|
@@ -72,21 +73,22 @@
|
|
|
72
73
|
"sockjs": "^0.3.24",
|
|
73
74
|
"spdy": "^4.0.2",
|
|
74
75
|
"webpack-dev-middleware": "^5.3.1",
|
|
75
|
-
"ws": "^8.
|
|
76
|
+
"ws": "^8.13.0"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
78
79
|
"@babel/cli": "^7.17.3",
|
|
79
|
-
"@babel/core": "^7.
|
|
80
|
+
"@babel/core": "^7.20.2",
|
|
80
81
|
"@babel/eslint-parser": "^7.17.0",
|
|
81
82
|
"@babel/plugin-transform-object-assign": "^7.14.5",
|
|
82
83
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
83
|
-
"@babel/preset-env": "^7.
|
|
84
|
-
"@babel/runtime": "^7.
|
|
84
|
+
"@babel/preset-env": "^7.20.2",
|
|
85
|
+
"@babel/runtime": "^7.20.1",
|
|
85
86
|
"@commitlint/cli": "^16.2.3",
|
|
86
87
|
"@commitlint/config-conventional": "^16.2.1",
|
|
87
88
|
"@types/compression": "^1.7.2",
|
|
88
89
|
"@types/default-gateway": "^3.0.1",
|
|
89
|
-
"@types/node
|
|
90
|
+
"@types/node": "^18.11.9",
|
|
91
|
+
"@types/node-forge": "^1.3.1",
|
|
90
92
|
"@types/rimraf": "^3.0.2",
|
|
91
93
|
"@types/sockjs-client": "^1.5.1",
|
|
92
94
|
"@types/trusted-types": "^2.0.2",
|
|
@@ -96,7 +98,7 @@
|
|
|
96
98
|
"body-parser": "^1.19.2",
|
|
97
99
|
"core-js": "^3.21.1",
|
|
98
100
|
"css-loader": "^5.2.4",
|
|
99
|
-
"eslint": "^8.
|
|
101
|
+
"eslint": "^8.28.0",
|
|
100
102
|
"eslint-config-prettier": "^8.4.0",
|
|
101
103
|
"eslint-config-webpack": "^1.2.5",
|
|
102
104
|
"eslint-plugin-import": "^2.23.2",
|
|
@@ -111,10 +113,10 @@
|
|
|
111
113
|
"less": "^4.1.1",
|
|
112
114
|
"less-loader": "^7.3.0",
|
|
113
115
|
"lint-staged": "^12.3.4",
|
|
114
|
-
"marked": "^4.
|
|
115
|
-
"memfs": "^3.
|
|
116
|
+
"marked": "^4.2.3",
|
|
117
|
+
"memfs": "^3.4.12",
|
|
116
118
|
"npm-run-all": "^4.1.5",
|
|
117
|
-
"prettier": "^2.
|
|
119
|
+
"prettier": "^2.8.0",
|
|
118
120
|
"puppeteer": "^13.4.1",
|
|
119
121
|
"require-from-string": "^2.0.2",
|
|
120
122
|
"rimraf": "^3.0.2",
|
|
@@ -124,9 +126,10 @@
|
|
|
124
126
|
"style-loader": "^2.0.0",
|
|
125
127
|
"supertest": "^6.1.3",
|
|
126
128
|
"tcp-port-used": "^1.0.2",
|
|
127
|
-
"typescript": "^4.
|
|
129
|
+
"typescript": "^4.9.3",
|
|
128
130
|
"url-loader": "^4.1.1",
|
|
129
|
-
"
|
|
131
|
+
"wait-for-expect": "^3.0.2",
|
|
132
|
+
"webpack": "^5.76.1",
|
|
130
133
|
"webpack-cli": "^4.7.2",
|
|
131
134
|
"webpack-merge": "^5.8.0"
|
|
132
135
|
},
|
package/types/bin/cli-flags.d.ts
CHANGED
|
@@ -114,6 +114,18 @@ declare const _exports: {
|
|
|
114
114
|
simpleType: string;
|
|
115
115
|
multiple: boolean;
|
|
116
116
|
};
|
|
117
|
+
"client-overlay-runtime-errors": {
|
|
118
|
+
configs: {
|
|
119
|
+
type: string;
|
|
120
|
+
multiple: boolean;
|
|
121
|
+
description: string;
|
|
122
|
+
negatedDescription: string;
|
|
123
|
+
path: string;
|
|
124
|
+
}[];
|
|
125
|
+
description: string;
|
|
126
|
+
simpleType: string;
|
|
127
|
+
multiple: boolean;
|
|
128
|
+
};
|
|
117
129
|
"client-progress": {
|
|
118
130
|
configs: {
|
|
119
131
|
type: string;
|