msw 0.33.3 → 0.34.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/lib/esm/RequestHandler-deps.js +1 -1
- package/lib/esm/graphql-deps.js +5 -4
- package/lib/esm/index.js +184 -1420
- package/lib/esm/mockServiceWorker.js +18 -9
- package/lib/esm/rest-deps.js +1 -1
- package/lib/iife/index.js +3 -3
- package/lib/iife/mockServiceWorker.js +18 -9
- package/lib/umd/index.js +332 -1555
- package/lib/umd/mockServiceWorker.js +18 -9
- package/native/lib/index.js +4 -3
- package/node/lib/index.js +4 -3
- package/package.json +1 -1
|
@@ -630,4 +630,4 @@ class RequestHandler {
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
-
export { NetworkError as N, RequestHandler as R, __awaiter as _, getCleanUrl$1 as a, defaultResponse as b, createResponseComposition as c, devUtils as d, defaultContext as e, compose as f, getPublicUrlFromRequest as g, cleanUrl as h, getSearchParams as i, prepareRequest as j, prepareResponse as k,
|
|
633
|
+
export { NetworkError as N, RequestHandler as R, __awaiter as _, getCleanUrl$1 as a, defaultResponse as b, createResponseComposition as c, devUtils as d, defaultContext as e, compose as f, getPublicUrlFromRequest as g, cleanUrl as h, getSearchParams as i, prepareRequest as j, prepareResponse as k, lib as l, matchRequestUrl as m, getStatusCodeColor as n, getTimestamp as o, parseBody as p, __rest as q, response as r };
|
package/lib/esm/graphql-deps.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as jsonParse, b as set, s as status, e as delay, f as fetch, d as cookie } from './fetch-deps.js';
|
|
2
2
|
import { d as data, e as errors } from './errors-deps.js';
|
|
3
|
-
import { g as getPublicUrlFromRequest, d as devUtils,
|
|
3
|
+
import { g as getPublicUrlFromRequest, d as devUtils, q as __rest, R as RequestHandler, m as matchRequestUrl, j as prepareRequest, k as prepareResponse, n as getStatusCodeColor, o as getTimestamp } from './RequestHandler-deps.js';
|
|
4
4
|
|
|
5
5
|
function _typeof$3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
|
|
6
6
|
|
|
@@ -457,6 +457,7 @@ function invariant(condition, message) {
|
|
|
457
457
|
|
|
458
458
|
// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
|
|
459
459
|
var nodejsCustomInspectSymbol = typeof Symbol === 'function' && typeof Symbol.for === 'function' ? Symbol.for('nodejs.util.inspect.custom') : undefined;
|
|
460
|
+
var nodejsCustomInspectSymbol$1 = nodejsCustomInspectSymbol;
|
|
460
461
|
|
|
461
462
|
/**
|
|
462
463
|
* The `defineInspect()` function defines `inspect()` prototype method as alias of `toJSON`
|
|
@@ -467,8 +468,8 @@ function defineInspect(classObject) {
|
|
|
467
468
|
typeof fn === 'function' || invariant(0);
|
|
468
469
|
classObject.prototype.inspect = fn; // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2317')
|
|
469
470
|
|
|
470
|
-
if (nodejsCustomInspectSymbol) {
|
|
471
|
-
classObject.prototype[nodejsCustomInspectSymbol] = fn;
|
|
471
|
+
if (nodejsCustomInspectSymbol$1) {
|
|
472
|
+
classObject.prototype[nodejsCustomInspectSymbol$1] = fn;
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
475
|
|
|
@@ -711,7 +712,7 @@ function formatArray(array, seenValues) {
|
|
|
711
712
|
}
|
|
712
713
|
|
|
713
714
|
function getCustomFn(object) {
|
|
714
|
-
var customInspectFn = object[String(nodejsCustomInspectSymbol)];
|
|
715
|
+
var customInspectFn = object[String(nodejsCustomInspectSymbol$1)];
|
|
715
716
|
|
|
716
717
|
if (typeof customInspectFn === 'function') {
|
|
717
718
|
return customInspectFn;
|