Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@lumino/disposable

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lumino/disposable - npm Package Compare versions

Comparing version 1.4.3 to 1.5.0

8

dist/index.es6.js

@@ -52,3 +52,3 @@ import { each } from '@lumino/algorithm';

},
enumerable: true,
enumerable: false,
configurable: true

@@ -86,3 +86,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -121,3 +121,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -214,3 +214,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -217,0 +217,0 @@ });

@@ -55,3 +55,3 @@ (function (global, factory) {

},
enumerable: true,
enumerable: false,
configurable: true

@@ -89,3 +89,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -124,3 +124,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -217,3 +217,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -220,0 +220,0 @@ });

@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@lumino/algorithm"),require("@lumino/signaling")):"function"==typeof define&&define.amd?define(["exports","@lumino/algorithm","@lumino/signaling"],t):t((e=e||self).lumino_disposable={},e.lumino_algorithm,e.lumino_signaling)}(this,(function(e,t,i){"use strict";

and limitations under the License.
***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function n(e,t){function i(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var s,r,p=function(){function e(e){this._fn=e}return Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!this._fn},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){if(this._fn){var e=this._fn;this._fn=null,e()}},e}(),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disposed=new i.Signal(t),t}return n(t,e),Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._disposed.emit(void 0),i.Signal.clearData(this))},t}(p);e.DisposableSet=function(){function e(){this._isDisposed=!1,this._items=new Set}return Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._items.forEach((function(e){e.dispose()})),this._items.clear())},e.prototype.contains=function(e){return this._items.has(e)},e.prototype.add=function(e){this._items.add(e)},e.prototype.remove=function(e){this._items.delete(e)},e.prototype.clear=function(){this._items.clear()},e}(),(s=e.DisposableSet||(e.DisposableSet={})).from=function(e){var i=new s;return t.each(e,(function(e){i.add(e)})),i},e.ObservableDisposableSet=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disposed=new i.Signal(t),t}return n(t,e),Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._disposed.emit(void 0),i.Signal.clearData(this))},t}(e.DisposableSet),(r=e.ObservableDisposableSet||(e.ObservableDisposableSet={})).from=function(e){var i=new r;return t.each(e,(function(e){i.add(e)})),i},e.DisposableDelegate=p,e.ObservableDisposableDelegate=u,Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function n(e,t){function i(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var s,r,p=function(){function e(e){this._fn=e}return Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!this._fn},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){if(this._fn){var e=this._fn;this._fn=null,e()}},e}(),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disposed=new i.Signal(t),t}return n(t,e),Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._disposed.emit(void 0),i.Signal.clearData(this))},t}(p);e.DisposableSet=function(){function e(){this._isDisposed=!1,this._items=new Set}return Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._items.forEach((function(e){e.dispose()})),this._items.clear())},e.prototype.contains=function(e){return this._items.has(e)},e.prototype.add=function(e){this._items.add(e)},e.prototype.remove=function(e){this._items.delete(e)},e.prototype.clear=function(){this._items.clear()},e}(),(s=e.DisposableSet||(e.DisposableSet={})).from=function(e){var i=new s;return t.each(e,(function(e){i.add(e)})),i},e.ObservableDisposableSet=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disposed=new i.Signal(t),t}return n(t,e),Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._disposed.emit(void 0),i.Signal.clearData(this))},t}(e.DisposableSet),(r=e.ObservableDisposableSet||(e.ObservableDisposableSet={})).from=function(e){var i=new r;return t.each(e,(function(e){i.add(e)})),i},e.DisposableDelegate=p,e.ObservableDisposableDelegate=u,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.min.js.map
{
"name": "@lumino/disposable",
"version": "1.4.3",
"version": "1.5.0",
"description": "Lumino Disposable",

@@ -32,3 +32,4 @@ "homepage": "https://github.com/jupyterlab/lumino",

"api": "api-extractor run --local --verbose",
"build": "tsc --build && rollup -c",
"build": "npm run build:src && rollup -c",
"build:src": "tsc --build",
"build:test": "tsc --build tests && cd tests && webpack",

@@ -46,4 +47,4 @@ "clean": "rimraf ./lib && rimraf *.tsbuildinfo && rimraf ./types && rimraf ./dist",

"dependencies": {
"@lumino/algorithm": "^1.3.3",
"@lumino/signaling": "^1.4.3"
"@lumino/algorithm": "^1.4.0",
"@lumino/signaling": "^1.5.0"
},

@@ -70,3 +71,3 @@ "devDependencies": {

"typedoc": "~0.15.0",
"typescript": "~3.6.4",
"typescript": "~4.1.3",
"webpack": "^4.41.3",

@@ -79,3 +80,3 @@ "webpack-cli": "^3.3.10"

"jsdelivr": "dist/index.min.js",
"gitHead": "159c46252870a27e85766520b42e4d4f378a0913"
"gitHead": "4a19ea2a9273ee8c512c8e7983986c5e4f0c2e23"
}

@@ -49,3 +49,3 @@ import { IterableOrArrayLike } from '@lumino/algorithm';

*/
readonly isDisposed: boolean;
get isDisposed(): boolean;
/**

@@ -64,3 +64,3 @@ * Dispose of the delegate and invoke the callback function.

*/
readonly disposed: ISignal<this, void>;
get disposed(): ISignal<this, void>;
/**

@@ -83,3 +83,3 @@ * Dispose of the delegate and invoke the callback function.

*/
readonly isDisposed: boolean;
get isDisposed(): boolean;
/**

@@ -145,3 +145,3 @@ * Dispose of the set and the items it contains.

*/
readonly disposed: ISignal<this, void>;
get disposed(): ISignal<this, void>;
/**

@@ -148,0 +148,0 @@ * Dispose of the set and the items it contains.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc