@escape.tech/graphql-armor-cost-limit
Advanced tools
Comparing version 2.1.0 to 2.2.0
export * from "./declarations/src/index"; | ||
//# sourceMappingURL=graphql-armor-cost-limit.cjs.d.ts.map | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JhcGhxbC1hcm1vci1jb3N0LWxpbWl0LmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ== |
@@ -83,4 +83,3 @@ 'use strict'; | ||
computeComplexity(node, depth = 0) { | ||
var _node$name; | ||
if (this.config.ignoreIntrospection && 'name' in node && ((_node$name = node.name) === null || _node$name === void 0 ? void 0 : _node$name.value) === '__schema') { | ||
if (this.config.ignoreIntrospection && 'name' in node && node.name?.value === '__schema') { | ||
return 0; | ||
@@ -87,0 +86,0 @@ } |
@@ -83,4 +83,3 @@ 'use strict'; | ||
computeComplexity(node, depth = 0) { | ||
var _node$name; | ||
if (this.config.ignoreIntrospection && 'name' in node && ((_node$name = node.name) === null || _node$name === void 0 ? void 0 : _node$name.value) === '__schema') { | ||
if (this.config.ignoreIntrospection && 'name' in node && node.name?.value === '__schema') { | ||
return 0; | ||
@@ -87,0 +86,0 @@ } |
@@ -79,4 +79,3 @@ import { GraphQLError, Kind } from 'graphql'; | ||
computeComplexity(node, depth = 0) { | ||
var _node$name; | ||
if (this.config.ignoreIntrospection && 'name' in node && ((_node$name = node.name) === null || _node$name === void 0 ? void 0 : _node$name.value) === '__schema') { | ||
if (this.config.ignoreIntrospection && 'name' in node && node.name?.value === '__schema') { | ||
return 0; | ||
@@ -83,0 +82,0 @@ } |
{ | ||
"name": "@escape.tech/graphql-armor-cost-limit", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Limit the cost of a GraphQL Query.", | ||
"packageManager": "yarn@3.6.0", | ||
"packageManager": "yarn@4.2.2", | ||
"main": "dist/graphql-armor-cost-limit.cjs.js", | ||
@@ -27,3 +27,3 @@ "module": "dist/graphql-armor-cost-limit.esm.js", | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -34,13 +34,13 @@ "dependencies": { | ||
"optionalDependencies": { | ||
"@envelop/core": "^4.0.0", | ||
"@escape.tech/graphql-armor-types": "0.5.0" | ||
"@envelop/core": "^5.0.0", | ||
"@escape.tech/graphql-armor-types": "0.6.0" | ||
}, | ||
"devDependencies": { | ||
"@envelop/core": "4.0.0", | ||
"@envelop/testing": "6.0.0", | ||
"@envelop/types": "4.0.0", | ||
"@escape.tech/graphql-armor-types": "0.5.0", | ||
"graphql": "16.7.1", | ||
"typescript": "5.1.3" | ||
"@envelop/core": "5.0.1", | ||
"@envelop/testing": "7.0.0", | ||
"@envelop/types": "5.0.0", | ||
"@escape.tech/graphql-armor-types": "0.6.0", | ||
"graphql": "16.8.1", | ||
"typescript": "5.4.5" | ||
} | ||
} |
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
15666
8
392