Socket
Socket
Sign inDemoInstall

graphql-js-tree

Package Overview
Dependencies
1
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.3 to 0.3.4

7

lib/GqlParser/index.js

@@ -88,3 +88,8 @@ "use strict";

var _a, _b, _c, _d, _e;
const fieldNode = parentNode.args.find((a) => a.name === s.name.value);
const fieldNode = s.name.value === '__typename'
? (0, shared_1.createPlainField)({
name: '__typename',
type: 'String!',
})
: parentNode.args.find((a) => a.name === s.name.value);
if (!fieldNode) {

@@ -91,0 +96,0 @@ throw new Error(`Field "${s.name.value}" does not exist in "${parentNode.name}" node`);

2

package.json
{
"name": "graphql-js-tree",
"version": "0.3.3",
"version": "0.3.4",
"private": false,

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc