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

graphql-query-complexity

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-query-complexity - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

7

dist/QueryComplexity.d.ts

@@ -6,9 +6,2 @@ /**

import { GraphQLUnionType, GraphQLObjectType, GraphQLInterfaceType, GraphQLError } from 'graphql';
declare module 'graphql/type/definition' {
interface GraphQLField<TSource, TContext, TArgs = {
[argName: string]: any;
}> {
complexity?: Complexity;
}
}
export declare type ComplexityEstimatorArgs = {

@@ -15,0 +8,0 @@ type: GraphQLCompositeType;

3

dist/QueryComplexity.js

@@ -90,5 +90,6 @@ "use strict";

// let nodeComplexity = 0;
var _a;
let includeNode = true;
let skipNode = false;
childNode.directives.forEach((directive) => {
(_a = childNode.directives) === null || _a === void 0 ? void 0 : _a.forEach((directive) => {
const directiveName = directive.name.value;

@@ -95,0 +96,0 @@ switch (directiveName) {

{
"name": "graphql-query-complexity",
"version": "0.7.0",
"version": "0.7.1",
"description": "Validation rule for GraphQL query complexity analysis",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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