@metlo/testing
Advanced tools
Comparing version 0.3.22 to 0.3.23
@@ -208,2 +208,3 @@ "use strict"; | ||
const recurseCreateBodyGraphQl = (body, mapTokens, currTokenIndex, dataField, entityMap, ast, seenArgs) => { | ||
var _a; | ||
if (currTokenIndex > mapTokens.length - 1 || !mapTokens[currTokenIndex]) { | ||
@@ -242,2 +243,7 @@ if (typeof body === "object") { | ||
} | ||
if (currTokenIndex === mapTokens.length - 1 && | ||
dataField.dataSection === enums_2.DataSection.RESPONSE_BODY && | ||
(body === null || body === void 0 ? void 0 : body[currToken])) { | ||
(_a = body === null || body === void 0 ? void 0 : body[currToken]) === null || _a === void 0 ? true : delete _a["__typename"]; | ||
} | ||
if (currToken === "__args") { | ||
@@ -271,2 +277,5 @@ seenArgs = true; | ||
let body = undefined; | ||
if (endpoint.isGraphQl) { | ||
filteredDataFields.sort((a, b) => a.dataSection.localeCompare(b.dataSection)); | ||
} | ||
const func = endpoint.isGraphQl ? recurseCreateBodyGraphQl : recurseCreateBody; | ||
@@ -273,0 +282,0 @@ const ast = endpoint.graphQlSchema |
{ | ||
"name": "@metlo/testing", | ||
"version": "0.3.22", | ||
"version": "0.3.23", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
1261608
13570