Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@escape.tech/graphql-armor-max-tokens

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@escape.tech/graphql-armor-max-tokens - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

2

dist/graphql-armor-max-tokens.cjs.dev.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc