Socket
Socket
Sign inDemoInstall

graphql-parse-resolve-info

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-parse-resolve-info - npm Package Compare versions

Comparing version 4.0.0-beta.7.1 to 4.0.0-beta.7.2

16

node8plus/index.js

@@ -58,14 +58,12 @@ "use strict";

const asts = resolveInfo.fieldNodes || resolveInfo.fieldASTs;
const alias = asts.reduce(function (alias, val) {
if (!alias) {
if (val.kind === "Field") {
alias = val.alias ? val.alias.value : val.name && val.name.value;
for (let i = 0, l = asts.length; i < l; i++) {
const val = asts[i];
if (val.kind === "Field") {
const alias = val.alias ? val.alias.value : val.name && val.name.value;
if (alias) {
return alias;
}
}
return alias;
}, null);
if (!alias) {
throw new Error("Could not determine alias?!");
}
return alias;
throw new Error("Could not determine alias?!");
}

@@ -72,0 +70,0 @@

{
"name": "graphql-parse-resolve-info",
"version": "4.0.0-beta.7.1",
"version": "4.0.0-beta.7.2",
"description": "Parse GraphQLResolveInfo (the 4th argument of resolve) into a simple tree",

@@ -5,0 +5,0 @@ "main": "node8plus/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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