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

@escape.tech/graphql-armor-cost-limit

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@escape.tech/graphql-armor-cost-limit - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

2

dist/graphql-armor-cost-limit.cjs.d.ts
export * from "./declarations/src/index";
//# sourceMappingURL=graphql-armor-cost-limit.cjs.d.ts.map
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JhcGhxbC1hcm1vci1jb3N0LWxpbWl0LmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==

@@ -83,4 +83,3 @@ 'use strict';

computeComplexity(node, depth = 0) {
var _node$name;
if (this.config.ignoreIntrospection && 'name' in node && ((_node$name = node.name) === null || _node$name === void 0 ? void 0 : _node$name.value) === '__schema') {
if (this.config.ignoreIntrospection && 'name' in node && node.name?.value === '__schema') {
return 0;

@@ -87,0 +86,0 @@ }

@@ -83,4 +83,3 @@ 'use strict';

computeComplexity(node, depth = 0) {
var _node$name;
if (this.config.ignoreIntrospection && 'name' in node && ((_node$name = node.name) === null || _node$name === void 0 ? void 0 : _node$name.value) === '__schema') {
if (this.config.ignoreIntrospection && 'name' in node && node.name?.value === '__schema') {
return 0;

@@ -87,0 +86,0 @@ }

@@ -79,4 +79,3 @@ import { GraphQLError, Kind } from 'graphql';

computeComplexity(node, depth = 0) {
var _node$name;
if (this.config.ignoreIntrospection && 'name' in node && ((_node$name = node.name) === null || _node$name === void 0 ? void 0 : _node$name.value) === '__schema') {
if (this.config.ignoreIntrospection && 'name' in node && node.name?.value === '__schema') {
return 0;

@@ -83,0 +82,0 @@ }

{
"name": "@escape.tech/graphql-armor-cost-limit",
"version": "2.1.0",
"version": "2.2.0",
"description": "Limit the cost of a GraphQL Query.",
"packageManager": "yarn@3.6.0",
"packageManager": "yarn@4.2.2",
"main": "dist/graphql-armor-cost-limit.cjs.js",

@@ -27,3 +27,3 @@ "module": "dist/graphql-armor-cost-limit.esm.js",

"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},

@@ -34,13 +34,13 @@ "dependencies": {

"optionalDependencies": {
"@envelop/core": "^4.0.0",
"@escape.tech/graphql-armor-types": "0.5.0"
"@envelop/core": "^5.0.0",
"@escape.tech/graphql-armor-types": "0.6.0"
},
"devDependencies": {
"@envelop/core": "4.0.0",
"@envelop/testing": "6.0.0",
"@envelop/types": "4.0.0",
"@escape.tech/graphql-armor-types": "0.5.0",
"graphql": "16.7.1",
"typescript": "5.1.3"
"@envelop/core": "5.0.1",
"@envelop/testing": "7.0.0",
"@envelop/types": "5.0.0",
"@escape.tech/graphql-armor-types": "0.6.0",
"graphql": "16.8.1",
"typescript": "5.4.5"
}
}
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