New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gqutils

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

gqutils - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

12

dist/Schema.js

@@ -541,2 +541,4 @@ 'use strict';

parseGraphqlInterface(schema, schemaItem) {
const resolveType = this.resolvers[schemaItem.name] && this.resolvers[schemaItem.name].__resolveType;
schemaItem._graphql = new _graphql.GraphQLInterfaceType({

@@ -546,3 +548,3 @@ name: schemaItem.name,

fields: () => this.parseGraphqlFields(schema, schemaItem.fields, schemaItem.name),
resolveType: schemaItem.resolveType || (() => {})
resolveType: resolveType || schemaItem.resolveType
});

@@ -560,2 +562,4 @@ }

parseGraphqlType(schema, type) {
const isTypeOf = this.resolvers[type.name] && this.resolvers[type.name].__isTypeOf;
const graphqlType = {

@@ -578,3 +582,3 @@ name: type.name,

},
isTypeOf: type.isTypeOf
isTypeOf: isTypeOf || type.isTypeOf
};

@@ -592,2 +596,4 @@

parseGraphqlUnion(schema, union) {
const resolveType = this.resolvers[union.name] && this.resolvers[union.name].__resolveType;
union._graphql = new _graphql.GraphQLUnionType({

@@ -597,3 +603,3 @@ name: union.name,

types: () => this.parseTypes(schema, union.types),
resolveType: union.resolveType || (() => {})
resolveType: resolveType || union.resolveType
});

@@ -600,0 +606,0 @@ }

{
"name": "gqutils",
"version": "1.0.8",
"version": "1.0.9",
"description": "Utilities For GraphQL",

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

@@ -565,2 +565,5 @@ import _ from 'lodash';

parseGraphqlInterface(schema, schemaItem) {
const resolveType = this.resolvers[schemaItem.name] &&
this.resolvers[schemaItem.name].__resolveType;
schemaItem._graphql = new GraphQLInterfaceType({

@@ -570,3 +573,3 @@ name: schemaItem.name,

fields: () => this.parseGraphqlFields(schema, schemaItem.fields, schemaItem.name),
resolveType: schemaItem.resolveType || (() => {}),
resolveType: resolveType || schemaItem.resolveType,
});

@@ -584,2 +587,5 @@ }

parseGraphqlType(schema, type) {
const isTypeOf = this.resolvers[type.name] &&
this.resolvers[type.name].__isTypeOf;
const graphqlType = {

@@ -602,3 +608,3 @@ name: type.name,

},
isTypeOf: type.isTypeOf,
isTypeOf: isTypeOf || type.isTypeOf,
};

@@ -616,2 +622,5 @@

parseGraphqlUnion(schema, union) {
const resolveType = this.resolvers[union.name] &&
this.resolvers[union.name].__resolveType;
union._graphql = new GraphQLUnionType({

@@ -621,3 +630,3 @@ name: union.name,

types: () => this.parseTypes(schema, union.types),
resolveType: union.resolveType || (() => {}),
resolveType: resolveType || union.resolveType,
});

@@ -624,0 +633,0 @@ }

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