@escape.tech/graphql-armor-max-tokens
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -67,3 +67,3 @@ 'use strict'; | ||
if (this._tokenCount > this.config.n) { | ||
const err = error.syntaxError(this._lexer.source, token.start, `Token limit of ${this.config.n} exceeded, found ${this._tokenCount}.`); | ||
const err = error.syntaxError(this._lexer.source, token.start, `Token limit of ${this.config.n} exceeded.`); | ||
for (const handler of this.config.onReject) { | ||
@@ -70,0 +70,0 @@ handler(null, err); |
@@ -67,3 +67,3 @@ 'use strict'; | ||
if (this._tokenCount > this.config.n) { | ||
const err = error.syntaxError(this._lexer.source, token.start, `Token limit of ${this.config.n} exceeded, found ${this._tokenCount}.`); | ||
const err = error.syntaxError(this._lexer.source, token.start, `Token limit of ${this.config.n} exceeded.`); | ||
for (const handler of this.config.onReject) { | ||
@@ -70,0 +70,0 @@ handler(null, err); |
@@ -63,3 +63,3 @@ import { TokenKind } from 'graphql'; | ||
if (this._tokenCount > this.config.n) { | ||
const err = syntaxError(this._lexer.source, token.start, `Token limit of ${this.config.n} exceeded, found ${this._tokenCount}.`); | ||
const err = syntaxError(this._lexer.source, token.start, `Token limit of ${this.config.n} exceeded.`); | ||
for (const handler of this.config.onReject) { | ||
@@ -66,0 +66,0 @@ handler(null, err); |
{ | ||
"name": "@escape.tech/graphql-armor-max-tokens", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Limit the number of tokens allowed in a GraphQL document.", | ||
"packageManager": "yarn@3.5.1", | ||
"packageManager": "yarn@3.6.0", | ||
"main": "dist/graphql-armor-max-tokens.cjs.js", | ||
@@ -42,4 +42,4 @@ "module": "dist/graphql-armor-max-tokens.esm.js", | ||
"graphql": "16.6.0", | ||
"typescript": "5.0.4" | ||
"typescript": "5.1.3" | ||
} | ||
} |
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
12227