From 4582640d68b2744892585d4aaa9e98c6c44295b0 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 30 Sep 2016 16:47:25 +0300 Subject: [PATCH] feature(bower) promise-polyfill v6.0.2 --- bower.json | 4 ++-- modules/promise-polyfill/.bower.json | 13 +++++++------ modules/promise-polyfill/CHANGELOG.md | 4 ++-- modules/promise-polyfill/package.json | 4 ++-- modules/promise-polyfill/promise.js | 2 +- modules/promise-polyfill/promise.min.js | 2 +- modules/smalltalk/.bower.json | 5 ++--- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/bower.json b/bower.json index e0f004c9..8f348ab4 100644 --- a/bower.json +++ b/bower.json @@ -39,8 +39,8 @@ "olark": "^1.0.0", "philip": "^1.3.3", "jquery": "3.1.0", - "promise-polyfill": "6.0.0", "jonny": "1.0.1", - "smalltalk": "2.1.2" + "smalltalk": "2.1.2", + "promise-polyfill": "6.0.2" } } diff --git a/modules/promise-polyfill/.bower.json b/modules/promise-polyfill/.bower.json index fc79d923..ef717d2e 100644 --- a/modules/promise-polyfill/.bower.json +++ b/modules/promise-polyfill/.bower.json @@ -1,6 +1,6 @@ { "name": "promise-polyfill", - "version": "6.0.0", + "version": "6.0.2", "homepage": "https://github.com/taylorhakes/promise-polyfill", "authors": [ "Taylor Hakes" @@ -25,13 +25,14 @@ "test", "tests" ], - "_release": "6.0.0", + "_release": "6.0.2", "_resolution": { "type": "version", - "tag": "6.0.0", - "commit": "33dbcad07b762540f0f743f917be9bc829108bae" + "tag": "6.0.2", + "commit": "3591c457e9999ecf5e5c648ed68d4f21a0ad3d11" }, "_source": "https://github.com/taylorhakes/promise-polyfill.git", - "_target": "6.0.0", - "_originalSource": "promise-polyfill" + "_target": "^6.0.2", + "_originalSource": "promise-polyfill", + "_direct": true } \ No newline at end of file diff --git a/modules/promise-polyfill/CHANGELOG.md b/modules/promise-polyfill/CHANGELOG.md index 68fa4c76..f9bf5b5f 100644 --- a/modules/promise-polyfill/CHANGELOG.md +++ b/modules/promise-polyfill/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog ## 6.0.0 Deprecated `Promise._setImmediateFn` and `Promise._setUnhandledRejectionFn` -This allows subsclassing Promise much easier -- `Promise._setImmediateFn()` has been deprecated. Use `Promise._immediateFn = ;` instead. +This allows subclassing Promise without rewriting functions +- `Promise._setImmediateFn()` has been deprecated. Use `Promise._immediateFn = ` instead. - `Promise._setUnhandledRejectionFn()` has been deprecated. Use `Promise._unhandledRejectionFn = ` instead. These functions will be removed in the next major version. diff --git a/modules/promise-polyfill/package.json b/modules/promise-polyfill/package.json index c828441b..008c3c89 100644 --- a/modules/promise-polyfill/package.json +++ b/modules/promise-polyfill/package.json @@ -1,11 +1,11 @@ { "name": "promise-polyfill", - "version": "6.0.0", + "version": "6.0.2", "description": "Lightweight promise polyfill. A+ compliant", "main": "promise.js", "scripts": { "test": "eslint promise.js && mocha && karma start --single-run", - "build": "uglifyjs --compress --mangle -o promise.min.js -- promise.js " + "build": "uglifyjs --compress --support-ie8 --mangle -o promise.min.js -- promise.js " }, "repository": { "type": "git", diff --git a/modules/promise-polyfill/promise.js b/modules/promise-polyfill/promise.js index 77aa072f..cf0c81d6 100644 --- a/modules/promise-polyfill/promise.js +++ b/modules/promise-polyfill/promise.js @@ -195,7 +195,7 @@ }; // Use polyfill for setImmediate for performance gains - Promise._immediateFn = (typeof setImmediate === 'function' && setImmediate) || + Promise._immediateFn = (typeof setImmediate === 'function' && function (fn) { setImmediate(fn); }) || function (fn) { setTimeoutFunc(fn, 0); }; diff --git a/modules/promise-polyfill/promise.min.js b/modules/promise-polyfill/promise.min.js index ee9cfb10..2208402a 100644 --- a/modules/promise-polyfill/promise.min.js +++ b/modules/promise-polyfill/promise.min.js @@ -1 +1 @@ -!function(t){function e(){}function n(t,e){return function(){t.apply(e,arguments)}}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],s(t,this)}function r(t,e){for(;3===t._state;)t=t._value;return 0===t._state?void t._deferreds.push(e):(t._handled=!0,void a(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?i:f)(e.promise,t._value);var o;try{o=n(t._value)}catch(r){return void f(e.promise,r)}i(e.promise,o)}))}function i(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if(e instanceof o)return t._state=3,t._value=e,void u(t);if("function"==typeof r)return void s(n(r,e),t)}t._state=1,t._value=e,u(t)}catch(i){f(t,i)}}function f(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&a(function(){t._handled||d(t._value)});for(var e=0,n=t._deferreds.length;n>e;e++)r(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function s(t,e){var n=!1;try{t(function(t){n||(n=!0,i(e,t))},function(t){n||(n=!0,f(e,t))})}catch(o){if(n)return;n=!0,f(e,o)}}var l=setTimeout,a="function"==typeof setImmediate&&setImmediate||function(t){l(t,0)},d=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};o.prototype["catch"]=function(t){return this.then(null,t)},o.prototype.then=function(t,n){var o=new this.constructor(e);return r(this,new c(t,n,o)),o},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,n){function o(i,f){try{if(f&&("object"==typeof f||"function"==typeof f)){var u=f.then;if("function"==typeof u)return void u.call(f,function(t){o(i,t)},n)}e[i]=f,0===--r&&t(e)}catch(c){n(c)}}if(0===e.length)return t([]);for(var r=e.length,i=0;io;o++)t[o].then(e,n)})},o._setImmediateFn=function(t){a=t},o._setUnhandledRejectionFn=function(t){d=t},"undefined"!=typeof module&&module.exports?module.exports=o:t.Promise||(t.Promise=o)}(this); \ No newline at end of file +!function(e){function n(){}function t(e,n){return function(){e.apply(n,arguments)}}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],s(e,this)}function i(e,n){for(;3===e._state;)e=e._value;return 0===e._state?void e._deferreds.push(n):(e._handled=!0,void o._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null===t)return void(1===e._state?r:u)(n.promise,e._value);var o;try{o=t(e._value)}catch(i){return void u(n.promise,i)}r(n.promise,o)}))}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if(n instanceof o)return e._state=3,e._value=n,void f(e);if("function"==typeof i)return void s(t(i,n),e)}e._state=1,e._value=n,f(e)}catch(r){u(e,r)}}function u(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var n=0,t=e._deferreds.length;n