@furystack/inject
Advanced tools
Comparing version 4.0.24 to 4.0.25
@@ -17,3 +17,2 @@ "use strict"; | ||
async dispose() { | ||
/** */ | ||
const singletons = Array.from(this.cachedSingletons.entries()).map((e) => e[1]); | ||
@@ -24,3 +23,5 @@ const disposeRequests = singletons | ||
if (s.dispose) { | ||
return s.dispose() || Promise.resolve(); | ||
console.log('Dispose start', s.constructor.name); | ||
await s.dispose(); | ||
console.log('Dispose finished', s.constructor.name); | ||
} | ||
@@ -27,0 +28,0 @@ }); |
{ | ||
"name": "@furystack/inject", | ||
"version": "4.0.24", | ||
"version": "4.0.25", | ||
"description": "Core FuryStack package", | ||
@@ -29,3 +29,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@furystack/utils": "^1.1.15", | ||
"@furystack/utils": "^1.1.16", | ||
"reflect-metadata": "^0.1.13", | ||
@@ -38,3 +38,3 @@ "tslib": "^1.11.1" | ||
"typings": "./dist/index.d.ts", | ||
"gitHead": "93cb149e47515e02ac02a41a5c3a4fed94df014f" | ||
"gitHead": "86ed76b9e1ff6d22d9b696356b4f5f1a6949611b" | ||
} |
@@ -10,3 +10,2 @@ import { Disposable } from '@furystack/utils' | ||
public async dispose() { | ||
/** */ | ||
const singletons = Array.from(this.cachedSingletons.entries()).map((e) => e[1]) | ||
@@ -17,3 +16,5 @@ const disposeRequests = singletons | ||
if (s.dispose) { | ||
return s.dispose() || Promise.resolve() | ||
console.log('Dispose start', s.constructor.name) | ||
await s.dispose() | ||
console.log('Dispose finished', s.constructor.name) | ||
} | ||
@@ -26,2 +27,3 @@ }) | ||
} | ||
this.cachedSingletons.clear() | ||
@@ -28,0 +30,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
69520
873
Updated@furystack/utils@^1.1.16