webpack-dev-server 4.9.2 → 4.10.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 +3 -1
- package/client/index.js +40 -6
- package/client/utils/log.js +21 -1
- package/lib/Server.js +48 -4
- package/package.json +15 -10
- package/types/lib/Server.d.ts +31 -33
package/README.md
CHANGED
|
@@ -209,7 +209,9 @@ CLI documentation: https://webpack.js.org/api/cli/.
|
|
|
209
209
|
Made with ♥ by the webpack team.
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
> **Note**
|
|
213
|
+
>
|
|
214
|
+
> _Detailed documentation for above options is available on this [link](https://webpack.js.org/configuration/dev-server/)._
|
|
213
215
|
|
|
214
216
|
### With NPM Scripts
|
|
215
217
|
|
package/client/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
|
|
5
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
|
|
1
7
|
/* global __resourceQuery, __webpack_hash__ */
|
|
2
8
|
/// <reference types="webpack/module" />
|
|
3
9
|
import webpackHotLog from "webpack/hot/log.js";
|
|
@@ -5,7 +11,7 @@ import stripAnsi from "./utils/stripAnsi.js";
|
|
|
5
11
|
import parseURL from "./utils/parseURL.js";
|
|
6
12
|
import socket from "./socket.js";
|
|
7
13
|
import { formatProblem, show, hide } from "./overlay.js";
|
|
8
|
-
import { log, setLogLevel } from "./utils/log.js";
|
|
14
|
+
import { log, logEnabledFeatures, setLogLevel } from "./utils/log.js";
|
|
9
15
|
import sendMessage from "./utils/sendMessage.js";
|
|
10
16
|
import reloadApp from "./utils/reloadApp.js";
|
|
11
17
|
import createSocketURL from "./utils/createSocketURL.js";
|
|
@@ -45,15 +51,44 @@ var options = {
|
|
|
45
51
|
overlay: false
|
|
46
52
|
};
|
|
47
53
|
var parsedResourceQuery = parseURL(__resourceQuery);
|
|
54
|
+
var enabledFeatures = {
|
|
55
|
+
"Hot Module Replacement": false,
|
|
56
|
+
"Live Reloading": false,
|
|
57
|
+
Progress: false,
|
|
58
|
+
Overlay: false
|
|
59
|
+
};
|
|
48
60
|
|
|
49
61
|
if (parsedResourceQuery.hot === "true") {
|
|
50
62
|
options.hot = true;
|
|
51
|
-
|
|
63
|
+
enabledFeatures["Hot Module Replacement"] = true;
|
|
52
64
|
}
|
|
53
65
|
|
|
54
66
|
if (parsedResourceQuery["live-reload"] === "true") {
|
|
55
67
|
options.liveReload = true;
|
|
56
|
-
|
|
68
|
+
enabledFeatures["Live Reloading"] = true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (parsedResourceQuery.progress === "true") {
|
|
72
|
+
options.progress = true;
|
|
73
|
+
enabledFeatures.Progress = true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (parsedResourceQuery.overlay) {
|
|
77
|
+
try {
|
|
78
|
+
options.overlay = JSON.parse(parsedResourceQuery.overlay);
|
|
79
|
+
} catch (e) {
|
|
80
|
+
log.error("Error parsing overlay options from resource query:", e);
|
|
81
|
+
} // Fill in default "true" params for partially-specified objects.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
if (typeof options.overlay === "object") {
|
|
85
|
+
options.overlay = _objectSpread({
|
|
86
|
+
errors: true,
|
|
87
|
+
warnings: true
|
|
88
|
+
}, options.overlay);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
enabledFeatures.Overlay = true;
|
|
57
92
|
}
|
|
58
93
|
|
|
59
94
|
if (parsedResourceQuery.logging) {
|
|
@@ -63,11 +98,12 @@ if (parsedResourceQuery.logging) {
|
|
|
63
98
|
if (typeof parsedResourceQuery.reconnect !== "undefined") {
|
|
64
99
|
options.reconnect = Number(parsedResourceQuery.reconnect);
|
|
65
100
|
}
|
|
101
|
+
|
|
102
|
+
logEnabledFeatures(enabledFeatures);
|
|
66
103
|
/**
|
|
67
104
|
* @param {string} level
|
|
68
105
|
*/
|
|
69
106
|
|
|
70
|
-
|
|
71
107
|
function setAllLogLevel(level) {
|
|
72
108
|
// This is needed because the HMR logger operate separately from dev server logger
|
|
73
109
|
webpackHotLog.setLogLevel(level === "verbose" || level === "log" ? "info" : level);
|
|
@@ -88,7 +124,6 @@ var onSocketMessage = {
|
|
|
88
124
|
}
|
|
89
125
|
|
|
90
126
|
options.hot = true;
|
|
91
|
-
log.info("Hot Module Replacement enabled.");
|
|
92
127
|
},
|
|
93
128
|
liveReload: function liveReload() {
|
|
94
129
|
if (parsedResourceQuery["live-reload"] === "false") {
|
|
@@ -96,7 +131,6 @@ var onSocketMessage = {
|
|
|
96
131
|
}
|
|
97
132
|
|
|
98
133
|
options.liveReload = true;
|
|
99
|
-
log.info("Live Reloading enabled.");
|
|
100
134
|
},
|
|
101
135
|
invalid: function invalid() {
|
|
102
136
|
log.info("App updated. Recompiling..."); // Fixes #1042. overlay doesn't clear if errors are fixed but warnings remain.
|
package/client/utils/log.js
CHANGED
|
@@ -17,4 +17,24 @@ function setLogLevel(level) {
|
|
|
17
17
|
|
|
18
18
|
setLogLevel(defaultLevel);
|
|
19
19
|
var log = logger.getLogger(name);
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
var logEnabledFeatures = function logEnabledFeatures(features) {
|
|
22
|
+
var enabledFeatures = Object.keys(features);
|
|
23
|
+
|
|
24
|
+
if (!features || enabledFeatures.length === 0) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var logString = "Server started:"; // Server started: Hot Module Replacement enabled, Live Reloading enabled, Overlay disabled.
|
|
29
|
+
|
|
30
|
+
for (var i = 0; i < enabledFeatures.length; i++) {
|
|
31
|
+
var key = enabledFeatures[i];
|
|
32
|
+
logString += " ".concat(key, " ").concat(features[key] ? "enabled" : "disabled", ",");
|
|
33
|
+
} // replace last comma with a period
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
logString = logString.slice(0, -1).concat(".");
|
|
37
|
+
log.info(logString);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { log, logEnabledFeatures, setLogLevel };
|
package/lib/Server.js
CHANGED
|
@@ -597,6 +597,19 @@ class Server {
|
|
|
597
597
|
searchParams.set("logging", client.logging);
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
+
if (typeof client.progress !== "undefined") {
|
|
601
|
+
searchParams.set("progress", String(client.progress));
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
if (typeof client.overlay !== "undefined") {
|
|
605
|
+
searchParams.set(
|
|
606
|
+
"overlay",
|
|
607
|
+
typeof client.overlay === "boolean"
|
|
608
|
+
? String(client.overlay)
|
|
609
|
+
: JSON.stringify(client.overlay)
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
|
|
600
613
|
if (typeof client.reconnect !== "undefined") {
|
|
601
614
|
searchParams.set(
|
|
602
615
|
"reconnect",
|
|
@@ -606,6 +619,14 @@ class Server {
|
|
|
606
619
|
);
|
|
607
620
|
}
|
|
608
621
|
|
|
622
|
+
if (typeof this.options.hot !== "undefined") {
|
|
623
|
+
searchParams.set("hot", String(this.options.hot));
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
if (typeof this.options.liveReload !== "undefined") {
|
|
627
|
+
searchParams.set("live-reload", String(this.options.liveReload));
|
|
628
|
+
}
|
|
629
|
+
|
|
609
630
|
webSocketURLStr = searchParams.toString();
|
|
610
631
|
}
|
|
611
632
|
|
|
@@ -1964,12 +1985,9 @@ class Server {
|
|
|
1964
1985
|
(req, res) => {
|
|
1965
1986
|
res.setHeader("Content-Type", "application/javascript");
|
|
1966
1987
|
|
|
1967
|
-
const { createReadStream } = fs;
|
|
1968
1988
|
const clientPath = path.join(__dirname, "..", "client");
|
|
1969
1989
|
|
|
1970
|
-
|
|
1971
|
-
path.join(clientPath, "modules/sockjs-client/index.js")
|
|
1972
|
-
).pipe(res);
|
|
1990
|
+
res.sendFile(path.join(clientPath, "modules/sockjs-client/index.js"));
|
|
1973
1991
|
}
|
|
1974
1992
|
);
|
|
1975
1993
|
|
|
@@ -2113,6 +2131,32 @@ class Server {
|
|
|
2113
2131
|
});
|
|
2114
2132
|
}
|
|
2115
2133
|
|
|
2134
|
+
{
|
|
2135
|
+
/**
|
|
2136
|
+
*
|
|
2137
|
+
* @param {Request} req
|
|
2138
|
+
* @param {Response} res
|
|
2139
|
+
* @param {NextFunction} next
|
|
2140
|
+
* @returns {void}
|
|
2141
|
+
*
|
|
2142
|
+
*/
|
|
2143
|
+
const optionsRequestResponseMiddleware = (req, res, next) => {
|
|
2144
|
+
if (req.method === "OPTIONS") {
|
|
2145
|
+
res.statusCode = 204;
|
|
2146
|
+
res.setHeader("Content-Length", "0");
|
|
2147
|
+
res.end();
|
|
2148
|
+
return;
|
|
2149
|
+
}
|
|
2150
|
+
next();
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
middlewares.push({
|
|
2154
|
+
name: "options-middleware",
|
|
2155
|
+
path: "*",
|
|
2156
|
+
middleware: optionsRequestResponseMiddleware,
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2116
2160
|
middlewares.push({
|
|
2117
2161
|
name: "webpack-dev-middleware",
|
|
2118
2162
|
middleware:
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-dev-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.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",
|
|
7
7
|
"types": "types/lib/Server.d.ts",
|
|
8
|
+
"author": "Tobias Koppers @sokra",
|
|
9
|
+
"bugs": "https://github.com/webpack/webpack-dev-server/issues",
|
|
10
|
+
"homepage": "https://github.com/webpack/webpack-dev-server#readme",
|
|
11
|
+
"repository": "https://github.com/webpack/webpack-dev-server",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"funding": {
|
|
14
|
+
"type": "opencollective",
|
|
15
|
+
"url": "https://opencollective.com/webpack"
|
|
16
|
+
},
|
|
8
17
|
"files": [
|
|
9
18
|
"bin",
|
|
10
19
|
"lib",
|
|
@@ -47,7 +56,7 @@
|
|
|
47
56
|
"chokidar": "^3.5.3",
|
|
48
57
|
"colorette": "^2.0.10",
|
|
49
58
|
"compression": "^1.7.4",
|
|
50
|
-
"connect-history-api-fallback": "^
|
|
59
|
+
"connect-history-api-fallback": "^2.0.0",
|
|
51
60
|
"default-gateway": "^6.0.3",
|
|
52
61
|
"express": "^4.17.3",
|
|
53
62
|
"graceful-fs": "^4.2.6",
|
|
@@ -81,7 +90,7 @@
|
|
|
81
90
|
"@types/sockjs-client": "^1.5.1",
|
|
82
91
|
"@types/trusted-types": "^2.0.2",
|
|
83
92
|
"acorn": "^8.2.4",
|
|
84
|
-
"babel-jest": "^
|
|
93
|
+
"babel-jest": "^28.1.3",
|
|
85
94
|
"babel-loader": "^8.2.4",
|
|
86
95
|
"body-parser": "^1.19.2",
|
|
87
96
|
"core-js": "^3.21.1",
|
|
@@ -95,7 +104,8 @@
|
|
|
95
104
|
"html-webpack-plugin": "^4.5.2",
|
|
96
105
|
"http-proxy": "^1.18.1",
|
|
97
106
|
"husky": "^7.0.0",
|
|
98
|
-
"jest": "^
|
|
107
|
+
"jest": "^28.1.3",
|
|
108
|
+
"jest-environment-jsdom": "^28.1.3",
|
|
99
109
|
"klona": "^2.0.4",
|
|
100
110
|
"less": "^4.1.1",
|
|
101
111
|
"less-loader": "^7.3.0",
|
|
@@ -126,10 +136,5 @@
|
|
|
126
136
|
"webpack-cli": {
|
|
127
137
|
"optional": true
|
|
128
138
|
}
|
|
129
|
-
}
|
|
130
|
-
"author": "Tobias Koppers @sokra",
|
|
131
|
-
"bugs": "https://github.com/webpack/webpack-dev-server/issues",
|
|
132
|
-
"homepage": "https://github.com/webpack/webpack-dev-server#readme",
|
|
133
|
-
"repository": "https://github.com/webpack/webpack-dev-server.git",
|
|
134
|
-
"license": "MIT"
|
|
139
|
+
}
|
|
135
140
|
}
|
package/types/lib/Server.d.ts
CHANGED
|
@@ -863,8 +863,14 @@ declare class Server {
|
|
|
863
863
|
type: string;
|
|
864
864
|
multiple: boolean;
|
|
865
865
|
description: string;
|
|
866
|
-
|
|
866
|
+
negatedDescription: string;
|
|
867
867
|
path: string;
|
|
868
|
+
/**
|
|
869
|
+
* prependEntry Method for webpack 4
|
|
870
|
+
* @param {any} originalEntry
|
|
871
|
+
* @param {any} newAdditionalEntries
|
|
872
|
+
* @returns {any}
|
|
873
|
+
*/
|
|
868
874
|
}[];
|
|
869
875
|
description: string;
|
|
870
876
|
simpleType: string;
|
|
@@ -875,13 +881,12 @@ declare class Server {
|
|
|
875
881
|
| {
|
|
876
882
|
type: string;
|
|
877
883
|
multiple: boolean;
|
|
878
|
-
/** @type {any} */
|
|
879
884
|
description: string;
|
|
880
885
|
path: string;
|
|
881
886
|
}
|
|
882
887
|
| {
|
|
883
888
|
type: string;
|
|
884
|
-
|
|
889
|
+
values: boolean[];
|
|
885
890
|
multiple: boolean;
|
|
886
891
|
description: string;
|
|
887
892
|
path: string;
|
|
@@ -920,7 +925,7 @@ declare class Server {
|
|
|
920
925
|
| {
|
|
921
926
|
type: string;
|
|
922
927
|
multiple: boolean;
|
|
923
|
-
description: string;
|
|
928
|
+
/** @type {MultiCompiler} */ description: string;
|
|
924
929
|
path: string;
|
|
925
930
|
}
|
|
926
931
|
| {
|
|
@@ -931,7 +936,7 @@ declare class Server {
|
|
|
931
936
|
path: string;
|
|
932
937
|
}
|
|
933
938
|
)[];
|
|
934
|
-
|
|
939
|
+
description: string;
|
|
935
940
|
simpleType: string;
|
|
936
941
|
multiple: boolean;
|
|
937
942
|
};
|
|
@@ -956,6 +961,10 @@ declare class Server {
|
|
|
956
961
|
description: string;
|
|
957
962
|
simpleType: string;
|
|
958
963
|
multiple: boolean;
|
|
964
|
+
/**
|
|
965
|
+
* @param {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} watchOptions
|
|
966
|
+
* @returns {WatchOptions}
|
|
967
|
+
*/
|
|
959
968
|
};
|
|
960
969
|
"open-app-name-reset": {
|
|
961
970
|
configs: {
|
|
@@ -987,7 +996,7 @@ declare class Server {
|
|
|
987
996
|
path: string;
|
|
988
997
|
}[];
|
|
989
998
|
description: string;
|
|
990
|
-
|
|
999
|
+
simpleType: string;
|
|
991
1000
|
multiple: boolean;
|
|
992
1001
|
};
|
|
993
1002
|
"open-target-reset": {
|
|
@@ -1162,9 +1171,8 @@ declare class Server {
|
|
|
1162
1171
|
}[];
|
|
1163
1172
|
description: string;
|
|
1164
1173
|
multiple: boolean;
|
|
1165
|
-
simpleType: string
|
|
1174
|
+
simpleType: string;
|
|
1166
1175
|
};
|
|
1167
|
-
/** @type {ServerOptions} */
|
|
1168
1176
|
"server-options-request-cert": {
|
|
1169
1177
|
configs: {
|
|
1170
1178
|
description: string;
|
|
@@ -1187,7 +1195,7 @@ declare class Server {
|
|
|
1187
1195
|
}[];
|
|
1188
1196
|
description: string;
|
|
1189
1197
|
multiple: boolean;
|
|
1190
|
-
simpleType: string
|
|
1198
|
+
simpleType: string /** @type {ServerOptions} */;
|
|
1191
1199
|
};
|
|
1192
1200
|
static: {
|
|
1193
1201
|
configs: (
|
|
@@ -1200,11 +1208,7 @@ declare class Server {
|
|
|
1200
1208
|
| {
|
|
1201
1209
|
type: string;
|
|
1202
1210
|
multiple: boolean;
|
|
1203
|
-
/**
|
|
1204
|
-
* @param {string | Buffer | undefined} item
|
|
1205
|
-
* @returns {string | Buffer | undefined}
|
|
1206
|
-
*/
|
|
1207
|
-
description: string;
|
|
1211
|
+
/** @type {ServerOptions} */ description: string;
|
|
1208
1212
|
negatedDescription: string;
|
|
1209
1213
|
path: string;
|
|
1210
1214
|
}
|
|
@@ -1216,11 +1220,15 @@ declare class Server {
|
|
|
1216
1220
|
"static-directory": {
|
|
1217
1221
|
configs: {
|
|
1218
1222
|
type: string;
|
|
1219
|
-
multiple: boolean;
|
|
1223
|
+
/** @type {any} */ multiple: boolean;
|
|
1220
1224
|
description: string;
|
|
1221
1225
|
path: string;
|
|
1222
1226
|
}[];
|
|
1223
|
-
/**
|
|
1227
|
+
/**
|
|
1228
|
+
* @param {string | Buffer | undefined} item
|
|
1229
|
+
* @returns {string | Buffer | undefined}
|
|
1230
|
+
*/
|
|
1231
|
+
description: string;
|
|
1224
1232
|
simpleType: string;
|
|
1225
1233
|
multiple: boolean;
|
|
1226
1234
|
};
|
|
@@ -1232,7 +1240,7 @@ declare class Server {
|
|
|
1232
1240
|
path: string;
|
|
1233
1241
|
}[];
|
|
1234
1242
|
description: string;
|
|
1235
|
-
simpleType: string;
|
|
1243
|
+
/** @type {any} */ simpleType: string;
|
|
1236
1244
|
multiple: boolean;
|
|
1237
1245
|
};
|
|
1238
1246
|
"static-public-path-reset": {
|
|
@@ -1327,9 +1335,7 @@ declare class Server {
|
|
|
1327
1335
|
type: string;
|
|
1328
1336
|
}
|
|
1329
1337
|
)[];
|
|
1330
|
-
/** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */
|
|
1331
1338
|
description: string;
|
|
1332
|
-
/** @type {ServerOptions} */
|
|
1333
1339
|
simpleType: string;
|
|
1334
1340
|
multiple: boolean;
|
|
1335
1341
|
};
|
|
@@ -1346,12 +1352,12 @@ declare class Server {
|
|
|
1346
1352
|
description: string;
|
|
1347
1353
|
multiple: boolean;
|
|
1348
1354
|
path: string;
|
|
1349
|
-
type: string
|
|
1355
|
+
type: string /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */;
|
|
1350
1356
|
}
|
|
1351
1357
|
)[];
|
|
1352
1358
|
description: string;
|
|
1353
1359
|
simpleType: string;
|
|
1354
|
-
multiple: boolean
|
|
1360
|
+
multiple: boolean /** @type {ServerOptions} */;
|
|
1355
1361
|
};
|
|
1356
1362
|
};
|
|
1357
1363
|
readonly processArguments: (
|
|
@@ -2374,12 +2380,6 @@ declare class Server {
|
|
|
2374
2380
|
anyOf: (
|
|
2375
2381
|
| {
|
|
2376
2382
|
type: string;
|
|
2377
|
-
/**
|
|
2378
|
-
* prependEntry Method for webpack 4
|
|
2379
|
-
* @param {any} originalEntry
|
|
2380
|
-
* @param {any} newAdditionalEntries
|
|
2381
|
-
* @returns {any}
|
|
2382
|
-
*/
|
|
2383
2383
|
items: {
|
|
2384
2384
|
type: string;
|
|
2385
2385
|
minLength: number;
|
|
@@ -2421,7 +2421,6 @@ declare class Server {
|
|
|
2421
2421
|
};
|
|
2422
2422
|
};
|
|
2423
2423
|
};
|
|
2424
|
-
/** @type {any} */
|
|
2425
2424
|
OpenString: {
|
|
2426
2425
|
type: string;
|
|
2427
2426
|
minLength: number;
|
|
@@ -2480,7 +2479,7 @@ declare class Server {
|
|
|
2480
2479
|
};
|
|
2481
2480
|
Server: {
|
|
2482
2481
|
anyOf: {
|
|
2483
|
-
$ref: string
|
|
2482
|
+
$ref: string;
|
|
2484
2483
|
}[];
|
|
2485
2484
|
link: string;
|
|
2486
2485
|
description: string;
|
|
@@ -2631,7 +2630,6 @@ declare class Server {
|
|
|
2631
2630
|
anyOf: (
|
|
2632
2631
|
| {
|
|
2633
2632
|
type: string;
|
|
2634
|
-
/** @type {NormalizedStatic} */
|
|
2635
2633
|
instanceof?: undefined;
|
|
2636
2634
|
}
|
|
2637
2635
|
| {
|
|
@@ -2924,10 +2922,10 @@ declare class Server {
|
|
|
2924
2922
|
anyOf: (
|
|
2925
2923
|
| {
|
|
2926
2924
|
enum: boolean[];
|
|
2927
|
-
cli: {
|
|
2925
|
+
/** @type {ServerOptions} */ cli: {
|
|
2928
2926
|
negatedDescription: string;
|
|
2929
2927
|
};
|
|
2930
|
-
$ref?: undefined;
|
|
2928
|
+
/** @type {ServerOptions} */ $ref?: undefined;
|
|
2931
2929
|
}
|
|
2932
2930
|
| {
|
|
2933
2931
|
$ref: string;
|
|
@@ -2936,7 +2934,7 @@ declare class Server {
|
|
|
2936
2934
|
}
|
|
2937
2935
|
)[];
|
|
2938
2936
|
cli: {
|
|
2939
|
-
description: string
|
|
2937
|
+
description: string;
|
|
2940
2938
|
};
|
|
2941
2939
|
};
|
|
2942
2940
|
WebSocketServerFunction: {
|