Socket
Socket
Sign inDemoInstall

@nestjs/graphql

Package Overview
Dependencies
238
Maintainers
2
Versions
240
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.0.6 to 12.0.7

1

dist/decorators/field.decorator.js

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

typeOptions: options,
ignoreOnUndefinedType: loadEagerly,
});

@@ -39,0 +40,0 @@ type_metadata_storage_1.TypeMetadataStorage.addClassFieldMetadata({

3

dist/schema-builder/storages/type-metadata.storage.js

@@ -121,6 +121,7 @@ "use strict";

const options = existingMetadata.options;
// inherit nullable option
if ((0, shared_utils_1.isUndefined)(options.nullable) && (0, shared_utils_1.isUndefined)(options.defaultValue)) {
options.nullable = metadata.options.nullable;
}
existingMetadata.description ??= metadata.description;
existingMetadata.deprecationReason ??= metadata.deprecationReason;
}

@@ -127,0 +128,0 @@ else {

@@ -10,5 +10,6 @@ import { GqlTypeReference, ReturnTypeFunc } from '../interfaces/return-type-func.interface';

index?: number;
ignoreOnUndefinedType?: boolean;
}
export interface TypeMetadata {
typeFn: (type?: any) => GqlTypeReference;
typeFn?: (type?: any) => GqlTypeReference;
options: TypeOptions;

@@ -15,0 +16,0 @@ }

@@ -13,5 +13,11 @@ "use strict";

const isNotAllowed = implicitType && NOT_ALLOWED_TYPES.includes(implicitType);
if ((!explicitTypeFn && (!implicitType || isNotAllowed)) ||
(!implicitType && !explicitTypeFn)) {
throw new undefined_type_error_1.UndefinedTypeError((0, lodash_1.get)(prototype, 'constructor.name'), propertyKey, index);
const hasNoImplicitNorExplicitType = !implicitType && !explicitTypeFn;
const hasNoExplicitAndImplicitIsNotAllowed = !explicitTypeFn && (!implicitType || isNotAllowed);
if (hasNoExplicitAndImplicitIsNotAllowed || hasNoImplicitNorExplicitType) {
if (!reflectOptions.ignoreOnUndefinedType) {
throw new undefined_type_error_1.UndefinedTypeError((0, lodash_1.get)(prototype, 'constructor.name'), propertyKey, index);
}
return {
options,
};
}

@@ -18,0 +24,0 @@ if (explicitTypeFn) {

{
"name": "@nestjs/graphql",
"version": "12.0.6",
"version": "12.0.7",
"description": "Nest - modern, fast, powerful node.js web framework (@graphql)",

@@ -73,3 +73,3 @@ "author": "Kamil Mysliwiec",

},
"gitHead": "9598f8c449518c2fca889a3c611365ea388e983d"
"gitHead": "bfd606dbda94f05b70113a05d46a4de3bd06c2f4"
}

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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc