@graphql-toolkit/common
Advanced tools
Comparing version 0.10.4-alpha-e78d594.8 to 0.10.4
import { GraphQLSchema, DocumentNode } from 'graphql'; | ||
import { IResolvers } from 'graphql-tools-fork'; | ||
import { IResolvers } from 'graphql-tools'; | ||
export interface ExtractResolversFromSchemaOptions { | ||
@@ -4,0 +4,0 @@ selectedTypeDefs?: DocumentNode; |
@@ -1,2 +0,2 @@ | ||
import { DirectiveResolverFn, SchemaDirectiveVisitor } from 'graphql-tools-fork'; | ||
import { DirectiveResolverFn, SchemaDirectiveVisitor } from 'graphql-tools'; | ||
export declare function getSchemaDirectiveFromDirectiveResolver<TSource, TContext, TArgs>(directiveResolver: DirectiveResolverFn<TSource, TContext>): typeof SchemaDirectiveVisitor; |
@@ -10,4 +10,4 @@ import { ASTNode } from 'graphql'; | ||
export declare function resolveBuiltinModuleSync<Module>(moduleName: string, option?: Module | string): Module; | ||
export declare function compareStrings<A, B>(a: A, b: B): 1 | 0 | -1; | ||
export declare function compareStrings<A, B>(a: A, b: B): 0 | 1 | -1; | ||
export declare function nodeToString(a: ASTNode): string; | ||
export declare function compareNodes(a: ASTNode, b: ASTNode, customFn?: (a: any, b: any) => number): number; |
@@ -27,3 +27,3 @@ 'use strict'; | ||
const graphql = require('graphql'); | ||
const graphqlToolsFork = require('graphql-tools-fork'); | ||
const graphqlTools = require('graphql-tools'); | ||
const AggregateError = _interopDefault(require('aggregate-error')); | ||
@@ -299,3 +299,3 @@ const lodash = require('lodash'); | ||
function getSchemaDirectiveFromDirectiveResolver(directiveResolver) { | ||
return class extends graphqlToolsFork.SchemaDirectiveVisitor { | ||
return class extends graphqlTools.SchemaDirectiveVisitor { | ||
visitFieldDefinition(field) { | ||
@@ -302,0 +302,0 @@ const resolver = directiveResolver; |
import { parse, buildASTSchema, isScalarType, isObjectType, isInterfaceType, isEnumType, isUnionType, getDirectiveValues, Kind, defaultFieldResolver, isSpecifiedScalarType, isIntrospectionType, print, printType, specifiedRules, validate, buildSchema, buildClientSchema, Source, isListType, isNonNullType, getNamedType } from 'graphql'; | ||
import { SchemaDirectiveVisitor } from 'graphql-tools-fork'; | ||
import { SchemaDirectiveVisitor } from 'graphql-tools'; | ||
import AggregateError from 'aggregate-error'; | ||
@@ -4,0 +4,0 @@ import { get, set } from 'lodash'; |
{ | ||
"name": "@graphql-toolkit/common", | ||
"version": "0.10.4-alpha-e78d594.8+e78d594", | ||
"version": "0.10.4", | ||
"description": "Common package containting utils and types for GraphQL Toolkit", | ||
@@ -11,3 +11,3 @@ "peerDependencies": { | ||
"camel-case": "4.1.1", | ||
"graphql-tools-fork": "9.0.1", | ||
"graphql-tools": "5.0.0", | ||
"lodash": "4.17.15" | ||
@@ -14,0 +14,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { IResolvers, IFieldResolver } from 'graphql-tools-fork'; | ||
import { IResolvers, IFieldResolver } from 'graphql-tools'; | ||
export declare type ResolversComposition<Resolver extends IFieldResolver<any, any> = IFieldResolver<any, any>> = (next: Resolver) => Resolver; | ||
@@ -3,0 +3,0 @@ export declare type ResolversComposerMapping<Resolvers extends IResolvers = IResolvers> = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
0
227201
1
+ Addedgraphql-tools@5.0.0
+ Added@babel/runtime@7.25.6(transitive)
+ Addedapollo-upload-client@13.0.0(transitive)
+ Addedextract-files@8.1.0(transitive)
+ Addedgraphql-tools@5.0.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removedgraphql-tools-fork@9.0.1
- Removedextract-files@7.0.0(transitive)
- Removedgraphql-tools-fork@9.0.1(transitive)