msw 0.44.2 → 0.45.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/iife/index.js +14358 -5492
- package/lib/iife/index.js.map +1 -1
- package/lib/index.js +6 -9
- package/lib/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/lib/native/index.js +2 -4
- package/lib/native/index.mjs +2 -6
- package/lib/node/index.js +2 -4
- package/lib/node/index.js.map +1 -1
- package/lib/node/index.mjs +2 -6
- package/lib/node/index.mjs.map +1 -1
- package/package.json +6 -2
package/lib/node/index.mjs
CHANGED
|
@@ -138,11 +138,6 @@ var devUtils = {
|
|
|
138
138
|
// src/utils/request/onUnhandledRequest.ts
|
|
139
139
|
import getStringMatchScore from "js-levenshtein";
|
|
140
140
|
|
|
141
|
-
// src/utils/internal/parseGraphQLRequest.ts
|
|
142
|
-
import {
|
|
143
|
-
parse
|
|
144
|
-
} from "graphql";
|
|
145
|
-
|
|
146
141
|
// src/utils/request/getPublicUrlFromRequest.ts
|
|
147
142
|
var getPublicUrlFromRequest = (request) => {
|
|
148
143
|
return request.referrer.startsWith(request.url.origin) ? request.url.pathname : new URL(request.url.pathname, `${request.url.protocol}//${request.url.host}`).href;
|
|
@@ -170,7 +165,8 @@ function parseDocumentNode(node) {
|
|
|
170
165
|
}
|
|
171
166
|
function parseQuery(query) {
|
|
172
167
|
try {
|
|
173
|
-
const
|
|
168
|
+
const { parse: parse3 } = __require("graphql");
|
|
169
|
+
const ast = parse3(query);
|
|
174
170
|
return parseDocumentNode(ast);
|
|
175
171
|
} catch (error2) {
|
|
176
172
|
return error2;
|