@theydo/graphql-directive-requires-authentication
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -1,2 +0,1 @@ | ||
import { GraphQLField, GraphQLFieldResolver, GraphQLDirective } from 'graphql'; | ||
import { SchemaDirectiveVisitor } from 'graphql-tools'; | ||
@@ -7,65 +6,2 @@ export interface RequiresAuthenticationOptions<Context extends any> { | ||
} | ||
export default function <T extends any>(options: RequiresAuthenticationOptions<T>): { | ||
new (config: { | ||
name: string; | ||
args: { | ||
[name: string]: any; | ||
}; | ||
visitedType: import("graphql-tools/dist/schemaVisitor").VisitableSchemaType; | ||
schema: import("graphql").GraphQLSchema; | ||
context: { | ||
[key: string]: any; | ||
}; | ||
}): { | ||
resolver: GraphQLFieldResolver<any, T>; | ||
visitFieldDefinition(field: GraphQLField<any, any>): void; | ||
name: string; | ||
args: { | ||
[name: string]: any; | ||
}; | ||
visitedType: import("graphql-tools/dist/schemaVisitor").VisitableSchemaType; | ||
context: { | ||
[key: string]: any; | ||
}; | ||
schema: import("graphql").GraphQLSchema; | ||
visitSchema(schema: import("graphql").GraphQLSchema): void; | ||
visitScalar(scalar: import("graphql").GraphQLScalarType): void | import("graphql").GraphQLScalarType | null; | ||
visitObject(object: import("graphql").GraphQLObjectType<any, any, { | ||
[key: string]: any; | ||
}>): void | import("graphql").GraphQLObjectType<any, any, { | ||
[key: string]: any; | ||
}> | null; | ||
visitArgumentDefinition(argument: import("graphql").GraphQLArgument, details: { | ||
field: GraphQLField<any, any, { | ||
[key: string]: any; | ||
}>; | ||
objectType: import("graphql").GraphQLInterfaceType | import("graphql").GraphQLObjectType<any, any, { | ||
[key: string]: any; | ||
}>; | ||
}): void | import("graphql").GraphQLArgument | null; | ||
visitInterface(iface: import("graphql").GraphQLInterfaceType): void | import("graphql").GraphQLInterfaceType | null; | ||
visitUnion(union: import("graphql").GraphQLUnionType): void | import("graphql").GraphQLUnionType | null; | ||
visitEnum(type: import("graphql").GraphQLEnumType): void | import("graphql").GraphQLEnumType | null; | ||
visitEnumValue(value: import("graphql").GraphQLEnumValue, details: { | ||
enumType: import("graphql").GraphQLEnumType; | ||
}): void | import("graphql").GraphQLEnumValue | null; | ||
visitInputObject(object: import("graphql").GraphQLInputObjectType): void | import("graphql").GraphQLInputObjectType | null; | ||
visitInputFieldDefinition(field: import("graphql").GraphQLInputField, details: { | ||
objectType: import("graphql").GraphQLInputObjectType; | ||
}): void | import("graphql").GraphQLInputField | null; | ||
}; | ||
getDirectiveDeclaration(directiveName: string): GraphQLDirective; | ||
visitSchemaDirectives(schema: import("graphql").GraphQLSchema, directiveVisitors: { | ||
[directiveName: string]: typeof SchemaDirectiveVisitor; | ||
}, context?: { | ||
[key: string]: any; | ||
} | undefined): { | ||
[directiveName: string]: SchemaDirectiveVisitor[]; | ||
}; | ||
getDeclaredDirectives(schema: import("graphql").GraphQLSchema, directiveVisitors: { | ||
[directiveName: string]: typeof SchemaDirectiveVisitor; | ||
}): { | ||
[directiveName: string]: GraphQLDirective; | ||
}; | ||
implementsVisitorMethod(methodName: string): boolean; | ||
}; | ||
export default function <T extends any>(options: RequiresAuthenticationOptions<T>): typeof SchemaDirectiveVisitor; |
{ | ||
"name": "@theydo/graphql-directive-requires-authentication", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "GraphQL directive for checking authentication through context", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
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
9733
126