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.1.0 to 1.1.1-next.1

10

dist-esm/typegenPrinter.js
import { __rest } from "tslib";
import { getNamedType, isEnumType, isInputObjectType, isInterfaceType, isListType, isNonNullType, isObjectType, isScalarType, isSpecifiedScalarType, isUnionType, } from 'graphql';
import { getNamedType, isEnumType, isInputObjectType, isInterfaceType, isListType, isNonNullType, isNullableType, isObjectType, isScalarType, isSpecifiedScalarType, isUnionType, } from 'graphql';
import { isNexusPrintedGenTyping, isNexusPrintedGenTypingImport } from './definitions/wrapping';

@@ -584,9 +584,9 @@ import { eachObj, getOwnPackage, graphql15InterfaceType, groupTypes, mapObj, mapValues, resolveImportPath, } from './utils';

normalizeArg(arg) {
return [this.argSeparator(arg.type, Boolean(arg.defaultValue)), this.argTypeRepresentation(arg.type)];
return [this.argSeparator(arg.type, arg.defaultValue !== undefined), this.argTypeRepresentation(arg.type)];
}
argSeparator(type, hasDefaultValue) {
if (hasDefaultValue || isNonNullType(type)) {
return ':';
if (hasDefaultValue || isNullableType(type)) {
return '?:';
}
return '?:';
return ':';
}

@@ -593,0 +593,0 @@ argTypeRepresentation(arg) {

@@ -587,9 +587,9 @@ "use strict";

normalizeArg(arg) {
return [this.argSeparator(arg.type, Boolean(arg.defaultValue)), this.argTypeRepresentation(arg.type)];
return [this.argSeparator(arg.type, arg.defaultValue !== undefined), this.argTypeRepresentation(arg.type)];
}
argSeparator(type, hasDefaultValue) {
if (hasDefaultValue || graphql_1.isNonNullType(type)) {
return ':';
if (hasDefaultValue || graphql_1.isNullableType(type)) {
return '?:';
}
return '?:';
return ':';
}

@@ -596,0 +596,0 @@ argTypeRepresentation(arg) {

{
"name": "nexus",
"version": "1.1.0",
"version": "1.1.1-next.1",
"description": "Scalable, strongly typed GraphQL schema development",

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

@@ -19,2 +19,3 @@ import {

isNonNullType,
isNullableType,
isObjectType,

@@ -719,11 +720,11 @@ isScalarType,

normalizeArg(arg: GraphQLInputField | GraphQLArgument): [string, string] {
return [this.argSeparator(arg.type, Boolean(arg.defaultValue)), this.argTypeRepresentation(arg.type)]
return [this.argSeparator(arg.type, arg.defaultValue !== undefined), this.argTypeRepresentation(arg.type)]
}
argSeparator(type: GraphQLInputType, hasDefaultValue: boolean) {
if (hasDefaultValue || isNonNullType(type)) {
return ':'
if (hasDefaultValue || isNullableType(type)) {
return '?:'
}
return '?:'
return ':'
}

@@ -730,0 +731,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