@bunt/unit
Advanced tools
Comparing version 0.18.1 to 0.18.2
@@ -6,2 +6,15 @@ # Change Log | ||
## [0.18.2](https://github.com/izatop/bunt/compare/v0.18.1...v0.18.2) (2021-05-24) | ||
### Bug Fixes | ||
* code ([5dcfcff](https://github.com/izatop/bunt/commit/5dcfcff4ab78bf76a0a8b8c3e5f1229c893019fd)) | ||
* disposable ([793b469](https://github.com/izatop/bunt/commit/793b469f3f5515fc1a2a0ed625f3a9c673dbd715)) | ||
* typings ([dc5722e](https://github.com/izatop/bunt/commit/dc5722ee2e7fd817f800608c99b14c3852aea0e9)) | ||
## [0.18.1](https://github.com/izatop/bunt/compare/v0.18.0...v0.18.1) (2021-05-24) | ||
@@ -8,0 +21,0 @@ |
@@ -19,8 +19,4 @@ "use strict"; | ||
const finish = target.dispose; | ||
const newDisposer = new Disposer_1.Disposer(target.constructor.name, () => finish.call(this)); | ||
Reflect.defineProperty(target, "dispose", { | ||
value: function () { | ||
return newDisposer.dispose(); | ||
}, | ||
}); | ||
const newDisposer = new Disposer_1.Disposer(target.constructor.name, () => finish.call(target)); | ||
Reflect.defineProperty(target, "dispose", { value: () => newDisposer.dispose() }); | ||
collection.set(target, newDisposer); | ||
@@ -27,0 +23,0 @@ return newDisposer; |
@@ -12,7 +12,7 @@ import { HeartbeatDisposer, IRunnable } from "./interfaces"; | ||
*/ | ||
static create(target: unknown, disposer?: HeartbeatDisposer): Heartbeat; | ||
static create(target: IRunnable, disposer?: HeartbeatDisposer): Heartbeat; | ||
static watch(runnable: IRunnable): Promise<void>; | ||
static destroy(target: unknown): void; | ||
static destroy(target: IRunnable): void; | ||
destroy(error?: Error): void; | ||
watch(): Promise<void>; | ||
} |
{ | ||
"name": "@bunt/unit", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"keywords": [ | ||
@@ -29,6 +29,6 @@ "typescript" | ||
"dependencies": { | ||
"@bunt/util": "^0.18.0" | ||
"@bunt/util": "^0.18.2" | ||
}, | ||
"license": "MIT", | ||
"gitHead": "9b7005b18639871f88aff2f0d43b7b101e79fb26" | ||
"gitHead": "d86dc6215808231f6d644cba8154938f42674710" | ||
} |
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
72497
945
Updated@bunt/util@^0.18.2