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

@graphql-toolkit/schema-merging

Package Overview
Dependencies
Maintainers
3
Versions
704
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-toolkit/schema-merging - npm Package Compare versions

Comparing version 0.9.13-alpha-26fc30a.8 to 0.9.13-alpha-2ed0c7a.10

16

index.cjs.js

@@ -846,3 +846,3 @@ 'use strict';

for (const [arg, argData] of Object.entries(fieldData.arguments)) {
applyExtensionObject(field.args.find(a => a.name === arg), argData);
applyExtensionObject(field.args.find((a) => a.name === arg), argData);
}

@@ -872,4 +872,4 @@ }

travelSchemaPossibleExtensions(schema, {
onSchema: schema => (result.schemaExtensions = schema.extensions || {}),
onObjectType: type => (result.types[type.name] = { fields: {}, type: 'object', extensions: type.extensions || {} }),
onSchema: (schema) => (result.schemaExtensions = schema.extensions || {}),
onObjectType: (type) => (result.types[type.name] = { fields: {}, type: 'object', extensions: type.extensions || {} }),
onObjectField: (type, field) => (result.types[type.name].fields[field.name] = {

@@ -880,3 +880,3 @@ arguments: {},

onObjectFieldArg: (type, field, arg) => (result.types[type.name].fields[field.name].arguments[arg.name] = arg.extensions || {}),
onInterface: type => (result.types[type.name] = { fields: {}, type: 'interface', extensions: type.extensions || {} }),
onInterface: (type) => (result.types[type.name] = { fields: {}, type: 'interface', extensions: type.extensions || {} }),
onInterfaceField: (type, field) => (result.types[type.name].fields[field.name] = {

@@ -888,7 +888,7 @@ arguments: {},

arg.extensions || {}),
onEnum: type => (result.types[type.name] = { values: {}, type: 'enum', extensions: type.extensions || {} }),
onEnum: (type) => (result.types[type.name] = { values: {}, type: 'enum', extensions: type.extensions || {} }),
onEnumValue: (type, value) => (result.types[type.name].values[value.name] = value.extensions || {}),
onScalar: type => (result.types[type.name] = { type: 'scalar', extensions: type.extensions || {} }),
onUnion: type => (result.types[type.name] = { type: 'union', extensions: type.extensions || {} }),
onInputType: type => (result.types[type.name] = { fields: {}, type: 'input', extensions: type.extensions || {} }),
onScalar: (type) => (result.types[type.name] = { type: 'scalar', extensions: type.extensions || {} }),
onUnion: (type) => (result.types[type.name] = { type: 'union', extensions: type.extensions || {} }),
onInputType: (type) => (result.types[type.name] = { fields: {}, type: 'input', extensions: type.extensions || {} }),
onInputFieldType: (type, field) => (result.types[type.name].fields[field.name] = { extensions: field.extensions || {} }),

@@ -895,0 +895,0 @@ });

@@ -842,3 +842,3 @@ import { all } from 'deepmerge';

for (const [arg, argData] of Object.entries(fieldData.arguments)) {
applyExtensionObject(field.args.find(a => a.name === arg), argData);
applyExtensionObject(field.args.find((a) => a.name === arg), argData);
}

@@ -868,4 +868,4 @@ }

travelSchemaPossibleExtensions(schema, {
onSchema: schema => (result.schemaExtensions = schema.extensions || {}),
onObjectType: type => (result.types[type.name] = { fields: {}, type: 'object', extensions: type.extensions || {} }),
onSchema: (schema) => (result.schemaExtensions = schema.extensions || {}),
onObjectType: (type) => (result.types[type.name] = { fields: {}, type: 'object', extensions: type.extensions || {} }),
onObjectField: (type, field) => (result.types[type.name].fields[field.name] = {

@@ -876,3 +876,3 @@ arguments: {},

onObjectFieldArg: (type, field, arg) => (result.types[type.name].fields[field.name].arguments[arg.name] = arg.extensions || {}),
onInterface: type => (result.types[type.name] = { fields: {}, type: 'interface', extensions: type.extensions || {} }),
onInterface: (type) => (result.types[type.name] = { fields: {}, type: 'interface', extensions: type.extensions || {} }),
onInterfaceField: (type, field) => (result.types[type.name].fields[field.name] = {

@@ -884,7 +884,7 @@ arguments: {},

arg.extensions || {}),
onEnum: type => (result.types[type.name] = { values: {}, type: 'enum', extensions: type.extensions || {} }),
onEnum: (type) => (result.types[type.name] = { values: {}, type: 'enum', extensions: type.extensions || {} }),
onEnumValue: (type, value) => (result.types[type.name].values[value.name] = value.extensions || {}),
onScalar: type => (result.types[type.name] = { type: 'scalar', extensions: type.extensions || {} }),
onUnion: type => (result.types[type.name] = { type: 'union', extensions: type.extensions || {} }),
onInputType: type => (result.types[type.name] = { fields: {}, type: 'input', extensions: type.extensions || {} }),
onScalar: (type) => (result.types[type.name] = { type: 'scalar', extensions: type.extensions || {} }),
onUnion: (type) => (result.types[type.name] = { type: 'union', extensions: type.extensions || {} }),
onInputType: (type) => (result.types[type.name] = { fields: {}, type: 'input', extensions: type.extensions || {} }),
onInputFieldType: (type, field) => (result.types[type.name].fields[field.name] = { extensions: field.extensions || {} }),

@@ -891,0 +891,0 @@ });

{
"name": "@graphql-toolkit/schema-merging",
"version": "0.9.13-alpha-26fc30a.8+26fc30a",
"version": "0.9.13-alpha-2ed0c7a.10+2ed0c7a",
"description": "A set of utils for faster development of GraphQL tools",

@@ -18,3 +18,3 @@ "peerDependencies": {

"dependencies": {
"@graphql-toolkit/common": "0.9.13-alpha-26fc30a.8+26fc30a",
"@graphql-toolkit/common": "0.9.13-alpha-2ed0c7a.10+2ed0c7a",
"deepmerge": "4.2.2",

@@ -21,0 +21,0 @@ "graphql-tools-fork": "9.0.1",

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