@nextgis/cancelable-promise
Advanced tools
Comparing version 0.29.0 to 0.29.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.29.1](https://github.com/nextgis/nextgisweb_frontend/compare/v0.29.0...v0.29.1) (2020-03-30) | ||
### Bug Fixes | ||
* **build:** control-container extract css ([05d96c8](https://github.com/nextgis/nextgisweb_frontend/commit/05d96c8a4f4861a666244139a5903b2deb34194b)) | ||
# [0.29.0](https://github.com/nextgis/nextgisweb_frontend/compare/v0.28.3...v0.29.0) (2020-03-22) | ||
@@ -8,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CancelablePromise=t():e.CancelablePromise=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var o=function(e,t,n,o){try{e(n(o))}catch(e){t(e)}},r=function(){function e(e,t){this.onCancel=t,this._canceled=!1,this._promise=new Promise(e)}return e.resolve=function(t){return new e((function(e){return e(t)}))},e.reject=function(t){return new e((function(e,n){return n(t)}))},e.all=function(t){return new e((function(e,n){Promise.all(t).then(e).catch(n)}))},e.prototype.then=function(t,n){var r=this,i=new e((function(e,c){r._promise&&r._promise.then((function(n){r._canceled&&i.cancel(),t&&!r._canceled?o(e,c,t,n):e(n)}),(function(t){r._canceled&&i.cancel(),n&&!r._canceled?o(e,c,n,t):c(t)}))}),(function(){r.cancel()}));return i},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.cancel=function(e){return this._canceled=!0,e&&this._promise&&this._promise.catch(e),this.onCancel&&this.onCancel(),this._destroy(),this},e.prototype.finally=function(e){return this._promise?this._promise.finally(e):Promise.reject(e)},e.prototype._destroy=function(){this.onCancel=void 0,this._promise=void 0},e}();n.d(t,"CancelablePromise",(function(){return r}));t.default=r}]).default})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CancelablePromise=t():e.CancelablePromise=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"CancelablePromise",(function(){return r}));var o=function(e,t,n,o){try{e(n(o))}catch(e){t(e)}},r=function(){function e(e,t){this.onCancel=t,this._canceled=!1,this._promise=new Promise(e)}return e.resolve=function(t){return new e((function(e){return e(t)}))},e.reject=function(t){return new e((function(e,n){return n(t)}))},e.all=function(t){return new e((function(e,n){Promise.all(t).then(e).catch(n)}))},e.prototype.then=function(t,n){var r=this,i=new e((function(e,c){r._promise&&r._promise.then((function(n){r._canceled&&i.cancel(),t&&!r._canceled?o(e,c,t,n):e(n)}),(function(t){r._canceled&&i.cancel(),n&&!r._canceled?o(e,c,n,t):c(t)}))}),(function(){r.cancel()}));return i},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.cancel=function(e){return this._canceled=!0,e&&this._promise&&this._promise.catch(e),this.onCancel&&this.onCancel(),this._destroy(),this},e.prototype.finally=function(e){return this._promise?this._promise.finally(e):Promise.reject(e)},e.prototype._destroy=function(){this.onCancel=void 0,this._promise=void 0},e}();t.default=r}]).default})); | ||
//# sourceMappingURL=cancelable-promise.js.map |
{ | ||
"name": "@nextgis/cancelable-promise", | ||
"version": "0.29.0", | ||
"version": "0.29.1", | ||
"description": "A promise you can stop", | ||
@@ -12,3 +12,3 @@ "main": "lib/cancelable-promise.js", | ||
"devDependencies": { | ||
"@nextgis/build-tools": "^0.29.0" | ||
"@nextgis/build-tools": "^0.29.1" | ||
}, | ||
@@ -44,3 +44,3 @@ "scripts": { | ||
}, | ||
"gitHead": "6f1416230bc088c8d0ad7e22887364889a8d2c44" | ||
"gitHead": "a6e10427258e0b08d8f6ab29513e99e5135bb8ee" | ||
} |
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
51928