msw 1.3.1 → 1.3.3
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 +19 -19
- package/lib/iife/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/package.json +5 -5
package/lib/iife/index.js
CHANGED
|
@@ -10517,7 +10517,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10517
10517
|
// src/utils/request/onUnhandledRequest.ts
|
|
10518
10518
|
var import_js_levenshtein = __toESM(require_js_levenshtein());
|
|
10519
10519
|
|
|
10520
|
-
// node_modules/.pnpm/graphql@16.
|
|
10520
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/devAssert.mjs
|
|
10521
10521
|
function devAssert(condition, message) {
|
|
10522
10522
|
const booleanCondition = Boolean(condition);
|
|
10523
10523
|
if (!booleanCondition) {
|
|
@@ -10525,12 +10525,12 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10525
10525
|
}
|
|
10526
10526
|
}
|
|
10527
10527
|
|
|
10528
|
-
// node_modules/.pnpm/graphql@16.
|
|
10528
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/isObjectLike.mjs
|
|
10529
10529
|
function isObjectLike(value) {
|
|
10530
10530
|
return typeof value == "object" && value !== null;
|
|
10531
10531
|
}
|
|
10532
10532
|
|
|
10533
|
-
// node_modules/.pnpm/graphql@16.
|
|
10533
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/invariant.mjs
|
|
10534
10534
|
function invariant2(condition, message) {
|
|
10535
10535
|
const booleanCondition = Boolean(condition);
|
|
10536
10536
|
if (!booleanCondition) {
|
|
@@ -10540,7 +10540,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10540
10540
|
}
|
|
10541
10541
|
}
|
|
10542
10542
|
|
|
10543
|
-
// node_modules/.pnpm/graphql@16.
|
|
10543
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/location.mjs
|
|
10544
10544
|
var LineRegExp = /\r\n|[\n\r]/g;
|
|
10545
10545
|
function getLocation(source, position) {
|
|
10546
10546
|
let lastLineStart = 0;
|
|
@@ -10559,7 +10559,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10559
10559
|
};
|
|
10560
10560
|
}
|
|
10561
10561
|
|
|
10562
|
-
// node_modules/.pnpm/graphql@16.
|
|
10562
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/printLocation.mjs
|
|
10563
10563
|
function printLocation(location2) {
|
|
10564
10564
|
return printSourceLocation(
|
|
10565
10565
|
location2.source,
|
|
@@ -10605,7 +10605,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10605
10605
|
return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join("\n");
|
|
10606
10606
|
}
|
|
10607
10607
|
|
|
10608
|
-
// node_modules/.pnpm/graphql@16.
|
|
10608
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/error/GraphQLError.mjs
|
|
10609
10609
|
function toNormalizedOptions(args) {
|
|
10610
10610
|
const firstArg = args[0];
|
|
10611
10611
|
if (firstArg == null || "kind" in firstArg || "length" in firstArg) {
|
|
@@ -10716,7 +10716,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10716
10716
|
return array === void 0 || array.length === 0 ? void 0 : array;
|
|
10717
10717
|
}
|
|
10718
10718
|
|
|
10719
|
-
// node_modules/.pnpm/graphql@16.
|
|
10719
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/error/syntaxError.mjs
|
|
10720
10720
|
function syntaxError(source, position, description) {
|
|
10721
10721
|
return new GraphQLError(`Syntax Error: ${description}`, {
|
|
10722
10722
|
source,
|
|
@@ -10724,7 +10724,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10724
10724
|
});
|
|
10725
10725
|
}
|
|
10726
10726
|
|
|
10727
|
-
// node_modules/.pnpm/graphql@16.
|
|
10727
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/ast.mjs
|
|
10728
10728
|
var Location = class {
|
|
10729
10729
|
constructor(startToken, endToken, source) {
|
|
10730
10730
|
this.start = startToken.start;
|
|
@@ -10848,7 +10848,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10848
10848
|
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
10849
10849
|
})(OperationTypeNode || (OperationTypeNode = {}));
|
|
10850
10850
|
|
|
10851
|
-
// node_modules/.pnpm/graphql@16.
|
|
10851
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/directiveLocation.mjs
|
|
10852
10852
|
var DirectiveLocation;
|
|
10853
10853
|
(function(DirectiveLocation2) {
|
|
10854
10854
|
DirectiveLocation2["QUERY"] = "QUERY";
|
|
@@ -10872,7 +10872,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10872
10872
|
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
|
10873
10873
|
})(DirectiveLocation || (DirectiveLocation = {}));
|
|
10874
10874
|
|
|
10875
|
-
// node_modules/.pnpm/graphql@16.
|
|
10875
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/kinds.mjs
|
|
10876
10876
|
var Kind;
|
|
10877
10877
|
(function(Kind2) {
|
|
10878
10878
|
Kind2["NAME"] = "Name";
|
|
@@ -10920,7 +10920,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10920
10920
|
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
|
10921
10921
|
})(Kind || (Kind = {}));
|
|
10922
10922
|
|
|
10923
|
-
// node_modules/.pnpm/graphql@16.
|
|
10923
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/characterClasses.mjs
|
|
10924
10924
|
function isWhiteSpace(code) {
|
|
10925
10925
|
return code === 9 || code === 32;
|
|
10926
10926
|
}
|
|
@@ -10937,7 +10937,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10937
10937
|
return isLetter(code) || isDigit(code) || code === 95;
|
|
10938
10938
|
}
|
|
10939
10939
|
|
|
10940
|
-
// node_modules/.pnpm/graphql@16.
|
|
10940
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/blockString.mjs
|
|
10941
10941
|
function dedentBlockStringLines(lines) {
|
|
10942
10942
|
var _firstNonEmptyLine2;
|
|
10943
10943
|
let commonIndent = Number.MAX_SAFE_INTEGER;
|
|
@@ -10969,7 +10969,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10969
10969
|
return i;
|
|
10970
10970
|
}
|
|
10971
10971
|
|
|
10972
|
-
// node_modules/.pnpm/graphql@16.
|
|
10972
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/tokenKind.mjs
|
|
10973
10973
|
var TokenKind;
|
|
10974
10974
|
(function(TokenKind2) {
|
|
10975
10975
|
TokenKind2["SOF"] = "<SOF>";
|
|
@@ -10996,7 +10996,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
10996
10996
|
TokenKind2["COMMENT"] = "Comment";
|
|
10997
10997
|
})(TokenKind || (TokenKind = {}));
|
|
10998
10998
|
|
|
10999
|
-
// node_modules/.pnpm/graphql@16.
|
|
10999
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/lexer.mjs
|
|
11000
11000
|
var Lexer = class {
|
|
11001
11001
|
constructor(source) {
|
|
11002
11002
|
const startOfFileToken = new Token(TokenKind.SOF, 0, 0, 0, 0);
|
|
@@ -11477,7 +11477,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
11477
11477
|
);
|
|
11478
11478
|
}
|
|
11479
11479
|
|
|
11480
|
-
// node_modules/.pnpm/graphql@16.
|
|
11480
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/inspect.mjs
|
|
11481
11481
|
var MAX_ARRAY_LENGTH = 10;
|
|
11482
11482
|
var MAX_RECURSIVE_DEPTH = 2;
|
|
11483
11483
|
function inspect(value) {
|
|
@@ -11560,8 +11560,8 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
|
|
|
11560
11560
|
return tag;
|
|
11561
11561
|
}
|
|
11562
11562
|
|
|
11563
|
-
// node_modules/.pnpm/graphql@16.
|
|
11564
|
-
var instanceOf =
|
|
11563
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/jsutils/instanceOf.mjs
|
|
11564
|
+
var instanceOf = globalThis.process && globalThis.process.env.NODE_ENV === "production" ? function instanceOf2(value, constructor) {
|
|
11565
11565
|
return value instanceof constructor;
|
|
11566
11566
|
} : function instanceOf3(value, constructor) {
|
|
11567
11567
|
if (value instanceof constructor) {
|
|
@@ -11590,7 +11590,7 @@ spurious results.`);
|
|
|
11590
11590
|
return false;
|
|
11591
11591
|
};
|
|
11592
11592
|
|
|
11593
|
-
// node_modules/.pnpm/graphql@16.
|
|
11593
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/source.mjs
|
|
11594
11594
|
var Source = class {
|
|
11595
11595
|
constructor(body2, name = "GraphQL request", locationOffset = {
|
|
11596
11596
|
line: 1,
|
|
@@ -11617,7 +11617,7 @@ spurious results.`);
|
|
|
11617
11617
|
return instanceOf(source, Source);
|
|
11618
11618
|
}
|
|
11619
11619
|
|
|
11620
|
-
// node_modules/.pnpm/graphql@16.
|
|
11620
|
+
// node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/language/parser.mjs
|
|
11621
11621
|
function parse3(source, options) {
|
|
11622
11622
|
const parser = new Parser(source, options);
|
|
11623
11623
|
return parser.parseDocument();
|