@graphql-tools/utils
Advanced tools
Comparing version 5.0.1-alpha-2c860c0.0 to 5.0.1-alpha-3268f17.0
@@ -1,5 +0,7 @@ | ||
import { GraphQLSchema } from 'graphql'; | ||
import { GraphQLSchema, GraphQLNamedType, GraphQLField, GraphQLInputField, GraphQLFieldConfig, GraphQLInputFieldConfig, GraphQLSchemaConfig, GraphQLObjectTypeConfig, GraphQLInterfaceTypeConfig, GraphQLUnionTypeConfig, GraphQLScalarTypeConfig, GraphQLEnumTypeConfig, GraphQLInputObjectTypeConfig, GraphQLEnumValue, GraphQLEnumValueConfig } from 'graphql'; | ||
export declare type DirectiveUseMap = { | ||
[key: string]: any; | ||
}; | ||
export declare function getDirectives(schema: GraphQLSchema, node: any): DirectiveUseMap; | ||
declare type DirectableGraphQLObject = GraphQLSchema | GraphQLSchemaConfig | GraphQLNamedType | GraphQLObjectTypeConfig<any, any> | GraphQLInterfaceTypeConfig<any, any> | GraphQLUnionTypeConfig<any, any> | GraphQLScalarTypeConfig<any, any> | GraphQLEnumTypeConfig | GraphQLEnumValue | GraphQLEnumValueConfig | GraphQLInputObjectTypeConfig | GraphQLField<any, any> | GraphQLInputField | GraphQLFieldConfig<any, any> | GraphQLInputFieldConfig; | ||
export declare function getDirectives(schema: GraphQLSchema, node: DirectableGraphQLObject): DirectiveUseMap; | ||
export {}; |
import { ASTNode } from 'graphql'; | ||
export declare const asArray: <T>(fns: T | T[]) => T[]; | ||
export declare function chainFunctions(funcs: any[]): any; | ||
export declare function isEqual<T>(a: T, b: T): boolean; | ||
@@ -8,6 +7,4 @@ export declare function isNotEqual<T>(a: T, b: T): boolean; | ||
export declare function isValidPath(str: string): boolean; | ||
export declare function resolveBuiltinModule<Module>(moduleName: string, option?: Module | string): Promise<Module>; | ||
export declare function resolveBuiltinModuleSync<Module>(moduleName: string, option?: Module | string): Module; | ||
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; |
export * from './loaders'; | ||
export * from './helpers'; | ||
export * from './debug-log'; | ||
export * from './extract-field-resolvers-from-object-type'; | ||
export * from './extract-resolvers-from-schema'; | ||
export * from './fix-windows-path'; | ||
@@ -14,3 +12,2 @@ export * from './flatten-array'; | ||
export * from './validate-documents'; | ||
export * from './resolvers-composition'; | ||
export * from './fix-schema-ast'; | ||
@@ -23,1 +20,29 @@ export * from './parse-graphql-json'; | ||
export * from './types'; | ||
export * from './filterSchema'; | ||
export * from './clone'; | ||
export * from './heal'; | ||
export * from './SchemaVisitor'; | ||
export * from './SchemaDirectiveVisitor'; | ||
export * from './visitSchema'; | ||
export * from './getResolversFromSchema'; | ||
export * from './forEachField'; | ||
export * from './forEachDefaultValue'; | ||
export * from './mapSchema'; | ||
export * from './addTypes'; | ||
export * from './rewire'; | ||
export * from './mergeDeep'; | ||
export * from './Interfaces'; | ||
export * from './fieldNodes'; | ||
export * from './stub'; | ||
export * from './fragments'; | ||
export * from './selectionSets'; | ||
export * from './getResponseKeyFromInfo'; | ||
export * from './transforms'; | ||
export * from './fields'; | ||
export * from './collectFields'; | ||
export * from './transformInputValue'; | ||
export * from './mapAsyncIterator'; | ||
export * from './updateArgument'; | ||
export * from './implementsAbstractType'; | ||
export * from './errors'; | ||
export * from './toConfig'; |
import { DocumentNode, GraphQLSchema, ParseOptions, BuildSchemaOptions } from 'graphql'; | ||
import { GraphQLSchemaValidationOptions } from 'graphql/type/schema'; | ||
export declare class Source { | ||
export interface Source { | ||
document?: DocumentNode; | ||
@@ -8,7 +8,2 @@ schema?: GraphQLSchema; | ||
location?: string; | ||
constructor({ document, location, schema }: { | ||
document?: DocumentNode; | ||
location?: string; | ||
schema?: GraphQLSchema; | ||
}); | ||
} | ||
@@ -15,0 +10,0 @@ export declare type SingleFileOptions = ParseOptions & GraphQLSchemaValidationOptions & BuildSchemaOptions & { |
{ | ||
"name": "@graphql-tools/utils", | ||
"version": "5.0.1-alpha-2c860c0.0", | ||
"version": "5.0.1-alpha-3268f17.0", | ||
"description": "Common package containting utils and types for GraphQL tools", | ||
"peerDependencies": { | ||
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" | ||
"graphql": "^14.0.0 || ^15.0.0" | ||
}, | ||
"dependencies": { | ||
"aggregate-error": "3.0.1", | ||
"camel-case": "4.1.1", | ||
"@graphql-tools/schema-stitching": "5.0.1-alpha-2c860c0.0", | ||
"lodash": "4.17.15" | ||
"camel-case": "4.1.1" | ||
}, | ||
@@ -24,5 +21,5 @@ "repository": "git@github.com:ardatan/graphql-tools.git", | ||
"devDependencies": { | ||
"@types/aggregate-error": "1.0.1", | ||
"graphql-scalars": "1.1.2", | ||
"iterall": "1.3.0" | ||
"@types/dateformat": "3.0.1", | ||
"dateformat": "3.0.3", | ||
"graphql-scalars": "1.1.2" | ||
}, | ||
@@ -29,0 +26,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
779635
2
54
6950
7
1
+ Addedtslib@1.14.1(transitive)
- Removed@graphql-tools/schema-stitching@5.0.1-alpha-2c860c0.0
- Removedaggregate-error@3.0.1
- Removedlodash@4.17.15
- Removed@babel/runtime@7.26.0(transitive)
- Removed@graphql-tools/schema-stitching@5.0.1-alpha-2c860c0.0(transitive)
- Removed@wry/equality@0.1.11(transitive)
- Removedaggregate-error@3.0.1(transitive)
- Removedapollo-link@1.2.14(transitive)
- Removedapollo-link-http-common@0.2.16(transitive)
- Removedapollo-upload-client@13.0.0(transitive)
- Removedapollo-utilities@1.3.4(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedclean-stack@2.2.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcross-fetch@3.0.4(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedextract-files@8.1.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedform-data@3.0.0(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedlodash@4.17.15(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removednode-fetch@2.6.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedts-invariant@0.4.4(transitive)
- Removedtslib@1.11.1(transitive)
- Removedwhatwg-fetch@3.0.0(transitive)
- Removedzen-observable@0.8.15(transitive)
- Removedzen-observable-ts@0.8.21(transitive)