@golevelup/nestjs-discovery
Advanced tools
Comparing version
@@ -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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
347
0.58%28020
-15.37%18
-5.26%1
Infinity%0
-100%