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.5 to 0.1.0-beta.6

2

lib/index.d.ts
import { GraphQLSchema, GraphQLField, GraphQLResolveInfo, ExecutionArgs } from 'graphql';
export declare type EndHandler = (err: Error | null) => void;
export declare type EndHandler = (...errors: Array<Error>) => void;
export declare class GraphQLExtension<TContext = any> {

@@ -4,0 +4,0 @@ requestDidStart?(o: {

@@ -58,3 +58,7 @@ "use strict";

});
return function (err) {
return function () {
var errors = [];
for (var _i = 0; _i < arguments.length; _i++) {
errors[_i] = arguments[_i];
}
// We run end handlers in reverse order of start handlers. That way, the

@@ -64,3 +68,3 @@ // first handler in the stack "surrounds" the entire event's process

endHandlers.reverse();
endHandlers.forEach(function (endHandler) { return endHandler(err); });
endHandlers.forEach(function (endHandler) { return endHandler.apply(void 0, errors); });
};

@@ -67,0 +71,0 @@ };

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

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

@@ -11,3 +11,3 @@ import {

export type EndHandler = (err: Error | null) => void;
export type EndHandler = (...errors: Array<Error>) => void;
type StartHandler = () => EndHandler | void;

@@ -106,3 +106,3 @@ // A StartHandlerInvoker is a function that, given a specific GraphQLExtension,

});
return (err: Error | null) => {
return (...errors: Array<Error>) => {
// We run end handlers in reverse order of start handlers. That way, the

@@ -112,3 +112,3 @@ // first handler in the stack "surrounds" the entire event's process

endHandlers.reverse();
endHandlers.forEach(endHandler => endHandler(err));
endHandlers.forEach(endHandler => endHandler(...errors));
};

@@ -115,0 +115,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