@escape.tech/graphql-armor-max-tokens
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -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" | ||
} | ||
} |
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
10678
271