graphql-query-complexity
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -6,9 +6,2 @@ /** | ||
import { GraphQLUnionType, GraphQLObjectType, GraphQLInterfaceType, GraphQLError } from 'graphql'; | ||
declare module 'graphql/type/definition' { | ||
interface GraphQLField<TSource, TContext, TArgs = { | ||
[argName: string]: any; | ||
}> { | ||
complexity?: Complexity; | ||
} | ||
} | ||
export declare type ComplexityEstimatorArgs = { | ||
@@ -15,0 +8,0 @@ type: GraphQLCompositeType; |
@@ -90,5 +90,6 @@ "use strict"; | ||
// let nodeComplexity = 0; | ||
var _a; | ||
let includeNode = true; | ||
let skipNode = false; | ||
childNode.directives.forEach((directive) => { | ||
(_a = childNode.directives) === null || _a === void 0 ? void 0 : _a.forEach((directive) => { | ||
const directiveName = directive.name.value; | ||
@@ -95,0 +96,0 @@ switch (directiveName) { |
{ | ||
"name": "graphql-query-complexity", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Validation rule for GraphQL query complexity analysis", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
139450
2191