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 1.2.0 to 1.3.0

4

dist/declarations/src/index.d.ts

@@ -5,6 +5,6 @@ import { Plugin } from '@envelop/types';

import { ParseOptions, Parser } from 'graphql/language/parser';
declare type maxTokensParserWLexerOptions = ParseOptions & {
type maxTokensParserWLexerOptions = ParseOptions & {
n: number;
} & GraphQLArmorCallbackConfiguration;
export declare type MaxTokensOptions = {
export type MaxTokensOptions = {
n?: number;

@@ -11,0 +11,0 @@ } & GraphQLArmorCallbackConfiguration;

@@ -86,2 +86,3 @@ 'use strict';

function parseWithTokenLimit(source, options) {
// @ts-expect-error TODO(@c3b5aw): address the type issue
const parser = new MaxTokensParserWLexer(source, Object.assign({}, options, config));

@@ -88,0 +89,0 @@ return parser.parseDocument();

@@ -86,2 +86,3 @@ 'use strict';

function parseWithTokenLimit(source, options) {
// @ts-expect-error TODO(@c3b5aw): address the type issue
const parser = new MaxTokensParserWLexer(source, Object.assign({}, options, config));

@@ -88,0 +89,0 @@ return parser.parseDocument();

@@ -82,2 +82,3 @@ import { TokenKind } from 'graphql';

function parseWithTokenLimit(source, options) {
// @ts-expect-error TODO(@c3b5aw): address the type issue
const parser = new MaxTokensParserWLexer(source, Object.assign({}, options, config));

@@ -84,0 +85,0 @@ return parser.parseDocument();

{
"name": "@escape.tech/graphql-armor-max-tokens",
"version": "1.2.0",
"version": "1.3.0",
"description": "Limit the number of tokens allowed in a GraphQL document.",
"packageManager": "yarn@3.2.4",
"packageManager": "yarn@3.3.0",
"main": "dist/graphql-armor-max-tokens.cjs.js",

@@ -30,13 +30,13 @@ "module": "dist/graphql-armor-max-tokens.esm.js",

"optionalDependencies": {
"@envelop/core": "^2.4.0",
"@escape.tech/graphql-armor-types": "0.2.0"
"@envelop/core": "^3.0.0",
"@escape.tech/graphql-armor-types": "0.3.0"
},
"devDependencies": {
"@envelop/core": "2.6.0",
"@envelop/testing": "4.6.0",
"@envelop/types": "2.4.0",
"@escape.tech/graphql-armor-types": "0.2.0",
"@envelop/core": "3.0.3",
"@envelop/testing": "5.0.3",
"@envelop/types": "3.0.0",
"@escape.tech/graphql-armor-types": "0.3.0",
"graphql": "16.6.0",
"typescript": "4.8.4"
"typescript": "4.9.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