Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-extensions

Package Overview
Dependencies
Maintainers
2
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-extensions - npm Package Compare versions

Comparing version 0.1.0-beta.1 to 0.1.0-beta.2

4

lib/index.d.ts

@@ -6,2 +6,4 @@ import { GraphQLSchema, GraphQLField, GraphQLResolveInfo, ExecutionArgs } from 'graphql';

}
export declare type GraphQLExtensionFactory<TContext = any> = ((o: GraphQLExtensionOptions) => GraphQLExtension<TContext>);
export declare type GraphQLExtensionOrFactory<TContext = any> = GraphQLExtension<TContext> | GraphQLExtensionFactory<TContext>;
export declare class GraphQLExtension<TContext = any> {

@@ -19,3 +21,3 @@ requestDidStart?(): EndHandler | void;

private extensions;
constructor(extensions: (((o: GraphQLExtensionOptions) => GraphQLExtension<TContext>) | GraphQLExtension<TContext>)[], options: GraphQLExtensionOptions);
constructor(extensions: GraphQLExtensionOrFactory<TContext>[], options: GraphQLExtensionOptions);
requestDidStart(): (() => void);

@@ -22,0 +24,0 @@ parsingDidStart(): (() => void);

{
"name": "graphql-extensions",
"version": "0.1.0-beta.1",
"version": "0.1.0-beta.2",
"description": "Add extensions to GraphQL servers",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -22,2 +22,9 @@ import {

export type GraphQLExtensionFactory<TContext = any> = ((
o: GraphQLExtensionOptions,
) => GraphQLExtension<TContext>);
export type GraphQLExtensionOrFactory<TContext = any> =
| GraphQLExtension<TContext>
| GraphQLExtensionFactory<TContext>;
export class GraphQLExtension<TContext = any> {

@@ -43,5 +50,3 @@ public requestDidStart?(): EndHandler | void;

constructor(
extensions: (
| ((o: GraphQLExtensionOptions) => GraphQLExtension<TContext>)
| GraphQLExtension<TContext>)[],
extensions: GraphQLExtensionOrFactory<TContext>[],
options: GraphQLExtensionOptions,

@@ -48,0 +53,0 @@ ) {

Sorry, the diff of this file is not supported yet

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