graphql-extensions
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22582
0