@graphql-tools/documents
Advanced tools
Comparing version 1.0.0-rc-20230519104353-b09f3180 to 1.0.0-rc-20230519104627-f6fea064
@@ -34,3 +34,2 @@ "use strict"; | ||
return cacheResult((0, lodash_sortby_1.default)(nodes, node => { | ||
var _a, _b; | ||
if (node.kind === graphql_1.Kind.FIELD) { | ||
@@ -43,3 +42,3 @@ return sortPrefixField + node.name.value; | ||
else { | ||
const typeCondition = (_b = (_a = node.typeCondition) === null || _a === void 0 ? void 0 : _a.name.value) !== null && _b !== void 0 ? _b : ''; | ||
const typeCondition = node.typeCondition?.name.value ?? ''; | ||
// if you have a better idea, send a PR :) | ||
@@ -46,0 +45,0 @@ const sortedNodes = buildInlineFragmentSelectionSetKey(cacheResult(sortExecutableNodes(node.selectionSet.selections))); |
@@ -30,3 +30,2 @@ import { Kind, print, } from 'graphql'; | ||
return cacheResult(sortBy(nodes, node => { | ||
var _a, _b; | ||
if (node.kind === Kind.FIELD) { | ||
@@ -39,3 +38,3 @@ return sortPrefixField + node.name.value; | ||
else { | ||
const typeCondition = (_b = (_a = node.typeCondition) === null || _a === void 0 ? void 0 : _a.name.value) !== null && _b !== void 0 ? _b : ''; | ||
const typeCondition = node.typeCondition?.name.value ?? ''; | ||
// if you have a better idea, send a PR :) | ||
@@ -42,0 +41,0 @@ const sortedNodes = buildInlineFragmentSelectionSetKey(cacheResult(sortExecutableNodes(node.selectionSet.selections))); |
{ | ||
"name": "@graphql-tools/documents", | ||
"version": "1.0.0-rc-20230519104353-b09f3180", | ||
"version": "1.0.0-rc-20230519104627-f6fea064", | ||
"description": "Utilities for GraphQL documents.", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16592
284