@travetto/di
Advanced tools
Comparing version 0.2.2 to 0.2.4
@@ -32,4 +32,4 @@ { | ||
}, | ||
"version": "0.2.2", | ||
"gitHead": "14b93bc88216ca2baacfe20af1b0bd1b407b35b0" | ||
"version": "0.2.4", | ||
"gitHead": "b341ad30d6dd66c933577b0b99de2d4a748715a5" | ||
} |
@@ -42,2 +42,6 @@ import { Class } from '@travetto/registry'; | ||
} | ||
}) | ||
.catch(err => { | ||
console.error(err); | ||
throw err; | ||
}); | ||
@@ -44,0 +48,0 @@ } |
@@ -361,2 +361,7 @@ import { MetadataRegistry, Class, RootRegistry, ChangeEvent } from '@travetto/registry'; | ||
) { | ||
const activeInstance = this.instances.get(targetId)!.get(config); | ||
if (activeInstance && activeInstance.preDestroy) { | ||
activeInstance.preDestroy(); | ||
} | ||
const handler = this.proxyHandlers.get(targetId)!.get(config); | ||
@@ -366,6 +371,2 @@ if (handler) { | ||
} | ||
const activeInstance = this.instances.get(targetId)!.get(config); | ||
if (activeInstance && activeInstance.preDestroy) { | ||
activeInstance.preDestroy(); | ||
} | ||
this.instances.get(targetId)!.delete(config); | ||
@@ -372,0 +373,0 @@ this.instancePromises.get(targetId)!.delete(config); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38101
984
22
6