@zimic/interceptor 1.1.2-canary.0 → 1.1.2-canary.2
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/dist/{chunk-CGILA3WO.mjs → chunk-BJTO5JO5.mjs} +3 -5
- package/dist/{chunk-CGILA3WO.mjs.map → chunk-BJTO5JO5.mjs.map} +1 -1
- package/dist/{chunk-RDMXECNU.mjs → chunk-CSKTIZSC.mjs} +20 -159
- package/dist/chunk-CSKTIZSC.mjs.map +1 -0
- package/dist/{chunk-WCQVDF3K.js → chunk-DGUM43GV.js} +2 -5
- package/dist/{chunk-WCQVDF3K.js.map → chunk-DGUM43GV.js.map} +1 -1
- package/dist/{chunk-QDNKVSEG.js → chunk-GM3MDVNT.js} +20 -159
- package/dist/chunk-GM3MDVNT.js.map +1 -0
- package/dist/cli.js +20 -31
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +3 -14
- package/dist/cli.mjs.map +1 -1
- package/dist/http.js +61 -250
- package/dist/http.js.map +1 -1
- package/dist/http.mjs +62 -251
- package/dist/http.mjs.map +1 -1
- package/dist/scripts/postinstall.js +2 -5
- package/dist/scripts/postinstall.js.map +1 -1
- package/dist/scripts/postinstall.mjs +1 -4
- package/dist/scripts/postinstall.mjs.map +1 -1
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/package.json +4 -4
- package/dist/chunk-QDNKVSEG.js.map +0 -1
- package/dist/chunk-RDMXECNU.mjs.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkWCQVDF3K_js = require('./chunk-WCQVDF3K.js');
|
|
4
3
|
var http = require('@zimic/http');
|
|
5
4
|
var server = require('@whatwg-node/server');
|
|
6
5
|
var http$1 = require('http');
|
|
@@ -44,9 +43,6 @@ var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
|
44
43
|
|
|
45
44
|
// src/server/errors/RunningInterceptorServerError.ts
|
|
46
45
|
var RunningInterceptorServerError = class extends Error {
|
|
47
|
-
static {
|
|
48
|
-
chunkWCQVDF3K_js.__name(this, "RunningInterceptorServerError");
|
|
49
|
-
}
|
|
50
46
|
constructor(additionalMessage) {
|
|
51
47
|
super(`The interceptor server is running.${additionalMessage}`);
|
|
52
48
|
this.name = "RunningInterceptorServerError";
|
|
@@ -56,9 +52,6 @@ var RunningInterceptorServerError_default = RunningInterceptorServerError;
|
|
|
56
52
|
|
|
57
53
|
// src/server/errors/NotRunningInterceptorServerError.ts
|
|
58
54
|
var NotRunningInterceptorServerError = class extends Error {
|
|
59
|
-
static {
|
|
60
|
-
chunkWCQVDF3K_js.__name(this, "NotRunningInterceptorServerError");
|
|
61
|
-
}
|
|
62
55
|
constructor() {
|
|
63
56
|
super("The interceptor server is not running. Did you forget to start it?");
|
|
64
57
|
this.name = "NotRunningInterceptorServerError";
|
|
@@ -68,23 +61,14 @@ var NotRunningInterceptorServerError_default = NotRunningInterceptorServerError;
|
|
|
68
61
|
|
|
69
62
|
// src/utils/http.ts
|
|
70
63
|
var HttpServerTimeoutError = class extends Error {
|
|
71
|
-
static {
|
|
72
|
-
chunkWCQVDF3K_js.__name(this, "HttpServerTimeoutError");
|
|
73
|
-
}
|
|
74
64
|
};
|
|
75
65
|
var HttpServerStartTimeoutError = class extends HttpServerTimeoutError {
|
|
76
|
-
static {
|
|
77
|
-
chunkWCQVDF3K_js.__name(this, "HttpServerStartTimeoutError");
|
|
78
|
-
}
|
|
79
66
|
constructor(reachedTimeout) {
|
|
80
67
|
super(`HTTP server start timed out after ${reachedTimeout}ms.`);
|
|
81
68
|
this.name = "HttpServerStartTimeout";
|
|
82
69
|
}
|
|
83
70
|
};
|
|
84
71
|
var HttpServerStopTimeoutError = class extends HttpServerTimeoutError {
|
|
85
|
-
static {
|
|
86
|
-
chunkWCQVDF3K_js.__name(this, "HttpServerStopTimeoutError");
|
|
87
|
-
}
|
|
88
72
|
constructor(reachedTimeout) {
|
|
89
73
|
super(`HTTP server stop timed out after ${reachedTimeout}ms.`);
|
|
90
74
|
this.name = "HttpServerStopTimeout";
|
|
@@ -98,7 +82,6 @@ async function startHttpServer(server, options = {}) {
|
|
|
98
82
|
server.off("listening", handleStartSuccess);
|
|
99
83
|
reject(error);
|
|
100
84
|
}
|
|
101
|
-
chunkWCQVDF3K_js.__name(handleStartError, "handleStartError");
|
|
102
85
|
const startTimeout = setTimeout(() => {
|
|
103
86
|
const timeoutError = new HttpServerStartTimeoutError(timeoutDuration);
|
|
104
87
|
handleStartError(timeoutError);
|
|
@@ -108,12 +91,10 @@ async function startHttpServer(server, options = {}) {
|
|
|
108
91
|
clearTimeout(startTimeout);
|
|
109
92
|
resolve();
|
|
110
93
|
}
|
|
111
|
-
chunkWCQVDF3K_js.__name(handleStartSuccess, "handleStartSuccess");
|
|
112
94
|
server.once("error", handleStartError);
|
|
113
95
|
server.listen(port, hostname, handleStartSuccess);
|
|
114
96
|
});
|
|
115
97
|
}
|
|
116
|
-
chunkWCQVDF3K_js.__name(startHttpServer, "startHttpServer");
|
|
117
98
|
async function stopHttpServer(server, options = {}) {
|
|
118
99
|
const { timeout: timeoutDuration = DEFAULT_HTTP_SERVER_LIFECYCLE_TIMEOUT } = options;
|
|
119
100
|
if (!server.listening) {
|
|
@@ -135,7 +116,6 @@ async function stopHttpServer(server, options = {}) {
|
|
|
135
116
|
server.closeAllConnections();
|
|
136
117
|
});
|
|
137
118
|
}
|
|
138
|
-
chunkWCQVDF3K_js.__name(stopHttpServer, "stopHttpServer");
|
|
139
119
|
function getHttpServerPort(server) {
|
|
140
120
|
const address = server.address();
|
|
141
121
|
if (typeof address === "string") {
|
|
@@ -144,7 +124,6 @@ function getHttpServerPort(server) {
|
|
|
144
124
|
return address?.port;
|
|
145
125
|
}
|
|
146
126
|
}
|
|
147
|
-
chunkWCQVDF3K_js.__name(getHttpServerPort, "getHttpServerPort");
|
|
148
127
|
var HTTP_METHODS_WITH_RESPONSE_BODY = /* @__PURE__ */ new Set([
|
|
149
128
|
"GET",
|
|
150
129
|
"POST",
|
|
@@ -156,7 +135,6 @@ var HTTP_METHODS_WITH_RESPONSE_BODY = /* @__PURE__ */ new Set([
|
|
|
156
135
|
function methodCanHaveResponseBody(method) {
|
|
157
136
|
return HTTP_METHODS_WITH_RESPONSE_BODY.has(method);
|
|
158
137
|
}
|
|
159
|
-
chunkWCQVDF3K_js.__name(methodCanHaveResponseBody, "methodCanHaveResponseBody");
|
|
160
138
|
|
|
161
139
|
// src/webSocket/errors/UnauthorizedWebSocketConnectionError.ts
|
|
162
140
|
var UnauthorizedWebSocketConnectionError = class extends Error {
|
|
@@ -165,49 +143,31 @@ var UnauthorizedWebSocketConnectionError = class extends Error {
|
|
|
165
143
|
this.event = event;
|
|
166
144
|
this.name = "UnauthorizedWebSocketConnectionError";
|
|
167
145
|
}
|
|
168
|
-
static {
|
|
169
|
-
chunkWCQVDF3K_js.__name(this, "UnauthorizedWebSocketConnectionError");
|
|
170
|
-
}
|
|
171
146
|
};
|
|
172
147
|
var UnauthorizedWebSocketConnectionError_default = UnauthorizedWebSocketConnectionError;
|
|
173
148
|
|
|
174
149
|
// src/utils/webSocket.ts
|
|
175
150
|
var WebSocketTimeoutError = class extends Error {
|
|
176
|
-
static {
|
|
177
|
-
chunkWCQVDF3K_js.__name(this, "WebSocketTimeoutError");
|
|
178
|
-
}
|
|
179
151
|
};
|
|
180
152
|
var WebSocketOpenTimeoutError = class extends WebSocketTimeoutError {
|
|
181
|
-
static {
|
|
182
|
-
chunkWCQVDF3K_js.__name(this, "WebSocketOpenTimeoutError");
|
|
183
|
-
}
|
|
184
153
|
constructor(reachedTimeout) {
|
|
185
154
|
super(`Web socket open timed out after ${reachedTimeout}ms.`);
|
|
186
155
|
this.name = "WebSocketOpenTimeout";
|
|
187
156
|
}
|
|
188
157
|
};
|
|
189
158
|
var WebSocketMessageTimeoutError = class extends WebSocketTimeoutError {
|
|
190
|
-
static {
|
|
191
|
-
chunkWCQVDF3K_js.__name(this, "WebSocketMessageTimeoutError");
|
|
192
|
-
}
|
|
193
159
|
constructor(reachedTimeout) {
|
|
194
160
|
super(`Web socket message timed out after ${reachedTimeout}ms.`);
|
|
195
161
|
this.name = "WebSocketMessageTimeout";
|
|
196
162
|
}
|
|
197
163
|
};
|
|
198
164
|
var WebSocketMessageAbortError = class extends WebSocketTimeoutError {
|
|
199
|
-
static {
|
|
200
|
-
chunkWCQVDF3K_js.__name(this, "WebSocketMessageAbortError");
|
|
201
|
-
}
|
|
202
165
|
constructor() {
|
|
203
166
|
super("Web socket message was aborted.");
|
|
204
167
|
this.name = "WebSocketMessageAbortError";
|
|
205
168
|
}
|
|
206
169
|
};
|
|
207
170
|
var WebSocketCloseTimeoutError = class extends WebSocketTimeoutError {
|
|
208
|
-
static {
|
|
209
|
-
chunkWCQVDF3K_js.__name(this, "WebSocketCloseTimeoutError");
|
|
210
|
-
}
|
|
211
171
|
constructor(reachedTimeout) {
|
|
212
172
|
super(`Web socket close timed out after ${reachedTimeout}ms.`);
|
|
213
173
|
this.name = "WebSocketCloseTimeout";
|
|
@@ -228,12 +188,10 @@ async function waitForOpenClientSocket(socket, options = {}) {
|
|
|
228
188
|
socket.removeEventListener("error", handleOpenError);
|
|
229
189
|
socket.removeEventListener("close", handleClose);
|
|
230
190
|
}
|
|
231
|
-
chunkWCQVDF3K_js.__name(removeAllSocketListeners, "removeAllSocketListeners");
|
|
232
191
|
function handleOpenError(error) {
|
|
233
192
|
removeAllSocketListeners();
|
|
234
193
|
reject(error);
|
|
235
194
|
}
|
|
236
|
-
chunkWCQVDF3K_js.__name(handleOpenError, "handleOpenError");
|
|
237
195
|
function handleClose(event) {
|
|
238
196
|
const isUnauthorized = event.code === 1008;
|
|
239
197
|
if (isUnauthorized) {
|
|
@@ -243,7 +201,6 @@ async function waitForOpenClientSocket(socket, options = {}) {
|
|
|
243
201
|
handleOpenError(event);
|
|
244
202
|
}
|
|
245
203
|
}
|
|
246
|
-
chunkWCQVDF3K_js.__name(handleClose, "handleClose");
|
|
247
204
|
const openTimeout = setTimeout(() => {
|
|
248
205
|
const timeoutError = new WebSocketOpenTimeoutError(timeoutDuration);
|
|
249
206
|
handleOpenError(timeoutError);
|
|
@@ -253,14 +210,12 @@ async function waitForOpenClientSocket(socket, options = {}) {
|
|
|
253
210
|
clearTimeout(openTimeout);
|
|
254
211
|
resolve();
|
|
255
212
|
}
|
|
256
|
-
chunkWCQVDF3K_js.__name(handleOpenSuccess, "handleOpenSuccess");
|
|
257
213
|
function handleSocketMessage(message) {
|
|
258
214
|
const hasValidAuth = message.data === "socket:auth:valid";
|
|
259
215
|
if (hasValidAuth) {
|
|
260
216
|
handleOpenSuccess();
|
|
261
217
|
}
|
|
262
218
|
}
|
|
263
|
-
chunkWCQVDF3K_js.__name(handleSocketMessage, "handleSocketMessage");
|
|
264
219
|
if (waitForAuthentication) {
|
|
265
220
|
socket.addEventListener("message", handleSocketMessage);
|
|
266
221
|
} else {
|
|
@@ -270,7 +225,6 @@ async function waitForOpenClientSocket(socket, options = {}) {
|
|
|
270
225
|
socket.addEventListener("close", handleClose);
|
|
271
226
|
});
|
|
272
227
|
}
|
|
273
|
-
chunkWCQVDF3K_js.__name(waitForOpenClientSocket, "waitForOpenClientSocket");
|
|
274
228
|
async function closeClientSocket(socket, options = {}) {
|
|
275
229
|
const { timeout: timeoutDuration = DEFAULT_WEB_SOCKET_LIFECYCLE_TIMEOUT } = options;
|
|
276
230
|
const isAlreadyClosed = socket.readyState === socket.CLOSED;
|
|
@@ -282,12 +236,10 @@ async function closeClientSocket(socket, options = {}) {
|
|
|
282
236
|
socket.removeEventListener("error", handleError);
|
|
283
237
|
socket.removeEventListener("close", handleClose);
|
|
284
238
|
}
|
|
285
|
-
chunkWCQVDF3K_js.__name(removeAllSocketListeners, "removeAllSocketListeners");
|
|
286
239
|
function handleError(error) {
|
|
287
240
|
removeAllSocketListeners();
|
|
288
241
|
reject(error);
|
|
289
242
|
}
|
|
290
|
-
chunkWCQVDF3K_js.__name(handleError, "handleError");
|
|
291
243
|
const closeTimeout = setTimeout(() => {
|
|
292
244
|
const timeoutError = new WebSocketCloseTimeoutError(timeoutDuration);
|
|
293
245
|
handleError(timeoutError);
|
|
@@ -297,13 +249,11 @@ async function closeClientSocket(socket, options = {}) {
|
|
|
297
249
|
clearTimeout(closeTimeout);
|
|
298
250
|
resolve();
|
|
299
251
|
}
|
|
300
|
-
chunkWCQVDF3K_js.__name(handleClose, "handleClose");
|
|
301
252
|
socket.addEventListener("error", handleError);
|
|
302
253
|
socket.addEventListener("close", handleClose);
|
|
303
254
|
socket.close();
|
|
304
255
|
});
|
|
305
256
|
}
|
|
306
|
-
chunkWCQVDF3K_js.__name(closeClientSocket, "closeClientSocket");
|
|
307
257
|
async function closeServerSocket(socket, options = {}) {
|
|
308
258
|
const { timeout: timeoutDuration = DEFAULT_WEB_SOCKET_LIFECYCLE_TIMEOUT } = options;
|
|
309
259
|
await new Promise((resolve, reject) => {
|
|
@@ -324,7 +274,6 @@ async function closeServerSocket(socket, options = {}) {
|
|
|
324
274
|
});
|
|
325
275
|
});
|
|
326
276
|
}
|
|
327
|
-
chunkWCQVDF3K_js.__name(closeServerSocket, "closeServerSocket");
|
|
328
277
|
|
|
329
278
|
// src/server/constants.ts
|
|
330
279
|
var ALLOWED_ACCESS_CONTROL_HTTP_METHODS = http.HTTP_METHODS.join(",");
|
|
@@ -339,41 +288,25 @@ var DEFAULT_PREFLIGHT_STATUS_CODE = 204;
|
|
|
339
288
|
var DEFAULT_HOSTNAME = "localhost";
|
|
340
289
|
var DEFAULT_LOG_UNHANDLED_REQUESTS = true;
|
|
341
290
|
|
|
342
|
-
// ../zimic-utils/dist/chunk-
|
|
343
|
-
var __defProp = Object.defineProperty;
|
|
344
|
-
var __name2 = /* @__PURE__ */ chunkWCQVDF3K_js.__name((target, value) => __defProp(target, "name", { value, configurable: true }), "__name");
|
|
345
|
-
|
|
346
|
-
// ../zimic-utils/dist/chunk-FPJJAH7P.mjs
|
|
291
|
+
// ../zimic-utils/dist/chunk-46M3OXFU.mjs
|
|
347
292
|
function getExtraPatternsToEscape() {
|
|
348
293
|
return /([.(){}+$])/g;
|
|
349
294
|
}
|
|
350
|
-
chunkWCQVDF3K_js.__name(getExtraPatternsToEscape, "getExtraPatternsToEscape");
|
|
351
|
-
__name2(getExtraPatternsToEscape, "getExtraPatternsToEscape");
|
|
352
295
|
function getURIEncodedBackSlashPattern() {
|
|
353
296
|
return /%5C/g;
|
|
354
297
|
}
|
|
355
|
-
chunkWCQVDF3K_js.__name(getURIEncodedBackSlashPattern, "getURIEncodedBackSlashPattern");
|
|
356
|
-
__name2(getURIEncodedBackSlashPattern, "getURIEncodedBackSlashPattern");
|
|
357
298
|
function getPathParamPattern() {
|
|
358
299
|
return /(?<escape>\\)?:(?<identifier>[$_\p{ID_Start}][$\p{ID_Continue}]+)/gu;
|
|
359
300
|
}
|
|
360
|
-
chunkWCQVDF3K_js.__name(getPathParamPattern, "getPathParamPattern");
|
|
361
|
-
__name2(getPathParamPattern, "getPathParamPattern");
|
|
362
301
|
function getRepeatingPathParamPattern() {
|
|
363
302
|
return /(?<escape>\\)?:(?<identifier>[$_\p{ID_Start}][$\p{ID_Continue}]+)\\+/gu;
|
|
364
303
|
}
|
|
365
|
-
chunkWCQVDF3K_js.__name(getRepeatingPathParamPattern, "getRepeatingPathParamPattern");
|
|
366
|
-
__name2(getRepeatingPathParamPattern, "getRepeatingPathParamPattern");
|
|
367
304
|
function getOptionalPathParamPattern() {
|
|
368
305
|
return /(?<leadingSlash>\/)?(?<escape>\\)?:(?<identifier>[$_\p{ID_Start}][$\p{ID_Continue}]+)\?(?<trailingSlash>\/)?/gu;
|
|
369
306
|
}
|
|
370
|
-
chunkWCQVDF3K_js.__name(getOptionalPathParamPattern, "getOptionalPathParamPattern");
|
|
371
|
-
__name2(getOptionalPathParamPattern, "getOptionalPathParamPattern");
|
|
372
307
|
function getOptionalRepeatingPathParamPattern() {
|
|
373
308
|
return /(?<leadingSlash>\/)?(?<escape>\\)?:(?<identifier>[$_\p{ID_Start}][$\p{ID_Continue}]+)\*(?<trailingSlash>\/)?/gu;
|
|
374
309
|
}
|
|
375
|
-
chunkWCQVDF3K_js.__name(getOptionalRepeatingPathParamPattern, "getOptionalRepeatingPathParamPattern");
|
|
376
|
-
__name2(getOptionalRepeatingPathParamPattern, "getOptionalRepeatingPathParamPattern");
|
|
377
310
|
function createParametrizedPathPattern(path2) {
|
|
378
311
|
const replacedURL = encodeURI(path2).replace(/^\/+/g, "").replace(/\/+$/g, "").replace(getExtraPatternsToEscape(), "\\$1").replace(getURIEncodedBackSlashPattern(), "\\").replace(
|
|
379
312
|
getOptionalRepeatingPathParamPattern(),
|
|
@@ -422,8 +355,6 @@ function createParametrizedPathPattern(path2) {
|
|
|
422
355
|
});
|
|
423
356
|
return new RegExp(`^/?${replacedURL}/?$`);
|
|
424
357
|
}
|
|
425
|
-
chunkWCQVDF3K_js.__name(createParametrizedPathPattern, "createParametrizedPathPattern");
|
|
426
|
-
__name2(createParametrizedPathPattern, "createParametrizedPathPattern");
|
|
427
358
|
var createParametrizedPathPattern_default = createParametrizedPathPattern;
|
|
428
359
|
|
|
429
360
|
// ../zimic-utils/dist/url/excludeURLParams.mjs
|
|
@@ -434,16 +365,12 @@ function excludeURLParams(url) {
|
|
|
434
365
|
url.password = "";
|
|
435
366
|
return url;
|
|
436
367
|
}
|
|
437
|
-
chunkWCQVDF3K_js.__name(excludeURLParams, "excludeURLParams");
|
|
438
|
-
__name2(excludeURLParams, "excludeURLParams");
|
|
439
368
|
var excludeURLParams_default = excludeURLParams;
|
|
440
369
|
|
|
441
|
-
// ../zimic-utils/dist/chunk-
|
|
370
|
+
// ../zimic-utils/dist/chunk-5UH44FTS.mjs
|
|
442
371
|
function isDefined(value) {
|
|
443
372
|
return value !== void 0 && value !== null;
|
|
444
373
|
}
|
|
445
|
-
chunkWCQVDF3K_js.__name(isDefined, "isDefined");
|
|
446
|
-
__name2(isDefined, "isDefined");
|
|
447
374
|
var isDefined_default = isDefined;
|
|
448
375
|
|
|
449
376
|
// src/utils/arrays.ts
|
|
@@ -453,39 +380,28 @@ function removeArrayIndex(array, index) {
|
|
|
453
380
|
}
|
|
454
381
|
return array;
|
|
455
382
|
}
|
|
456
|
-
chunkWCQVDF3K_js.__name(removeArrayIndex, "removeArrayIndex");
|
|
457
383
|
function removeArrayElement(array, element) {
|
|
458
384
|
const index = array.indexOf(element);
|
|
459
385
|
return removeArrayIndex(array, index);
|
|
460
386
|
}
|
|
461
|
-
chunkWCQVDF3K_js.__name(removeArrayElement, "removeArrayElement");
|
|
462
387
|
|
|
463
388
|
// src/utils/environment.ts
|
|
464
389
|
function isClientSide() {
|
|
465
390
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
466
391
|
}
|
|
467
|
-
chunkWCQVDF3K_js.__name(isClientSide, "isClientSide");
|
|
468
392
|
|
|
469
393
|
// ../zimic-utils/dist/import/createCachedDynamicImport.mjs
|
|
470
394
|
function createCachedDynamicImport(importModuleDynamically) {
|
|
471
395
|
let cachedImportResult;
|
|
472
|
-
return
|
|
396
|
+
return async function importModuleDynamicallyWithCache() {
|
|
473
397
|
cachedImportResult ??= await importModuleDynamically();
|
|
474
398
|
return cachedImportResult;
|
|
475
|
-
}
|
|
399
|
+
};
|
|
476
400
|
}
|
|
477
|
-
chunkWCQVDF3K_js.__name(createCachedDynamicImport, "createCachedDynamicImport");
|
|
478
|
-
__name2(createCachedDynamicImport, "createCachedDynamicImport");
|
|
479
401
|
var createCachedDynamicImport_default = createCachedDynamicImport;
|
|
480
402
|
|
|
481
403
|
// ../zimic-utils/dist/logging/Logger.mjs
|
|
482
404
|
var Logger = class _Logger {
|
|
483
|
-
static {
|
|
484
|
-
chunkWCQVDF3K_js.__name(this, "_Logger");
|
|
485
|
-
}
|
|
486
|
-
static {
|
|
487
|
-
__name2(this, "Logger");
|
|
488
|
-
}
|
|
489
405
|
prefix;
|
|
490
406
|
raw;
|
|
491
407
|
constructor(options = {}) {
|
|
@@ -577,7 +493,6 @@ async function pathExists(path2) {
|
|
|
577
493
|
return false;
|
|
578
494
|
}
|
|
579
495
|
}
|
|
580
|
-
chunkWCQVDF3K_js.__name(pathExists, "pathExists");
|
|
581
496
|
|
|
582
497
|
// src/utils/logging.ts
|
|
583
498
|
var logger = new Logger_default({
|
|
@@ -600,7 +515,6 @@ async function formatValueToLog(value, options = {}) {
|
|
|
600
515
|
sorted: true
|
|
601
516
|
});
|
|
602
517
|
}
|
|
603
|
-
chunkWCQVDF3K_js.__name(formatValueToLog, "formatValueToLog");
|
|
604
518
|
|
|
605
519
|
// src/http/requestHandler/types/requests.ts
|
|
606
520
|
var HTTP_INTERCEPTOR_REQUEST_HIDDEN_PROPERTIES = Object.freeze(
|
|
@@ -634,9 +548,6 @@ var DEFAULT_UNHANDLED_REQUEST_STRATEGY = Object.freeze({
|
|
|
634
548
|
|
|
635
549
|
// src/http/interceptorWorker/errors/InvalidFormDataError.ts
|
|
636
550
|
var InvalidFormDataError = class extends SyntaxError {
|
|
637
|
-
static {
|
|
638
|
-
chunkWCQVDF3K_js.__name(this, "InvalidFormDataError");
|
|
639
|
-
}
|
|
640
551
|
constructor(value) {
|
|
641
552
|
super(`Failed to parse value as form data: ${value}`);
|
|
642
553
|
this.name = "InvalidFormDataError";
|
|
@@ -646,9 +557,6 @@ var InvalidFormDataError_default = InvalidFormDataError;
|
|
|
646
557
|
|
|
647
558
|
// src/http/interceptorWorker/errors/InvalidJSONError.ts
|
|
648
559
|
var InvalidJSONError = class extends SyntaxError {
|
|
649
|
-
static {
|
|
650
|
-
chunkWCQVDF3K_js.__name(this, "InvalidJSONError");
|
|
651
|
-
}
|
|
652
560
|
constructor(value) {
|
|
653
561
|
super(`Failed to parse value as JSON: ${value}`);
|
|
654
562
|
this.name = "InvalidJSONError";
|
|
@@ -658,9 +566,6 @@ var InvalidJSONError_default = InvalidJSONError;
|
|
|
658
566
|
|
|
659
567
|
// src/http/interceptorWorker/HttpInterceptorWorker.ts
|
|
660
568
|
var HttpInterceptorWorker = class _HttpInterceptorWorker {
|
|
661
|
-
static {
|
|
662
|
-
chunkWCQVDF3K_js.__name(this, "HttpInterceptorWorker");
|
|
663
|
-
}
|
|
664
569
|
platform = null;
|
|
665
570
|
isRunning = false;
|
|
666
571
|
startingPromise;
|
|
@@ -991,7 +896,6 @@ function convertArrayBufferToBase64(buffer) {
|
|
|
991
896
|
return Buffer.from(buffer).toString("base64");
|
|
992
897
|
}
|
|
993
898
|
}
|
|
994
|
-
chunkWCQVDF3K_js.__name(convertArrayBufferToBase64, "convertArrayBufferToBase64");
|
|
995
899
|
function convertBase64ToArrayBuffer(base64Value) {
|
|
996
900
|
if (isClientSide()) {
|
|
997
901
|
const bufferAsString = atob(base64Value);
|
|
@@ -1001,18 +905,15 @@ function convertBase64ToArrayBuffer(base64Value) {
|
|
|
1001
905
|
return Buffer.from(base64Value, "base64");
|
|
1002
906
|
}
|
|
1003
907
|
}
|
|
1004
|
-
chunkWCQVDF3K_js.__name(convertBase64ToArrayBuffer, "convertBase64ToArrayBuffer");
|
|
1005
908
|
var HEX_REGEX = /^[a-z0-9]+$/;
|
|
1006
909
|
function convertHexLengthToByteLength(hexLength) {
|
|
1007
910
|
return Math.ceil(hexLength / 2);
|
|
1008
911
|
}
|
|
1009
|
-
chunkWCQVDF3K_js.__name(convertHexLengthToByteLength, "convertHexLengthToByteLength");
|
|
1010
912
|
var BASE64URL_REGEX = /^[a-zA-Z0-9-_]+$/;
|
|
1011
913
|
function convertHexLengthToBase64urlLength(hexLength) {
|
|
1012
914
|
const byteLength = convertHexLengthToByteLength(hexLength);
|
|
1013
915
|
return Math.ceil(byteLength * 4 / 3);
|
|
1014
916
|
}
|
|
1015
|
-
chunkWCQVDF3K_js.__name(convertHexLengthToBase64urlLength, "convertHexLengthToBase64urlLength");
|
|
1016
917
|
|
|
1017
918
|
// src/utils/fetch.ts
|
|
1018
919
|
async function serializeRequest(request) {
|
|
@@ -1033,7 +934,6 @@ async function serializeRequest(request) {
|
|
|
1033
934
|
body: serializedBody
|
|
1034
935
|
};
|
|
1035
936
|
}
|
|
1036
|
-
chunkWCQVDF3K_js.__name(serializeRequest, "serializeRequest");
|
|
1037
937
|
function deserializeResponse(serializedResponse) {
|
|
1038
938
|
const deserializedBody = serializedResponse.body ? convertBase64ToArrayBuffer(serializedResponse.body) : null;
|
|
1039
939
|
return new Response(deserializedBody, {
|
|
@@ -1042,7 +942,6 @@ function deserializeResponse(serializedResponse) {
|
|
|
1042
942
|
headers: new Headers(serializedResponse.headers)
|
|
1043
943
|
});
|
|
1044
944
|
}
|
|
1045
|
-
chunkWCQVDF3K_js.__name(deserializeResponse, "deserializeResponse");
|
|
1046
945
|
|
|
1047
946
|
// src/utils/crypto.ts
|
|
1048
947
|
var importCrypto = createCachedDynamicImport_default(async () => {
|
|
@@ -1055,9 +954,6 @@ var WEB_SOCKET_CONTROL_MESSAGES = Object.freeze(["socket:auth:valid"]);
|
|
|
1055
954
|
|
|
1056
955
|
// src/webSocket/errors/InvalidWebSocketMessage.ts
|
|
1057
956
|
var InvalidWebSocketMessage = class extends Error {
|
|
1058
|
-
static {
|
|
1059
|
-
chunkWCQVDF3K_js.__name(this, "InvalidWebSocketMessage");
|
|
1060
|
-
}
|
|
1061
957
|
constructor(message) {
|
|
1062
958
|
super(`Web socket message is invalid and could not be parsed: ${message}`);
|
|
1063
959
|
this.name = "InvalidWebSocketMessage";
|
|
@@ -1067,9 +963,6 @@ var InvalidWebSocketMessage_default = InvalidWebSocketMessage;
|
|
|
1067
963
|
|
|
1068
964
|
// src/webSocket/errors/NotRunningWebSocketHandlerError.ts
|
|
1069
965
|
var NotRunningWebSocketHandlerError = class extends Error {
|
|
1070
|
-
static {
|
|
1071
|
-
chunkWCQVDF3K_js.__name(this, "NotRunningWebSocketHandlerError");
|
|
1072
|
-
}
|
|
1073
966
|
constructor() {
|
|
1074
967
|
super("Web socket handler is not running.");
|
|
1075
968
|
this.name = "NotRunningWebSocketHandlerError";
|
|
@@ -1079,9 +972,6 @@ var NotRunningWebSocketHandlerError_default = NotRunningWebSocketHandlerError;
|
|
|
1079
972
|
|
|
1080
973
|
// src/webSocket/WebSocketHandler.ts
|
|
1081
974
|
var WebSocketHandler = class {
|
|
1082
|
-
static {
|
|
1083
|
-
chunkWCQVDF3K_js.__name(this, "WebSocketHandler");
|
|
1084
|
-
}
|
|
1085
975
|
sockets = /* @__PURE__ */ new Set();
|
|
1086
976
|
socketTimeout;
|
|
1087
977
|
messageTimeout;
|
|
@@ -1098,26 +988,25 @@ var WebSocketHandler = class {
|
|
|
1098
988
|
timeout: this.socketTimeout,
|
|
1099
989
|
waitForAuthentication: options.waitForAuthentication
|
|
1100
990
|
});
|
|
1101
|
-
const handleSocketMessage =
|
|
991
|
+
const handleSocketMessage = async (rawMessage) => {
|
|
1102
992
|
await this.handleSocketMessage(socket, rawMessage);
|
|
1103
|
-
}
|
|
993
|
+
};
|
|
1104
994
|
socket.addEventListener("message", handleSocketMessage);
|
|
1105
995
|
await openPromise;
|
|
1106
996
|
function handleSocketError(error) {
|
|
1107
997
|
console.error(error);
|
|
1108
998
|
}
|
|
1109
|
-
chunkWCQVDF3K_js.__name(handleSocketError, "handleSocketError");
|
|
1110
999
|
socket.addEventListener("error", handleSocketError);
|
|
1111
|
-
const handleSocketClose =
|
|
1000
|
+
const handleSocketClose = () => {
|
|
1112
1001
|
socket.removeEventListener("message", handleSocketMessage);
|
|
1113
1002
|
socket.removeEventListener("close", handleSocketClose);
|
|
1114
1003
|
socket.removeEventListener("error", handleSocketError);
|
|
1115
1004
|
this.removeSocket(socket);
|
|
1116
|
-
}
|
|
1005
|
+
};
|
|
1117
1006
|
socket.addEventListener("close", handleSocketClose);
|
|
1118
1007
|
this.sockets.add(socket);
|
|
1119
1008
|
}
|
|
1120
|
-
handleSocketMessage =
|
|
1009
|
+
handleSocketMessage = async (socket, rawMessage) => {
|
|
1121
1010
|
try {
|
|
1122
1011
|
if (this.isControlMessageData(rawMessage.data)) {
|
|
1123
1012
|
return;
|
|
@@ -1128,7 +1017,7 @@ var WebSocketHandler = class {
|
|
|
1128
1017
|
} catch (error) {
|
|
1129
1018
|
console.error(error);
|
|
1130
1019
|
}
|
|
1131
|
-
}
|
|
1020
|
+
};
|
|
1132
1021
|
isControlMessageData(messageData) {
|
|
1133
1022
|
return typeof messageData === "string" && WEB_SOCKET_CONTROL_MESSAGES.includes(messageData);
|
|
1134
1023
|
}
|
|
@@ -1329,9 +1218,6 @@ var WebSocketHandler_default = WebSocketHandler;
|
|
|
1329
1218
|
// src/webSocket/WebSocketServer.ts
|
|
1330
1219
|
var { WebSocketServer: ServerSocket } = ClientSocket__default.default;
|
|
1331
1220
|
var WebSocketServer = class extends WebSocketHandler_default {
|
|
1332
|
-
static {
|
|
1333
|
-
chunkWCQVDF3K_js.__name(this, "WebSocketServer");
|
|
1334
|
-
}
|
|
1335
1221
|
webSocketServer;
|
|
1336
1222
|
httpServer;
|
|
1337
1223
|
authenticate;
|
|
@@ -1387,9 +1273,6 @@ var WebSocketServer_default = WebSocketServer;
|
|
|
1387
1273
|
|
|
1388
1274
|
// src/server/errors/InvalidInterceptorTokenError.ts
|
|
1389
1275
|
var InvalidInterceptorTokenError = class extends Error {
|
|
1390
|
-
static {
|
|
1391
|
-
chunkWCQVDF3K_js.__name(this, "InvalidInterceptorTokenError");
|
|
1392
|
-
}
|
|
1393
1276
|
constructor(tokenId) {
|
|
1394
1277
|
super(`Invalid interceptor token: ${tokenId}`);
|
|
1395
1278
|
this.name = "InvalidInterceptorTokenError";
|
|
@@ -1399,9 +1282,6 @@ var InvalidInterceptorTokenError_default = InvalidInterceptorTokenError;
|
|
|
1399
1282
|
|
|
1400
1283
|
// src/server/errors/InvalidInterceptorTokenFileError.ts
|
|
1401
1284
|
var InvalidInterceptorTokenFileError = class extends Error {
|
|
1402
|
-
static {
|
|
1403
|
-
chunkWCQVDF3K_js.__name(this, "InvalidInterceptorTokenFileError");
|
|
1404
|
-
}
|
|
1405
1285
|
constructor(tokenFilePath, validationErrorMessage) {
|
|
1406
1286
|
super(`Invalid interceptor token file ${tokenFilePath}: ${validationErrorMessage}`);
|
|
1407
1287
|
this.name = "InvalidInterceptorTokenFileError";
|
|
@@ -1411,9 +1291,6 @@ var InvalidInterceptorTokenFileError_default = InvalidInterceptorTokenFileError;
|
|
|
1411
1291
|
|
|
1412
1292
|
// src/server/errors/InvalidInterceptorTokenValueError.ts
|
|
1413
1293
|
var InvalidInterceptorTokenValueError = class extends Error {
|
|
1414
|
-
static {
|
|
1415
|
-
chunkWCQVDF3K_js.__name(this, "InvalidInterceptorTokenValueError");
|
|
1416
|
-
}
|
|
1417
1294
|
constructor(tokenValue) {
|
|
1418
1295
|
super(`Invalid interceptor token value: ${tokenValue}`);
|
|
1419
1296
|
this.name = "InvalidInterceptorTokenValueError";
|
|
@@ -1450,19 +1327,15 @@ async function hashInterceptorToken(plainToken, salt) {
|
|
|
1450
1327
|
const hash = hashBuffer.toString("hex");
|
|
1451
1328
|
return hash;
|
|
1452
1329
|
}
|
|
1453
|
-
chunkWCQVDF3K_js.__name(hashInterceptorToken, "hashInterceptorToken");
|
|
1454
1330
|
function createInterceptorTokenId() {
|
|
1455
1331
|
return crypto__default.default.randomUUID().replace(/[^a-z0-9]/g, "");
|
|
1456
1332
|
}
|
|
1457
|
-
chunkWCQVDF3K_js.__name(createInterceptorTokenId, "createInterceptorTokenId");
|
|
1458
1333
|
function isValidInterceptorTokenId(tokenId) {
|
|
1459
1334
|
return tokenId.length === INTERCEPTOR_TOKEN_ID_HEX_LENGTH && HEX_REGEX.test(tokenId);
|
|
1460
1335
|
}
|
|
1461
|
-
chunkWCQVDF3K_js.__name(isValidInterceptorTokenId, "isValidInterceptorTokenId");
|
|
1462
1336
|
function isValidInterceptorTokenValue(tokenValue) {
|
|
1463
1337
|
return tokenValue.length === INTERCEPTOR_TOKEN_VALUE_BASE64URL_LENGTH && BASE64URL_REGEX.test(tokenValue);
|
|
1464
1338
|
}
|
|
1465
|
-
chunkWCQVDF3K_js.__name(isValidInterceptorTokenValue, "isValidInterceptorTokenValue");
|
|
1466
1339
|
async function createInterceptorTokensDirectory(tokensDirectory) {
|
|
1467
1340
|
try {
|
|
1468
1341
|
const parentTokensDirectory = path__default.default.dirname(tokensDirectory);
|
|
@@ -1476,7 +1349,6 @@ async function createInterceptorTokensDirectory(tokensDirectory) {
|
|
|
1476
1349
|
throw error;
|
|
1477
1350
|
}
|
|
1478
1351
|
}
|
|
1479
|
-
chunkWCQVDF3K_js.__name(createInterceptorTokensDirectory, "createInterceptorTokensDirectory");
|
|
1480
1352
|
var interceptorTokenFileContentSchema = z__namespace.object({
|
|
1481
1353
|
version: z__namespace.literal(1),
|
|
1482
1354
|
token: z__namespace.object({
|
|
@@ -1510,7 +1382,6 @@ async function saveInterceptorTokenToFile(tokensDirectory, token) {
|
|
|
1510
1382
|
});
|
|
1511
1383
|
return tokeFilePath;
|
|
1512
1384
|
}
|
|
1513
|
-
chunkWCQVDF3K_js.__name(saveInterceptorTokenToFile, "saveInterceptorTokenToFile");
|
|
1514
1385
|
async function readInterceptorTokenFromFile(tokenId, options) {
|
|
1515
1386
|
if (!isValidInterceptorTokenId(tokenId)) {
|
|
1516
1387
|
throw new InvalidInterceptorTokenError_default(tokenId);
|
|
@@ -1527,7 +1398,6 @@ async function readInterceptorTokenFromFile(tokenId, options) {
|
|
|
1527
1398
|
}
|
|
1528
1399
|
return validation.data.token;
|
|
1529
1400
|
}
|
|
1530
|
-
chunkWCQVDF3K_js.__name(readInterceptorTokenFromFile, "readInterceptorTokenFromFile");
|
|
1531
1401
|
async function createInterceptorToken(options = {}) {
|
|
1532
1402
|
const { name, tokensDirectory = DEFAULT_INTERCEPTOR_TOKENS_DIRECTORY } = options;
|
|
1533
1403
|
const tokensDirectoryExists = await pathExists(tokensDirectory);
|
|
@@ -1561,7 +1431,6 @@ async function createInterceptorToken(options = {}) {
|
|
|
1561
1431
|
await saveInterceptorTokenToFile(tokensDirectory, token);
|
|
1562
1432
|
return token;
|
|
1563
1433
|
}
|
|
1564
|
-
chunkWCQVDF3K_js.__name(createInterceptorToken, "createInterceptorToken");
|
|
1565
1434
|
async function listInterceptorTokens(options = {}) {
|
|
1566
1435
|
const { tokensDirectory = DEFAULT_INTERCEPTOR_TOKENS_DIRECTORY } = options;
|
|
1567
1436
|
const tokensDirectoryExists = await pathExists(tokensDirectory);
|
|
@@ -1589,7 +1458,6 @@ async function listInterceptorTokens(options = {}) {
|
|
|
1589
1458
|
tokens.sort((token, otherToken) => token.createdAt.getTime() - otherToken.createdAt.getTime());
|
|
1590
1459
|
return tokens;
|
|
1591
1460
|
}
|
|
1592
|
-
chunkWCQVDF3K_js.__name(listInterceptorTokens, "listInterceptorTokens");
|
|
1593
1461
|
async function validateInterceptorToken(tokenValue, options) {
|
|
1594
1462
|
if (!isValidInterceptorTokenValue(tokenValue)) {
|
|
1595
1463
|
throw new InvalidInterceptorTokenValueError_default(tokenValue);
|
|
@@ -1609,7 +1477,6 @@ async function validateInterceptorToken(tokenValue, options) {
|
|
|
1609
1477
|
throw new InvalidInterceptorTokenValueError_default(tokenValue);
|
|
1610
1478
|
}
|
|
1611
1479
|
}
|
|
1612
|
-
chunkWCQVDF3K_js.__name(validateInterceptorToken, "validateInterceptorToken");
|
|
1613
1480
|
async function removeInterceptorToken(tokenId, options = {}) {
|
|
1614
1481
|
const { tokensDirectory = DEFAULT_INTERCEPTOR_TOKENS_DIRECTORY } = options;
|
|
1615
1482
|
if (!isValidInterceptorTokenId(tokenId)) {
|
|
@@ -1618,7 +1485,6 @@ async function removeInterceptorToken(tokenId, options = {}) {
|
|
|
1618
1485
|
const tokenFilePath = path__default.default.join(tokensDirectory, tokenId);
|
|
1619
1486
|
await fs__default.default.promises.rm(tokenFilePath, { force: true });
|
|
1620
1487
|
}
|
|
1621
|
-
chunkWCQVDF3K_js.__name(removeInterceptorToken, "removeInterceptorToken");
|
|
1622
1488
|
|
|
1623
1489
|
// src/server/utils/fetch.ts
|
|
1624
1490
|
async function getFetchAPI() {
|
|
@@ -1647,13 +1513,9 @@ async function getFetchAPI() {
|
|
|
1647
1513
|
URLSearchParams
|
|
1648
1514
|
};
|
|
1649
1515
|
}
|
|
1650
|
-
chunkWCQVDF3K_js.__name(getFetchAPI, "getFetchAPI");
|
|
1651
1516
|
|
|
1652
1517
|
// src/server/InterceptorServer.ts
|
|
1653
1518
|
var InterceptorServer = class {
|
|
1654
|
-
static {
|
|
1655
|
-
chunkWCQVDF3K_js.__name(this, "InterceptorServer");
|
|
1656
|
-
}
|
|
1657
1519
|
httpServer;
|
|
1658
1520
|
webSocketServer;
|
|
1659
1521
|
_hostname;
|
|
@@ -1724,7 +1586,7 @@ var InterceptorServer = class {
|
|
|
1724
1586
|
});
|
|
1725
1587
|
this.startWebSocketServer();
|
|
1726
1588
|
}
|
|
1727
|
-
authenticateWebSocketConnection =
|
|
1589
|
+
authenticateWebSocketConnection = async (_socket, request) => {
|
|
1728
1590
|
if (!this.tokensDirectory) {
|
|
1729
1591
|
return { isValid: true };
|
|
1730
1592
|
}
|
|
@@ -1739,7 +1601,7 @@ var InterceptorServer = class {
|
|
|
1739
1601
|
console.error(error);
|
|
1740
1602
|
return { isValid: false, message: "The interceptor token is not valid." };
|
|
1741
1603
|
}
|
|
1742
|
-
}
|
|
1604
|
+
};
|
|
1743
1605
|
getWebSocketRequestTokenValue(request) {
|
|
1744
1606
|
const protocols = request.headers["sec-websocket-protocol"] ?? "";
|
|
1745
1607
|
const parametersAsString = decodeURIComponent(protocols).split(", ");
|
|
@@ -1765,13 +1627,13 @@ var InterceptorServer = class {
|
|
|
1765
1627
|
this.webSocketServerOrThrow.onEvent("interceptors/workers/commit", this.commitWorker);
|
|
1766
1628
|
this.webSocketServerOrThrow.onEvent("interceptors/workers/reset", this.resetWorker);
|
|
1767
1629
|
}
|
|
1768
|
-
commitWorker =
|
|
1630
|
+
commitWorker = (message, socket) => {
|
|
1769
1631
|
const commit = message.data;
|
|
1770
1632
|
this.registerHttpHandler(commit, socket);
|
|
1771
1633
|
this.registerWorkerSocketIfUnknown(socket);
|
|
1772
1634
|
return {};
|
|
1773
|
-
}
|
|
1774
|
-
resetWorker =
|
|
1635
|
+
};
|
|
1636
|
+
resetWorker = (message, socket) => {
|
|
1775
1637
|
this.removeHttpHandlersBySocket(socket);
|
|
1776
1638
|
const handlersToResetTo = message.data;
|
|
1777
1639
|
const isWorkerNoLongerCommitted = handlersToResetTo === void 0;
|
|
@@ -1784,7 +1646,7 @@ var InterceptorServer = class {
|
|
|
1784
1646
|
}
|
|
1785
1647
|
this.registerWorkerSocketIfUnknown(socket);
|
|
1786
1648
|
return {};
|
|
1787
|
-
}
|
|
1649
|
+
};
|
|
1788
1650
|
registerHttpHandler({ id, baseURL, method, path: path2 }, socket) {
|
|
1789
1651
|
const handlerGroups = this.httpHandlersByMethod[method];
|
|
1790
1652
|
handlerGroups.push({
|
|
@@ -1828,7 +1690,7 @@ var InterceptorServer = class {
|
|
|
1828
1690
|
await this.webSocketServerOrThrow.stop();
|
|
1829
1691
|
this.webSocketServer = void 0;
|
|
1830
1692
|
}
|
|
1831
|
-
handleHttpRequest =
|
|
1693
|
+
handleHttpRequest = async (nodeRequest, nodeResponse) => {
|
|
1832
1694
|
const request = server.normalizeNodeRequest(nodeRequest, await getFetchAPI());
|
|
1833
1695
|
const serializedRequest = await serializeRequest(request);
|
|
1834
1696
|
try {
|
|
@@ -1857,7 +1719,7 @@ var InterceptorServer = class {
|
|
|
1857
1719
|
}
|
|
1858
1720
|
nodeResponse.destroy();
|
|
1859
1721
|
}
|
|
1860
|
-
}
|
|
1722
|
+
};
|
|
1861
1723
|
async createResponseForRequest(request) {
|
|
1862
1724
|
const methodHandlers = this.httpHandlersByMethod[request.method];
|
|
1863
1725
|
const requestURL = excludeURLParams_default(new URL(request.url));
|
|
@@ -1934,7 +1796,6 @@ var InterceptorServer_default = InterceptorServer;
|
|
|
1934
1796
|
function createInterceptorServer(options = {}) {
|
|
1935
1797
|
return new InterceptorServer_default(options);
|
|
1936
1798
|
}
|
|
1937
|
-
chunkWCQVDF3K_js.__name(createInterceptorServer, "createInterceptorServer");
|
|
1938
1799
|
/* istanbul ignore next -- @preserve */
|
|
1939
1800
|
/* istanbul ignore if -- @preserve
|
|
1940
1801
|
* This is expected not to happen since the servers are not stopped unless they are running. */
|
|
@@ -1983,5 +1844,5 @@ exports.listInterceptorTokens = listInterceptorTokens;
|
|
|
1983
1844
|
exports.logger = logger;
|
|
1984
1845
|
exports.readInterceptorTokenFromFile = readInterceptorTokenFromFile;
|
|
1985
1846
|
exports.removeInterceptorToken = removeInterceptorToken;
|
|
1986
|
-
//# sourceMappingURL=chunk-
|
|
1987
|
-
//# sourceMappingURL=chunk-
|
|
1847
|
+
//# sourceMappingURL=chunk-GM3MDVNT.js.map
|
|
1848
|
+
//# sourceMappingURL=chunk-GM3MDVNT.js.map
|