webpack-dev-server 4.3.1 → 4.7.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 +71 -33
- package/bin/cli-flags.js +507 -227
- package/bin/process-arguments.js +87 -7
- package/bin/webpack-dev-server.js +3 -0
- package/client/clients/SockJSClient.js +21 -2
- package/client/clients/WebSocketClient.js +16 -1
- package/client/index.js +39 -4
- package/client/modules/logger/index.js +46 -14
- package/client/modules/sockjs-client/index.js +20 -17
- package/client/socket.js +12 -9
- package/client/utils/log.js +6 -1
- package/client/utils/sendMessage.js +5 -0
- package/lib/Server.js +1935 -839
- package/lib/options.json +279 -21
- package/lib/servers/BaseServer.js +8 -0
- package/lib/servers/SockJSServer.js +42 -9
- package/lib/servers/WebsocketServer.js +66 -35
- package/package.json +28 -18
- package/types/bin/cli-flags.d.ts +934 -0
- package/types/bin/process-arguments.d.ts +50 -0
- package/types/bin/webpack-dev-server.d.ts +27 -0
- package/types/lib/Server.d.ts +3388 -0
- package/types/lib/servers/BaseServer.d.ts +15 -0
- package/types/lib/servers/SockJSServer.d.ts +12 -0
- package/types/lib/servers/WebsocketServer.d.ts +13 -0
package/bin/process-arguments.js
CHANGED
|
@@ -5,8 +5,50 @@ const path = require("path");
|
|
|
5
5
|
// Based on https://github.com/webpack/webpack/blob/master/lib/cli.js
|
|
6
6
|
// Please do not modify it
|
|
7
7
|
|
|
8
|
+
/** @typedef {"unknown-argument" | "unexpected-non-array-in-path" | "unexpected-non-object-in-path" | "multiple-values-unexpected" | "invalid-value"} ProblemType */
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {Object} Problem
|
|
12
|
+
* @property {ProblemType} type
|
|
13
|
+
* @property {string} path
|
|
14
|
+
* @property {string} argument
|
|
15
|
+
* @property {any=} value
|
|
16
|
+
* @property {number=} index
|
|
17
|
+
* @property {string=} expected
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} LocalProblem
|
|
22
|
+
* @property {ProblemType} type
|
|
23
|
+
* @property {string} path
|
|
24
|
+
* @property {string=} expected
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @typedef {Object} ArgumentConfig
|
|
29
|
+
* @property {string} description
|
|
30
|
+
* @property {string} path
|
|
31
|
+
* @property {boolean} multiple
|
|
32
|
+
* @property {"enum"|"string"|"path"|"number"|"boolean"|"RegExp"|"reset"} type
|
|
33
|
+
* @property {any[]=} values
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @typedef {Object} Argument
|
|
38
|
+
* @property {string} description
|
|
39
|
+
* @property {"string"|"number"|"boolean"} simpleType
|
|
40
|
+
* @property {boolean} multiple
|
|
41
|
+
* @property {ArgumentConfig[]} configs
|
|
42
|
+
*/
|
|
43
|
+
|
|
8
44
|
const cliAddedItems = new WeakMap();
|
|
9
45
|
|
|
46
|
+
/**
|
|
47
|
+
* @param {any} config configuration
|
|
48
|
+
* @param {string} schemaPath path in the config
|
|
49
|
+
* @param {number | undefined} index index of value when multiple values are provided, otherwise undefined
|
|
50
|
+
* @returns {{ problem?: LocalProblem, object?: any, property?: string | number, value?: any }} problem or object with property and value
|
|
51
|
+
*/
|
|
10
52
|
const getObjectAndProperty = (config, schemaPath, index = 0) => {
|
|
11
53
|
if (!schemaPath) {
|
|
12
54
|
return { value: config };
|
|
@@ -81,10 +123,10 @@ const getObjectAndProperty = (config, schemaPath, index = 0) => {
|
|
|
81
123
|
i++;
|
|
82
124
|
}
|
|
83
125
|
|
|
84
|
-
const value = current[property];
|
|
126
|
+
const value = current[/** @type {string} */ (property)];
|
|
85
127
|
|
|
86
|
-
if (property.endsWith("[]")) {
|
|
87
|
-
const name = property.slice(0, -2);
|
|
128
|
+
if (/** @type {string} */ (property).endsWith("[]")) {
|
|
129
|
+
const name = /** @type {string} */ (property).slice(0, -2);
|
|
88
130
|
// eslint-disable-next-line no-shadow
|
|
89
131
|
const value = current[name];
|
|
90
132
|
|
|
@@ -140,6 +182,11 @@ const getObjectAndProperty = (config, schemaPath, index = 0) => {
|
|
|
140
182
|
return { object: current, property, value };
|
|
141
183
|
};
|
|
142
184
|
|
|
185
|
+
/**
|
|
186
|
+
* @param {ArgumentConfig} argConfig processing instructions
|
|
187
|
+
* @param {any} value the value
|
|
188
|
+
* @returns {any | undefined} parsed value
|
|
189
|
+
*/
|
|
143
190
|
const parseValueForArgumentConfig = (argConfig, value) => {
|
|
144
191
|
// eslint-disable-next-line default-case
|
|
145
192
|
switch (argConfig.type) {
|
|
@@ -194,11 +241,11 @@ const parseValueForArgumentConfig = (argConfig, value) => {
|
|
|
194
241
|
|
|
195
242
|
break;
|
|
196
243
|
case "enum":
|
|
197
|
-
if (argConfig.values.includes(value)) {
|
|
244
|
+
if (/** @type {any[]} */ (argConfig.values).includes(value)) {
|
|
198
245
|
return value;
|
|
199
246
|
}
|
|
200
247
|
|
|
201
|
-
for (const item of argConfig.values) {
|
|
248
|
+
for (const item of /** @type {any[]} */ (argConfig.values)) {
|
|
202
249
|
if (`${item}` === value) return item;
|
|
203
250
|
}
|
|
204
251
|
|
|
@@ -212,6 +259,10 @@ const parseValueForArgumentConfig = (argConfig, value) => {
|
|
|
212
259
|
}
|
|
213
260
|
};
|
|
214
261
|
|
|
262
|
+
/**
|
|
263
|
+
* @param {ArgumentConfig} argConfig processing instructions
|
|
264
|
+
* @returns {string | undefined} expected message
|
|
265
|
+
*/
|
|
215
266
|
const getExpectedValue = (argConfig) => {
|
|
216
267
|
switch (argConfig.type) {
|
|
217
268
|
default:
|
|
@@ -221,12 +272,21 @@ const getExpectedValue = (argConfig) => {
|
|
|
221
272
|
case "RegExp":
|
|
222
273
|
return "regular expression (example: /ab?c*/)";
|
|
223
274
|
case "enum":
|
|
224
|
-
return
|
|
275
|
+
return /** @type {any[]} */ (argConfig.values)
|
|
276
|
+
.map((v) => `${v}`)
|
|
277
|
+
.join(" | ");
|
|
225
278
|
case "reset":
|
|
226
279
|
return "true (will reset the previous value to an empty array)";
|
|
227
280
|
}
|
|
228
281
|
};
|
|
229
282
|
|
|
283
|
+
/**
|
|
284
|
+
* @param {any} config configuration
|
|
285
|
+
* @param {string} schemaPath path in the config
|
|
286
|
+
* @param {any} value parsed value
|
|
287
|
+
* @param {number | undefined} index index of value when multiple values are provided, otherwise undefined
|
|
288
|
+
* @returns {LocalProblem | null} problem or null for success
|
|
289
|
+
*/
|
|
230
290
|
const setValue = (config, schemaPath, value, index) => {
|
|
231
291
|
const { problem, object, property } = getObjectAndProperty(
|
|
232
292
|
config,
|
|
@@ -238,11 +298,18 @@ const setValue = (config, schemaPath, value, index) => {
|
|
|
238
298
|
return problem;
|
|
239
299
|
}
|
|
240
300
|
|
|
241
|
-
object[property] = value;
|
|
301
|
+
object[/** @type {string} */ (property)] = value;
|
|
242
302
|
|
|
243
303
|
return null;
|
|
244
304
|
};
|
|
245
305
|
|
|
306
|
+
/**
|
|
307
|
+
* @param {ArgumentConfig} argConfig processing instructions
|
|
308
|
+
* @param {any} config configuration
|
|
309
|
+
* @param {any} value the value
|
|
310
|
+
* @param {number | undefined} index the index if multiple values provided
|
|
311
|
+
* @returns {LocalProblem | null} a problem if any
|
|
312
|
+
*/
|
|
246
313
|
const processArgumentConfig = (argConfig, config, value, index) => {
|
|
247
314
|
// eslint-disable-next-line no-undefined
|
|
248
315
|
if (index !== undefined && !argConfig.multiple) {
|
|
@@ -272,7 +339,16 @@ const processArgumentConfig = (argConfig, config, value, index) => {
|
|
|
272
339
|
return null;
|
|
273
340
|
};
|
|
274
341
|
|
|
342
|
+
/**
|
|
343
|
+
* @param {Record<string, Argument>} args object of arguments
|
|
344
|
+
* @param {any} config configuration
|
|
345
|
+
* @param {Record<string, string | number | boolean | RegExp | (string | number | boolean | RegExp)[]>} values object with values
|
|
346
|
+
* @returns {Problem[] | null} problems or null for success
|
|
347
|
+
*/
|
|
275
348
|
const processArguments = (args, config, values) => {
|
|
349
|
+
/**
|
|
350
|
+
* @type {Problem[]}
|
|
351
|
+
*/
|
|
276
352
|
const problems = [];
|
|
277
353
|
|
|
278
354
|
for (const key of Object.keys(values)) {
|
|
@@ -289,6 +365,10 @@ const processArguments = (args, config, values) => {
|
|
|
289
365
|
continue;
|
|
290
366
|
}
|
|
291
367
|
|
|
368
|
+
/**
|
|
369
|
+
* @param {any} value
|
|
370
|
+
* @param {number | undefined} i
|
|
371
|
+
*/
|
|
292
372
|
const processValue = (value, i) => {
|
|
293
373
|
const currentProblems = [];
|
|
294
374
|
|
|
@@ -2,34 +2,53 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
2
2
|
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
4
|
|
|
5
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
|
|
7
7
|
import SockJS from "../modules/sockjs-client/index.js";
|
|
8
8
|
import { log } from "../utils/log.js";
|
|
9
9
|
|
|
10
10
|
var SockJSClient = /*#__PURE__*/function () {
|
|
11
|
+
/**
|
|
12
|
+
* @param {string} url
|
|
13
|
+
*/
|
|
11
14
|
function SockJSClient(url) {
|
|
12
15
|
_classCallCheck(this, SockJSClient);
|
|
13
16
|
|
|
14
17
|
// SockJS requires `http` and `https` protocols
|
|
15
18
|
this.sock = new SockJS(url.replace(/^ws:/i, "http:").replace(/^wss:/i, "https:"));
|
|
16
19
|
|
|
17
|
-
this.sock.onerror =
|
|
20
|
+
this.sock.onerror =
|
|
21
|
+
/**
|
|
22
|
+
* @param {Error} error
|
|
23
|
+
*/
|
|
24
|
+
function (error) {
|
|
18
25
|
log.error(error);
|
|
19
26
|
};
|
|
20
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @param {(...args: any[]) => void} f
|
|
30
|
+
*/
|
|
31
|
+
|
|
21
32
|
|
|
22
33
|
_createClass(SockJSClient, [{
|
|
23
34
|
key: "onOpen",
|
|
24
35
|
value: function onOpen(f) {
|
|
25
36
|
this.sock.onopen = f;
|
|
26
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @param {(...args: any[]) => void} f
|
|
40
|
+
*/
|
|
41
|
+
|
|
27
42
|
}, {
|
|
28
43
|
key: "onClose",
|
|
29
44
|
value: function onClose(f) {
|
|
30
45
|
this.sock.onclose = f;
|
|
31
46
|
} // call f with the message string as the first argument
|
|
32
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @param {(...args: any[]) => void} f
|
|
50
|
+
*/
|
|
51
|
+
|
|
33
52
|
}, {
|
|
34
53
|
key: "onMessage",
|
|
35
54
|
value: function onMessage(f) {
|
|
@@ -2,11 +2,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
2
2
|
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4
4
|
|
|
5
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
|
|
7
7
|
import { log } from "../utils/log.js";
|
|
8
8
|
|
|
9
9
|
var WebSocketClient = /*#__PURE__*/function () {
|
|
10
|
+
/**
|
|
11
|
+
* @param {string} url
|
|
12
|
+
*/
|
|
10
13
|
function WebSocketClient(url) {
|
|
11
14
|
_classCallCheck(this, WebSocketClient);
|
|
12
15
|
|
|
@@ -16,18 +19,30 @@ var WebSocketClient = /*#__PURE__*/function () {
|
|
|
16
19
|
log.error(error);
|
|
17
20
|
};
|
|
18
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @param {(...args: any[]) => void} f
|
|
24
|
+
*/
|
|
25
|
+
|
|
19
26
|
|
|
20
27
|
_createClass(WebSocketClient, [{
|
|
21
28
|
key: "onOpen",
|
|
22
29
|
value: function onOpen(f) {
|
|
23
30
|
this.client.onopen = f;
|
|
24
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @param {(...args: any[]) => void} f
|
|
34
|
+
*/
|
|
35
|
+
|
|
25
36
|
}, {
|
|
26
37
|
key: "onClose",
|
|
27
38
|
value: function onClose(f) {
|
|
28
39
|
this.client.onclose = f;
|
|
29
40
|
} // call f with the message string as the first argument
|
|
30
41
|
|
|
42
|
+
/**
|
|
43
|
+
* @param {(...args: any[]) => void} f
|
|
44
|
+
*/
|
|
45
|
+
|
|
31
46
|
}, {
|
|
32
47
|
key: "onMessage",
|
|
33
48
|
value: function onMessage(f) {
|
package/client/index.js
CHANGED
|
@@ -13,8 +13,7 @@ var status = {
|
|
|
13
13
|
// TODO Workaround for webpack v4, `__webpack_hash__` is not replaced without HotModuleReplacement
|
|
14
14
|
// eslint-disable-next-line camelcase
|
|
15
15
|
currentHash: typeof __webpack_hash__ !== "undefined" ? __webpack_hash__ : ""
|
|
16
|
-
};
|
|
17
|
-
|
|
16
|
+
};
|
|
18
17
|
var options = {
|
|
19
18
|
hot: false,
|
|
20
19
|
liveReload: false,
|
|
@@ -37,6 +36,14 @@ if (parsedResourceQuery.logging) {
|
|
|
37
36
|
options.logging = parsedResourceQuery.logging;
|
|
38
37
|
}
|
|
39
38
|
|
|
39
|
+
if (typeof parsedResourceQuery.reconnect !== "undefined") {
|
|
40
|
+
options.reconnect = Number(parsedResourceQuery.reconnect);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @param {string} level
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
|
|
40
47
|
function setAllLogLevel(level) {
|
|
41
48
|
// This is needed because the HMR logger operate separately from dev server logger
|
|
42
49
|
webpackHotLog.setLogLevel(level === "verbose" || level === "log" ? "info" : level);
|
|
@@ -76,6 +83,10 @@ var onSocketMessage = {
|
|
|
76
83
|
|
|
77
84
|
sendMessage("Invalid");
|
|
78
85
|
},
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param {string} hash
|
|
89
|
+
*/
|
|
79
90
|
hash: function hash(_hash) {
|
|
80
91
|
status.previousHash = status.currentHash;
|
|
81
92
|
status.currentHash = _hash;
|
|
@@ -88,6 +99,13 @@ var onSocketMessage = {
|
|
|
88
99
|
|
|
89
100
|
options.overlay = value;
|
|
90
101
|
},
|
|
102
|
+
reconnect: function reconnect(value) {
|
|
103
|
+
if (parsedResourceQuery.reconnect === "false") {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
options.reconnect = value;
|
|
108
|
+
},
|
|
91
109
|
progress: function progress(_progress) {
|
|
92
110
|
options.progress = _progress;
|
|
93
111
|
},
|
|
@@ -125,7 +143,12 @@ var onSocketMessage = {
|
|
|
125
143
|
log.info("".concat(file ? "\"".concat(file, "\"") : "Content", " from static directory was changed. Reloading..."));
|
|
126
144
|
self.location.reload();
|
|
127
145
|
},
|
|
128
|
-
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @param {Error[]} warnings
|
|
149
|
+
* @param {any} params
|
|
150
|
+
*/
|
|
151
|
+
warnings: function warnings(_warnings, params) {
|
|
129
152
|
log.warn("Warnings while compiling.");
|
|
130
153
|
|
|
131
154
|
var printableWarnings = _warnings.map(function (error) {
|
|
@@ -148,8 +171,16 @@ var onSocketMessage = {
|
|
|
148
171
|
show("warning", _warnings);
|
|
149
172
|
}
|
|
150
173
|
|
|
174
|
+
if (params && params.preventReloading) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
|
|
151
178
|
reloadApp(options, status);
|
|
152
179
|
},
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @param {Error[]} errors
|
|
183
|
+
*/
|
|
153
184
|
errors: function errors(_errors) {
|
|
154
185
|
log.error("Errors while compiling. Reload prevented.");
|
|
155
186
|
|
|
@@ -173,6 +204,10 @@ var onSocketMessage = {
|
|
|
173
204
|
show("error", _errors);
|
|
174
205
|
}
|
|
175
206
|
},
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @param {Error} error
|
|
210
|
+
*/
|
|
176
211
|
error: function error(_error) {
|
|
177
212
|
log.error(_error);
|
|
178
213
|
},
|
|
@@ -187,4 +222,4 @@ var onSocketMessage = {
|
|
|
187
222
|
}
|
|
188
223
|
};
|
|
189
224
|
var socketURL = createSocketURL(parsedResourceQuery);
|
|
190
|
-
socket(socketURL, onSocketMessage);
|
|
225
|
+
socket(socketURL, onSocketMessage, options.reconnect);
|
|
@@ -87,37 +87,68 @@ function _defineProperties(target, props) {
|
|
|
87
87
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
88
88
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
89
89
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
90
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
91
|
+
writable: false
|
|
92
|
+
});
|
|
90
93
|
return Constructor;
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
var LogType = Object.freeze({
|
|
94
|
-
error:
|
|
97
|
+
error:
|
|
98
|
+
/** @type {"error"} */
|
|
99
|
+
"error",
|
|
95
100
|
// message, c style arguments
|
|
96
|
-
warn:
|
|
101
|
+
warn:
|
|
102
|
+
/** @type {"warn"} */
|
|
103
|
+
"warn",
|
|
97
104
|
// message, c style arguments
|
|
98
|
-
info:
|
|
105
|
+
info:
|
|
106
|
+
/** @type {"info"} */
|
|
107
|
+
"info",
|
|
99
108
|
// message, c style arguments
|
|
100
|
-
log:
|
|
109
|
+
log:
|
|
110
|
+
/** @type {"log"} */
|
|
111
|
+
"log",
|
|
101
112
|
// message, c style arguments
|
|
102
|
-
debug:
|
|
113
|
+
debug:
|
|
114
|
+
/** @type {"debug"} */
|
|
115
|
+
"debug",
|
|
103
116
|
// message, c style arguments
|
|
104
|
-
trace:
|
|
117
|
+
trace:
|
|
118
|
+
/** @type {"trace"} */
|
|
119
|
+
"trace",
|
|
105
120
|
// no arguments
|
|
106
|
-
group:
|
|
121
|
+
group:
|
|
122
|
+
/** @type {"group"} */
|
|
123
|
+
"group",
|
|
107
124
|
// [label]
|
|
108
|
-
groupCollapsed:
|
|
125
|
+
groupCollapsed:
|
|
126
|
+
/** @type {"groupCollapsed"} */
|
|
127
|
+
"groupCollapsed",
|
|
109
128
|
// [label]
|
|
110
|
-
groupEnd:
|
|
129
|
+
groupEnd:
|
|
130
|
+
/** @type {"groupEnd"} */
|
|
131
|
+
"groupEnd",
|
|
111
132
|
// [label]
|
|
112
|
-
profile:
|
|
133
|
+
profile:
|
|
134
|
+
/** @type {"profile"} */
|
|
135
|
+
"profile",
|
|
113
136
|
// [profileName]
|
|
114
|
-
profileEnd:
|
|
137
|
+
profileEnd:
|
|
138
|
+
/** @type {"profileEnd"} */
|
|
139
|
+
"profileEnd",
|
|
115
140
|
// [profileName]
|
|
116
|
-
time:
|
|
141
|
+
time:
|
|
142
|
+
/** @type {"time"} */
|
|
143
|
+
"time",
|
|
117
144
|
// name, time as [seconds, nanoseconds]
|
|
118
|
-
clear:
|
|
145
|
+
clear:
|
|
146
|
+
/** @type {"clear"} */
|
|
147
|
+
"clear",
|
|
119
148
|
// no arguments
|
|
120
|
-
status:
|
|
149
|
+
status:
|
|
150
|
+
/** @type {"status"} */
|
|
151
|
+
"status" // message, arguments
|
|
121
152
|
|
|
122
153
|
});
|
|
123
154
|
exports.LogType = LogType;
|
|
@@ -314,6 +345,7 @@ var WebpackLogger = /*#__PURE__*/function () {
|
|
|
314
345
|
if (this[TIMERS_AGGREGATES_SYMBOL] === undefined) return;
|
|
315
346
|
var time = this[TIMERS_AGGREGATES_SYMBOL].get(label);
|
|
316
347
|
if (time === undefined) return;
|
|
348
|
+
this[TIMERS_AGGREGATES_SYMBOL].delete(label);
|
|
317
349
|
this[LOG_SYMBOL](LogType.time, [label].concat(_toConsumableArray(time)));
|
|
318
350
|
}
|
|
319
351
|
}]);
|
|
@@ -1880,7 +1880,7 @@ module.exports = function (SockJS, availableTransports) {
|
|
|
1880
1880
|
"use strict";
|
|
1881
1881
|
|
|
1882
1882
|
|
|
1883
|
-
var EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
1883
|
+
var EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
1884
1884
|
inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
1885
1885
|
JSON3 = __webpack_require__(/*! json3 */ "./node_modules/json3/lib/json3.js"),
|
|
1886
1886
|
objectUtils = __webpack_require__(/*! ./utils/object */ "./node_modules/sockjs-client/lib/utils/object.js");
|
|
@@ -1941,7 +1941,7 @@ module.exports = InfoAjax;
|
|
|
1941
1941
|
|
|
1942
1942
|
|
|
1943
1943
|
var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
1944
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
1944
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
1945
1945
|
JSON3 = __webpack_require__(/*! json3 */ "./node_modules/json3/lib/json3.js"),
|
|
1946
1946
|
XHRLocalObject = __webpack_require__(/*! ./transport/sender/xhr-local */ "./node_modules/sockjs-client/lib/transport/sender/xhr-local.js"),
|
|
1947
1947
|
InfoAjax = __webpack_require__(/*! ./info-ajax */ "./node_modules/sockjs-client/lib/info-ajax.js");
|
|
@@ -1981,7 +1981,7 @@ module.exports = InfoReceiverIframe;
|
|
|
1981
1981
|
"use strict";
|
|
1982
1982
|
|
|
1983
1983
|
|
|
1984
|
-
var EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
1984
|
+
var EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
1985
1985
|
inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
1986
1986
|
JSON3 = __webpack_require__(/*! json3 */ "./node_modules/json3/lib/json3.js"),
|
|
1987
1987
|
utils = __webpack_require__(/*! ./utils/event */ "./node_modules/sockjs-client/lib/utils/event.js"),
|
|
@@ -2062,7 +2062,7 @@ module.exports = InfoIframe;
|
|
|
2062
2062
|
"use strict";
|
|
2063
2063
|
|
|
2064
2064
|
|
|
2065
|
-
var EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
2065
|
+
var EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
2066
2066
|
inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
2067
2067
|
urlUtils = __webpack_require__(/*! ./utils/url */ "./node_modules/sockjs-client/lib/utils/url.js"),
|
|
2068
2068
|
XDR = __webpack_require__(/*! ./transport/sender/xdr */ "./node_modules/sockjs-client/lib/transport/sender/xdr.js"),
|
|
@@ -2958,7 +2958,8 @@ if ('ab'.split(/(?:ab)*/).length !== 2 || '.'.split(/(.?)(.?)/).length !== 4 ||
|
|
|
2958
2958
|
}
|
|
2959
2959
|
|
|
2960
2960
|
var output = [],
|
|
2961
|
-
flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.extended ? 'x' : '') + (
|
|
2961
|
+
flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.extended ? 'x' : '') + ( // Proposed for ES6
|
|
2962
|
+
separator.sticky ? 'y' : ''),
|
|
2962
2963
|
// Firefox 3+
|
|
2963
2964
|
lastLastIndex = 0,
|
|
2964
2965
|
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
@@ -3086,7 +3087,7 @@ __webpack_require__(/*! ./transport/websocket */ "./node_modules/sockjs-client/l
|
|
|
3086
3087
|
"use strict";
|
|
3087
3088
|
|
|
3088
3089
|
|
|
3089
|
-
var EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
3090
|
+
var EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
3090
3091
|
inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
3091
3092
|
utils = __webpack_require__(/*! ../../utils/event */ "./node_modules/sockjs-client/lib/utils/event.js"),
|
|
3092
3093
|
urlUtils = __webpack_require__(/*! ../../utils/url */ "./node_modules/sockjs-client/lib/utils/url.js"),
|
|
@@ -3415,7 +3416,7 @@ module.exports = HtmlFileTransport;
|
|
|
3415
3416
|
|
|
3416
3417
|
var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
3417
3418
|
JSON3 = __webpack_require__(/*! json3 */ "./node_modules/json3/lib/json3.js"),
|
|
3418
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
3419
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
3419
3420
|
version = __webpack_require__(/*! ../version */ "./node_modules/sockjs-client/lib/version.js"),
|
|
3420
3421
|
urlUtils = __webpack_require__(/*! ../utils/url */ "./node_modules/sockjs-client/lib/utils/url.js"),
|
|
3421
3422
|
iframeUtils = __webpack_require__(/*! ../utils/iframe */ "./node_modules/sockjs-client/lib/utils/iframe.js"),
|
|
@@ -3659,7 +3660,7 @@ module.exports = AjaxBasedTransport;
|
|
|
3659
3660
|
|
|
3660
3661
|
|
|
3661
3662
|
var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
3662
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter;
|
|
3663
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter);
|
|
3663
3664
|
|
|
3664
3665
|
var debug = function debug() {};
|
|
3665
3666
|
|
|
@@ -3803,7 +3804,7 @@ module.exports = function (transport) {
|
|
|
3803
3804
|
|
|
3804
3805
|
|
|
3805
3806
|
var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
3806
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter;
|
|
3807
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter);
|
|
3807
3808
|
|
|
3808
3809
|
var debug = function debug() {};
|
|
3809
3810
|
|
|
@@ -3925,7 +3926,7 @@ module.exports = SenderReceiver;
|
|
|
3925
3926
|
|
|
3926
3927
|
|
|
3927
3928
|
var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
3928
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
3929
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
3929
3930
|
EventSourceDriver = __webpack_require__(/*! eventsource */ "./node_modules/sockjs-client/lib/transport/browser/eventsource.js");
|
|
3930
3931
|
|
|
3931
3932
|
var debug = function debug() {};
|
|
@@ -4006,7 +4007,7 @@ module.exports = EventSourceReceiver;
|
|
|
4006
4007
|
var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
4007
4008
|
iframeUtils = __webpack_require__(/*! ../../utils/iframe */ "./node_modules/sockjs-client/lib/utils/iframe.js"),
|
|
4008
4009
|
urlUtils = __webpack_require__(/*! ../../utils/url */ "./node_modules/sockjs-client/lib/utils/url.js"),
|
|
4009
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
4010
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
4010
4011
|
random = __webpack_require__(/*! ../../utils/random */ "./node_modules/sockjs-client/lib/utils/random.js");
|
|
4011
4012
|
|
|
4012
4013
|
var debug = function debug() {};
|
|
@@ -4107,7 +4108,7 @@ var utils = __webpack_require__(/*! ../../utils/iframe */ "./node_modules/sockjs
|
|
|
4107
4108
|
browser = __webpack_require__(/*! ../../utils/browser */ "./node_modules/sockjs-client/lib/utils/browser.js"),
|
|
4108
4109
|
urlUtils = __webpack_require__(/*! ../../utils/url */ "./node_modules/sockjs-client/lib/utils/url.js"),
|
|
4109
4110
|
inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
4110
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter;
|
|
4111
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter);
|
|
4111
4112
|
|
|
4112
4113
|
var debug = function debug() {};
|
|
4113
4114
|
|
|
@@ -4311,7 +4312,7 @@ module.exports = JsonpReceiver;
|
|
|
4311
4312
|
|
|
4312
4313
|
|
|
4313
4314
|
var inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
4314
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter;
|
|
4315
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter);
|
|
4315
4316
|
|
|
4316
4317
|
var debug = function debug() {};
|
|
4317
4318
|
|
|
@@ -4513,7 +4514,7 @@ module.exports = function (url, payload, callback) {
|
|
|
4513
4514
|
"use strict";
|
|
4514
4515
|
|
|
4515
4516
|
|
|
4516
|
-
var EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
4517
|
+
var EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
4517
4518
|
inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
4518
4519
|
eventUtils = __webpack_require__(/*! ../../utils/event */ "./node_modules/sockjs-client/lib/utils/event.js"),
|
|
4519
4520
|
browser = __webpack_require__(/*! ../../utils/browser */ "./node_modules/sockjs-client/lib/utils/browser.js"),
|
|
@@ -4659,10 +4660,12 @@ module.exports = XHRCorsObject;
|
|
|
4659
4660
|
"use strict";
|
|
4660
4661
|
|
|
4661
4662
|
|
|
4662
|
-
var EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
4663
|
+
var EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
4663
4664
|
inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js");
|
|
4664
4665
|
|
|
4665
|
-
function
|
|
4666
|
+
function
|
|
4667
|
+
/* method, url, payload, opts */
|
|
4668
|
+
XHRFake() {
|
|
4666
4669
|
var self = this;
|
|
4667
4670
|
EventEmitter.call(this);
|
|
4668
4671
|
this.to = setTimeout(function () {
|
|
@@ -4719,7 +4722,7 @@ module.exports = XHRLocalObject;
|
|
|
4719
4722
|
var utils = __webpack_require__(/*! ../utils/event */ "./node_modules/sockjs-client/lib/utils/event.js"),
|
|
4720
4723
|
urlUtils = __webpack_require__(/*! ../utils/url */ "./node_modules/sockjs-client/lib/utils/url.js"),
|
|
4721
4724
|
inherits = __webpack_require__(/*! inherits */ "./node_modules/inherits/inherits_browser.js"),
|
|
4722
|
-
EventEmitter = __webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter,
|
|
4725
|
+
EventEmitter = (__webpack_require__(/*! events */ "./node_modules/sockjs-client/lib/event/emitter.js").EventEmitter),
|
|
4723
4726
|
WebsocketDriver = __webpack_require__(/*! ./driver/websocket */ "./node_modules/sockjs-client/lib/transport/browser/websocket.js");
|
|
4724
4727
|
|
|
4725
4728
|
var debug = function debug() {};
|