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.3.0 to 0.4.0

dist/estimators/fieldExtensions/__tests__/fieldExtensionsEstimator-test.d.ts

2

dist/estimators/directive/__tests__/fixtures/schema.d.ts
/**
* Created by Ivo Meißner on 28.07.17.
*/
declare const _default: import("graphql/type/schema").GraphQLSchema;
declare const _default: import("graphql").GraphQLSchema;
export default _default;
import { ComplexityEstimator } from '../../QueryComplexity';
/**
* @deprecated Use fieldExtensionsEstimator instead
*/
export default function (): ComplexityEstimator;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @deprecated Use fieldExtensionsEstimator instead
*/
function default_1() {
console.warn('DEPRECATION WARNING: fieldConfigEstimator is deprecated. Use fieldExtensionsEstimator instead');
return (args) => {

@@ -5,0 +9,0 @@ // Calculate complexity score

@@ -5,1 +5,2 @@ export { default as simpleEstimator } from './simple';

export { default as directiveEstimator } from './directive';
export { default as fieldExtensionsEstimator } from './fieldExtensions';

@@ -11,2 +11,4 @@ "use strict";

exports.directiveEstimator = directive_1.default;
var fieldExtensions_1 = require("./fieldExtensions");
exports.fieldExtensionsEstimator = fieldExtensions_1.default;
//# sourceMappingURL=index.js.map
{
"name": "graphql-query-complexity",
"version": "0.3.0",
"version": "0.4.0",
"description": "Validation rule for GraphQL query complexity analysis",

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

@@ -77,5 +77,7 @@ # GraphQL Query Complexity Analysis for graphql-js

schema definition (for example via GraphQL SDL)
* **[`fieldConfigEstimator`](src/estimators/fieldConfig/README.md):** The field config estimator lets you set a numeric value or a custom estimator
* **[`fieldExtensionsEstimator`](src/estimators/fieldExtensions/README.md):** The field extensions estimator lets you set a numeric value or a custom estimator
function in the field config extensions of your schema.
* **[`fieldConfigEstimator`](src/estimators/fieldConfig/README.md):** (DEPRECATED) The field config estimator lets you set a numeric value or a custom estimator
function in the field config of your schema.
* **[`legacyEstimator`](src/estimators/legacy/README.md):** The legacy estimator implements the logic of previous versions. Can be used
* **[`legacyEstimator`](src/estimators/legacy/README.md):** (DEPRECATED) The legacy estimator implements the logic of previous versions. Can be used
to gradually migrate your codebase to new estimators.

@@ -82,0 +84,0 @@ * PRs welcome...

Sorry, the diff of this file is not supported yet

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