@tsdotnet/disposable
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -6,3 +6,3 @@ /*! | ||
import ObjectDisposedException from './ObjectDisposedException'; | ||
class DisposableBase { | ||
export default class DisposableBase { | ||
constructor(_disposableObjectName, __finalizer) { | ||
@@ -47,9 +47,7 @@ this._disposableObjectName = _disposableObjectName; | ||
/** | ||
* Is called when this object is disposed. Should not be called directly. | ||
* Is called when this object is disposed. Should NOT be called directly. | ||
* Override this method to handle disposal. | ||
* @private | ||
*/ | ||
_onDispose() { } | ||
} | ||
export default DisposableBase; | ||
//# sourceMappingURL=DisposableBase.js.map |
@@ -6,3 +6,3 @@ /*! | ||
import DisposableAware from './DisposableAware'; | ||
declare abstract class DisposableBase implements DisposableAware { | ||
export default abstract class DisposableBase implements DisposableAware { | ||
protected _disposableObjectName: string; | ||
@@ -21,8 +21,6 @@ private readonly __finalizer?; | ||
/** | ||
* Is called when this object is disposed. Should not be called directly. | ||
* Is called when this object is disposed. Should NOT be called directly. | ||
* Override this method to handle disposal. | ||
* @private | ||
*/ | ||
protected _onDispose(): void; | ||
} | ||
export default DisposableBase; |
@@ -49,5 +49,4 @@ "use strict"; | ||
/** | ||
* Is called when this object is disposed. Should not be called directly. | ||
* Is called when this object is disposed. Should NOT be called directly. | ||
* Override this method to handle disposal. | ||
* @private | ||
*/ | ||
@@ -54,0 +53,0 @@ _onDispose() { } |
{ | ||
"name": "@tsdotnet/disposable", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "A disposable base class and minimal set of interfaces to properly implement an object disposal pattern.", | ||
@@ -21,4 +21,4 @@ "author": "electricessence", | ||
"build": "npm prune && npm install && npm run clean && copyfiles -u 1 src/**/*.d.ts dist && tsc && tsc -p tsconfig.esm.json", | ||
"bump": "npm run precommit && npm version patch && npm run docs && git commit -m \"Updated docs.\" docs", | ||
"docs": "rimraf docs/* && rimraf docs/.nojekyll && typedoc --excludeNotExported --out docs src && node ./.build/create-nojekyll.js", | ||
"bump": "npm run precommit && npm version patch && npm run docs && git commit -m \"Updated docs.\" docs && git push", | ||
"docs": "rimraf docs/* && rimraf docs/.nojekyll && typedoc --options typedoc.json --readme none && node ./.build/create-nojekyll.js", | ||
"lint": "eslint src/**/*.ts", | ||
@@ -25,0 +25,0 @@ "precommit": "npm run lint && npm run test && npm run build && npm run validate", |
@@ -10,2 +10,2 @@ # ![alt text](https://avatars1.githubusercontent.com/u/64487547?s=30&v=4 "tsdotnet") tsdotnet / disposable | ||
## Docs | ||
[tsdotnet.github.io/disposable](https://tsdotnet.github.io/disposable/) | ||
[tsdotnet.github.io/disposable](https://tsdotnet.github.io/disposable/) |
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
40635
30
685
11