webpack-dev-server 4.7.4 → 4.9.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/README.md +157 -130
- package/bin/cli-flags.js +28 -5
- package/client/index.js +6 -4
- package/client/modules/sockjs-client/index.js +76 -1120
- package/client/overlay.js +23 -6
- package/client/socket.js +5 -2
- package/client/utils/parseURL.js +1 -1
- package/client/utils/stripAnsi.js +20 -0
- package/lib/Server.js +23 -17
- package/lib/getPort.js +133 -0
- package/lib/options.json +56 -31
- package/package.json +30 -30
- package/types/bin/cli-flags.d.ts +46 -13
- package/types/lib/Server.d.ts +368 -287
- package/types/lib/getPort.d.ts +10 -0
- package/types/lib/servers/WebsocketServer.d.ts +1 -1
- package/client/modules/strip-ansi/index.js +0 -119
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-dev-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.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",
|
|
@@ -40,53 +40,53 @@
|
|
|
40
40
|
"@types/express": "^4.17.13",
|
|
41
41
|
"@types/serve-index": "^1.9.1",
|
|
42
42
|
"@types/sockjs": "^0.3.33",
|
|
43
|
-
"@types/ws": "^8.
|
|
43
|
+
"@types/ws": "^8.5.1",
|
|
44
44
|
"ansi-html-community": "^0.0.8",
|
|
45
|
-
"bonjour": "^
|
|
45
|
+
"bonjour-service": "^1.0.11",
|
|
46
46
|
"chokidar": "^3.5.3",
|
|
47
47
|
"colorette": "^2.0.10",
|
|
48
48
|
"compression": "^1.7.4",
|
|
49
49
|
"connect-history-api-fallback": "^1.6.0",
|
|
50
50
|
"default-gateway": "^6.0.3",
|
|
51
|
-
"
|
|
52
|
-
"express": "^4.17.1",
|
|
51
|
+
"express": "^4.17.3",
|
|
53
52
|
"graceful-fs": "^4.2.6",
|
|
54
53
|
"html-entities": "^2.3.2",
|
|
55
|
-
"http-proxy-middleware": "^2.0.
|
|
54
|
+
"http-proxy-middleware": "^2.0.3",
|
|
56
55
|
"ipaddr.js": "^2.0.1",
|
|
57
56
|
"open": "^8.0.9",
|
|
58
57
|
"p-retry": "^4.5.0",
|
|
59
|
-
"
|
|
58
|
+
"rimraf": "^3.0.2",
|
|
60
59
|
"schema-utils": "^4.0.0",
|
|
61
|
-
"selfsigned": "^2.0.
|
|
60
|
+
"selfsigned": "^2.0.1",
|
|
62
61
|
"serve-index": "^1.9.1",
|
|
63
62
|
"sockjs": "^0.3.21",
|
|
64
63
|
"spdy": "^4.0.2",
|
|
65
|
-
"strip-ansi": "^7.0.0",
|
|
66
64
|
"webpack-dev-middleware": "^5.3.1",
|
|
67
65
|
"ws": "^8.4.2"
|
|
68
66
|
},
|
|
69
67
|
"devDependencies": {
|
|
70
|
-
"@babel/cli": "^7.
|
|
71
|
-
"@babel/core": "^7.
|
|
72
|
-
"@babel/eslint-parser": "^7.
|
|
68
|
+
"@babel/cli": "^7.17.3",
|
|
69
|
+
"@babel/core": "^7.17.5",
|
|
70
|
+
"@babel/eslint-parser": "^7.17.0",
|
|
73
71
|
"@babel/plugin-transform-object-assign": "^7.14.5",
|
|
74
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
72
|
+
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
75
73
|
"@babel/preset-env": "^7.16.11",
|
|
76
|
-
"@babel/runtime": "^7.
|
|
77
|
-
"@commitlint/cli": "^16.
|
|
78
|
-
"@commitlint/config-conventional": "^16.
|
|
74
|
+
"@babel/runtime": "^7.17.2",
|
|
75
|
+
"@commitlint/cli": "^16.2.3",
|
|
76
|
+
"@commitlint/config-conventional": "^16.2.1",
|
|
79
77
|
"@types/compression": "^1.7.2",
|
|
80
78
|
"@types/default-gateway": "^3.0.1",
|
|
79
|
+
"@types/rimraf": "^3.0.2",
|
|
81
80
|
"@types/sockjs-client": "^1.5.1",
|
|
81
|
+
"@types/trusted-types": "^2.0.2",
|
|
82
82
|
"acorn": "^8.2.4",
|
|
83
|
-
"babel-jest": "^27.
|
|
84
|
-
"babel-loader": "^8.2.
|
|
85
|
-
"body-parser": "^1.19.
|
|
86
|
-
"core-js": "^3.21.
|
|
83
|
+
"babel-jest": "^27.5.1",
|
|
84
|
+
"babel-loader": "^8.2.4",
|
|
85
|
+
"body-parser": "^1.19.2",
|
|
86
|
+
"core-js": "^3.21.1",
|
|
87
87
|
"css-loader": "^5.2.4",
|
|
88
|
-
"eslint": "^8.
|
|
89
|
-
"eslint-config-prettier": "^8.
|
|
88
|
+
"eslint": "^8.12.0",
|
|
89
|
+
"eslint-config-prettier": "^8.4.0",
|
|
90
90
|
"eslint-config-webpack": "^1.2.5",
|
|
91
91
|
"eslint-plugin-import": "^2.23.2",
|
|
92
92
|
"execa": "^5.1.1",
|
|
@@ -94,27 +94,27 @@
|
|
|
94
94
|
"html-webpack-plugin": "^4.5.2",
|
|
95
95
|
"http-proxy": "^1.18.1",
|
|
96
96
|
"husky": "^7.0.0",
|
|
97
|
-
"jest": "^27.
|
|
97
|
+
"jest": "^27.5.1",
|
|
98
98
|
"klona": "^2.0.4",
|
|
99
99
|
"less": "^4.1.1",
|
|
100
100
|
"less-loader": "^7.3.0",
|
|
101
|
-
"lint-staged": "^12.3.
|
|
102
|
-
"marked": "^
|
|
101
|
+
"lint-staged": "^12.3.4",
|
|
102
|
+
"marked": "^4.0.12",
|
|
103
103
|
"memfs": "^3.2.2",
|
|
104
104
|
"npm-run-all": "^4.1.5",
|
|
105
|
-
"prettier": "^2.
|
|
106
|
-
"puppeteer": "^13.1
|
|
105
|
+
"prettier": "^2.6.1",
|
|
106
|
+
"puppeteer": "^13.4.1",
|
|
107
107
|
"require-from-string": "^2.0.2",
|
|
108
108
|
"rimraf": "^3.0.2",
|
|
109
|
-
"sockjs-client": "^1.
|
|
109
|
+
"sockjs-client": "^1.6.0",
|
|
110
110
|
"standard-version": "^9.3.0",
|
|
111
111
|
"strip-ansi-v6": "npm:strip-ansi@^6.0.0",
|
|
112
112
|
"style-loader": "^2.0.0",
|
|
113
113
|
"supertest": "^6.1.3",
|
|
114
114
|
"tcp-port-used": "^1.0.2",
|
|
115
|
-
"typescript": "^4.
|
|
115
|
+
"typescript": "^4.6.3",
|
|
116
116
|
"url-loader": "^4.1.1",
|
|
117
|
-
"webpack": "^5.
|
|
117
|
+
"webpack": "^5.71.0",
|
|
118
118
|
"webpack-cli": "^4.7.2",
|
|
119
119
|
"webpack-merge": "^5.8.0"
|
|
120
120
|
},
|
package/types/bin/cli-flags.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ declare const _exports: {
|
|
|
45
45
|
client: {
|
|
46
46
|
configs: {
|
|
47
47
|
description: string;
|
|
48
|
+
negatedDescription: string;
|
|
48
49
|
multiple: boolean;
|
|
49
50
|
path: string;
|
|
50
51
|
type: string;
|
|
@@ -83,24 +84,25 @@ declare const _exports: {
|
|
|
83
84
|
type: string;
|
|
84
85
|
multiple: boolean;
|
|
85
86
|
description: string;
|
|
87
|
+
negatedDescription: string;
|
|
86
88
|
path: string;
|
|
87
89
|
}[];
|
|
88
90
|
description: string;
|
|
89
91
|
simpleType: string;
|
|
90
92
|
multiple: boolean;
|
|
91
93
|
};
|
|
92
|
-
"client-overlay-
|
|
94
|
+
"client-overlay-trusted-types-policy-name": {
|
|
93
95
|
configs: {
|
|
94
|
-
type: string;
|
|
95
|
-
multiple: boolean;
|
|
96
96
|
description: string;
|
|
97
|
+
multiple: boolean;
|
|
97
98
|
path: string;
|
|
99
|
+
type: string;
|
|
98
100
|
}[];
|
|
99
101
|
description: string;
|
|
100
|
-
simpleType: string;
|
|
101
102
|
multiple: boolean;
|
|
103
|
+
simpleType: string;
|
|
102
104
|
};
|
|
103
|
-
"client-
|
|
105
|
+
"client-overlay-warnings": {
|
|
104
106
|
configs: {
|
|
105
107
|
type: string;
|
|
106
108
|
multiple: boolean;
|
|
@@ -112,7 +114,7 @@ declare const _exports: {
|
|
|
112
114
|
simpleType: string;
|
|
113
115
|
multiple: boolean;
|
|
114
116
|
};
|
|
115
|
-
"client-
|
|
117
|
+
"client-progress": {
|
|
116
118
|
configs: {
|
|
117
119
|
type: string;
|
|
118
120
|
multiple: boolean;
|
|
@@ -124,6 +126,26 @@ declare const _exports: {
|
|
|
124
126
|
simpleType: string;
|
|
125
127
|
multiple: boolean;
|
|
126
128
|
};
|
|
129
|
+
"client-reconnect": {
|
|
130
|
+
configs: (
|
|
131
|
+
| {
|
|
132
|
+
type: string;
|
|
133
|
+
multiple: boolean;
|
|
134
|
+
description: string;
|
|
135
|
+
negatedDescription: string;
|
|
136
|
+
path: string;
|
|
137
|
+
}
|
|
138
|
+
| {
|
|
139
|
+
type: string;
|
|
140
|
+
multiple: boolean;
|
|
141
|
+
description: string;
|
|
142
|
+
path: string;
|
|
143
|
+
}
|
|
144
|
+
)[];
|
|
145
|
+
description: string;
|
|
146
|
+
simpleType: string;
|
|
147
|
+
multiple: boolean;
|
|
148
|
+
};
|
|
127
149
|
"client-web-socket-transport": {
|
|
128
150
|
configs: (
|
|
129
151
|
| {
|
|
@@ -247,6 +269,7 @@ declare const _exports: {
|
|
|
247
269
|
type: string;
|
|
248
270
|
multiple: boolean;
|
|
249
271
|
description: string;
|
|
272
|
+
negatedDescription: string;
|
|
250
273
|
path: string;
|
|
251
274
|
}[];
|
|
252
275
|
description: string;
|
|
@@ -287,7 +310,6 @@ declare const _exports: {
|
|
|
287
310
|
values: string[];
|
|
288
311
|
multiple: boolean;
|
|
289
312
|
description: string;
|
|
290
|
-
negatedDescription: string;
|
|
291
313
|
path: string;
|
|
292
314
|
}
|
|
293
315
|
)[];
|
|
@@ -770,6 +792,7 @@ declare const _exports: {
|
|
|
770
792
|
"server-options-request-cert": {
|
|
771
793
|
configs: {
|
|
772
794
|
description: string;
|
|
795
|
+
negatedDescription: string;
|
|
773
796
|
multiple: boolean;
|
|
774
797
|
path: string;
|
|
775
798
|
type: string;
|
|
@@ -791,12 +814,21 @@ declare const _exports: {
|
|
|
791
814
|
simpleType: string;
|
|
792
815
|
};
|
|
793
816
|
static: {
|
|
794
|
-
configs:
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
817
|
+
configs: (
|
|
818
|
+
| {
|
|
819
|
+
type: string;
|
|
820
|
+
multiple: boolean;
|
|
821
|
+
description: string;
|
|
822
|
+
path: string;
|
|
823
|
+
}
|
|
824
|
+
| {
|
|
825
|
+
type: string;
|
|
826
|
+
multiple: boolean;
|
|
827
|
+
description: string;
|
|
828
|
+
negatedDescription: string;
|
|
829
|
+
path: string;
|
|
830
|
+
}
|
|
831
|
+
)[];
|
|
800
832
|
description: string;
|
|
801
833
|
simpleType: string;
|
|
802
834
|
multiple: boolean;
|
|
@@ -895,6 +927,7 @@ declare const _exports: {
|
|
|
895
927
|
configs: (
|
|
896
928
|
| {
|
|
897
929
|
description: string;
|
|
930
|
+
negatedDescription: string;
|
|
898
931
|
multiple: boolean;
|
|
899
932
|
path: string;
|
|
900
933
|
type: string;
|