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

apollo-server-plugin-base

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-plugin-base - npm Package Compare versions

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

7

dist/index.d.ts

@@ -9,10 +9,9 @@ import { GraphQLServiceContext, GraphQLRequestContext, GraphQLRequest, GraphQLResponse } from 'apollo-server-core/dist/requestPipelineAPI';

export declare type WithRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
export declare type DidEndHook<TArgs extends any[]> = (...args: TArgs) => void;
export interface GraphQLRequestListener<TContext = Record<string, any>> {
parsingDidStart?(requestContext: GraphQLRequestContext<TContext>): DidEndHook<[Error?]> | void;
validationDidStart?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document'>): DidEndHook<[ReadonlyArray<Error>?]> | void;
parsingDidStart?(requestContext: GraphQLRequestContext<TContext>): (err?: Error) => void | void;
validationDidStart?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document'>): (err?: ReadonlyArray<Error>) => void | void;
didResolveOperation?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document' | 'operationName' | 'operation'>): ValueOrPromise<void>;
executionDidStart?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document' | 'operationName' | 'operation'>): DidEndHook<[Error?]> | void;
executionDidStart?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document' | 'operationName' | 'operation'>): (err?: Error) => void | void;
willSendResponse?(requestContext: WithRequired<GraphQLRequestContext<TContext>, 'response'>): ValueOrPromise<void>;
}
//# sourceMappingURL=index.d.ts.map
{
"name": "apollo-server-plugin-base",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.2",
"description": "Apollo Server plugin base classes",

@@ -14,3 +14,3 @@ "main": "dist/index.js",

"devDependencies": {
"apollo-server-core": "2.2.0-alpha.1",
"apollo-server-core": "2.2.0-alpha.2",
"apollo-server-env": "2.1.0-alpha.1"

@@ -21,3 +21,3 @@ },

},
"gitHead": "5b8388323325c14970601310d7864b86010cbebe"
"gitHead": "a6872c2f6ca2db03e9f237510b3fc6802d390785"
}

@@ -24,3 +24,2 @@ import {

export type WithRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
export type DidEndHook<TArgs extends any[]> = (...args: TArgs) => void;

@@ -30,6 +29,6 @@ export interface GraphQLRequestListener<TContext = Record<string, any>> {

requestContext: GraphQLRequestContext<TContext>,
): DidEndHook<[Error?]> | void;
): (err?: Error) => void | void;
validationDidStart?(
requestContext: WithRequired<GraphQLRequestContext<TContext>, 'document'>,
): DidEndHook<[ReadonlyArray<Error>?]> | void;
): (err?: ReadonlyArray<Error>) => void | void;
didResolveOperation?(

@@ -46,3 +45,3 @@ requestContext: WithRequired<

>,
): DidEndHook<[Error?]> | void;
): (err?: Error) => void | void;
willSendResponse?(

@@ -49,0 +48,0 @@ requestContext: WithRequired<GraphQLRequestContext<TContext>, 'response'>,

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