@graphql-toolkit/common
Advanced tools
Comparing version 0.10.4-alpha-6a4c019.0 to 0.10.4-alpha-7ceac22.1
@@ -0,0 +0,0 @@ import { GraphQLSchema, OperationDefinitionNode, OperationTypeNode } from 'graphql'; |
@@ -0,0 +0,0 @@ import { GraphQLObjectType } from 'graphql'; |
export declare function debugLog(...args: any[]): void; |
@@ -0,0 +0,0 @@ import { GraphQLObjectType, GraphQLInterfaceType, DocumentNode } from 'graphql'; |
@@ -0,0 +0,0 @@ import { GraphQLSchema, DocumentNode } from 'graphql'; |
import { GraphQLSchema, BuildSchemaOptions } from 'graphql'; | ||
import { SchemaPrintOptions } from './types'; | ||
export declare function fixSchemaAst(schema: GraphQLSchema, options: BuildSchemaOptions & SchemaPrintOptions): GraphQLSchema; |
export declare const fixWindowsPath: (path: string) => string; |
export declare const flattenArray: (arr: any) => any[]; |
@@ -0,0 +0,0 @@ import { GraphQLSchema } from 'graphql'; |
@@ -0,0 +0,0 @@ import { DocumentNode } from 'graphql'; |
import { GraphQLSchema } from 'graphql'; | ||
export declare function getImplementingTypes(interfaceName: string, schema: GraphQLSchema): string[]; |
import { DirectiveResolverFn, SchemaDirectiveVisitor } from 'graphql-tools-fork'; | ||
export declare function getSchemaDirectiveFromDirectiveResolver<TSource, TContext, TArgs>(directiveResolver: DirectiveResolverFn<TSource, TContext>): typeof SchemaDirectiveVisitor; |
@@ -0,0 +0,0 @@ import { GraphQLSchema, GraphQLObjectType } from 'graphql'; |
@@ -0,0 +0,0 @@ import { ASTNode } from 'graphql'; |
@@ -8,18 +8,18 @@ 'use strict'; | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) { return e; } else { | ||
var n = {}; | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
}); | ||
}); | ||
if (e && e.__esModule) { return e; } else { | ||
var n = {}; | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
}); | ||
}); | ||
} | ||
n['default'] = e; | ||
return n; | ||
} | ||
n['default'] = e; | ||
return n; | ||
} | ||
} | ||
@@ -290,3 +290,3 @@ | ||
const allInterfaces = graphqlType.getInterfaces(); | ||
if (allInterfaces.find(int => int.name === interfaceName)) { | ||
if (allInterfaces.find((int) => int.name === interfaceName)) { | ||
result.push(graphqlType.name); | ||
@@ -336,3 +336,3 @@ } | ||
function printSchemaWithDirectives(schema, options = {}) { | ||
function printSchemaWithDirectives(schema, _options = {}) { | ||
var _a; | ||
@@ -395,3 +395,4 @@ const typesMap = schema.getTypeMap(); | ||
const originalFieldDefinitionNode = originalAstNode.fields.find((field) => field.name.value === fieldDefinitionNode.name.value); | ||
fieldDefinitionNode.directives = originalFieldDefinitionNode === null || originalFieldDefinitionNode === void 0 ? void 0 : originalFieldDefinitionNode.directives; | ||
fieldDefinitionNode.directives = | ||
originalFieldDefinitionNode === null || originalFieldDefinitionNode === void 0 ? void 0 : originalFieldDefinitionNode.directives; | ||
} | ||
@@ -1039,1 +1040,2 @@ } | ||
exports.validateGraphQlDocuments = validateGraphQlDocuments; | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -0,0 +0,0 @@ export * from './loaders'; |
@@ -264,3 +264,3 @@ 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'; | ||
const allInterfaces = graphqlType.getInterfaces(); | ||
if (allInterfaces.find(int => int.name === interfaceName)) { | ||
if (allInterfaces.find((int) => int.name === interfaceName)) { | ||
result.push(graphqlType.name); | ||
@@ -310,3 +310,3 @@ } | ||
function printSchemaWithDirectives(schema, options = {}) { | ||
function printSchemaWithDirectives(schema, _options = {}) { | ||
var _a; | ||
@@ -369,3 +369,4 @@ const typesMap = schema.getTypeMap(); | ||
const originalFieldDefinitionNode = originalAstNode.fields.find((field) => field.name.value === fieldDefinitionNode.name.value); | ||
fieldDefinitionNode.directives = originalFieldDefinitionNode === null || originalFieldDefinitionNode === void 0 ? void 0 : originalFieldDefinitionNode.directives; | ||
fieldDefinitionNode.directives = | ||
originalFieldDefinitionNode === null || originalFieldDefinitionNode === void 0 ? void 0 : originalFieldDefinitionNode.directives; | ||
} | ||
@@ -984,1 +985,2 @@ } | ||
export { asArray, buildOperationNodeForField, chainFunctions, checkValidationErrors, compareNodes, compareStrings, composeResolvers, createSchemaDefinition, debugLog, extractFieldResolversFromObjectType, extractResolversFromSchema, fixSchemaAst, fixWindowsPath, flattenArray, getDirectives, getFieldsWithDirectives, getImplementingTypes, getSchemaDirectiveFromDirectiveResolver, getUserTypesFromSchema, isDocumentString, isEqual, isNotEqual, isValidPath, nodeToString, parseGraphQLJSON, parseGraphQLSDL, printSchemaWithDirectives, resolveBuiltinModule, resolveBuiltinModuleSync, validateGraphQlDocuments }; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -0,0 +0,0 @@ import { DocumentNode, GraphQLSchema, ParseOptions, BuildSchemaOptions } from 'graphql'; |
{ | ||
"name": "@graphql-toolkit/common", | ||
"version": "0.10.4-alpha-6a4c019.0+6a4c019", | ||
"version": "0.10.4-alpha-7ceac22.1+7ceac22", | ||
"description": "Common package containting utils and types for GraphQL Toolkit", | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
@@ -0,0 +0,0 @@ import { ParseOptions } from 'graphql'; |
@@ -0,0 +0,0 @@ import { ParseOptions, DocumentNode } from 'graphql'; |
import { GraphQLSchema } from 'graphql'; | ||
import { SchemaPrintOptions } from './types'; | ||
export declare function printSchemaWithDirectives(schema: GraphQLSchema, options?: SchemaPrintOptions): string; | ||
export declare function printSchemaWithDirectives(schema: GraphQLSchema, _options?: SchemaPrintOptions): string; |
@@ -0,0 +0,0 @@ import { IResolvers, IFieldResolver } from 'graphql-tools-fork'; |
@@ -0,0 +0,0 @@ export interface SchemaPrintOptions { |
@@ -0,0 +0,0 @@ import { GraphQLSchema, GraphQLError, ValidationContext, ASTVisitor } from 'graphql'; |
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
227273
28
2174