Socket
Socket
Sign inDemoInstall

@theydo/graphql-directive-requires-authentication

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theydo/graphql-directive-requires-authentication - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

66

dist/directive.d.ts

@@ -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;

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc