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

nexus

Package Overview
Dependencies
Maintainers
4
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 1.4.0-next.2 to 1.4.0-next.3

22

dist-esm/builder.d.ts

@@ -1,2 +0,2 @@

import { GraphQLNamedType, GraphQLSchema, GraphQLSchemaConfig, printSchema } from 'graphql';
import { GraphQLDirective, GraphQLNamedType, GraphQLSchema, GraphQLSchemaConfig, printSchema } from 'graphql';
import { InputDefinitionBlock } from './definitions/definitionBlocks';

@@ -178,2 +178,22 @@ import type { NexusExtendInputTypeDef } from './definitions/extendInputType';

};
/**
* Allows specifying defined directives to pass to the GraphQLSchema constructor.
*
* @example
* import {
* GraphQLSchema,
* GraphQLDeferDirective,
* GraphQLStreamDirective,
* specifiedDirectives,
* } from 'graphql';
* const nexusSchema = makeSchema({
* types: [...],
* directives: [
* ...specifiedDirectives,
* GraphQLDeferDirective,
* GraphQLStreamDirective,
* ],
* });
*/
directives?: GraphQLDirective[];
}

@@ -180,0 +200,0 @@ export interface BuilderConfig extends Omit<BuilderConfigInput, 'nonNullDefaults' | 'features' | 'plugins'> {

@@ -1123,2 +1123,3 @@ import { __rest } from "tslib";

export function makeSchemaInternal(config) {
var _a;
const builder = new SchemaBuilder(config);

@@ -1156,2 +1157,3 @@ builder.addTypes(config.types);

extensions: Object.assign(Object.assign({}, config.extensions), { nexus: schemaExtension }),
directives: (_a = config.directives) !== null && _a !== void 0 ? _a : undefined,
});

@@ -1158,0 +1160,0 @@ onAfterBuildFns.forEach((fn) => fn(schema));

@@ -1,2 +0,2 @@

import { GraphQLNamedType, GraphQLSchema, GraphQLSchemaConfig, printSchema } from 'graphql';
import { GraphQLDirective, GraphQLNamedType, GraphQLSchema, GraphQLSchemaConfig, printSchema } from 'graphql';
import { InputDefinitionBlock } from './definitions/definitionBlocks';

@@ -178,2 +178,22 @@ import type { NexusExtendInputTypeDef } from './definitions/extendInputType';

};
/**
* Allows specifying defined directives to pass to the GraphQLSchema constructor.
*
* @example
* import {
* GraphQLSchema,
* GraphQLDeferDirective,
* GraphQLStreamDirective,
* specifiedDirectives,
* } from 'graphql';
* const nexusSchema = makeSchema({
* types: [...],
* directives: [
* ...specifiedDirectives,
* GraphQLDeferDirective,
* GraphQLStreamDirective,
* ],
* });
*/
directives?: GraphQLDirective[];
}

@@ -180,0 +200,0 @@ export interface BuilderConfig extends Omit<BuilderConfigInput, 'nonNullDefaults' | 'features' | 'plugins'> {

@@ -1127,2 +1127,3 @@ "use strict";

function makeSchemaInternal(config) {
var _a;
const builder = new SchemaBuilder(config);

@@ -1160,2 +1161,3 @@ builder.addTypes(config.types);

extensions: Object.assign(Object.assign({}, config.extensions), { nexus: schemaExtension }),
directives: (_a = config.directives) !== null && _a !== void 0 ? _a : undefined,
});

@@ -1162,0 +1164,0 @@ onAfterBuildFns.forEach((fn) => fn(schema));

2

package.json
{
"name": "nexus",
"version": "1.4.0-next.2",
"version": "1.4.0-next.3",
"description": "Scalable, strongly typed GraphQL schema development",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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