@graphql-toolkit/schema-merging
Advanced tools
Comparing version 0.9.13-alpha-1685ba9.3 to 0.9.13-alpha-21c90c1.5
@@ -8,3 +8,3 @@ 'use strict'; | ||
const common = require('@graphql-toolkit/common'); | ||
const graphqlTools = require('graphql-tools'); | ||
const graphqlToolsFork = require('graphql-tools-fork'); | ||
@@ -50,3 +50,3 @@ const isMergeableObject = (target) => { | ||
result = ((...args) => { | ||
const resultsOfFactories = resolversFactories.map((factory) => factory(...args)); | ||
const resultsOfFactories = resolversFactories.map(factory => factory(...args)); | ||
return deepMerge.all([...resolvers, ...resultsOfFactories], { isMergeableObject }); | ||
@@ -935,3 +935,3 @@ }); | ||
if (resolvers) { | ||
graphqlTools.addResolveFunctionsToSchema({ | ||
graphqlToolsFork.addResolveFunctionsToSchema({ | ||
schema, | ||
@@ -947,7 +947,7 @@ resolvers, | ||
if (config.logger) { | ||
graphqlTools.addErrorLoggingToSchema(schema, config.logger); | ||
graphqlToolsFork.addErrorLoggingToSchema(schema, config.logger); | ||
} | ||
// use schema directives | ||
if (config.schemaDirectives) { | ||
graphqlTools.SchemaDirectiveVisitor.visitSchemaDirectives(schema, config.schemaDirectives); | ||
graphqlToolsFork.SchemaDirectiveVisitor.visitSchemaDirectives(schema, config.schemaDirectives); | ||
} | ||
@@ -954,0 +954,0 @@ // extensions |
import { all } from 'deepmerge'; | ||
import { isScalarType, getDescription, visit, print, Source, Kind, isSchema, parse, isSpecifiedScalarType, isIntrospectionType, isObjectType, isInterfaceType, isInputObjectType, isUnionType, isEnumType, buildSchema, buildASTSchema } from 'graphql'; | ||
import { compareNodes, isNotEqual, printSchemaWithDirectives, createSchemaDefinition, asArray, extractResolversFromSchema, composeResolvers } from '@graphql-toolkit/common'; | ||
import { addResolveFunctionsToSchema, addErrorLoggingToSchema, SchemaDirectiveVisitor } from 'graphql-tools'; | ||
import { addResolveFunctionsToSchema, addErrorLoggingToSchema, SchemaDirectiveVisitor } from 'graphql-tools-fork'; | ||
@@ -45,3 +45,3 @@ const isMergeableObject = (target) => { | ||
result = ((...args) => { | ||
const resultsOfFactories = resolversFactories.map((factory) => factory(...args)); | ||
const resultsOfFactories = resolversFactories.map(factory => factory(...args)); | ||
return all([...resolvers, ...resultsOfFactories], { isMergeableObject }); | ||
@@ -48,0 +48,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
import { IResolvers } from '@graphql-toolkit/common'; | ||
import { IResolvers } from 'graphql-tools-fork'; | ||
export declare type ResolversFactory<TContext> = (...args: any[]) => IResolvers<any, TContext>; | ||
@@ -3,0 +3,0 @@ export declare type ResolversDefinition<TContext> = IResolvers<any, TContext> | ResolversFactory<TContext>; |
import { GraphQLSchema, DocumentNode, BuildSchemaOptions } from 'graphql'; | ||
import { SchemaDirectiveVisitor, IResolverValidationOptions, ILogger } from 'graphql-tools'; | ||
import { IResolvers } from '@graphql-toolkit/common'; | ||
import { IResolvers, SchemaDirectiveVisitor, IResolverValidationOptions, ILogger } from 'graphql-tools-fork'; | ||
import { Config } from './typedefs-mergers/merge-typedefs'; | ||
@@ -5,0 +4,0 @@ import { ResolversComposerMapping } from '@graphql-toolkit/common'; |
{ | ||
"name": "@graphql-toolkit/schema-merging", | ||
"version": "0.9.13-alpha-1685ba9.3+1685ba9", | ||
"version": "0.9.13-alpha-21c90c1.5+21c90c1", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -18,5 +18,5 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-toolkit/common": "0.9.13-alpha-1685ba9.3+1685ba9", | ||
"@graphql-toolkit/common": "0.9.13-alpha-21c90c1.5+21c90c1", | ||
"deepmerge": "4.2.2", | ||
"graphql-tools": "5.0.0-alpha.0", | ||
"graphql-tools-fork": "9.0.1", | ||
"tslib": "1.11.1" | ||
@@ -23,0 +23,0 @@ }, |
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
98268
2155
+ Addedgraphql-tools-fork@9.0.1
+ Addedgraphql-tools-fork@9.0.1(transitive)
- Removedgraphql-tools@5.0.0-alpha.0
- Removedgraphql-tools@5.0.0-alpha.0(transitive)
Updated@graphql-toolkit/common@0.9.13-alpha-21c90c1.5+21c90c1