webpack-dev-server 4.7.0 → 4.7.4
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 +26 -22
- package/client/clients/SockJSClient.js +5 -1
- package/client/index.js +50 -2
- package/client/modules/sockjs-client/index.js +15 -4
- package/client/overlay.js +38 -3
- package/client/socket.js +14 -2
- package/client/utils/createSocketURL.js +71 -4
- package/client/utils/getCurrentScriptSource.js +3 -0
- package/client/utils/parseURL.js +17 -19
- package/client/utils/reloadApp.js +15 -2
- package/client/utils/sendMessage.js +1 -1
- package/lib/Server.js +129 -138
- package/lib/options.json +59 -12
- package/package.json +16 -15
- package/types/bin/cli-flags.d.ts +29 -21
- package/types/lib/Server.d.ts +503 -303
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-dev-server",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
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",
|
|
@@ -37,12 +37,13 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@types/bonjour": "^3.5.9",
|
|
39
39
|
"@types/connect-history-api-fallback": "^1.3.5",
|
|
40
|
+
"@types/express": "^4.17.13",
|
|
40
41
|
"@types/serve-index": "^1.9.1",
|
|
41
42
|
"@types/sockjs": "^0.3.33",
|
|
42
43
|
"@types/ws": "^8.2.2",
|
|
43
44
|
"ansi-html-community": "^0.0.8",
|
|
44
45
|
"bonjour": "^3.5.0",
|
|
45
|
-
"chokidar": "^3.5.
|
|
46
|
+
"chokidar": "^3.5.3",
|
|
46
47
|
"colorette": "^2.0.10",
|
|
47
48
|
"compression": "^1.7.4",
|
|
48
49
|
"connect-history-api-fallback": "^1.6.0",
|
|
@@ -57,34 +58,34 @@
|
|
|
57
58
|
"p-retry": "^4.5.0",
|
|
58
59
|
"portfinder": "^1.0.28",
|
|
59
60
|
"schema-utils": "^4.0.0",
|
|
60
|
-
"selfsigned": "^
|
|
61
|
+
"selfsigned": "^2.0.0",
|
|
61
62
|
"serve-index": "^1.9.1",
|
|
62
63
|
"sockjs": "^0.3.21",
|
|
63
64
|
"spdy": "^4.0.2",
|
|
64
65
|
"strip-ansi": "^7.0.0",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"ws": "^8.1.0"
|
|
66
|
+
"webpack-dev-middleware": "^5.3.1",
|
|
67
|
+
"ws": "^8.4.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@babel/cli": "^7.14.5",
|
|
71
|
-
"@babel/core": "^7.
|
|
71
|
+
"@babel/core": "^7.16.10",
|
|
72
72
|
"@babel/eslint-parser": "^7.14.7",
|
|
73
73
|
"@babel/plugin-transform-object-assign": "^7.14.5",
|
|
74
74
|
"@babel/plugin-transform-runtime": "^7.14.5",
|
|
75
|
-
"@babel/preset-env": "^7.
|
|
75
|
+
"@babel/preset-env": "^7.16.11",
|
|
76
76
|
"@babel/runtime": "^7.14.5",
|
|
77
|
-
"@commitlint/cli": "^
|
|
78
|
-
"@commitlint/config-conventional": "^
|
|
77
|
+
"@commitlint/cli": "^16.1.0",
|
|
78
|
+
"@commitlint/config-conventional": "^16.0.0",
|
|
79
79
|
"@types/compression": "^1.7.2",
|
|
80
80
|
"@types/default-gateway": "^3.0.1",
|
|
81
|
+
"@types/sockjs-client": "^1.5.1",
|
|
81
82
|
"acorn": "^8.2.4",
|
|
82
83
|
"babel-jest": "^27.4.4",
|
|
83
84
|
"babel-loader": "^8.2.2",
|
|
84
85
|
"body-parser": "^1.19.1",
|
|
85
|
-
"core-js": "^3.
|
|
86
|
+
"core-js": "^3.21.0",
|
|
86
87
|
"css-loader": "^5.2.4",
|
|
87
|
-
"eslint": "^8.0
|
|
88
|
+
"eslint": "^8.8.0",
|
|
88
89
|
"eslint-config-prettier": "^8.3.0",
|
|
89
90
|
"eslint-config-webpack": "^1.2.5",
|
|
90
91
|
"eslint-plugin-import": "^2.23.2",
|
|
@@ -97,12 +98,12 @@
|
|
|
97
98
|
"klona": "^2.0.4",
|
|
98
99
|
"less": "^4.1.1",
|
|
99
100
|
"less-loader": "^7.3.0",
|
|
100
|
-
"lint-staged": "^12.
|
|
101
|
+
"lint-staged": "^12.3.3",
|
|
101
102
|
"marked": "^3.0.0",
|
|
102
103
|
"memfs": "^3.2.2",
|
|
103
104
|
"npm-run-all": "^4.1.5",
|
|
104
105
|
"prettier": "^2.3.1",
|
|
105
|
-
"puppeteer": "^13.
|
|
106
|
+
"puppeteer": "^13.1.3",
|
|
106
107
|
"require-from-string": "^2.0.2",
|
|
107
108
|
"rimraf": "^3.0.2",
|
|
108
109
|
"sockjs-client": "^1.5.1",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"tcp-port-used": "^1.0.2",
|
|
114
115
|
"typescript": "^4.2.4",
|
|
115
116
|
"url-loader": "^4.1.1",
|
|
116
|
-
"webpack": "^5.
|
|
117
|
+
"webpack": "^5.68.0",
|
|
117
118
|
"webpack-cli": "^4.7.2",
|
|
118
119
|
"webpack-merge": "^5.8.0"
|
|
119
120
|
},
|
package/types/bin/cli-flags.d.ts
CHANGED
|
@@ -35,10 +35,10 @@ declare const _exports: {
|
|
|
35
35
|
type: string;
|
|
36
36
|
multiple: boolean;
|
|
37
37
|
description: string;
|
|
38
|
+
negatedDescription: string;
|
|
38
39
|
path: string;
|
|
39
40
|
}[];
|
|
40
41
|
description: string;
|
|
41
|
-
negatedDescription: string;
|
|
42
42
|
simpleType: string;
|
|
43
43
|
multiple: boolean;
|
|
44
44
|
};
|
|
@@ -71,10 +71,10 @@ declare const _exports: {
|
|
|
71
71
|
type: string;
|
|
72
72
|
multiple: boolean;
|
|
73
73
|
description: string;
|
|
74
|
+
negatedDescription: string;
|
|
74
75
|
path: string;
|
|
75
76
|
}[];
|
|
76
77
|
description: string;
|
|
77
|
-
negatedDescription: string;
|
|
78
78
|
simpleType: string;
|
|
79
79
|
multiple: boolean;
|
|
80
80
|
};
|
|
@@ -105,10 +105,10 @@ declare const _exports: {
|
|
|
105
105
|
type: string;
|
|
106
106
|
multiple: boolean;
|
|
107
107
|
description: string;
|
|
108
|
+
negatedDescription: string;
|
|
108
109
|
path: string;
|
|
109
110
|
}[];
|
|
110
111
|
description: string;
|
|
111
|
-
negatedDescription: string;
|
|
112
112
|
simpleType: string;
|
|
113
113
|
multiple: boolean;
|
|
114
114
|
};
|
|
@@ -117,10 +117,10 @@ declare const _exports: {
|
|
|
117
117
|
type: string;
|
|
118
118
|
multiple: boolean;
|
|
119
119
|
description: string;
|
|
120
|
+
negatedDescription: string;
|
|
120
121
|
path: string;
|
|
121
122
|
}[];
|
|
122
123
|
description: string;
|
|
123
|
-
negatedDescription: string;
|
|
124
124
|
simpleType: string;
|
|
125
125
|
multiple: boolean;
|
|
126
126
|
};
|
|
@@ -235,10 +235,10 @@ declare const _exports: {
|
|
|
235
235
|
type: string;
|
|
236
236
|
multiple: boolean;
|
|
237
237
|
description: string;
|
|
238
|
+
negatedDescription: string;
|
|
238
239
|
path: string;
|
|
239
240
|
}[];
|
|
240
241
|
description: string;
|
|
241
|
-
negatedDescription: string;
|
|
242
242
|
simpleType: string;
|
|
243
243
|
multiple: boolean;
|
|
244
244
|
};
|
|
@@ -279,6 +279,7 @@ declare const _exports: {
|
|
|
279
279
|
type: string;
|
|
280
280
|
multiple: boolean;
|
|
281
281
|
description: string;
|
|
282
|
+
negatedDescription: string;
|
|
282
283
|
path: string;
|
|
283
284
|
}
|
|
284
285
|
| {
|
|
@@ -286,11 +287,11 @@ declare const _exports: {
|
|
|
286
287
|
values: string[];
|
|
287
288
|
multiple: boolean;
|
|
288
289
|
description: string;
|
|
290
|
+
negatedDescription: string;
|
|
289
291
|
path: string;
|
|
290
292
|
}
|
|
291
293
|
)[];
|
|
292
294
|
description: string;
|
|
293
|
-
negatedDescription: string;
|
|
294
295
|
simpleType: string;
|
|
295
296
|
multiple: boolean;
|
|
296
297
|
};
|
|
@@ -299,10 +300,10 @@ declare const _exports: {
|
|
|
299
300
|
type: string;
|
|
300
301
|
multiple: boolean;
|
|
301
302
|
description: string;
|
|
303
|
+
negatedDescription: string;
|
|
302
304
|
path: string;
|
|
303
305
|
}[];
|
|
304
306
|
description: string;
|
|
305
|
-
negatedDescription: string;
|
|
306
307
|
simpleType: string;
|
|
307
308
|
multiple: boolean;
|
|
308
309
|
};
|
|
@@ -311,10 +312,10 @@ declare const _exports: {
|
|
|
311
312
|
type: string;
|
|
312
313
|
multiple: boolean;
|
|
313
314
|
description: string;
|
|
315
|
+
negatedDescription: string;
|
|
314
316
|
path: string;
|
|
315
317
|
}[];
|
|
316
318
|
description: string;
|
|
317
|
-
negatedDescription: string;
|
|
318
319
|
simpleType: string;
|
|
319
320
|
multiple: boolean;
|
|
320
321
|
};
|
|
@@ -466,10 +467,10 @@ declare const _exports: {
|
|
|
466
467
|
type: string;
|
|
467
468
|
multiple: boolean;
|
|
468
469
|
description: string;
|
|
470
|
+
negatedDescription: string;
|
|
469
471
|
path: string;
|
|
470
472
|
}[];
|
|
471
473
|
description: string;
|
|
472
|
-
negatedDescription: string;
|
|
473
474
|
simpleType: string;
|
|
474
475
|
multiple: boolean;
|
|
475
476
|
};
|
|
@@ -498,10 +499,10 @@ declare const _exports: {
|
|
|
498
499
|
type: string;
|
|
499
500
|
multiple: boolean;
|
|
500
501
|
description: string;
|
|
502
|
+
negatedDescription: string;
|
|
501
503
|
path: string;
|
|
502
504
|
}[];
|
|
503
505
|
description: string;
|
|
504
|
-
negatedDescription: string;
|
|
505
506
|
simpleType: string;
|
|
506
507
|
multiple: boolean;
|
|
507
508
|
};
|
|
@@ -510,22 +511,30 @@ declare const _exports: {
|
|
|
510
511
|
type: string;
|
|
511
512
|
multiple: boolean;
|
|
512
513
|
description: string;
|
|
514
|
+
negatedDescription: string;
|
|
513
515
|
path: string;
|
|
514
516
|
}[];
|
|
515
517
|
description: string;
|
|
516
|
-
negatedDescription: string;
|
|
517
518
|
simpleType: string;
|
|
518
519
|
multiple: boolean;
|
|
519
520
|
};
|
|
520
521
|
open: {
|
|
521
|
-
configs:
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
522
|
+
configs: (
|
|
523
|
+
| {
|
|
524
|
+
type: string;
|
|
525
|
+
multiple: boolean;
|
|
526
|
+
description: string;
|
|
527
|
+
path: string;
|
|
528
|
+
}
|
|
529
|
+
| {
|
|
530
|
+
type: string;
|
|
531
|
+
multiple: boolean;
|
|
532
|
+
description: string;
|
|
533
|
+
negatedDescription: string;
|
|
534
|
+
path: string;
|
|
535
|
+
}
|
|
536
|
+
)[];
|
|
527
537
|
description: string;
|
|
528
|
-
negatedDescription: string;
|
|
529
538
|
simpleType: string;
|
|
530
539
|
multiple: boolean;
|
|
531
540
|
};
|
|
@@ -581,7 +590,6 @@ declare const _exports: {
|
|
|
581
590
|
path: string;
|
|
582
591
|
}[];
|
|
583
592
|
description: string;
|
|
584
|
-
negatedDescription: string;
|
|
585
593
|
simpleType: string;
|
|
586
594
|
multiple: boolean;
|
|
587
595
|
};
|
|
@@ -842,10 +850,10 @@ declare const _exports: {
|
|
|
842
850
|
type: string;
|
|
843
851
|
multiple: boolean;
|
|
844
852
|
description: string;
|
|
853
|
+
negatedDescription: string;
|
|
845
854
|
path: string;
|
|
846
855
|
}[];
|
|
847
856
|
description: string;
|
|
848
|
-
negatedDescription: string;
|
|
849
857
|
simpleType: string;
|
|
850
858
|
multiple: boolean;
|
|
851
859
|
};
|
|
@@ -854,10 +862,10 @@ declare const _exports: {
|
|
|
854
862
|
type: string;
|
|
855
863
|
multiple: boolean;
|
|
856
864
|
description: string;
|
|
865
|
+
negatedDescription: string;
|
|
857
866
|
path: string;
|
|
858
867
|
}[];
|
|
859
868
|
description: string;
|
|
860
|
-
negatedDescription: string;
|
|
861
869
|
simpleType: string;
|
|
862
870
|
multiple: boolean;
|
|
863
871
|
};
|