@lumino/signaling
Advanced tools
Comparing version 1.7.0 to 1.7.1
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@lumino/algorithm')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@lumino/algorithm'], factory) : | ||
(global = global || self, factory(global.lumino_signaling = {}, global.lumino_algorithm)); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.lumino_signaling = {}, global.lumino_algorithm)); | ||
}(this, (function (exports, algorithm) { 'use strict'; | ||
@@ -6,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@lumino/algorithm")):"function"==typeof define&&define.amd?define(["exports","@lumino/algorithm"],e):e((n=n||self).lumino_signaling={},n.lumino_algorithm)}(this,(function(n,e){"use strict";var t,i;n.Signal=function(){function n(n){this.sender=n}return n.prototype.connect=function(n,e){return i.connect(this,n,e)},n.prototype.disconnect=function(n,e){return i.disconnect(this,n,e)},n.prototype.emit=function(n){i.emit(this,n)},n}(),(t=n.Signal||(n.Signal={})).disconnectBetween=function(n,e){i.disconnectBetween(n,e)},t.disconnectSender=function(n){i.disconnectSender(n)},t.disconnectReceiver=function(n){i.disconnectReceiver(n)},t.disconnectAll=function(n){i.disconnectAll(n)},t.clearData=function(n){i.disconnectAll(n)},t.getExceptionHandler=function(){return i.exceptionHandler},t.setExceptionHandler=function(n){var e=i.exceptionHandler;return i.exceptionHandler=n,e},function(n){function t(n){var t=r.get(n);t&&0!==t.length&&(e.each(t,(function(n){if(n.signal){var e=n.thisArg||n.slot;n.signal=null,u(o.get(e))}})),u(t))}function i(n){var t=o.get(n);t&&0!==t.length&&(e.each(t,(function(n){if(n.signal){var e=n.signal.sender;n.signal=null,u(r.get(e))}})),u(t))}n.exceptionHandler=function(n){console.error(n)},n.connect=function(n,e,t){t=t||void 0;var i=r.get(n.sender);if(i||(i=[],r.set(n.sender,i)),a(i,n,e,t))return!1;var c=t||e,l=o.get(c);l||(l=[],o.set(c,l));var s={signal:n,slot:e,thisArg:t};return i.push(s),l.push(s),!0},n.disconnect=function(n,e,t){t=t||void 0;var i=r.get(n.sender);if(!i||0===i.length)return!1;var c=a(i,n,e,t);if(!c)return!1;var l=t||e,s=o.get(l);return c.signal=null,u(i),u(s),!0},n.disconnectBetween=function(n,t){var i=r.get(n);if(i&&0!==i.length){var c=o.get(t);c&&0!==c.length&&(e.each(c,(function(e){e.signal&&e.signal.sender===n&&(e.signal=null)})),u(i),u(c))}},n.disconnectSender=t,n.disconnectReceiver=i,n.disconnectAll=function(n){t(n),i(n)},n.emit=function(n,e){var t=r.get(n.sender);if(t&&0!==t.length)for(var i=0,o=t.length;i<o;++i){var c=t[i];c.signal===n&&s(c,e)}};var r=new WeakMap,o=new WeakMap,c=new Set,l="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;function a(n,t,i,r){return e.find(n,(function(n){return n.signal===t&&n.slot===i&&n.thisArg===r}))}function s(e,t){var i=e.signal,r=e.slot,o=e.thisArg;try{r.call(o,i.sender,t)}catch(e){n.exceptionHandler(e)}}function u(n){0===c.size&&l(f),c.add(n)}function f(){c.forEach(d),c.clear()}function d(n){e.ArrayExt.removeAllWhere(n,g)}function g(n){return null===n.signal}}(i||(i={})),Object.defineProperty(n,"__esModule",{value:!0})})); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@lumino/algorithm")):"function"==typeof define&&define.amd?define(["exports","@lumino/algorithm"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).lumino_signaling={},n.lumino_algorithm)}(this,(function(n,e){"use strict";var t,i;n.Signal=function(){function n(n){this.sender=n}return n.prototype.connect=function(n,e){return i.connect(this,n,e)},n.prototype.disconnect=function(n,e){return i.disconnect(this,n,e)},n.prototype.emit=function(n){i.emit(this,n)},n}(),(t=n.Signal||(n.Signal={})).disconnectBetween=function(n,e){i.disconnectBetween(n,e)},t.disconnectSender=function(n){i.disconnectSender(n)},t.disconnectReceiver=function(n){i.disconnectReceiver(n)},t.disconnectAll=function(n){i.disconnectAll(n)},t.clearData=function(n){i.disconnectAll(n)},t.getExceptionHandler=function(){return i.exceptionHandler},t.setExceptionHandler=function(n){var e=i.exceptionHandler;return i.exceptionHandler=n,e},function(n){function t(n){var t=o.get(n);t&&0!==t.length&&(e.each(t,(function(n){if(n.signal){var e=n.thisArg||n.slot;n.signal=null,u(r.get(e))}})),u(t))}function i(n){var t=r.get(n);t&&0!==t.length&&(e.each(t,(function(n){if(n.signal){var e=n.signal.sender;n.signal=null,u(o.get(e))}})),u(t))}n.exceptionHandler=function(n){console.error(n)},n.connect=function(n,e,t){t=t||void 0;var i=o.get(n.sender);if(i||(i=[],o.set(n.sender,i)),a(i,n,e,t))return!1;var c=t||e,l=r.get(c);l||(l=[],r.set(c,l));var s={signal:n,slot:e,thisArg:t};return i.push(s),l.push(s),!0},n.disconnect=function(n,e,t){t=t||void 0;var i=o.get(n.sender);if(!i||0===i.length)return!1;var c=a(i,n,e,t);if(!c)return!1;var l=t||e,s=r.get(l);return c.signal=null,u(i),u(s),!0},n.disconnectBetween=function(n,t){var i=o.get(n);if(i&&0!==i.length){var c=r.get(t);c&&0!==c.length&&(e.each(c,(function(e){e.signal&&e.signal.sender===n&&(e.signal=null)})),u(i),u(c))}},n.disconnectSender=t,n.disconnectReceiver=i,n.disconnectAll=function(n){t(n),i(n)},n.emit=function(n,e){var t=o.get(n.sender);if(t&&0!==t.length)for(var i=0,r=t.length;i<r;++i){var c=t[i];c.signal===n&&s(c,e)}};var o=new WeakMap,r=new WeakMap,c=new Set,l="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;function a(n,t,i,o){return e.find(n,(function(n){return n.signal===t&&n.slot===i&&n.thisArg===o}))}function s(e,t){var i=e.signal,o=e.slot,r=e.thisArg;try{o.call(r,i.sender,t)}catch(e){n.exceptionHandler(e)}}function u(n){0===c.size&&l(f),c.add(n)}function f(){c.forEach(d),c.clear()}function d(n){e.ArrayExt.removeAllWhere(n,g)}function g(n){return null===n.signal}}(i||(i={})),Object.defineProperty(n,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.min.js.map |
{ | ||
"name": "@lumino/signaling", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Lumino Signals and Slots", | ||
@@ -21,2 +21,7 @@ "homepage": "https://github.com/jupyterlab/lumino", | ||
], | ||
"main": "dist/index.js", | ||
"jsdelivr": "dist/index.min.js", | ||
"unpkg": "dist/index.min.js", | ||
"module": "dist/index.es6", | ||
"types": "types/index.d.ts", | ||
"files": [ | ||
@@ -27,6 +32,2 @@ "dist/*", | ||
], | ||
"main": "dist/index.js", | ||
"unpkg": "dist/index.min.js", | ||
"module": "dist/index.es6", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
@@ -48,3 +49,3 @@ "api": "api-extractor run --local --verbose", | ||
"dependencies": { | ||
"@lumino/algorithm": "^1.6.0" | ||
"@lumino/algorithm": "^1.6.1" | ||
}, | ||
@@ -55,17 +56,17 @@ "devDependencies": { | ||
"@types/mocha": "^2.2.39", | ||
"chai": "^3.5.0", | ||
"karma": "^4.4.1", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-firefox-launcher": "^1.0.0", | ||
"chai": "^4.3.4", | ||
"karma": "^6.3.4", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-firefox-launcher": "^2.1.1", | ||
"karma-ie-launcher": "^1.0.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-mocha-reporter": "^2.2.2", | ||
"mocha": "^6.2.2", | ||
"rimraf": "^2.5.2", | ||
"rollup": "^2.22.1", | ||
"karma-mocha": "^2.0.1", | ||
"karma-mocha-reporter": "^2.2.5", | ||
"mocha": "^9.0.3", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.56.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-postcss": "^2.0.3", | ||
"rollup-plugin-sourcemaps": "^0.5.0", | ||
"terser": "^4.6.2", | ||
"tslib": "1.10.0", | ||
"rollup-plugin-postcss": "^4.0.0", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"terser": "^5.7.1", | ||
"tslib": "^2.3.0", | ||
"typedoc": "~0.15.0", | ||
@@ -78,5 +79,3 @@ "typescript": "~3.6.0", | ||
"access": "public" | ||
}, | ||
"jsdelivr": "dist/index.min.js", | ||
"gitHead": "cbb8cfd804b647ff7a150799353b27c2dc17f373" | ||
} | ||
} |
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
142584
10
Updated@lumino/algorithm@^1.6.1