@escape.tech/graphql-armor-max-tokens
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -28,3 +28,3 @@ 'use strict'; | ||
onReject: [], | ||
throwOnRejection: true | ||
propagateOnRejection: true | ||
}; | ||
@@ -64,3 +64,3 @@ class MaxTokensParserWLexer extends parser.Parser { | ||
if (this.config.throwOnRejection) { | ||
if (this.config.propagateOnRejection) { | ||
throw err; | ||
@@ -67,0 +67,0 @@ } |
@@ -28,3 +28,3 @@ 'use strict'; | ||
onReject: [], | ||
throwOnRejection: true | ||
propagateOnRejection: true | ||
}; | ||
@@ -64,3 +64,3 @@ class MaxTokensParserWLexer extends parser.Parser { | ||
if (this.config.throwOnRejection) { | ||
if (this.config.propagateOnRejection) { | ||
throw err; | ||
@@ -67,0 +67,0 @@ } |
@@ -24,3 +24,3 @@ import { TokenKind } from 'graphql'; | ||
onReject: [], | ||
throwOnRejection: true | ||
propagateOnRejection: true | ||
}; | ||
@@ -60,3 +60,3 @@ class MaxTokensParserWLexer extends Parser { | ||
if (this.config.throwOnRejection) { | ||
if (this.config.propagateOnRejection) { | ||
throw err; | ||
@@ -63,0 +63,0 @@ } |
{ | ||
"name": "@escape.tech/graphql-armor-max-tokens", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Limit the number of tokens allowed in a GraphQL document.", | ||
"packageManager": "yarn@3.2.3", | ||
"packageManager": "yarn@3.2.4", | ||
"main": "dist/graphql-armor-max-tokens.cjs.js", | ||
@@ -31,3 +31,3 @@ "module": "dist/graphql-armor-max-tokens.esm.js", | ||
"@envelop/core": "^2.4.0", | ||
"@escape.tech/graphql-armor-types": "0.1.0" | ||
"@escape.tech/graphql-armor-types": "0.2.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
"@envelop/types": "2.4.0", | ||
"@escape.tech/graphql-armor-types": "0.1.0", | ||
"@escape.tech/graphql-armor-types": "0.2.0", | ||
"graphql": "16.6.0", | ||
@@ -41,0 +41,0 @@ "typescript": "4.8.4" |
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
10508