Comparing version 0.17.11 to 0.17.12
@@ -1,64 +0,67 @@ | ||
!function(n){function r(e){if(t[e])return t[e].exports;var o=t[e]={exports:{},id:e,loaded:!1};return n[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=n,r.c=t,r.p="",r(0)}({0:/*!*****************************!*\ | ||
!function(n){function r(e){if(t[e])return t[e].exports;var o=t[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var t={};r.m=n,r.c=t,r.i=function(n){return n},r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},r.n=function(n){var t=n&&n.__esModule?function(){return n["default"]}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},r.p="",r(r.s=106)}({0:/*!******************!*\ | ||
!*** ./src/_.js ***! | ||
\******************/ | ||
function(n,r,t){var e=t(/*! ./yaku */3);n.exports={extendPrototype:function(n,r){for(var t in r)n.prototype[t]=r[t];return n},isFunction:function(n){return"function"==typeof n},isNumber:function(n){return"number"==typeof n},Promise:e,slice:[].slice}},1:/*!***********************************!*\ | ||
!*** (webpack)/buildin/global.js ***! | ||
\***********************************/ | ||
function(n,r){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}n.exports=t},106:/*!*****************************!*\ | ||
!*** ./src/browser.full.js ***! | ||
\*****************************/ | ||
function(n,r,t){var e=t(/*! ./yaku */80),o=t(/*! ./utils */84);for(var i in o)e[i]=o[i];n.exports=window.Yaku=e},80:/*!*********************!*\ | ||
!*** ./src/yaku.js ***! | ||
\*********************/ | ||
function(n,r){(function(r){!function(){"use strict";function t(){return un[Y][q]||z}function e(n,r){for(var t in r)n[t]=r[t]}function o(n){return n&&"object"==typeof n}function i(n){return"function"==typeof n}function u(n,r){return n instanceof r}function c(n){return u(n,L)}function f(n,r,t){if(!r(n))throw p(t)}function s(){try{return E.apply(S,arguments)}catch(e){return tn.e=e,tn}}function a(n,r){return E=n,S=r,s}function l(n,r){function t(){for(var t=0;t<o;)r(e[t],e[t+1]),e[t++]=T,e[t++]=T;o=0,e.length>n&&(e.length=n)}var e=I(n),o=0;return function(n,r){e[o++]=n,e[o++]=r,2===o&&un.nextTick(t)}}function v(n,r){var t,e,o,c,f=0;if(!n)throw p(V);var s=n[un[Y][$]];if(i(s))e=s.call(n);else{if(!i(n.next)){if(u(n,I)){for(t=n.length;f<t;)r(n[f],f++);return f}throw p(V)}e=n}for(;!(o=e.next()).done;)if(c=a(r)(o.value,f++),c===tn)throw i(e[B])&&e[B](),c.e;return f}function p(n){return new TypeError(n)}function h(n){return(n?"":W)+(new L).stack}function x(n,r){var t="on"+n.toLowerCase(),e=C[t];O&&O.listeners(n).length?n===rn?O.emit(n,r._v,r):O.emit(n,r):e?e({reason:r._v,promise:r}):un[n](r._v,r)}function d(n){return n&&n._s}function m(n){if(d(n))return new n(en);var r,t,e;return r=new n(function(n,o){if(r)throw p();t=n,e=o}),f(t,i),f(e,i),r}function _(n,r){return function(t){H&&(n[M]=h(!0)),r===J?j(n,t):g(n,r,t)}}function b(n,r,t,e){return i(t)&&(r._onFulfilled=t),i(e)&&(n[G]&&x(nn,n),r._onRejected=e),H&&(r._p=n),n[n._c++]=r,n._s!==U&&cn(n,r),r}function y(n){if(n._umark)return!0;n._umark=!0;for(var r,t=0,e=n._c;t<e;)if(r=n[t++],r._onRejected||y(r))return!0}function w(n,r){function t(n){return e.push(n.replace(/^\s+|\s+$/g,""))}var e=[];return H&&(r[M]&&t(r[M]),function o(n){n&&K in n&&(o(n._next),t(n[K]+""),o(n._p))}(r)),(n&&n.stack?n.stack:n)+("\n"+e.join("\n")).replace(on,"")}function P(n,r){return n(r)}function g(n,r,t){var e=0,o=n._c;if(n._s===U)for(n._s=r,n._v=t,r===D&&(H&&c(t)&&(t.longStack=w(t,n)),fn(n));e<o;)cn(n,n[e++]);return n}function j(n,r){if(r===n&&r)return g(n,D,p(X)),n;if(r!==N&&(i(r)||o(r))){var t=a(k)(r);if(t===tn)return g(n,D,t.e),n;i(t)?(H&&d(r)&&(n._next=r),d(r)?F(n,r,t):un.nextTick(function(){F(n,r,t)})):g(n,J,r)}else g(n,J,r);return n}function k(n){return n.then}function F(n,r,t){var e=a(t,r)(function(t){r&&(r=N,j(n,t))},function(t){r&&(r=N,g(n,D,t))});e===tn&&r&&(g(n,D,e.e),r=N)}var T,E,S,N=null,R="object"==typeof window,C=R?window:r,O=C.process,A=C.console,H=!1,I=Array,L=Error,D=1,J=2,U=3,Y="Symbol",$="iterator",q="species",z=Y+"("+q+")",B="return",G="_uh",K="_pt",M="_st",Q="Invalid this",V="Invalid argument",W="\nFrom previous ",X="Chaining cycle detected for promise",Z="Uncaught (in promise)",nn="rejectionHandled",rn="unhandledRejection",tn={e:N},en=function(){},on=/^.+\/node_modules\/yaku\/.+\n?/gm,un=n.exports=function(n){var r,t=this;if(!o(t)||t._s!==T)throw p(Q);if(t._s=U,H&&(t[K]=h()),n!==en){if(!i(n))throw p(V);r=a(n)(_(t,J),_(t,D)),r===tn&&g(t,D,r.e)}};un["default"]=un,e(un.prototype,{then:function(n,r){if(void 0===this._s)throw p();return b(this,m(un.speciesConstructor(this,un)),n,r)},"catch":function(n){return this.then(T,n)},"finally":function(n){function r(r){return un.resolve(n()).then(function(){return r})}return this.then(r,r)},_c:0,_p:N}),un.resolve=function(n){return d(n)?n:j(m(this),n)},un.reject=function(n){return g(m(this),D,n)},un.race=function(n){var r=this,t=m(r),e=function(n){g(t,J,n)},o=function(n){g(t,D,n)},i=a(v)(n,function(n){r.resolve(n).then(e,o)});return i===tn?r.reject(i.e):t},un.all=function(n){function r(n){g(o,D,n)}var t,e=this,o=m(e),i=[];return t=a(v)(n,function(n,u){e.resolve(n).then(function(n){i[u]=n,--t||g(o,J,i)},r)}),t===tn?e.reject(t.e):(t||g(o,J,[]),o)},un.Symbol=C[Y]||{},a(function(){Object.defineProperty(un,t(),{get:function(){return this}})})(),un.speciesConstructor=function(n,r){var e=n.constructor;return e?e[t()]||r:r},un.unhandledRejection=function(n,r){A&&A.error(Z,H?r.longStack:w(n,r))},un.rejectionHandled=en,un.enableLongStackTrace=function(){H=!0},un.nextTick=R?function(n){setTimeout(n)}:O.nextTick,un._s=1;var cn=l(999,function(n,r){var t,e;return e=n._s!==D?r._onFulfilled:r._onRejected,e===T?void g(r,n._s,n._v):(t=a(P)(e,n._v),t===tn?void g(r,D,t.e):void j(r,t))}),fn=l(9,function(n){y(n)||(n[G]=1,x(rn,n))})}()}).call(r,function(){return this}())},84:/*!**********************!*\ | ||
function(n,r,t){var e=t(/*! ./yaku */3),o=t(/*! ./utils */16);for(var i in o)e[i]=o[i];n.exports=window.Yaku=e},16:/*!**********************!*\ | ||
!*** ./src/utils.js ***! | ||
\**********************/ | ||
function(n,r,t){n.exports={all:t(/*! ./all */85),any:t(/*! ./any */88),async:t(/*! ./async */89),callbackify:t(/*! ./callbackify */90),Deferred:t(/*! ./Deferred */91),flow:t(/*! ./flow */92),guard:t(/*! ./guard */94),"if":t(/*! ./if */95),isPromise:t(/*! ./isPromise */93),never:t(/*! ./never */96),promisify:t(/*! ./promisify */97),sleep:t(/*! ./sleep */98),Observable:t(/*! ./Observable */99),retry:t(/*! ./retry */100),"throw":t(/*! ./throw */101),timeout:t(/*! ./timeout */102)}},85:/*!********************!*\ | ||
function(n,r,t){n.exports={all:t(/*! ./all */24),any:t(/*! ./any */25),async:t(/*! ./async */26),callbackify:t(/*! ./callbackify */27),Deferred:t(/*! ./Deferred */22),flow:t(/*! ./flow */28),guard:t(/*! ./guard */29),"if":t(/*! ./if */30),isPromise:t(/*! ./isPromise */9),never:t(/*! ./never */31),promisify:t(/*! ./promisify */32),sleep:t(/*! ./sleep */7),Observable:t(/*! ./Observable */23),retry:t(/*! ./retry */33),"throw":t(/*! ./throw */34),timeout:t(/*! ./timeout */35)}},22:/*!*************************!*\ | ||
!*** ./src/Deferred.js ***! | ||
\*************************/ | ||
function(n,r,t){var e=t(/*! ./_ */0);n.exports=function(){var n;return n={},n.promise=new e.Promise(function(r,t){return n.resolve=r,n.reject=t}),n}},23:/*!***************************!*\ | ||
!*** ./src/Observable.js ***! | ||
\***************************/ | ||
function(n,r,t){function e(n){n.next=function(r){for(var t,e=0,o=n.subscribers.length;e<o;)t=n.subscribers[e++],c.resolve(r).then(t._onNext,t._onError).then(t.next,t._nextErr)},n.error=function(r){n.next(c.reject(r))}}function o(n){return function(r){n(c.reject(r))}}var i=t(/*! ./_ */0),u=t(/*! ./genIterator */5),c=i.Promise,f=n.exports=function(n){var r=this;e(r),r.subscribers=[],n&&n(r.next,r.error)};i.extendPrototype(f,{next:null,error:null,publisher:null,subscribers:null,subscribe:function(n,r){var t=this,e=new f;return e._onNext=n,e._onError=r,e._nextErr=o(e.next),e.publisher=t,t.subscribers.push(e),e},unsubscribe:function(){var n=this.publisher;n&&n.subscribers.splice(n.subscribers.indexOf(this),1)}}),f.merge=function(n){var r=u(n);return new f(function(n){function t(r){n(c.reject(r))}for(var e;!(e=r.next()).done;)e.value.subscribe(n,t)})}},24:/*!********************!*\ | ||
!*** ./src/all.js ***! | ||
\********************/ | ||
function(n,r,t){function e(n,r){try{return n(r)}catch(err){return c.err=err,c}}var o=t(/*! ./_ */86),i=o.Promise,u=t(/*! ./genIterator */87),c={};n.exports=function(n,r){return o.isNumber(n)||(r=n,n=1/0),new i(function(t,o){function f(){return l--,a("next")}function s(n){return l--,o(n)}function a(r){if(p)return void(0===l&&t());for(;l<n;){var e=v[r]();if(e.done)return 0===l&&t(),p=!0;l++,i.resolve(e.value).then(f,s)}}var l=0,v=u(r),p=!1,h=e(a,"next");h===c&&o(h.err)})}},86:/*!******************!*\ | ||
!*** ./src/_.js ***! | ||
\******************/ | ||
function(n,r,t){var e=t(/*! ./yaku */80);n.exports={extendPrototype:function(n,r){for(var t in r)n.prototype[t]=r[t];return n},isFunction:function(n){return"function"==typeof n},isNumber:function(n){return"number"==typeof n},Promise:e,slice:[].slice}},87:/*!****************************!*\ | ||
!*** ./src/genIterator.js ***! | ||
\****************************/ | ||
function(n,r,t){function e(n){if(n){var r=n[o.Promise.Symbol.iterator];if(o.isFunction(r))return r.call(n);if(n instanceof Array)return new u(n);if(o.isFunction(n.next))return n}throw new TypeError("invalid_argument")}var o=t(/*! ./_ */86),i={},u=o.extendPrototype(function(n){this.arr=n,this.len=n.length},{i:0,next:function(){var n=this;return i.value=n.arr[n.i++],i.done=n.i>n.len,i}});n.exports=e},88:/*!********************!*\ | ||
function(n,r,t){function e(n,r){try{return n(r)}catch(t){return c.err=t,c}}var o=t(/*! ./_ */0),i=o.Promise,u=t(/*! ./genIterator */5),c={};n.exports=function(n,r){return o.isNumber(n)||(r=n,n=Infinity),new i(function(t,o){function f(){return l--,a("next")}function s(n){return l--,o(n)}function a(r){if(p)return void(0===l&&t());for(;l<n;){var e=v[r]();if(e.done)return 0===l&&t(),p=!0;l++,i.resolve(e.value).then(f,s)}}var l=0,v=u(r),p=!1,h=e(a,"next");h===c&&o(h.err)})}},25:/*!********************!*\ | ||
!*** ./src/any.js ***! | ||
\********************/ | ||
function(n,r,t){var e=t(/*! ./_ */86),o=t(/*! ./genIterator */87);n.exports=function(n){var r=o(n);return new e.Promise(function(n,t){function o(n){c.push(n),--u||t(c)}for(var i,u=0,c=[];!(i=r.next()).done;)u++,e.Promise.resolve(i.value).then(n,o)})}},89:/*!**********************!*\ | ||
function(n,r,t){var e=t(/*! ./_ */0),o=t(/*! ./genIterator */5);n.exports=function(n){var r=o(n);return new e.Promise(function(n,t){function o(n){c.push(n),--u||t(c)}for(var i,u=0,c=[];!(i=r.next()).done;)u++,e.Promise.resolve(i.value).then(n,o)})}},26:/*!**********************!*\ | ||
!*** ./src/async.js ***! | ||
\**********************/ | ||
function(n,r,t){function e(n,r){try{return n(r)}catch(err){return i.err=err,i}}var o=t(/*! ./_ */86).Promise,i={};n.exports=function(n){return function(){function r(n){return u("next",n)}function t(n){return u("throw",n)}function u(n,e){var i=c[n](e);return i.done?o.resolve(i.value):o.resolve(i.value).then(r,t)}var c=n.apply(this,arguments),f=e(u,"next");return f===i?o.reject(f.err):f}}},90:/*!****************************!*\ | ||
function(n,r,t){function e(n,r){try{return n(r)}catch(t){return i.err=t,i}}var o=t(/*! ./_ */0).Promise,i={};n.exports=function(n){return function(){function r(n){return u("next",n)}function t(n){return u("throw",n)}function u(n,e){var i=c[n](e);return i.done?o.resolve(i.value):o.resolve(i.value).then(r,t)}var c=n.apply(this,arguments),f=e(u,"next");return f===i?o.reject(f.err):f}}},27:/*!****************************!*\ | ||
!*** ./src/callbackify.js ***! | ||
\****************************/ | ||
function(n,r,t){var e=t(/*! ./_ */86);n.exports=function(n,r){return function(){var t,o,i;t=2<=arguments.length?e.slice.call(arguments,0,i=arguments.length-1):(i=0,[]),o=arguments[i++];var u=e.isFunction(o);return u?n.apply(r,t).then(function(n){o(null,n)})["catch"](o):(t.push(o),n.apply(r,t))}}},91:/*!*************************!*\ | ||
!*** ./src/Deferred.js ***! | ||
\*************************/ | ||
function(n,r,t){var e=t(/*! ./_ */86);n.exports=function(){var n;return n={},n.promise=new e.Promise(function(r,t){return n.resolve=r,n.reject=t}),n}},92:/*!*********************!*\ | ||
function(n,r,t){var e=t(/*! ./_ */0);n.exports=function(n,r){return function(){var t,o,i;return t=2<=arguments.length?e.slice.call(arguments,0,i=arguments.length-1):(i=0,[]),o=arguments[i++],e.isFunction(o)?n.apply(r,t).then(function(n){o(null,n)})["catch"](o):(t.push(o),n.apply(r,t))}}},28:/*!*********************!*\ | ||
!*** ./src/flow.js ***! | ||
\*********************/ | ||
function(n,r,t){var e=t(/*! ./_ */86),o=t(/*! ./genIterator */87),i=t(/*! ./isPromise */93);n.exports=function(n){var r=o(n);return function(n){function t(n){return n.then(function(n){var o=r.next(n);if(o.done)return n;var u=o.value;return t(i(u)?u:e.isFunction(u)?e.Promise.resolve(u(n)):e.Promise.resolve(u))})}return t(e.Promise.resolve(n))}}},93:/*!**************************!*\ | ||
!*** ./src/isPromise.js ***! | ||
\**************************/ | ||
function(n,r,t){var e=t(/*! ./_ */86);n.exports=function(n){return n&&e.isFunction(n.then)}},94:/*!**********************!*\ | ||
function(n,r,t){var e=t(/*! ./_ */0),o=t(/*! ./genIterator */5),i=t(/*! ./isPromise */9);n.exports=function(n){var r=o(n);return function(n){function t(n){return n.then(function(n){var o=r.next(n);if(o.done)return n;var u=o.value;return t(i(u)?u:e.isFunction(u)?e.Promise.resolve(u(n)):e.Promise.resolve(u))})}return t(e.Promise.resolve(n))}}},29:/*!**********************!*\ | ||
!*** ./src/guard.js ***! | ||
\**********************/ | ||
function(n,r,t){var e=t(/*! ./_ */86);e.Promise.prototype.guard=function(n,r){return this["catch"](function(t){return t instanceof n&&r?r(t):e.Promise.reject(t)})}},95:/*!*******************!*\ | ||
function(n,r,t){var e=t(/*! ./_ */0);e.Promise.prototype.guard=function(n,r){return this["catch"](function(t){return t instanceof n&&r?r(t):e.Promise.reject(t)})}},3:/*!*********************!*\ | ||
!*** ./src/yaku.js ***! | ||
\*********************/ | ||
function(n,r,t){(function(r){!function(){"use strict";function t(){return tn[M][Y]||$}function e(n){return n&&"object"==typeof n}function o(n){return"function"==typeof n}function i(n,r){return n instanceof r}function u(n){return i(n,H)}function c(n,r,t){if(!r(n))throw v(t)}function f(){try{return T.apply(E,arguments)}catch(n){return Z.e=n,Z}}function s(n,r){return T=n,E=r,f}function a(n,r){function t(){for(var t=0;t<o;)r(e[t],e[t+1]),e[t++]=F,e[t++]=F;o=0,e.length>n&&(e.length=n)}var e=I(n),o=0;return function(n,r){e[o++]=n,e[o++]=r,2===o&&tn.nextTick(t)}}function l(n,r){var t,e,u,c,f=0;if(!n)throw v(K);var a=n[tn[M][U]];if(o(a))e=a.call(n);else{if(!o(n.next)){if(i(n,I)){for(t=n.length;f<t;)r(n[f],f++);return f}throw v(K)}e=n}for(;!(u=e.next()).done;)if((c=s(r)(u.value,f++))===Z)throw o(e[q])&&e[q](),c.e;return f}function v(n){return new TypeError(n)}function p(n){return(n?"":Q)+(new H).stack}function h(n,r){var t="on"+n.toLowerCase(),e=N[t];R&&R.listeners(n).length?n===X?R.emit(n,r._v,r):R.emit(n,r):e?e({reason:r._v,promise:r}):tn[n](r._v,r)}function x(n){return n&&n._s}function d(n){if(x(n))return new n(nn);var r,t,e;return r=new n(function(n,o){if(r)throw v();t=n,e=o}),c(t,o),c(e,o),r}function m(n,r){return function(t){A&&(n[G]=p(!0)),r===D?g(n,t):P(n,r,t)}}function b(n,r,t,e){return o(t)&&(r._onFulfilled=t),o(e)&&(n[z]&&h(W,n),r._onRejected=e),A&&(r._p=n),n[n._c++]=r,n._s!==J&&en(n,r),r}function y(n){if(n._umark)return!0;n._umark=!0;for(var r,t=0,e=n._c;t<e;)if(r=n[t++],r._onRejected||y(r))return!0}function _(n,r){function t(n){return e.push(n.replace(/^\s+|\s+$/g,""))}var e=[];return A&&(r[G]&&t(r[G]),function o(n){n&&B in n&&(o(n._next),t(n[B]+""),o(n._p))}(r)),(n&&n.stack?n.stack:n)+("\n"+e.join("\n")).replace(rn,"")}function w(n,r){return n(r)}function P(n,r,t){var e=0,o=n._c;if(n._s===J)for(n._s=r,n._v=t,r===L&&(A&&u(t)&&(t.longStack=_(t,n)),on(n));e<o;)en(n,n[e++]);return n}function g(n,r){if(r===n&&r)return P(n,L,v(V)),n;if(r!==O&&(o(r)||e(r))){var t=s(j)(r);if(t===Z)return P(n,L,t.e),n;o(t)?(A&&x(r)&&(n._next=r),x(r)?k(n,r,t):tn.nextTick(function(){k(n,r,t)})):P(n,D,r)}else P(n,D,r);return n}function j(n){return n.then}function k(n,r,t){var e=s(t,r)(function(t){r&&(r=O,g(n,t))},function(t){r&&(r=O,P(n,L,t))});e===Z&&r&&(P(n,L,e.e),r=O)}var F,T,E,O=null,S="object"==typeof window,N=S?window:r,R=N.process,C=N.console,A=!1,I=Array,H=Error,L=1,D=2,J=3,M="Symbol",U="iterator",Y="species",$=M+"("+Y+")",q="return",z="_uh",B="_pt",G="_st",K="Invalid argument",Q="\nFrom previous ",V="Chaining cycle detected for promise",W="rejectionHandled",X="unhandledRejection",Z={e:O},nn=function(){},rn=/^.+\/node_modules\/yaku\/.+\n?/gm,tn=n.exports=function(n){var r,t=this;if(!e(t)||t._s!==F)throw v("Invalid this");if(t._s=J,A&&(t[B]=p()),n!==nn){if(!o(n))throw v(K);r=s(n)(m(t,D),m(t,L)),r===Z&&P(t,L,r.e)}};tn["default"]=tn,function(n,r){for(var t in r)n[t]=r[t]}(tn.prototype,{then:function(n,r){if(this._s===undefined)throw v();return b(this,d(tn.speciesConstructor(this,tn)),n,r)},"catch":function(n){return this.then(F,n)},"finally":function(n){function r(r){return tn.resolve(n()).then(function(){return r})}return this.then(r,r)},_c:0,_p:O}),tn.resolve=function(n){return x(n)?n:g(d(this),n)},tn.reject=function(n){return P(d(this),L,n)},tn.race=function(n){var r=this,t=d(r),e=function(n){P(t,D,n)},o=function(n){P(t,L,n)},i=s(l)(n,function(n){r.resolve(n).then(e,o)});return i===Z?r.reject(i.e):t},tn.all=function(n){function r(n){P(o,L,n)}var t,e=this,o=d(e),i=[];return(t=s(l)(n,function(n,u){e.resolve(n).then(function(n){i[u]=n,--t||P(o,D,i)},r)}))===Z?e.reject(t.e):(t||P(o,D,[]),o)},tn.Symbol=N[M]||{},s(function(){Object.defineProperty(tn,t(),{get:function(){return this}})})(),tn.speciesConstructor=function(n,r){var e=n.constructor;return e?e[t()]||r:r},tn.unhandledRejection=function(n,r){C&&C.error("Uncaught (in promise)",A?r.longStack:_(n,r))},tn.rejectionHandled=nn,tn.enableLongStackTrace=function(){A=!0},tn.nextTick=S?function(n){setTimeout(n)}:R.nextTick,tn._s=1;var en=a(999,function(n,r){var t,e;return(e=n._s!==L?r._onFulfilled:r._onRejected)===F?void P(r,n._s,n._v):(t=s(w)(e,n._v))===Z?void P(r,L,t.e):void g(r,t)}),on=a(9,function(n){y(n)||(n[z]=1,h(X,n))})}()}).call(r,t(/*! ./../~/webpack/buildin/global.js */1))},30:/*!*******************!*\ | ||
!*** ./src/if.js ***! | ||
\*******************/ | ||
function(n,r,t){var e=t(/*! ./_ */86);n.exports=function(n,r,t){return e.Promise.resolve(n).then(function(n){return n?r():e.isFunction(t)&&t()})}},96:/*!**********************!*\ | ||
function(n,r,t){var e=t(/*! ./_ */0);n.exports=function(n,r,t){return e.Promise.resolve(n).then(function(n){return n?r():e.isFunction(t)&&t()})}},31:/*!**********************!*\ | ||
!*** ./src/never.js ***! | ||
\**********************/ | ||
function(n,r,t){var e=t(/*! ./_ */86);n.exports=function(){return new e.Promise(function(){})}},97:/*!**************************!*\ | ||
function(n,r,t){var e=t(/*! ./_ */0);n.exports=function(){return new e.Promise(function(){})}},32:/*!**************************!*\ | ||
!*** ./src/promisify.js ***! | ||
\**************************/ | ||
function(n,r,t){var e=t(/*! ./_ */86),o=e.isFunction;n.exports=function(n,r){return function(t,i,u,c,f){function s(n,r){null==n?v(r):p(n)}var a,l,v,p,h=arguments.length;switch(l=new e.Promise(function(n,r){v=n,p=r}),h){case 0:n.call(r,s);break;case 1:o(t)?n.call(r,t):n.call(r,t,s);break;case 2:o(i)?n.call(r,t,i):n.call(r,t,i,s);break;case 3:o(u)?n.call(r,t,i,u):n.call(r,t,i,u,s);break;case 4:o(c)?n.call(r,t,i,u,c):n.call(r,t,i,u,c,s);break;case 5:o(f)?n.call(r,t,i,u,c,f):n.call(r,t,i,u,c,f,s);break;default:a=new Array(h);for(var x=0;x<h;x++)a[x]=arguments[x];if(o(a[h-1]))return n.apply(r,a);a[x]=s,n.apply(r,a)}return l}}},98:/*!**********************!*\ | ||
!*** ./src/sleep.js ***! | ||
\**********************/ | ||
function(n,r,t){var e=t(/*! ./_ */86);n.exports=function(n,r){return new e.Promise(function(t){setTimeout(t,n,r)})}},99:/*!***************************!*\ | ||
!*** ./src/Observable.js ***! | ||
\***************************/ | ||
function(n,r,t){function e(n){n.next=function(r){for(var t,e=0,o=n.subscribers.length;e<o;)t=n.subscribers[e++],c.resolve(r).then(t._onNext,t._onError).then(t.next,t._nextErr)},n.error=function(r){n.next(c.reject(r))}}function o(n){return function(r){n(c.reject(r))}}var i=t(/*! ./_ */86),u=t(/*! ./genIterator */87),c=i.Promise,f=n.exports=function(n){var r=this;e(r),r.subscribers=[],n&&n(r.next,r.error)};i.extendPrototype(f,{next:null,error:null,publisher:null,subscribers:null,subscribe:function(n,r){var t=this,e=new f;return e._onNext=n,e._onError=r,e._nextErr=o(e.next),e.publisher=t,t.subscribers.push(e),e},unsubscribe:function(){var n=this.publisher;n&&n.subscribers.splice(n.subscribers.indexOf(this),1)}}),f.merge=function(n){var r=u(n);return new f(function(n){function t(r){n(c.reject(r))}for(var e;!(e=r.next()).done;)e.value.subscribe(n,t)})}},100:/*!**********************!*\ | ||
function(n,r,t){var e=t(/*! ./_ */0),o=e.isFunction;n.exports=function(n,r){return function(t,i,u,c,f){function s(n,r){null==n?v(r):p(n)}var a,l,v,p,h=arguments.length;switch(l=new e.Promise(function(n,r){v=n,p=r}),h){case 0:n.call(r,s);break;case 1:o(t)?n.call(r,t):n.call(r,t,s);break;case 2:o(i)?n.call(r,t,i):n.call(r,t,i,s);break;case 3:o(u)?n.call(r,t,i,u):n.call(r,t,i,u,s);break;case 4:o(c)?n.call(r,t,i,u,c):n.call(r,t,i,u,c,s);break;case 5:o(f)?n.call(r,t,i,u,c,f):n.call(r,t,i,u,c,f,s);break;default:a=new Array(h);for(var x=0;x<h;x++)a[x]=arguments[x];if(o(a[h-1]))return n.apply(r,a);a[x]=s,n.apply(r,a)}return l}}},33:/*!**********************!*\ | ||
!*** ./src/retry.js ***! | ||
\**********************/ | ||
function(n,r,t){var e=t(/*! ./_ */86),o=t(/*! ./sleep */98),i={};n.exports=function(n,r,t,u){return function(){function c(n){return n?t.apply(u,v):e.Promise.reject(i)}function f(n){return n===i?e.Promise.reject(l):(l.push(n),s(p(l)))}function s(n){return e.Promise.resolve(n).then(c)["catch"](f)}var a=n,l=[],v=arguments;e.isFunction(r)&&(u=t,t=r,r=0);var p=e.isFunction(a)?a:function(){return o(r,--a)};return s(!0)}}},101:/*!**********************!*\ | ||
function(n,r,t){var e=t(/*! ./_ */0),o=t(/*! ./sleep */7),i={};n.exports=function(n,r,t,u){return function(){function c(n){return n?t.apply(u,v):e.Promise.reject(i)}function f(n){return n===i?e.Promise.reject(l):(l.push(n),s(p(l)))}function s(n){return e.Promise.resolve(n).then(c)["catch"](f)}var a=n,l=[],v=arguments;e.isFunction(r)&&(u=t,t=r,r=0);var p=e.isFunction(a)?a:function(){return o(r,--a)};return s(!0)}}},34:/*!**********************!*\ | ||
!*** ./src/throw.js ***! | ||
\**********************/ | ||
function(n,r){n.exports=function(n){setTimeout(function(){throw n instanceof Error?n:JSON.stringify(n,null,4)})}},102:/*!************************!*\ | ||
function(n,r){n.exports=function(n){setTimeout(function(){throw n instanceof Error?n:JSON.stringify(n,null,4)})}},35:/*!************************!*\ | ||
!*** ./src/timeout.js ***! | ||
\************************/ | ||
function(n,r,t){var e=t(/*! ./_ */86);n.exports=function(n,r,t){return void 0===t&&(t=new Error("time out")),new e.Promise(function(o,i){setTimeout(i,r,t),e.Promise.resolve(n).then(o,i)})}}}); | ||
function(n,r,t){var e=t(/*! ./_ */0);n.exports=function(n,r,t){return void 0===t&&(t=new Error("time out")),new e.Promise(function(o,i){setTimeout(i,r,t),e.Promise.resolve(n).then(o,i)})}},5:/*!****************************!*\ | ||
!*** ./src/genIterator.js ***! | ||
\****************************/ | ||
function(n,r,t){function e(n){if(n){var r=n[o.Promise.Symbol.iterator];if(o.isFunction(r))return r.call(n);if(n instanceof Array)return new u(n);if(o.isFunction(n.next))return n}throw new TypeError("invalid_argument")}var o=t(/*! ./_ */0),i={},u=o.extendPrototype(function(n){this.arr=n,this.len=n.length},{i:0,next:function(){var n=this;return i.value=n.arr[n.i++],i.done=n.i>n.len,i}});n.exports=e},7:/*!**********************!*\ | ||
!*** ./src/sleep.js ***! | ||
\**********************/ | ||
function(n,r,t){var e=t(/*! ./_ */0);n.exports=function(n,r){return new e.Promise(function(t){setTimeout(t,n,r)})}},9:/*!**************************!*\ | ||
!*** ./src/isPromise.js ***! | ||
\**************************/ | ||
function(n,r,t){var e=t(/*! ./_ */0);n.exports=function(n){return n&&e.isFunction(n.then)}}}); |
@@ -1,7 +0,10 @@ | ||
!function(n){function t(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return n[e].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=n,t.c=r,t.p="",t(0)}({0:/*!***********************!*\ | ||
!function(n){function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};t.m=n,t.c=e,t.i=function(n){return n},t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=107)}({1:/*!***********************************!*\ | ||
!*** (webpack)/buildin/global.js ***! | ||
\***********************************/ | ||
function(n,t){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(r){"object"==typeof window&&(e=window)}n.exports=e},107:/*!***********************!*\ | ||
!*** ./src/global.js ***! | ||
\***********************/ | ||
function(n,t,r){(function(n){var t=r(/*! ./yaku */80);try{(n||{}).Promise=t,window.Promise=t}catch(err){}}).call(t,function(){return this}())},80:/*!*********************!*\ | ||
function(n,t,e){(function(n){var t=e(/*! ./yaku */3);try{n.Promise=t,window.Promise=t}catch(r){}}).call(t,e(/*! ./../~/webpack/buildin/global.js */1))},3:/*!*********************!*\ | ||
!*** ./src/yaku.js ***! | ||
\*********************/ | ||
function(n,t){(function(t){!function(){"use strict";function r(){return un[B][G]||J}function e(n,t){for(var r in t)n[r]=t[r]}function o(n){return n&&"object"==typeof n}function i(n){return"function"==typeof n}function u(n,t){return n instanceof t}function c(n){return u(n,U)}function f(n,t,r){if(!t(n))throw v(r)}function s(){try{return C.apply(F,arguments)}catch(e){return rn.e=e,rn}}function a(n,t){return C=n,F=t,s}function l(n,t){function r(){for(var r=0;r<o;)t(e[r],e[r+1]),e[r++]=S,e[r++]=S;o=0,e.length>n&&(e.length=n)}var e=O(n),o=0;return function(n,t){e[o++]=n,e[o++]=t,2===o&&un.nextTick(r)}}function h(n,t){var r,e,o,c,f=0;if(!n)throw v(W);var s=n[un[B][D]];if(i(s))e=s.call(n);else{if(!i(n.next)){if(u(n,O)){for(r=n.length;f<r;)t(n[f],f++);return f}throw v(W)}e=n}for(;!(o=e.next()).done;)if(c=a(t)(o.value,f++),c===rn)throw i(e[K])&&e[K](),c.e;return f}function v(n){return new TypeError(n)}function _(n){return(n?"":X)+(new U).stack}function d(n,t){var r="on"+n.toLowerCase(),e=H[r];I&&I.listeners(n).length?n===tn?I.emit(n,t._v,t):I.emit(n,t):e?e({reason:t._v,promise:t}):un[n](t._v,t)}function p(n){return n&&n._s}function w(n){if(p(n))return new n(en);var t,r,e;return t=new n(function(n,o){if(t)throw v();r=n,e=o}),f(r,i),f(e,i),t}function m(n,t){return function(r){A&&(n[Q]=_(!0)),t===q?T(n,r):k(n,t,r)}}function y(n,t,r,e){return i(r)&&(t._onFulfilled=r),i(e)&&(n[M]&&d(nn,n),t._onRejected=e),A&&(t._p=n),n[n._c++]=t,n._s!==z&&cn(n,t),t}function j(n){if(n._umark)return!0;n._umark=!0;for(var t,r=0,e=n._c;r<e;)if(t=n[r++],t._onRejected||j(t))return!0}function x(n,t){function r(n){return e.push(n.replace(/^\s+|\s+$/g,""))}var e=[];return A&&(t[Q]&&r(t[Q]),function o(n){n&&N in n&&(o(n._next),r(n[N]+""),o(n._p))}(t)),(n&&n.stack?n.stack:n)+("\n"+e.join("\n")).replace(on,"")}function g(n,t){return n(t)}function k(n,t,r){var e=0,o=n._c;if(n._s===z)for(n._s=t,n._v=r,t===$&&(A&&c(r)&&(r.longStack=x(r,n)),fn(n));e<o;)cn(n,n[e++]);return n}function T(n,t){if(t===n&&t)return k(n,$,v(Y)),n;if(t!==P&&(i(t)||o(t))){var r=a(b)(t);if(r===rn)return k(n,$,r.e),n;i(r)?(A&&p(t)&&(n._next=t),p(t)?R(n,t,r):un.nextTick(function(){R(n,t,r)})):k(n,q,t)}else k(n,q,t);return n}function b(n){return n.then}function R(n,t,r){var e=a(r,t)(function(r){t&&(t=P,T(n,r))},function(r){t&&(t=P,k(n,$,r))});e===rn&&t&&(k(n,$,e.e),t=P)}var S,C,F,P=null,E="object"==typeof window,H=E?window:t,I=H.process,L=H.console,A=!1,O=Array,U=Error,$=1,q=2,z=3,B="Symbol",D="iterator",G="species",J=B+"("+G+")",K="return",M="_uh",N="_pt",Q="_st",V="Invalid this",W="Invalid argument",X="\nFrom previous ",Y="Chaining cycle detected for promise",Z="Uncaught (in promise)",nn="rejectionHandled",tn="unhandledRejection",rn={e:P},en=function(){},on=/^.+\/node_modules\/yaku\/.+\n?/gm,un=n.exports=function(n){var t,r=this;if(!o(r)||r._s!==S)throw v(V);if(r._s=z,A&&(r[N]=_()),n!==en){if(!i(n))throw v(W);t=a(n)(m(r,q),m(r,$)),t===rn&&k(r,$,t.e)}};un["default"]=un,e(un.prototype,{then:function(n,t){if(void 0===this._s)throw v();return y(this,w(un.speciesConstructor(this,un)),n,t)},"catch":function(n){return this.then(S,n)},"finally":function(n){function t(t){return un.resolve(n()).then(function(){return t})}return this.then(t,t)},_c:0,_p:P}),un.resolve=function(n){return p(n)?n:T(w(this),n)},un.reject=function(n){return k(w(this),$,n)},un.race=function(n){var t=this,r=w(t),e=function(n){k(r,q,n)},o=function(n){k(r,$,n)},i=a(h)(n,function(n){t.resolve(n).then(e,o)});return i===rn?t.reject(i.e):r},un.all=function(n){function t(n){k(o,$,n)}var r,e=this,o=w(e),i=[];return r=a(h)(n,function(n,u){e.resolve(n).then(function(n){i[u]=n,--r||k(o,q,i)},t)}),r===rn?e.reject(r.e):(r||k(o,q,[]),o)},un.Symbol=H[B]||{},a(function(){Object.defineProperty(un,r(),{get:function(){return this}})})(),un.speciesConstructor=function(n,t){var e=n.constructor;return e?e[r()]||t:t},un.unhandledRejection=function(n,t){L&&L.error(Z,A?t.longStack:x(n,t))},un.rejectionHandled=en,un.enableLongStackTrace=function(){A=!0},un.nextTick=E?function(n){setTimeout(n)}:I.nextTick,un._s=1;var cn=l(999,function(n,t){var r,e;return e=n._s!==$?t._onFulfilled:t._onRejected,e===S?void k(t,n._s,n._v):(r=a(g)(e,n._v),r===rn?void k(t,$,r.e):void T(t,r))}),fn=l(9,function(n){j(n)||(n[M]=1,d(tn,n))})}()}).call(t,function(){return this}())}}); | ||
function(n,t,e){(function(t){!function(){"use strict";function e(){return en[q][B]||D}function r(n){return n&&"object"==typeof n}function o(n){return"function"==typeof n}function i(n,t){return n instanceof t}function u(n){return i(n,A)}function c(n,t,e){if(!t(n))throw h(e)}function f(){try{return R.apply(S,arguments)}catch(n){return Z.e=n,Z}}function s(n,t){return R=n,S=t,f}function a(n,t){function e(){for(var e=0;e<o;)t(r[e],r[e+1]),r[e++]=P,r[e++]=P;o=0,r.length>n&&(r.length=n)}var r=L(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&en.nextTick(e)}}function l(n,t){var e,r,u,c,f=0;if(!n)throw h(Q);var a=n[en[q][z]];if(o(a))r=a.call(n);else{if(!o(n.next)){if(i(n,L)){for(e=n.length;f<e;)t(n[f],f++);return f}throw h(Q)}r=n}for(;!(u=r.next()).done;)if((c=s(t)(u.value,f++))===Z)throw o(r[G])&&r[G](),c.e;return f}function h(n){return new TypeError(n)}function v(n){return(n?"":V)+(new A).stack}function _(n,t){var e="on"+n.toLowerCase(),r=O[e];E&&E.listeners(n).length?n===Y?E.emit(n,t._v,t):E.emit(n,t):r?r({reason:t._v,promise:t}):en[n](t._v,t)}function d(n){return n&&n._s}function p(n){if(d(n))return new n(nn);var t,e,r;return t=new n(function(n,o){if(t)throw h();e=n,r=o}),c(e,o),c(r,o),t}function w(n,t){return function(e){I&&(n[N]=v(!0)),t===U?k(n,e):x(n,t,e)}}function y(n,t,e,r){return o(e)&&(t._onFulfilled=e),o(r)&&(n[J]&&_(X,n),t._onRejected=r),I&&(t._p=n),n[n._c++]=t,n._s!==$&&rn(n,t),t}function m(n){if(n._umark)return!0;n._umark=!0;for(var t,e=0,r=n._c;e<r;)if(t=n[e++],t._onRejected||m(t))return!0}function j(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return I&&(t[N]&&e(t[N]),function o(n){n&&K in n&&(o(n._next),e(n[K]+""),o(n._p))}(t)),(n&&n.stack?n.stack:n)+("\n"+r.join("\n")).replace(tn,"")}function g(n,t){return n(t)}function x(n,t,e){var r=0,o=n._c;if(n._s===$)for(n._s=t,n._v=e,t===M&&(I&&u(e)&&(e.longStack=j(e,n)),on(n));r<o;)rn(n,n[r++]);return n}function k(n,t){if(t===n&&t)return x(n,M,h(W)),n;if(t!==C&&(o(t)||r(t))){var e=s(b)(t);if(e===Z)return x(n,M,e.e),n;o(e)?(I&&d(t)&&(n._next=t),d(t)?T(n,t,e):en.nextTick(function(){T(n,t,e)})):x(n,U,t)}else x(n,U,t);return n}function b(n){return n.then}function T(n,t,e){var r=s(e,t)(function(e){t&&(t=C,k(n,e))},function(e){t&&(t=C,x(n,M,e))});r===Z&&t&&(x(n,M,r.e),t=C)}var P,R,S,C=null,F="object"==typeof window,O=F?window:t,E=O.process,H=O.console,I=!1,L=Array,A=Error,M=1,U=2,$=3,q="Symbol",z="iterator",B="species",D=q+"("+B+")",G="return",J="_uh",K="_pt",N="_st",Q="Invalid argument",V="\nFrom previous ",W="Chaining cycle detected for promise",X="rejectionHandled",Y="unhandledRejection",Z={e:C},nn=function(){},tn=/^.+\/node_modules\/yaku\/.+\n?/gm,en=n.exports=function(n){var t,e=this;if(!r(e)||e._s!==P)throw h("Invalid this");if(e._s=$,I&&(e[K]=v()),n!==nn){if(!o(n))throw h(Q);t=s(n)(w(e,U),w(e,M)),t===Z&&x(e,M,t.e)}};en["default"]=en,function(n,t){for(var e in t)n[e]=t[e]}(en.prototype,{then:function(n,t){if(this._s===undefined)throw h();return y(this,p(en.speciesConstructor(this,en)),n,t)},"catch":function(n){return this.then(P,n)},"finally":function(n){function t(t){return en.resolve(n()).then(function(){return t})}return this.then(t,t)},_c:0,_p:C}),en.resolve=function(n){return d(n)?n:k(p(this),n)},en.reject=function(n){return x(p(this),M,n)},en.race=function(n){var t=this,e=p(t),r=function(n){x(e,U,n)},o=function(n){x(e,M,n)},i=s(l)(n,function(n){t.resolve(n).then(r,o)});return i===Z?t.reject(i.e):e},en.all=function(n){function t(n){x(o,M,n)}var e,r=this,o=p(r),i=[];return(e=s(l)(n,function(n,u){r.resolve(n).then(function(n){i[u]=n,--e||x(o,U,i)},t)}))===Z?r.reject(e.e):(e||x(o,U,[]),o)},en.Symbol=O[q]||{},s(function(){Object.defineProperty(en,e(),{get:function(){return this}})})(),en.speciesConstructor=function(n,t){var r=n.constructor;return r?r[e()]||t:t},en.unhandledRejection=function(n,t){H&&H.error("Uncaught (in promise)",I?t.longStack:j(n,t))},en.rejectionHandled=nn,en.enableLongStackTrace=function(){I=!0},en.nextTick=F?function(n){setTimeout(n)}:E.nextTick,en._s=1;var rn=a(999,function(n,t){var e,r;return(r=n._s!==M?t._onFulfilled:t._onRejected)===P?void x(t,n._s,n._v):(e=s(g)(r,n._v))===Z?void x(t,M,e.e):void k(t,e)}),on=a(9,function(n){m(n)||(n[J]=1,_(Y,n))})}()}).call(t,e(/*! ./../~/webpack/buildin/global.js */1))}}); |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";function n(){return N[O]||P}function t(n,t){for(var r in t)n.prototype[r]=t[r];return n}function r(n){return n&&"object"==typeof n}function e(n){return"function"==typeof n}function o(n,t){return n instanceof t}function u(n,t,r){if(!t(n))throw s(r)}function i(){try{return C.apply(b,arguments)}catch(n){return K.e=n,K}}function f(n,t){return C=n,b=t,i}function c(n,t){function r(){for(var r=0;r<o;)t(e[r],e[r+1]),e[r++]=k,e[r++]=k;o=0,e.length>n&&(e.length=n)}var e=F(n),o=0;return function(n,t){e[o++]=n,e[o++]=t,2===o&&Q(r)}}function a(n,t){var r,u,i,c,a=0;if(!n)throw s(B);var l=n[N[L]];if(e(l))u=l.call(n);else{if(!e(n.next)){if(o(n,F)){for(r=n.length;a<r;)t(n[a],a++);return a}throw s(B)}u=n}for(;!(i=u.next()).done;)if(c=f(t)(i.value,a++),c===K)throw e(u[S])&&u[S](),c.e;return a}function s(n){return new TypeError(n)}function l(n,t){var r="on"+n.toLowerCase(),e=T[r];Y&&Y.listeners(n).length?n===J?Y.emit(n,t._v,t):Y.emit(n,t):e&&e({reason:t._v,promise:t})}function h(n){return n&&n._Yaku}function v(n){if(h(n))return new n(M);var t,r,o;return t=new n(function(n,e){if(t)throw s();r=n,o=e}),u(r,e),u(o,e),t}function _(n,t){return function(r){t===A?j(n,r):y(n,t,r)}}function d(n,t,r,o){return e(r)&&(t._onFulfilled=r),e(o)&&(n[q]&&l(G,n),t._onRejected=o),n[n._pCount++]=t,n._s!==E&&W(n,t),t}function p(n){if(n._umark)return!0;n._umark=!0;for(var t,r=0,e=n._pCount;r<e;)if(t=n[r++],t._onRejected||p(t))return!0}function w(n,t){return n(t)}function y(n,t,r){var e=0,o=n._pCount;if(n._s===E)for(n._s=t,n._v=r,t===I&&X(n);e<o;)W(n,n[e++]);return n}function j(n,t){if(t===n&&t)return y(n,I,s(D)),n;if(t!==x&&(e(t)||r(t))){var o=f(m)(t);if(o===K)return y(n,I,o.e),n;e(o)?h(t)?g(n,t,o):Q(function(){g(n,t,o)}):y(n,A,t)}else y(n,A,t);return n}function m(n){return n.then}function g(n,t,r){var e=f(r,t)(function(r){t&&(t=x,j(n,r))},function(r){t&&(t=x,y(n,I,r))});e===K&&t&&(y(n,I,e.e),t=x)}var k,C,b,x=null,R="object"==typeof window,T=R?window:global,Y=T.process,F=Array,I=0,A=1,E=2,H="Symbol",L="iterator",O="species",P=H+"("+O+")",S="return",q="_uh",z="Invalid this",B="Invalid argument",D="Chaining cycle detected for promise",G="rejectionHandled",J="unhandledRejection",K={e:x},M=function(){},N=T[H]||{},Q=R?function(n){setTimeout(n)}:Y.nextTick,U=function(t,r){var e=t.constructor;return e?e[n()]||r:r},V=module.exports=function(n){var t,o=this;if(!r(o)||o._s!==k)throw s(z);if(o._s=E,n!==M){if(!e(n))throw s(B);t=f(n)(_(o,A),_(o,I)),t===K&&y(o,I,t.e)}};V.default=V,t(V,{then:function(n,t){if(void 0===this._s)throw s();return d(this,v(U(this,V)),n,t)},catch:function(n){return this.then(k,n)},finally:function(n){function t(t){return V.resolve(n()).then(function(){return t})}return this.then(t,t)},_pCount:0,_pre:x,_Yaku:1}),V.resolve=function(n){return h(n)?n:j(v(this),n)},V.reject=function(n){return y(v(this),I,n)},V.race=function(n){var t=this,r=v(t),e=function(n){y(r,A,n)},o=function(n){y(r,I,n)},u=f(a)(n,function(n){t.resolve(n).then(e,o)});return u===K?t.reject(u.e):r},V.all=function(n){function t(n){y(o,I,n)}var r,e=this,o=v(e),u=[];return r=f(a)(n,function(n,i){e.resolve(n).then(function(n){u[i]=n,--r||y(o,A,u)},t)}),r===K?e.reject(r.e):(r||y(o,A,[]),o)},f(function(){Object.defineProperty(V,n(),{get:function(){return this}})})(),V._Yaku=1;var W=c(999,function(n,t){var r,e;return e=n._s?t._onFulfilled:t._onRejected,e===k?void y(t,n._s,n._v):(r=f(w)(e,n._v),r===K?void y(t,I,r.e):void j(t,r))}),X=c(9,function(n){p(n)||(n[q]=1,l(J,n))})}(); | ||
!function(){"use strict";function n(){return J[E]||H}function t(n){return n&&"object"==typeof n}function r(n){return"function"==typeof n}function e(n,t){return n instanceof t}function o(n,t,r){if(!t(n))throw a(r)}function i(){try{return b.apply(k,arguments)}catch(n){return D.e=n,D}}function u(n,t){return b=n,k=t,i}function f(n,t){function r(){for(var r=0;r<o;)t(e[r],e[r+1]),e[r++]=g,e[r++]=g;o=0,e.length>n&&(e.length=n)}var e=Y(n),o=0;return function(n,t){e[o++]=n,e[o++]=t,2===o&&K(r)}}function c(n,t){var o,i,f,c,s=0;if(!n)throw a(P);var l=n[J[A]];if(r(l))i=l.call(n);else{if(!r(n.next)){if(e(n,Y)){for(o=n.length;s<o;)t(n[s],s++);return s}throw a(P)}i=n}for(;!(f=i.next()).done;)if((c=u(t)(f.value,s++))===D)throw r(i[L])&&i[L](),c.e;return s}function a(n){return new TypeError(n)}function s(n,t){var r="on"+n.toLowerCase(),e=R[r];T&&T.listeners(n).length?n===B?T.emit(n,t._v,t):T.emit(n,t):e&&e({reason:t._v,promise:t})}function l(n){return n&&n._Yaku}function h(n){if(l(n))return new n(G);var t,e,i;return t=new n(function(n,r){if(t)throw a();e=n,i=r}),o(e,r),o(i,r),t}function v(n,t){return function(r){t===I?y(n,r):w(n,t,r)}}function _(n,t,e,o){return r(e)&&(t._onFulfilled=e),r(o)&&(n[O]&&s(z,n),t._onRejected=o),n[n._pCount++]=t,n._s!==S&&Q(n,t),t}function d(n){if(n._umark)return!0;n._umark=!0;for(var t,r=0,e=n._pCount;r<e;)if(t=n[r++],t._onRejected||d(t))return!0}function p(n,t){return n(t)}function w(n,t,r){var e=0,o=n._pCount;if(n._s===S)for(n._s=t,n._v=r,t===F&&U(n);e<o;)Q(n,n[e++]);return n}function y(n,e){if(e===n&&e)return w(n,F,a(q)),n;if(e!==C&&(r(e)||t(e))){var o=u(j)(e);if(o===D)return w(n,F,o.e),n;r(o)?l(e)?m(n,e,o):K(function(){m(n,e,o)}):w(n,I,e)}else w(n,I,e);return n}function j(n){return n.then}function m(n,t,r){var e=u(r,t)(function(r){t&&(t=C,y(n,r))},function(r){t&&(t=C,w(n,F,r))});e===D&&t&&(w(n,F,e.e),t=C)}var g,b,k,C=null,x="object"==typeof window,R=x?window:global,T=R.process,Y=Array,F=0,I=1,S=2,A="iterator",E="species",H="Symbol("+E+")",L="return",O="_uh",P="Invalid argument",q="Chaining cycle detected for promise",z="rejectionHandled",B="unhandledRejection",D={e:C},G=function(){},J=R.Symbol||{},K=x?function(n){setTimeout(n)}:T.nextTick,M=function(t,r){var e=t.constructor;return e?e[n()]||r:r},N=module.exports=function(n){var e,o=this;if(!t(o)||o._s!==g)throw a("Invalid this");if(o._s=S,n!==G){if(!r(n))throw a(P);e=u(n)(v(o,I),v(o,F)),e===D&&w(o,F,e.e)}};N.default=N,function(n,t){for(var r in t)n.prototype[r]=t[r]}(N,{then:function(n,t){if(void 0===this._s)throw a();return _(this,h(M(this,N)),n,t)},catch:function(n){return this.then(g,n)},finally:function(n){function t(t){return N.resolve(n()).then(function(){return t})}return this.then(t,t)},_pCount:0,_pre:C,_Yaku:1}),N.resolve=function(n){return l(n)?n:y(h(this),n)},N.reject=function(n){return w(h(this),F,n)},N.race=function(n){var t=this,r=h(t),e=function(n){w(r,I,n)},o=function(n){w(r,F,n)},i=u(c)(n,function(n){t.resolve(n).then(e,o)});return i===D?t.reject(i.e):r},N.all=function(n){function t(n){w(o,F,n)}var r,e=this,o=h(e),i=[];return(r=u(c)(n,function(n,u){e.resolve(n).then(function(n){i[u]=n,--r||w(o,I,i)},t)}))===D?e.reject(r.e):(r||w(o,I,[]),o)},u(function(){Object.defineProperty(N,n(),{get:function(){return this}})})(),N._Yaku=1;var Q=f(999,function(n,t){var r,e;return(e=n._s?t._onFulfilled:t._onRejected)===g?void w(t,n._s,n._v):(r=u(p)(e,n._v))===D?void w(t,F,r.e):void y(t,r)}),U=f(9,function(n){d(n)||(n[O]=1,s(B,n))})}(); |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";function n(){return rn[q][B]||D}function t(n,t){for(var e in t)n[e]=t[e]}function e(n){return n&&"object"==typeof n}function r(n){return"function"==typeof n}function o(n,t){return n instanceof t}function i(n){return o(n,O)}function u(n,t,e){if(!t(n))throw l(e)}function c(){try{return R.apply(S,arguments)}catch(n){return nn.e=n,nn}}function f(n,t){return R=n,S=t,c}function s(n,t){function e(){for(var e=0;e<o;)t(r[e],r[e+1]),r[e++]=T,r[e++]=T;o=0,r.length>n&&(r.length=n)}var r=A(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&rn.nextTick(e)}}function a(n,t){var e,i,u,c,s=0;if(!n)throw l(Q);var a=n[rn[q][z]];if(r(a))i=a.call(n);else{if(!r(n.next)){if(o(n,A)){for(e=n.length;s<e;)t(n[s],s++);return s}throw l(Q)}i=n}for(;!(u=i.next()).done;)if(c=f(t)(u.value,s++),c===nn)throw r(i[G])&&i[G](),c.e;return s}function l(n){return new TypeError(n)}function h(n){return(n?"":V)+(new O).stack}function v(n,t){var e="on"+n.toLowerCase(),r=E[e];H&&H.listeners(n).length?n===Z?H.emit(n,t._v,t):H.emit(n,t):r?r({reason:t._v,promise:t}):rn[n](t._v,t)}function _(n){return n&&n._s}function d(n){if(_(n))return new n(tn);var t,e,o;return t=new n(function(n,r){if(t)throw l();e=n,o=r}),u(e,r),u(o,r),t}function p(n,t){return function(e){L&&(n[M]=h(!0)),t===U?k(n,e):y(n,t,e)}}function w(n,t,e,o){return r(e)&&(t._onFulfilled=e),r(o)&&(n[J]&&v(Y,n),t._onRejected=o),L&&(t._p=n),n[n._c++]=t,n._s!==$&&on(n,t),t}function m(n){if(n._umark)return!0;n._umark=!0;for(var t,e=0,r=n._c;e<r;)if(t=n[e++],t._onRejected||m(t))return!0}function g(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return L&&(t[M]&&e(t[M]),function n(t){t&&K in t&&(n(t._next),e(t[K]+""),n(t._p))}(t)),(n&&n.stack?n.stack:n)+("\n"+r.join("\n")).replace(en,"")}function j(n,t){return n(t)}function y(n,t,e){var r=0,o=n._c;if(n._s===$)for(n._s=t,n._v=e,t===P&&(L&&i(e)&&(e.longStack=g(e,n)),un(n));r<o;)on(n,n[r++]);return n}function k(n,t){if(t===n&&t)return y(n,P,l(W)),n;if(t!==C&&(r(t)||e(t))){var o=f(x)(t);if(o===nn)return y(n,P,o.e),n;r(o)?(L&&_(t)&&(n._next=t),_(t)?b(n,t,o):rn.nextTick(function(){b(n,t,o)})):y(n,U,t)}else y(n,U,t);return n}function x(n){return n.then}function b(n,t,e){var r=f(e,t)(function(e){t&&(t=C,k(n,e))},function(e){t&&(t=C,y(n,P,e))});r===nn&&t&&(y(n,P,r.e),t=C)}var T,R,S,C=null,F="object"==typeof window,E=F?window:global,H=E.process,I=E.console,L=!1,A=Array,O=Error,P=1,U=2,$=3,q="Symbol",z="iterator",B="species",D=q+"("+B+")",G="return",J="_uh",K="_pt",M="_st",N="Invalid this",Q="Invalid argument",V="\nFrom previous ",W="Chaining cycle detected for promise",X="Uncaught (in promise)",Y="rejectionHandled",Z="unhandledRejection",nn={e:C},tn=function(){},en=/^.+\/node_modules\/yaku\/.+\n?/gm,rn=module.exports=function(n){var t,o=this;if(!e(o)||o._s!==T)throw l(N);if(o._s=$,L&&(o[K]=h()),n!==tn){if(!r(n))throw l(Q);t=f(n)(p(o,U),p(o,P)),t===nn&&y(o,P,t.e)}};rn.default=rn,t(rn.prototype,{then:function(n,t){if(void 0===this._s)throw l();return w(this,d(rn.speciesConstructor(this,rn)),n,t)},catch:function(n){return this.then(T,n)},finally:function(n){function t(t){return rn.resolve(n()).then(function(){return t})}return this.then(t,t)},_c:0,_p:C}),rn.resolve=function(n){return _(n)?n:k(d(this),n)},rn.reject=function(n){return y(d(this),P,n)},rn.race=function(n){var t=this,e=d(t),r=function(n){y(e,U,n)},o=function(n){y(e,P,n)},i=f(a)(n,function(n){t.resolve(n).then(r,o)});return i===nn?t.reject(i.e):e},rn.all=function(n){function t(n){y(o,P,n)}var e,r=this,o=d(r),i=[];return e=f(a)(n,function(n,u){r.resolve(n).then(function(n){i[u]=n,--e||y(o,U,i)},t)}),e===nn?r.reject(e.e):(e||y(o,U,[]),o)},rn.Symbol=E[q]||{},f(function(){Object.defineProperty(rn,n(),{get:function(){return this}})})(),rn.speciesConstructor=function(t,e){var r=t.constructor;return r?r[n()]||e:e},rn.unhandledRejection=function(n,t){I&&I.error(X,L?t.longStack:g(n,t))},rn.rejectionHandled=tn,rn.enableLongStackTrace=function(){L=!0},rn.nextTick=F?function(n){setTimeout(n)}:H.nextTick,rn._s=1;var on=s(999,function(n,t){var e,r;return r=n._s!==P?t._onFulfilled:t._onRejected,r===T?void y(t,n._s,n._v):(e=f(j)(r,n._v),e===nn?void y(t,P,e.e):void k(t,e))}),un=s(9,function(n){m(n)||(n[J]=1,v(Z,n))})}(); | ||
!function(){"use strict";function n(){return nn[$][z]||B}function t(n){return n&&"object"==typeof n}function e(n){return"function"==typeof n}function r(n,t){return n instanceof t}function o(n){return r(n,A)}function i(n,t,e){if(!t(n))throw a(e)}function u(){try{return T.apply(R,arguments)}catch(n){return X.e=n,X}}function c(n,t){return T=n,R=t,u}function f(n,t){function e(){for(var e=0;e<o;)t(r[e],r[e+1]),r[e++]=b,r[e++]=b;o=0,r.length>n&&(r.length=n)}var r=L(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&nn.nextTick(e)}}function s(n,t){var o,i,u,f,s=0;if(!n)throw a(M);var l=n[nn[$][q]];if(e(l))i=l.call(n);else{if(!e(n.next)){if(r(n,L)){for(o=n.length;s<o;)t(n[s],s++);return s}throw a(M)}i=n}for(;!(u=i.next()).done;)if((f=c(t)(u.value,s++))===X)throw e(i[D])&&i[D](),f.e;return s}function a(n){return new TypeError(n)}function l(n){return(n?"":N)+(new A).stack}function h(n,t){var e="on"+n.toLowerCase(),r=F[e];E&&E.listeners(n).length?n===W?E.emit(n,t._v,t):E.emit(n,t):r?r({reason:t._v,promise:t}):nn[n](t._v,t)}function v(n){return n&&n._s}function _(n){if(v(n))return new n(Y);var t,r,o;return t=new n(function(n,e){if(t)throw a();r=n,o=e}),i(r,e),i(o,e),t}function d(n,t){return function(e){I&&(n[K]=l(!0)),t===P?y(n,e):j(n,t,e)}}function p(n,t,r,o){return e(r)&&(t._onFulfilled=r),e(o)&&(n[G]&&h(V,n),t._onRejected=o),I&&(t._p=n),n[n._c++]=t,n._s!==U&&tn(n,t),t}function w(n){if(n._umark)return!0;n._umark=!0;for(var t,e=0,r=n._c;e<r;)if(t=n[e++],t._onRejected||w(t))return!0}function m(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return I&&(t[K]&&e(t[K]),function n(t){t&&J in t&&(n(t._next),e(t[J]+""),n(t._p))}(t)),(n&&n.stack?n.stack:n)+("\n"+r.join("\n")).replace(Z,"")}function g(n,t){return n(t)}function j(n,t,e){var r=0,i=n._c;if(n._s===U)for(n._s=t,n._v=e,t===O&&(I&&o(e)&&(e.longStack=m(e,n)),en(n));r<i;)tn(n,n[r++]);return n}function y(n,r){if(r===n&&r)return j(n,O,a(Q)),n;if(r!==S&&(e(r)||t(r))){var o=c(k)(r);if(o===X)return j(n,O,o.e),n;e(o)?(I&&v(r)&&(n._next=r),v(r)?x(n,r,o):nn.nextTick(function(){x(n,r,o)})):j(n,P,r)}else j(n,P,r);return n}function k(n){return n.then}function x(n,t,e){var r=c(e,t)(function(e){t&&(t=S,y(n,e))},function(e){t&&(t=S,j(n,O,e))});r===X&&t&&(j(n,O,r.e),t=S)}var b,T,R,S=null,C="object"==typeof window,F=C?window:global,E=F.process,H=F.console,I=!1,L=Array,A=Error,O=1,P=2,U=3,$="Symbol",q="iterator",z="species",B=$+"("+z+")",D="return",G="_uh",J="_pt",K="_st",M="Invalid argument",N="\nFrom previous ",Q="Chaining cycle detected for promise",V="rejectionHandled",W="unhandledRejection",X={e:S},Y=function(){},Z=/^.+\/node_modules\/yaku\/.+\n?/gm,nn=module.exports=function(n){var r,o=this;if(!t(o)||o._s!==b)throw a("Invalid this");if(o._s=U,I&&(o[J]=l()),n!==Y){if(!e(n))throw a(M);r=c(n)(d(o,P),d(o,O)),r===X&&j(o,O,r.e)}};nn.default=nn,function(n,t){for(var e in t)n[e]=t[e]}(nn.prototype,{then:function(n,t){if(void 0===this._s)throw a();return p(this,_(nn.speciesConstructor(this,nn)),n,t)},catch:function(n){return this.then(b,n)},finally:function(n){function t(t){return nn.resolve(n()).then(function(){return t})}return this.then(t,t)},_c:0,_p:S}),nn.resolve=function(n){return v(n)?n:y(_(this),n)},nn.reject=function(n){return j(_(this),O,n)},nn.race=function(n){var t=this,e=_(t),r=function(n){j(e,P,n)},o=function(n){j(e,O,n)},i=c(s)(n,function(n){t.resolve(n).then(r,o)});return i===X?t.reject(i.e):e},nn.all=function(n){function t(n){j(o,O,n)}var e,r=this,o=_(r),i=[];return(e=c(s)(n,function(n,u){r.resolve(n).then(function(n){i[u]=n,--e||j(o,P,i)},t)}))===X?r.reject(e.e):(e||j(o,P,[]),o)},nn.Symbol=F[$]||{},c(function(){Object.defineProperty(nn,n(),{get:function(){return this}})})(),nn.speciesConstructor=function(t,e){var r=t.constructor;return r?r[n()]||e:e},nn.unhandledRejection=function(n,t){H&&H.error("Uncaught (in promise)",I?t.longStack:m(n,t))},nn.rejectionHandled=Y,nn.enableLongStackTrace=function(){I=!0},nn.nextTick=C?function(n){setTimeout(n)}:E.nextTick,nn._s=1;var tn=f(999,function(n,t){var e,r;return(r=n._s!==O?t._onFulfilled:t._onRejected)===b?void j(t,n._s,n._v):(e=c(g)(r,n._v))===X?void j(t,O,e.e):void y(t,e)}),en=f(9,function(n){w(n)||(n[G]=1,h(W,n))})}(); |
var Yaku = require("./yaku"); | ||
try { | ||
// TODO: #45 revert it in the future | ||
(global||{}).Promise = Yaku; | ||
global.Promise = Yaku; | ||
window.Promise = Yaku; | ||
@@ -7,0 +6,0 @@ } catch (err) { |
/* | ||
Yaku v0.17.11 | ||
Yaku v0.17.12 | ||
(c) 2015 Yad Smood. http://ysmood.org | ||
@@ -4,0 +4,0 @@ License MIT |
{ | ||
"name": "yaku", | ||
"version": "0.17.11", | ||
"version": "0.17.12", | ||
"description": "A lightweight promise library", | ||
@@ -45,14 +45,14 @@ "main": "lib/yaku.js", | ||
"devDependencies": { | ||
"bluebird": "3.4.7", | ||
"bluebird": "3.5.0", | ||
"co": "4.6.0", | ||
"core-js": "2.4.1", | ||
"coveralls": "2.11.15", | ||
"es6-promise": "4.0.5", | ||
"es6-shim": "0.35.2", | ||
"eslint": "3.12.2", | ||
"coveralls": "2.13.0", | ||
"es6-promise": "4.1.0", | ||
"es6-shim": "0.35.3", | ||
"eslint": "3.19.0", | ||
"istanbul": "0.4.5", | ||
"junit": "1.4.7", | ||
"junit": "1.4.9", | ||
"mocha": "3.2.0", | ||
"my-promise": "1.1.0", | ||
"nokit": "0.23.12", | ||
"nokit": "0.23.26", | ||
"phantomjs-prebuilt": "2.1.14", | ||
@@ -62,6 +62,6 @@ "pinkie": "2.0.4", | ||
"promises-es6-tests": "*", | ||
"q": "1.4.1", | ||
"setprototypeof": "1.0.2", | ||
"uglify-js": "2.7.5", | ||
"webpack": "1.14.0" | ||
"q": "1.5.0", | ||
"setprototypeof": "1.0.3", | ||
"uglify-js": "2.8.22", | ||
"webpack": "2.4.1" | ||
}, | ||
@@ -68,0 +68,0 @@ "eslintConfig": { |
143514
2556