@graphql-toolkit/schema-merging
Advanced tools
Comparing version 0.9.13-alpha-86dcd09.3 to 0.9.13-alpha-c3675ba.4
@@ -8,3 +8,3 @@ 'use strict'; | ||
const common = require('@graphql-toolkit/common'); | ||
const graphqlToolsFork = require('graphql-tools-fork'); | ||
const graphqlTools = require('graphql-tools'); | ||
@@ -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) { | ||
graphqlToolsFork.addResolveFunctionsToSchema({ | ||
graphqlTools.addResolveFunctionsToSchema({ | ||
schema, | ||
@@ -947,7 +947,7 @@ resolvers, | ||
if (config.logger) { | ||
graphqlToolsFork.addErrorLoggingToSchema(schema, config.logger); | ||
graphqlTools.addErrorLoggingToSchema(schema, config.logger); | ||
} | ||
// use schema directives | ||
if (config.schemaDirectives) { | ||
graphqlToolsFork.SchemaDirectiveVisitor.visitSchemaDirectives(schema, config.schemaDirectives); | ||
graphqlTools.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-fork'; | ||
import { addResolveFunctionsToSchema, addErrorLoggingToSchema, SchemaDirectiveVisitor } from 'graphql-tools'; | ||
@@ -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-tools-fork'; | ||
import { IResolvers } from '@graphql-toolkit/common'; | ||
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 { IResolvers, SchemaDirectiveVisitor, IResolverValidationOptions, ILogger } from 'graphql-tools-fork'; | ||
import { SchemaDirectiveVisitor, IResolverValidationOptions, ILogger } from 'graphql-tools'; | ||
import { IResolvers } from '@graphql-toolkit/common'; | ||
import { Config } from './typedefs-mergers/merge-typedefs'; | ||
@@ -4,0 +5,0 @@ import { ResolversComposerMapping } from '@graphql-toolkit/common'; |
{ | ||
"name": "@graphql-toolkit/schema-merging", | ||
"version": "0.9.13-alpha-86dcd09.3+86dcd09", | ||
"version": "0.9.13-alpha-c3675ba.4+c3675ba", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -18,5 +18,5 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-toolkit/common": "0.9.13-alpha-86dcd09.3+86dcd09", | ||
"@graphql-toolkit/common": "0.9.13-alpha-c3675ba.4+c3675ba", | ||
"deepmerge": "4.2.2", | ||
"graphql-tools-fork": "9.0.1", | ||
"graphql-tools": "5.0.0-alpha.0", | ||
"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
98292
2156
+ Addedgraphql-tools@5.0.0-alpha.0
+ Addedgraphql-tools@5.0.0-alpha.0(transitive)
- Removedgraphql-tools-fork@9.0.1
- Removedgraphql-tools-fork@9.0.1(transitive)
Updated@graphql-toolkit/common@0.9.13-alpha-c3675ba.4+c3675ba