@graphql-toolkit/schema-merging
Advanced tools
Comparing version 0.9.13-alpha-26fc30a.8 to 0.9.13-alpha-2ed0c7a.10
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
98302
81393