Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/documents

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/documents - npm Package Compare versions

Comparing version 1.0.0-rc-20230519104353-b09f3180 to 1.0.0-rc-20230519104627-f6fea064

3

cjs/sort-executable-nodes.js

@@ -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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc