msw 2.3.0-ws.rc-4 → 2.3.0-ws.rc-5
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/lib/iife/index.js
CHANGED
|
@@ -1129,7 +1129,7 @@ var MockServiceWorker = (() => {
|
|
|
1129
1129
|
return stringToRegexp(path, keys, options);
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.27.
|
|
1132
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-UJZOJSMP.mjs
|
|
1133
1133
|
var encoder = new TextEncoder();
|
|
1134
1134
|
function encodeBuffer(text) {
|
|
1135
1135
|
return encoder.encode(text);
|
|
@@ -1155,7 +1155,7 @@ var MockServiceWorker = (() => {
|
|
|
1155
1155
|
return RESPONSE_STATUS_CODES_WITHOUT_BODY.has(status);
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.27.
|
|
1158
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-HAGW22AN.mjs
|
|
1159
1159
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
1160
1160
|
|
|
1161
1161
|
// node_modules/.pnpm/is-node-process@1.2.0/node_modules/is-node-process/lib/index.mjs
|
|
@@ -1445,7 +1445,7 @@ var MockServiceWorker = (() => {
|
|
|
1445
1445
|
return message3.toString();
|
|
1446
1446
|
}
|
|
1447
1447
|
|
|
1448
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.27.
|
|
1448
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
1449
1449
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
1450
1450
|
function getGlobalSymbol(symbol) {
|
|
1451
1451
|
return (
|
|
@@ -1593,7 +1593,7 @@ var MockServiceWorker = (() => {
|
|
|
1593
1593
|
return Math.random().toString(16).slice(2);
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.27.
|
|
1596
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/index.mjs
|
|
1597
1597
|
var BatchInterceptor = class extends Interceptor {
|
|
1598
1598
|
constructor(options) {
|
|
1599
1599
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -6674,7 +6674,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
6674
6674
|
}
|
|
6675
6675
|
};
|
|
6676
6676
|
|
|
6677
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.27.
|
|
6677
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-OUWBQF3Z.mjs
|
|
6678
6678
|
var RequestController = class {
|
|
6679
6679
|
constructor(request) {
|
|
6680
6680
|
this.request = request;
|
|
@@ -6712,7 +6712,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
6712
6712
|
}
|
|
6713
6713
|
}
|
|
6714
6714
|
|
|
6715
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.27.
|
|
6715
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-3FNUI33J.mjs
|
|
6716
6716
|
function isPropertyAccessible2(obj, key) {
|
|
6717
6717
|
try {
|
|
6718
6718
|
obj[key];
|
|
@@ -6859,7 +6859,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
6859
6859
|
});
|
|
6860
6860
|
}
|
|
6861
6861
|
|
|
6862
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.27.
|
|
6862
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-VYFS2IF2.mjs
|
|
6863
6863
|
function concatArrayBuffer(left, right) {
|
|
6864
6864
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
6865
6865
|
result.set(left, 0);
|
|
@@ -7684,7 +7684,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
7684
7684
|
}
|
|
7685
7685
|
}
|
|
7686
7686
|
|
|
7687
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.27.
|
|
7687
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs
|
|
7688
7688
|
function bindEvent(target, event) {
|
|
7689
7689
|
Object.defineProperties(event, {
|
|
7690
7690
|
target: {
|
|
@@ -7711,9 +7711,15 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
7711
7711
|
get cancelable() {
|
|
7712
7712
|
return this[kCancelable];
|
|
7713
7713
|
}
|
|
7714
|
+
set cancelable(nextCancelable) {
|
|
7715
|
+
this[kCancelable] = nextCancelable;
|
|
7716
|
+
}
|
|
7714
7717
|
get defaultPrevented() {
|
|
7715
7718
|
return this[kDefaultPrevented];
|
|
7716
7719
|
}
|
|
7720
|
+
set defaultPrevented(nextDefaultPrevented) {
|
|
7721
|
+
this[kDefaultPrevented] = nextDefaultPrevented;
|
|
7722
|
+
}
|
|
7717
7723
|
preventDefault() {
|
|
7718
7724
|
if (this.cancelable && !this[kDefaultPrevented]) {
|
|
7719
7725
|
this[kDefaultPrevented] = true;
|