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.0.9 to 0.0.10

4

lib/index.d.ts

@@ -8,6 +8,6 @@ import { GraphQLSchema, GraphQLField, GraphQLResolveInfo } from 'graphql';

validationDidEnd?(): void;
executionDidStart?(): void;
willResolveField?(source: any, args: {
[argName: string]: any;
}, context: TContext, info: GraphQLResolveInfo): ((result: any) => void) | void;
executionDidStart?(): void;
executionDidEnd?(): void;

@@ -25,6 +25,6 @@ requestDidEnd?(): void;

validationDidEnd(): void;
executionDidStart(): void;
willResolveField(source: any, args: {
[argName: string]: any;
}, context: TContext, info: GraphQLResolveInfo): (result: any) => void;
executionDidStart(): void;
executionDidEnd(): void;

@@ -31,0 +31,0 @@ requestDidEnd(): void;

@@ -27,4 +27,4 @@ "use strict";

var extension = _a[_i];
if (extension.requestDidStart) {
extension.requestDidStart();
if (extension.parsingDidStart) {
extension.parsingDidStart();
}

@@ -36,4 +36,4 @@ }

var extension = _a[_i];
if (extension.requestDidStart) {
extension.requestDidStart();
if (extension.parsingDidEnd) {
extension.parsingDidEnd();
}

@@ -45,4 +45,4 @@ }

var extension = _a[_i];
if (extension.requestDidStart) {
extension.requestDidStart();
if (extension.validationDidStart) {
extension.validationDidStart();
}

@@ -54,7 +54,15 @@ }

var extension = _a[_i];
if (extension.requestDidStart) {
extension.requestDidStart();
if (extension.validationDidEnd) {
extension.validationDidEnd();
}
}
};
GraphQLExtensionStack.prototype.executionDidStart = function () {
for (var _i = 0, _a = this.extensions; _i < _a.length; _i++) {
var extension = _a[_i];
if (extension.executionDidStart) {
extension.executionDidStart();
}
}
};
GraphQLExtensionStack.prototype.willResolveField = function (source, args, context, info) {

@@ -71,10 +79,2 @@ var handlers = this.extensions

};
GraphQLExtensionStack.prototype.executionDidStart = function () {
for (var _i = 0, _a = this.extensions; _i < _a.length; _i++) {
var extension = _a[_i];
if (extension.requestDidStart) {
extension.requestDidStart();
}
}
};
GraphQLExtensionStack.prototype.executionDidEnd = function () {

@@ -81,0 +81,0 @@ for (var _i = 0, _a = this.extensions; _i < _a.length; _i++) {

{
"name": "graphql-extensions",
"version": "0.0.9",
"version": "0.0.10",
"description": "Add extensions to GraphQL servers",

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

@@ -19,2 +19,4 @@ import {

executionDidStart?(): void;
willResolveField?(

@@ -27,3 +29,2 @@ source: any,

executionDidStart?(): void;
executionDidEnd?(): void;

@@ -55,4 +56,4 @@

for (const extension of this.extensions) {
if (extension.requestDidStart) {
extension.requestDidStart();
if (extension.parsingDidStart) {
extension.parsingDidStart();
}

@@ -64,4 +65,4 @@ }

for (const extension of this.extensions) {
if (extension.requestDidStart) {
extension.requestDidStart();
if (extension.parsingDidEnd) {
extension.parsingDidEnd();
}

@@ -73,4 +74,4 @@ }

for (const extension of this.extensions) {
if (extension.requestDidStart) {
extension.requestDidStart();
if (extension.validationDidStart) {
extension.validationDidStart();
}

@@ -82,4 +83,4 @@ }

for (const extension of this.extensions) {
if (extension.requestDidStart) {
extension.requestDidStart();
if (extension.validationDidEnd) {
extension.validationDidEnd();
}

@@ -89,2 +90,10 @@ }

executionDidStart() {
for (const extension of this.extensions) {
if (extension.executionDidStart) {
extension.executionDidStart();
}
}
}
willResolveField(

@@ -107,10 +116,2 @@ source: any,

executionDidStart() {
for (const extension of this.extensions) {
if (extension.requestDidStart) {
extension.requestDidStart();
}
}
}
executionDidEnd() {

@@ -117,0 +118,0 @@ for (const extension of this.extensions) {

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