Socket
Socket
Sign inDemoInstall

graphql-extensions

Package Overview
Dependencies
Maintainers
1
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.5.7 to 0.6.0-alpha.0

6

dist/index.d.ts

@@ -28,2 +28,5 @@ import { GraphQLSchema, GraphQLField, GraphQLFieldResolver, GraphQLResolveInfo, ExecutionArgs, DocumentNode } from 'graphql';

}): EndHandler | void;
didResolveOperation?(o: {
requestContext: GraphQLRequestContext<TContext>;
}): void;
willSendResponse?(o: {

@@ -66,2 +69,5 @@ graphqlResponse: GraphQLResponse;

}): EndHandler;
didResolveOperation(o: {
requestContext: GraphQLRequestContext<TContext>;
}): void;
willSendResponse(o: {

@@ -68,0 +74,0 @@ graphqlResponse: GraphQLResponse;

@@ -28,2 +28,9 @@ "use strict";

}
didResolveOperation(o) {
this.extensions.forEach(extension => {
if (extension.didResolveOperation) {
extension.didResolveOperation(o);
}
});
}
willSendResponse(o) {

@@ -30,0 +37,0 @@ let reference = o;

8

package.json
{
"name": "graphql-extensions",
"version": "0.5.7",
"version": "0.6.0-alpha.0",
"description": "Add extensions to GraphQL servers",

@@ -20,4 +20,4 @@ "main": "./dist/index.js",

"devDependencies": {
"apollo-server-core": "2.4.8",
"apollo-server-env": "2.2.0"
"apollo-server-core": "2.5.0-alpha.0",
"apollo-server-env": "2.3.0-alpha.0"
},

@@ -27,3 +27,3 @@ "peerDependencies": {

},
"gitHead": "046327068b5cbb2d80c3865cdb2566654ea988c9"
"gitHead": "77192d647901443df54762544d2528eb8aab24ed"
}

@@ -52,2 +52,6 @@ import {

public didResolveOperation?(o: {
requestContext: GraphQLRequestContext<TContext>;
}): void;
public willSendResponse?(o: {

@@ -112,2 +116,12 @@ graphqlResponse: GraphQLResponse;

public didResolveOperation(o: {
requestContext: GraphQLRequestContext<TContext>;
}) {
this.extensions.forEach(extension => {
if (extension.didResolveOperation) {
extension.didResolveOperation(o);
}
});
}
public willSendResponse(o: {

@@ -114,0 +128,0 @@ graphqlResponse: GraphQLResponse;

Sorry, the diff of this file is not supported yet

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