New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nexus

Package Overview
Dependencies
Maintainers
3
Versions
395
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nexus - npm Package Compare versions

Comparing version 0.12.0-rc.10 to 0.12.0-rc.11

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

### 0.12.0-rc.11
- fix: TypeScript error from missing `graphql-query-complexity` import (#376)
### 0.12.0-rc.10
- feat: add `queryComplexityPlugin` (#369)
- feat: expose `name` on `fieldConfig` (#368)
### 0.12.0-rc.9

@@ -7,0 +16,0 @@

4

dist/plugins/queryComplexityPlugin.d.ts
import { RootValue, ArgsValue, GetGen } from "../core";
import { ComplexityEstimatorArgs } from "graphql-query-complexity";
import { GraphQLField } from "graphql";
export declare type QueryComplexityEstimatorArgs<TypeName extends string, FieldName extends string> = ComplexityEstimatorArgs & {
export declare type QueryComplexityEstimatorArgs<TypeName extends string, FieldName extends string> = {
type: RootValue<TypeName>;
field: GraphQLField<RootValue<TypeName>, GetGen<"context">, ArgsValue<TypeName, FieldName>>;
args: ArgsValue<TypeName, FieldName>;
childComplexity: number;
};

@@ -9,0 +9,0 @@ export declare type QueryComplexityEstimator<TypeName extends string, FieldName extends string> = (options: QueryComplexityEstimatorArgs<TypeName, FieldName>) => number | void;

{
"name": "nexus",
"version": "0.12.0-rc.10",
"version": "0.12.0-rc.11",
"description": "Scalable, strongly typed GraphQL schema development",

@@ -81,3 +81,2 @@ "keywords": [

"graphql-iso-date": "^3.6.1",
"graphql-query-complexity": "^0.4.1",
"graphql-relay": "^0.6.0",

@@ -84,0 +83,0 @@ "husky": "^1.1.2",

import { plugin } from "../plugin";
import { printedGenTyping, printedGenTypingImport } from "../utils";
import { RootValue, ArgsValue, GetGen } from "../core";
import { ComplexityEstimatorArgs } from "graphql-query-complexity";
import { GraphQLField } from "graphql";

@@ -27,3 +26,3 @@

FieldName extends string
> = ComplexityEstimatorArgs & {
> = {
type: RootValue<TypeName>;

@@ -36,2 +35,3 @@ field: GraphQLField<

args: ArgsValue<TypeName, FieldName>;
childComplexity: number;
};

@@ -38,0 +38,0 @@

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