You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@golevelup/nestjs-discovery

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@golevelup/nestjs-discovery - npm Package Compare versions

Comparing version

to
4.0.3

2

lib/discovery.interfaces.d.ts

@@ -5,3 +5,3 @@ import { Type } from '@nestjs/common';

instance: T;
injectType?: Function | Type<any>;
injectType: Function | Type<any> | undefined | null;
dependencyType: Type<T>;

@@ -8,0 +8,0 @@ }

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

async toDiscoveredClass(nestModule, wrapper) {
var _a;
const instanceHost = wrapper.getInstanceByContextId(constants_2.STATIC_CONTEXT, wrapper && wrapper.id ? wrapper.id : undefined);

@@ -152,3 +153,4 @@ if (instanceHost.isPending && !instanceHost.isResolved) {

instance: instanceHost.instance,
injectType: wrapper.metatype,
// TODO: remove nullish coalescing operator to return undefined when dropping NestJS 10 support
injectType: (_a = wrapper.metatype) !== null && _a !== void 0 ? _a : undefined,
dependencyType: (0, lodash_1.get)(instanceHost, 'instance.constructor'),

@@ -155,0 +157,0 @@ parentModule: {

{
"name": "@golevelup/nestjs-discovery",
"version": "4.0.2",
"version": "4.0.3",
"description": "A Badass NestJS module for querying your app's controllers, providers and handlers",

@@ -38,4 +38,4 @@ "keywords": [

"peerDependencies": {
"@nestjs/common": "^10.x",
"@nestjs/core": "^10.x"
"@nestjs/common": "^10.x || ^11.0.0",
"@nestjs/core": "^10.x || ^11.0.0"
},

@@ -59,3 +59,3 @@ "bugs": {

},
"gitHead": "aa7ef033151857ff147cee8fc04c11c8ff7d2f4c"
"gitHead": "84364bac0bdd9372d15374bfd20eac236fddc47e"
}

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