@travetto/di
Advanced tools
Comparing version 2.0.0-rc.1 to 2.0.0-rc.2
{ | ||
"name": "@travetto/di", | ||
"displayName": "Dependency Injection", | ||
"version": "2.0.0-rc.1", | ||
"version": "2.0.0-rc.2", | ||
"description": "Dependency registration/management and injection support.", | ||
@@ -32,7 +32,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@travetto/transformer": "^2.0.0-rc.1", | ||
"@travetto/registry": "^2.0.0-rc.1" | ||
"@travetto/transformer": "^2.0.0-rc.2", | ||
"@travetto/registry": "^2.0.0-rc.2" | ||
}, | ||
"devDependencies": { | ||
"@travetto/config": "^2.0.0-rc.1" | ||
"@travetto/config": "^2.0.0-rc.2" | ||
}, | ||
@@ -39,0 +39,0 @@ "docDependencies": { |
@@ -24,3 +24,2 @@ import { Class, ClassInstance, ConcreteClass } from '@travetto/base'; | ||
/** | ||
@@ -173,4 +172,4 @@ * Dependency registry | ||
// Run post construct | ||
if (hasPostConstruct(inst)) { | ||
// Run post construct, if it wasn't passed in, otherwise it was already created | ||
if (hasPostConstruct(inst) && !consValues.includes(inst)) { | ||
await inst.postConstruct(); | ||
@@ -177,0 +176,0 @@ } |
39664