Comparing version 0.16.7 to 0.17.0
@@ -7,3 +7,3 @@ !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,r){(function(r){!function(){"use strict";function t(){return en[D][$]||q}function e(n,r){for(var t in r)n.prototype[t]=r[t];return n}function o(n){return n&&"object"==typeof n}function u(n){return"function"==typeof n}function i(n,r){return n instanceof r}function c(n){return i(n,A)}function f(n,r,t){if(!r(n))throw p(t)}function s(){try{return C.apply(E,arguments)}catch(n){return nn.e=n,nn}}function a(n,r){return C=n,E=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=Y(n),o=0;return function(n,r){e[o++]=n,e[o++]=r,2===o&&en.nextTick(t)}}function v(n,r){var t,e,o,c,f=0;if(!n)throw p(M);var s=n[en[D][U]];if(u(s))e=s.call(n);else{if(!u(n.next)){if(i(n,Y)){for(t=n.length;f<t;)r(n[f],f++);return f}throw p(M)}e=n}for(;!(o=e.next()).done;)if(c=a(r)(o.value,f++),c===nn)throw u(e[z])&&e[z](),c.e;return f}function p(n){return new TypeError(n)}function h(n){return(n?"":Q)+(new A).stack}function x(n,r){var t="on"+n.toLowerCase(),e=R[t];O&&O.listeners(n).length?n===Z?O.emit(n,r._v,r):O.emit(n,r):e?e({reason:r._v,promise:r}):en[n](r._v,r)}function d(n){return n&&n._Yaku}function m(n){if(d(n))return new n(rn);var r,t,e;return r=new n(function(n,o){if(r)throw p();t=n,e=o}),f(t,u),f(e,u),r}function b(n,r){return function(t){N&&(n[J]=h(!0)),r===I?g(n,t):k(n,r,t)}}function _(n,r,t,e){return u(t)&&(r._onFulfilled=t),u(e)&&(n[B]&&x(X,n),r._onRejected=e),N&&(r._pre=n),n[n._pCount++]=r,n._s!==L&&on(n,r),r}function y(n){if(n._umark)return!0;n._umark=!0;for(var r,t=0,e=n._pCount;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 N&&(r[J]&&t(r[J]),function o(n){n&&G in n&&(o(n._next),t(n[G]+""),o(n._pre))}(r)),(n&&n.stack?n.stack:n)+("\n"+e.join("\n")).replace(tn,"")}function P(n,r){return n(r)}function k(n,r,t){var e=0,o=n._pCount;if(n._s===L)for(n._s=r,n._v=t,r===H&&(N&&c(t)&&(t.longStack=w(t,n)),un(n));e<o;)on(n,n[e++]);return n}function g(n,r){if(r===n&&r)return k(n,H,p(V)),n;if(r!==S&&(u(r)||o(r))){var t=a(j)(r);if(t===nn)return k(n,H,t.e),n;u(t)?(N&&d(r)&&(n._next=r),d(r)?F(n,r,t):en.nextTick(function(){F(n,r,t)})):k(n,I,r)}else k(n,I,r);return n}function j(n){return n.then}function F(n,r,t){var e=a(t,r)(function(t){r&&(r=S,g(n,t))},function(t){r&&(r=S,k(n,H,t))});e===nn&&r&&(k(n,H,e.e),r=S)}var T,C,E,S=null,R="object"==typeof window?window:r,N=!1,O=R.process,Y=Array,A=Error,H=0,I=1,L=2,D="Symbol",U="iterator",$="species",q=D+"("+$+")",z="return",B="_uh",G="_pt",J="_st",K="Invalid this",M="Invalid argument",Q="\nFrom previous ",V="Chaining cycle detected for promise",W="Uncaught (in promise)",X="rejectionHandled",Z="unhandledRejection",nn={e:S},rn=function(){},tn=/^.+\/node_modules\/yaku\/.+\n?/gm,en=n.exports=function(n){var r,t=this;if(!o(t)||t._s!==T)throw p(K);if(t._s=L,N&&(t[G]=h()),n!==rn){if(!u(n))throw p(M);r=a(n)(b(t,I),b(t,H)),r===nn&&k(t,H,r.e)}};en["default"]=en,e(en,{then:function(n,r){if(void 0===this._s)throw p();return _(this,m(en.speciesConstructor(this,en)),n,r)},"catch":function(n){return this.then(T,n)},_pCount:0,_pre:S,_Yaku:1}),en.resolve=function(n){return d(n)?n:g(m(this),n)},en.reject=function(n){return k(m(this),H,n)},en.race=function(n){var r=this,t=m(r),e=function(n){k(t,I,n)},o=function(n){k(t,H,n)},u=a(v)(n,function(n){r.resolve(n).then(e,o)});return u===nn?r.reject(u.e):t},en.all=function(n){function r(n){k(o,H,n)}var t,e=this,o=m(e),u=[];return t=a(v)(n,function(n,i){e.resolve(n).then(function(n){u[i]=n,--t||k(o,I,u)},r)}),t===nn?e.reject(t.e):(t||k(o,I,[]),o)},en.Symbol=R[D]||{},a(function(){Object.defineProperty(en,t(),{get:function(){return this}})})(),en.speciesConstructor=function(n,r){var e=n.constructor;return e?e[t()]||r:r},en.unhandledRejection=function(n,r){try{R.console.error(W,N?r.longStack:w(n,r))}catch(t){}},en.rejectionHandled=rn,en.enableLongStackTrace=function(){N=!0},en.nextTick=O?O.nextTick:function(n){setTimeout(n)},en._Yaku=1;var on=l(999,function(n,r){var t,e;return e=n._s?r._onFulfilled:r._onRejected,e===T?void k(r,n._s,n._v):(t=a(P)(e,n._v),t===nn?void k(r,H,t.e):void g(r,t))}),un=l(9,function(n){y(n)||(n[B]=1,x(Z,n))})}()}).call(r,function(){return this}())},88:/*!**********************!*\ | ||
function(n,r){(function(r){!function(){"use strict";function t(){return en[D][$]||q}function e(n,r){for(var t in r)n.prototype[t]=r[t];return n}function o(n){return n&&"object"==typeof n}function u(n){return"function"==typeof n}function i(n,r){return n instanceof r}function c(n){return i(n,O)}function f(n,r,t){if(!r(n))throw p(t)}function s(){try{return C.apply(E,arguments)}catch(n){return nn.e=n,nn}}function a(n,r){return C=n,E=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=A(n),o=0;return function(n,r){e[o++]=n,e[o++]=r,2===o&&en.nextTick(t)}}function v(n,r){var t,e,o,c,f=0;if(!n)throw p(M);var s=n[en[D][U]];if(u(s))e=s.call(n);else{if(!u(n.next)){if(i(n,A)){for(t=n.length;f<t;)r(n[f],f++);return f}throw p(M)}e=n}for(;!(o=e.next()).done;)if(c=a(r)(o.value,f++),c===nn)throw u(e[z])&&e[z](),c.e;return f}function p(n){return new TypeError(n)}function h(n){return(n?"":Q)+(new O).stack}function x(n,r){var t="on"+n.toLowerCase(),e=R[t];Y&&Y.listeners(n).length?n===Z?Y.emit(n,r._v,r):Y.emit(n,r):e?e({reason:r._v,promise:r}):en[n](r._v,r)}function d(n){return n&&n._Yaku}function m(n){if(d(n))return new n(rn);var r,t,e;return r=new n(function(n,o){if(r)throw p();t=n,e=o}),f(t,u),f(e,u),r}function _(n,r){return function(t){N&&(n[J]=h(!0)),r===I?g(n,t):k(n,r,t)}}function b(n,r,t,e){return u(t)&&(r._onFulfilled=t),u(e)&&(n[B]&&x(X,n),r._onRejected=e),N&&(r._pre=n),n[n._pCount++]=r,n._s!==L&&on(n,r),r}function y(n){if(n._umark)return!0;n._umark=!0;for(var r,t=0,e=n._pCount;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 N&&(r[J]&&t(r[J]),function o(n){n&&G in n&&(o(n._next),t(n[G]+""),o(n._pre))}(r)),(n&&n.stack?n.stack:n)+("\n"+e.join("\n")).replace(tn,"")}function P(n,r){return n(r)}function k(n,r,t){var e=0,o=n._pCount;if(n._s===L)for(n._s=r,n._v=t,r===H&&(N&&c(t)&&(t.longStack=w(t,n)),un(n));e<o;)on(n,n[e++]);return n}function g(n,r){if(r===n&&r)return k(n,H,p(V)),n;if(r!==S&&(u(r)||o(r))){var t=a(j)(r);if(t===nn)return k(n,H,t.e),n;u(t)?(N&&d(r)&&(n._next=r),d(r)?F(n,r,t):en.nextTick(function(){F(n,r,t)})):k(n,I,r)}else k(n,I,r);return n}function j(n){return n.then}function F(n,r,t){var e=a(t,r)(function(t){r&&(r=S,g(n,t))},function(t){r&&(r=S,k(n,H,t))});e===nn&&r&&(k(n,H,e.e),r=S)}var T,C,E,S=null,R="object"==typeof window?window:r,N=!1,Y=R.process,A=Array,O=Error,H=0,I=1,L=2,D="Symbol",U="iterator",$="species",q=D+"("+$+")",z="return",B="_uh",G="_pt",J="_st",K="Invalid this",M="Invalid argument",Q="\nFrom previous ",V="Chaining cycle detected for promise",W="Uncaught (in promise)",X="rejectionHandled",Z="unhandledRejection",nn={e:S},rn=function(){},tn=/^.+\/node_modules\/yaku\/.+\n?/gm,en=n.exports=function(n){var r,t=this;if(!o(t)||t._s!==T)throw p(K);if(t._s=L,N&&(t[G]=h()),n!==rn){if(!u(n))throw p(M);r=a(n)(_(t,I),_(t,H)),r===nn&&k(t,H,r.e)}};en["default"]=en,e(en,{then:function(n,r){if(void 0===this._s)throw p();return b(this,m(en.speciesConstructor(this,en)),n,r)},"catch":function(n){return this.then(T,n)},"finally":function(n){function r(r){return en.resolve(n()).then(function(){return r})}return this.then(r,r)},_pCount:0,_pre:S,_Yaku:1}),en.resolve=function(n){return d(n)?n:g(m(this),n)},en.reject=function(n){return k(m(this),H,n)},en.race=function(n){var r=this,t=m(r),e=function(n){k(t,I,n)},o=function(n){k(t,H,n)},u=a(v)(n,function(n){r.resolve(n).then(e,o)});return u===nn?r.reject(u.e):t},en.all=function(n){function r(n){k(o,H,n)}var t,e=this,o=m(e),u=[];return t=a(v)(n,function(n,i){e.resolve(n).then(function(n){u[i]=n,--t||k(o,I,u)},r)}),t===nn?e.reject(t.e):(t||k(o,I,[]),o)},en.Symbol=R[D]||{},a(function(){Object.defineProperty(en,t(),{get:function(){return this}})})(),en.speciesConstructor=function(n,r){var e=n.constructor;return e?e[t()]||r:r},en.unhandledRejection=function(n,r){try{R.console.error(W,N?r.longStack:w(n,r))}catch(t){}},en.rejectionHandled=rn,en.enableLongStackTrace=function(){N=!0},en.nextTick=Y?Y.nextTick:function(n){setTimeout(n)},en._Yaku=1;var on=l(999,function(n,r){var t,e;return e=n._s?r._onFulfilled:r._onRejected,e===T?void k(r,n._s,n._v):(t=a(P)(e,n._v),t===nn?void k(r,H,t.e):void g(r,t))}),un=l(9,function(n){y(n)||(n[B]=1,x(Z,n))})}()}).call(r,function(){return this}())},88:/*!**********************!*\ | ||
!*** ./src/utils.js ***! | ||
@@ -56,3 +56,3 @@ \**********************/ | ||
\***************************/ | ||
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))},n.emit=function(){console.trace("Observable[[emit]] is deprecated, use [[next]] instead."),n.next.apply(0,arguments)}}function o(n){return function(r){n(c.reject(r))}}var u=t(/*! ./_ */90),i=t(/*! ./genIterator */91),c=u.Promise,f=n.exports=function(n){var r=this;e(r),r.subscribers=[],n&&n(r.next,r.error)};u.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=i(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)})}},104:/*!**********************!*\ | ||
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 u=t(/*! ./_ */90),i=t(/*! ./genIterator */91),c=u.Promise,f=n.exports=function(n){var r=this;e(r),r.subscribers=[],n&&n(r.next,r.error)};u.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=i(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)})}},104:/*!**********************!*\ | ||
!*** ./src/retry.js ***! | ||
@@ -59,0 +59,0 @@ \**********************/ |
@@ -7,2 +7,2 @@ !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,t){(function(t){!function(){"use strict";function r(){return en[$][z]||B}function e(n,t){for(var r in t)n.prototype[r]=t[r];return n}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,L)}function f(n,t,r){if(!t(n))throw v(r)}function a(){try{return S.apply(F,arguments)}catch(n){return nn.e=n,nn}}function s(n,t){return S=n,F=t,a}function l(n,t){function r(){for(var r=0;r<o;)t(e[r],e[r+1]),e[r++]=R,e[r++]=R;o=0,e.length>n&&(e.length=n)}var e=I(n),o=0;return function(n,t){e[o++]=n,e[o++]=t,2===o&&en.nextTick(r)}}function h(n,t){var r,e,o,c,f=0;if(!n)throw v(N);var a=n[en[$][q]];if(i(a))e=a.call(n);else{if(!i(n.next)){if(u(n,I)){for(r=n.length;f<r;)t(n[f],f++);return f}throw v(N)}e=n}for(;!(o=e.next()).done;)if(c=s(t)(o.value,f++),c===nn)throw i(e[D])&&e[D](),c.e;return f}function v(n){return new TypeError(n)}function _(n){return(n?"":Q)+(new L).stack}function p(n,t){var r="on"+n.toLowerCase(),e=Y[r];H&&H.listeners(n).length?n===Z?H.emit(n,t._v,t):H.emit(n,t):e?e({reason:t._v,promise:t}):en[n](t._v,t)}function d(n){return n&&n._Yaku}function w(n){if(d(n))return new n(tn);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){E&&(n[K]=_(!0)),t===O?C(n,r):g(n,t,r)}}function k(n,t,r,e){return i(r)&&(t._onFulfilled=r),i(e)&&(n[G]&&p(X,n),t._onRejected=e),E&&(t._pre=n),n[n._pCount++]=t,n._s!==U&&on(n,t),t}function y(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||y(t))return!0}function j(n,t){function r(n){return e.push(n.replace(/^\s+|\s+$/g,""))}var e=[];return E&&(t[K]&&r(t[K]),function o(n){n&&J in n&&(o(n._next),r(n[J]+""),o(n._pre))}(t)),(n&&n.stack?n.stack:n)+("\n"+e.join("\n")).replace(rn,"")}function x(n,t){return n(t)}function g(n,t,r){var e=0,o=n._pCount;if(n._s===U)for(n._s=t,n._v=r,t===A&&(E&&c(r)&&(r.longStack=j(r,n)),un(n));e<o;)on(n,n[e++]);return n}function C(n,t){if(t===n&&t)return g(n,A,v(V)),n;if(t!==P&&(i(t)||o(t))){var r=s(T)(t);if(r===nn)return g(n,A,r.e),n;i(r)?(E&&d(t)&&(n._next=t),d(t)?b(n,t,r):en.nextTick(function(){b(n,t,r)})):g(n,O,t)}else g(n,O,t);return n}function T(n){return n.then}function b(n,t,r){var e=s(r,t)(function(r){t&&(t=P,C(n,r))},function(r){t&&(t=P,g(n,A,r))});e===nn&&t&&(g(n,A,e.e),t=P)}var R,S,F,P=null,Y="object"==typeof window?window:t,E=!1,H=Y.process,I=Array,L=Error,A=0,O=1,U=2,$="Symbol",q="iterator",z="species",B=$+"("+z+")",D="return",G="_uh",J="_pt",K="_st",M="Invalid this",N="Invalid argument",Q="\nFrom previous ",V="Chaining cycle detected for promise",W="Uncaught (in promise)",X="rejectionHandled",Z="unhandledRejection",nn={e:P},tn=function(){},rn=/^.+\/node_modules\/yaku\/.+\n?/gm,en=n.exports=function(n){var t,r=this;if(!o(r)||r._s!==R)throw v(M);if(r._s=U,E&&(r[J]=_()),n!==tn){if(!i(n))throw v(N);t=s(n)(m(r,O),m(r,A)),t===nn&&g(r,A,t.e)}};en["default"]=en,e(en,{then:function(n,t){if(void 0===this._s)throw v();return k(this,w(en.speciesConstructor(this,en)),n,t)},"catch":function(n){return this.then(R,n)},_pCount:0,_pre:P,_Yaku:1}),en.resolve=function(n){return d(n)?n:C(w(this),n)},en.reject=function(n){return g(w(this),A,n)},en.race=function(n){var t=this,r=w(t),e=function(n){g(r,O,n)},o=function(n){g(r,A,n)},i=s(h)(n,function(n){t.resolve(n).then(e,o)});return i===nn?t.reject(i.e):r},en.all=function(n){function t(n){g(o,A,n)}var r,e=this,o=w(e),i=[];return r=s(h)(n,function(n,u){e.resolve(n).then(function(n){i[u]=n,--r||g(o,O,i)},t)}),r===nn?e.reject(r.e):(r||g(o,O,[]),o)},en.Symbol=Y[$]||{},s(function(){Object.defineProperty(en,r(),{get:function(){return this}})})(),en.speciesConstructor=function(n,t){var e=n.constructor;return e?e[r()]||t:t},en.unhandledRejection=function(n,t){try{Y.console.error(W,E?t.longStack:j(n,t))}catch(r){}},en.rejectionHandled=tn,en.enableLongStackTrace=function(){E=!0},en.nextTick=H?H.nextTick:function(n){setTimeout(n)},en._Yaku=1;var on=l(999,function(n,t){var r,e;return e=n._s?t._onFulfilled:t._onRejected,e===R?void g(t,n._s,n._v):(r=s(x)(e,n._v),r===nn?void g(t,A,r.e):void C(t,r))}),un=l(9,function(n){y(n)||(n[G]=1,p(Z,n))})}()}).call(t,function(){return this}())}}); | ||
function(n,t){(function(t){!function(){"use strict";function r(){return en[$][z]||B}function e(n,t){for(var r in t)n.prototype[r]=t[r];return n}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,L)}function f(n,t,r){if(!t(n))throw v(r)}function a(){try{return S.apply(F,arguments)}catch(n){return nn.e=n,nn}}function s(n,t){return S=n,F=t,a}function l(n,t){function r(){for(var r=0;r<o;)t(e[r],e[r+1]),e[r++]=R,e[r++]=R;o=0,e.length>n&&(e.length=n)}var e=I(n),o=0;return function(n,t){e[o++]=n,e[o++]=t,2===o&&en.nextTick(r)}}function h(n,t){var r,e,o,c,f=0;if(!n)throw v(N);var a=n[en[$][q]];if(i(a))e=a.call(n);else{if(!i(n.next)){if(u(n,I)){for(r=n.length;f<r;)t(n[f],f++);return f}throw v(N)}e=n}for(;!(o=e.next()).done;)if(c=s(t)(o.value,f++),c===nn)throw i(e[D])&&e[D](),c.e;return f}function v(n){return new TypeError(n)}function _(n){return(n?"":Q)+(new L).stack}function p(n,t){var r="on"+n.toLowerCase(),e=Y[r];H&&H.listeners(n).length?n===Z?H.emit(n,t._v,t):H.emit(n,t):e?e({reason:t._v,promise:t}):en[n](t._v,t)}function d(n){return n&&n._Yaku}function w(n){if(d(n))return new n(tn);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){E&&(n[K]=_(!0)),t===O?C(n,r):g(n,t,r)}}function k(n,t,r,e){return i(r)&&(t._onFulfilled=r),i(e)&&(n[G]&&p(X,n),t._onRejected=e),E&&(t._pre=n),n[n._pCount++]=t,n._s!==U&&on(n,t),t}function y(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||y(t))return!0}function j(n,t){function r(n){return e.push(n.replace(/^\s+|\s+$/g,""))}var e=[];return E&&(t[K]&&r(t[K]),function o(n){n&&J in n&&(o(n._next),r(n[J]+""),o(n._pre))}(t)),(n&&n.stack?n.stack:n)+("\n"+e.join("\n")).replace(rn,"")}function x(n,t){return n(t)}function g(n,t,r){var e=0,o=n._pCount;if(n._s===U)for(n._s=t,n._v=r,t===A&&(E&&c(r)&&(r.longStack=j(r,n)),un(n));e<o;)on(n,n[e++]);return n}function C(n,t){if(t===n&&t)return g(n,A,v(V)),n;if(t!==P&&(i(t)||o(t))){var r=s(T)(t);if(r===nn)return g(n,A,r.e),n;i(r)?(E&&d(t)&&(n._next=t),d(t)?b(n,t,r):en.nextTick(function(){b(n,t,r)})):g(n,O,t)}else g(n,O,t);return n}function T(n){return n.then}function b(n,t,r){var e=s(r,t)(function(r){t&&(t=P,C(n,r))},function(r){t&&(t=P,g(n,A,r))});e===nn&&t&&(g(n,A,e.e),t=P)}var R,S,F,P=null,Y="object"==typeof window?window:t,E=!1,H=Y.process,I=Array,L=Error,A=0,O=1,U=2,$="Symbol",q="iterator",z="species",B=$+"("+z+")",D="return",G="_uh",J="_pt",K="_st",M="Invalid this",N="Invalid argument",Q="\nFrom previous ",V="Chaining cycle detected for promise",W="Uncaught (in promise)",X="rejectionHandled",Z="unhandledRejection",nn={e:P},tn=function(){},rn=/^.+\/node_modules\/yaku\/.+\n?/gm,en=n.exports=function(n){var t,r=this;if(!o(r)||r._s!==R)throw v(M);if(r._s=U,E&&(r[J]=_()),n!==tn){if(!i(n))throw v(N);t=s(n)(m(r,O),m(r,A)),t===nn&&g(r,A,t.e)}};en["default"]=en,e(en,{then:function(n,t){if(void 0===this._s)throw v();return k(this,w(en.speciesConstructor(this,en)),n,t)},"catch":function(n){return this.then(R,n)},"finally":function(n){function t(t){return en.resolve(n()).then(function(){return t})}return this.then(t,t)},_pCount:0,_pre:P,_Yaku:1}),en.resolve=function(n){return d(n)?n:C(w(this),n)},en.reject=function(n){return g(w(this),A,n)},en.race=function(n){var t=this,r=w(t),e=function(n){g(r,O,n)},o=function(n){g(r,A,n)},i=s(h)(n,function(n){t.resolve(n).then(e,o)});return i===nn?t.reject(i.e):r},en.all=function(n){function t(n){g(o,A,n)}var r,e=this,o=w(e),i=[];return r=s(h)(n,function(n,u){e.resolve(n).then(function(n){i[u]=n,--r||g(o,O,i)},t)}),r===nn?e.reject(r.e):(r||g(o,O,[]),o)},en.Symbol=Y[$]||{},s(function(){Object.defineProperty(en,r(),{get:function(){return this}})})(),en.speciesConstructor=function(n,t){var e=n.constructor;return e?e[r()]||t:t},en.unhandledRejection=function(n,t){try{Y.console.error(W,E?t.longStack:j(n,t))}catch(r){}},en.rejectionHandled=tn,en.enableLongStackTrace=function(){E=!0},en.nextTick=H?H.nextTick:function(n){setTimeout(n)},en._Yaku=1;var on=l(999,function(n,t){var r,e;return e=n._s?t._onFulfilled:t._onRejected,e===R?void g(t,n._s,n._v):(r=s(x)(e,n._v),r===nn?void g(t,A,r.e):void C(t,r))}),un=l(9,function(n){y(n)||(n[G]=1,p(Z,n))})}()}).call(t,function(){return this}())}}); |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";function n(){return tn[P][$]||q}function t(n,t){for(var e in t)n.prototype[e]=t[e];return n}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,I)}function u(n,t,e){if(!t(n))throw l(e)}function c(){try{return T.apply(R,arguments)}catch(n){return X.e=n,X}}function f(n,t){return T=n,R=t,c}function a(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=H(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&tn.nextTick(e)}}function s(n,t){var e,i,u,c,a=0;if(!n)throw l(K);var s=n[tn[P][U]];if(r(s))i=s.call(n);else{if(!r(n.next)){if(o(n,H)){for(e=n.length;a<e;)t(n[a],a++);return a}throw l(K)}i=n}for(;!(u=i.next()).done;)if(c=f(t)(u.value,a++),c===X)throw r(i[z])&&i[z](),c.e;return a}function l(n){return new TypeError(n)}function h(n){return(n?"":M)+(new I).stack}function _(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}):tn[n](t._v,t)}function v(n){return n&&n._Yaku}function d(n){if(v(n))return new n(Z);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){Y&&(n[G]=h(!0)),t===A?y(n,e):j(n,t,e)}}function w(n,t,e,o){return r(e)&&(t._onFulfilled=e),r(o)&&(n[B]&&_(V,n),t._onRejected=o),Y&&(t._pre=n),n[n._pCount++]=t,n._s!==O&&en(n,t),t}function k(n){if(n._umark)return!0;n._umark=!0;for(var t,e=0,r=n._pCount;e<r;)if(t=n[e++],t._onRejected||k(t))return!0}function m(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return Y&&(t[G]&&e(t[G]),function o(n){n&&D in n&&(o(n._next),e(n[D]+""),o(n._pre))}(t)),(n&&n.stack?n.stack:n)+("\n"+r.join("\n")).replace(nn,"")}function g(n,t){return n(t)}function j(n,t,e){var r=0,o=n._pCount;if(n._s===O)for(n._s=t,n._v=e,t===L&&(Y&&i(e)&&(e.longStack=m(e,n)),rn(n));r<o;)en(n,n[r++]);return n}function y(n,t){if(t===n&&t)return j(n,L,l(N)),n;if(t!==S&&(r(t)||e(t))){var o=f(x)(t);if(o===X)return j(n,L,o.e),n;r(o)?(Y&&v(t)&&(n._next=t),v(t)?C(n,t,o):tn.nextTick(function(){C(n,t,o)})):j(n,A,t)}else j(n,A,t);return n}function x(n){return n.then}function C(n,t,e){var r=f(e,t)(function(e){t&&(t=S,y(n,e))},function(e){t&&(t=S,j(n,L,e))});r===X&&t&&(j(n,L,r.e),t=S)}var b,T,R,S=null,F="object"==typeof window?window:global,Y=!1,E=F.process,H=Array,I=Error,L=0,A=1,O=2,P="Symbol",U="iterator",$="species",q=P+"("+$+")",z="return",B="_uh",D="_pt",G="_st",J="Invalid this",K="Invalid argument",M="\nFrom previous ",N="Chaining cycle detected for promise",Q="Uncaught (in promise)",V="rejectionHandled",W="unhandledRejection",X={e:S},Z=function(){},nn=/^.+\/node_modules\/yaku\/.+\n?/gm,tn=module.exports=function(n){var t,o=this;if(!e(o)||o._s!==b)throw l(J);if(o._s=O,Y&&(o[D]=h()),n!==Z){if(!r(n))throw l(K);t=f(n)(p(o,A),p(o,L)),t===X&&j(o,L,t.e)}};tn["default"]=tn,t(tn,{then:function(n,t){if(void 0===this._s)throw l();return w(this,d(tn.speciesConstructor(this,tn)),n,t)},"catch":function(n){return this.then(b,n)},_pCount:0,_pre:S,_Yaku:1}),tn.resolve=function(n){return v(n)?n:y(d(this),n)},tn.reject=function(n){return j(d(this),L,n)},tn.race=function(n){var t=this,e=d(t),r=function(n){j(e,A,n)},o=function(n){j(e,L,n)},i=f(s)(n,function(n){t.resolve(n).then(r,o)});return i===X?t.reject(i.e):e},tn.all=function(n){function t(n){j(o,L,n)}var e,r=this,o=d(r),i=[];return e=f(s)(n,function(n,u){r.resolve(n).then(function(n){i[u]=n,--e||j(o,A,i)},t)}),e===X?r.reject(e.e):(e||j(o,A,[]),o)},tn.Symbol=F[P]||{},f(function(){Object.defineProperty(tn,n(),{get:function(){return this}})})(),tn.speciesConstructor=function(t,e){var r=t.constructor;return r?r[n()]||e:e},tn.unhandledRejection=function(n,t){try{F.console.error(Q,Y?t.longStack:m(n,t))}catch(e){}},tn.rejectionHandled=Z,tn.enableLongStackTrace=function(){Y=!0},tn.nextTick=E?E.nextTick:function(n){setTimeout(n)},tn._Yaku=1;var en=a(999,function(n,t){var e,r;return r=n._s?t._onFulfilled:t._onRejected,r===b?void j(t,n._s,n._v):(e=f(g)(r,n._v),e===X?void j(t,L,e.e):void y(t,e))}),rn=a(9,function(n){k(n)||(n[B]=1,_(W,n))})}(); | ||
!function(){"use strict";function n(){return tn[P][$]||q}function t(n,t){for(var e in t)n.prototype[e]=t[e];return n}function e(n){return n&&"object"==typeof n}function r(n){return"function"==typeof n}function o(n,t){return n instanceof t}function u(n){return o(n,I)}function i(n,t,e){if(!t(n))throw l(e)}function c(){try{return T.apply(R,arguments)}catch(n){return X.e=n,X}}function f(n,t){return T=n,R=t,c}function a(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=H(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&tn.nextTick(e)}}function s(n,t){var e,u,i,c,a=0;if(!n)throw l(K);var s=n[tn[P][U]];if(r(s))u=s.call(n);else{if(!r(n.next)){if(o(n,H)){for(e=n.length;a<e;)t(n[a],a++);return a}throw l(K)}u=n}for(;!(i=u.next()).done;)if(c=f(t)(i.value,a++),c===X)throw r(u[z])&&u[z](),c.e;return a}function l(n){return new TypeError(n)}function h(n){return(n?"":M)+(new I).stack}function v(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}):tn[n](t._v,t)}function _(n){return n&&n._Yaku}function d(n){if(_(n))return new n(Z);var t,e,o;return t=new n(function(n,r){if(t)throw l();e=n,o=r}),i(e,r),i(o,r),t}function p(n,t){return function(e){Y&&(n[G]=h(!0)),t===A?j(n,e):g(n,t,e)}}function w(n,t,e,o){return r(e)&&(t._onFulfilled=e),r(o)&&(n[B]&&v(V,n),t._onRejected=o),Y&&(t._pre=n),n[n._pCount++]=t,n._s!==O&&en(n,t),t}function k(n){if(n._umark)return!0;n._umark=!0;for(var t,e=0,r=n._pCount;e<r;)if(t=n[e++],t._onRejected||k(t))return!0}function m(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return Y&&(t[G]&&e(t[G]),function o(n){n&&D in n&&(o(n._next),e(n[D]+""),o(n._pre))}(t)),(n&&n.stack?n.stack:n)+("\n"+r.join("\n")).replace(nn,"")}function y(n,t){return n(t)}function g(n,t,e){var r=0,o=n._pCount;if(n._s===O)for(n._s=t,n._v=e,t===L&&(Y&&u(e)&&(e.longStack=m(e,n)),rn(n));r<o;)en(n,n[r++]);return n}function j(n,t){if(t===n&&t)return g(n,L,l(N)),n;if(t!==S&&(r(t)||e(t))){var o=f(x)(t);if(o===X)return g(n,L,o.e),n;r(o)?(Y&&_(t)&&(n._next=t),_(t)?C(n,t,o):tn.nextTick(function(){C(n,t,o)})):g(n,A,t)}else g(n,A,t);return n}function x(n){return n.then}function C(n,t,e){var r=f(e,t)(function(e){t&&(t=S,j(n,e))},function(e){t&&(t=S,g(n,L,e))});r===X&&t&&(g(n,L,r.e),t=S)}var b,T,R,S=null,F="object"==typeof window?window:global,Y=!1,E=F.process,H=Array,I=Error,L=0,A=1,O=2,P="Symbol",U="iterator",$="species",q=P+"("+$+")",z="return",B="_uh",D="_pt",G="_st",J="Invalid this",K="Invalid argument",M="\nFrom previous ",N="Chaining cycle detected for promise",Q="Uncaught (in promise)",V="rejectionHandled",W="unhandledRejection",X={e:S},Z=function(){},nn=/^.+\/node_modules\/yaku\/.+\n?/gm,tn=module.exports=function(n){var t,o=this;if(!e(o)||o._s!==b)throw l(J);if(o._s=O,Y&&(o[D]=h()),n!==Z){if(!r(n))throw l(K);t=f(n)(p(o,A),p(o,L)),t===X&&g(o,L,t.e)}};tn["default"]=tn,t(tn,{then:function(n,t){if(void 0===this._s)throw l();return w(this,d(tn.speciesConstructor(this,tn)),n,t)},"catch":function(n){return this.then(b,n)},"finally":function(n){function t(t){return tn.resolve(n()).then(function(){return t})}return this.then(t,t)},_pCount:0,_pre:S,_Yaku:1}),tn.resolve=function(n){return _(n)?n:j(d(this),n)},tn.reject=function(n){return g(d(this),L,n)},tn.race=function(n){var t=this,e=d(t),r=function(n){g(e,A,n)},o=function(n){g(e,L,n)},u=f(s)(n,function(n){t.resolve(n).then(r,o)});return u===X?t.reject(u.e):e},tn.all=function(n){function t(n){g(o,L,n)}var e,r=this,o=d(r),u=[];return e=f(s)(n,function(n,i){r.resolve(n).then(function(n){u[i]=n,--e||g(o,A,u)},t)}),e===X?r.reject(e.e):(e||g(o,A,[]),o)},tn.Symbol=F[P]||{},f(function(){Object.defineProperty(tn,n(),{get:function(){return this}})})(),tn.speciesConstructor=function(t,e){var r=t.constructor;return r?r[n()]||e:e},tn.unhandledRejection=function(n,t){try{F.console.error(Q,Y?t.longStack:m(n,t))}catch(e){}},tn.rejectionHandled=Z,tn.enableLongStackTrace=function(){Y=!0},tn.nextTick=E?E.nextTick:function(n){setTimeout(n)},tn._Yaku=1;var en=a(999,function(n,t){var e,r;return r=n._s?t._onFulfilled:t._onRejected,r===b?void g(t,n._s,n._v):(e=f(y)(r,n._v),e===X?void g(t,L,e.e):void j(t,e))}),rn=a(9,function(n){k(n)||(n[B]=1,v(W,n))})}(); |
@@ -143,7 +143,2 @@ var _ = require("./_"); | ||
}; | ||
self.emit = function () { | ||
console.trace("Observable[[emit]] is deprecated, use [[next]] instead."); // eslint-disable-line | ||
self.next.apply(0, arguments); | ||
}; | ||
} | ||
@@ -150,0 +145,0 @@ |
/* | ||
Yaku v0.16.7 | ||
Yaku v0.17.0 | ||
(c) 2015 Yad Smood. http://ysmood.org | ||
@@ -133,2 +133,12 @@ License MIT | ||
"finally": function (onFinally) { | ||
function eventually (value) { | ||
return Yaku.resolve(onFinally()).then(function () { | ||
return value; | ||
}); | ||
} | ||
return this.then(eventually, eventually); | ||
}, | ||
// The number of current promises that attach to this Yaku instance. | ||
@@ -317,3 +327,3 @@ _pCount: 0, | ||
* var Promise = require('yaku'); | ||
* Promise.onUnhandledRejection = (reason) => { | ||
* Promise.unhandledRejection = (reason) => { | ||
* console.error(reason); | ||
@@ -320,0 +330,0 @@ * }; |
{ | ||
"name": "yaku", | ||
"version": "0.16.7", | ||
"version": "0.17.0", | ||
"description": "A lightweight promise library", | ||
@@ -5,0 +5,0 @@ "main": "lib/yaku.js", |
@@ -23,3 +23,3 @@ <a href="http://promisesaplus.com/"> | ||
- The minified file is only 4.1KB (1.8KB gzipped) | ||
- The minified file is only 4.2KB (1.8KB gzipped) | ||
- Supports "uncaught rejection" and "long stack trace", [Comparison][docs/debugHelperComparison.md] | ||
@@ -118,3 +118,3 @@ - Designed to work on IE5+ and other major browsers | ||
- `catch` on old brwoser (IE7, IE8 etc)? | ||
- `catch` on old browsers (IE7, IE8 etc)? | ||
@@ -262,3 +262,3 @@ > In ECMA-262 spec, `catch` cannot be used as method name. You have to alias the method name or use something like `Promise.resolve()['catch'](function() {})` or `Promise.resolve().then(null, function() {})`. | ||
- ### **[Yaku.resolve(value)](src/yaku.js?source#L151)** | ||
- ### **[Yaku.resolve(value)](src/yaku.js?source#L161)** | ||
@@ -283,3 +283,3 @@ The `Promise.resolve(value)` method returns a Promise object that is resolved with the given value. | ||
- ### **[Yaku.reject(reason)](src/yaku.js?source#L165)** | ||
- ### **[Yaku.reject(reason)](src/yaku.js?source#L175)** | ||
@@ -301,3 +301,3 @@ The `Promise.reject(reason)` method returns a Promise object that is rejected with the given reason. | ||
- ### **[Yaku.race(iterable)](src/yaku.js?source#L189)** | ||
- ### **[Yaku.race(iterable)](src/yaku.js?source#L199)** | ||
@@ -331,3 +331,3 @@ The `Promise.race(iterable)` method returns a promise that resolves or rejects | ||
- ### **[Yaku.all(iterable)](src/yaku.js?source#L245)** | ||
- ### **[Yaku.all(iterable)](src/yaku.js?source#L255)** | ||
@@ -376,3 +376,3 @@ The `Promise.all(iterable)` method returns a promise that resolves when | ||
- ### **[Yaku.Symbol](src/yaku.js?source#L281)** | ||
- ### **[Yaku.Symbol](src/yaku.js?source#L291)** | ||
@@ -392,3 +392,3 @@ The ES6 Symbol object that Yaku should use, by default it will use the | ||
- ### **[Yaku.speciesConstructor(O, defaultConstructor)](src/yaku.js?source#L296)** | ||
- ### **[Yaku.speciesConstructor(O, defaultConstructor)](src/yaku.js?source#L306)** | ||
@@ -404,3 +404,3 @@ Use this api to custom the species behavior. | ||
- ### **[Yaku.unhandledRejection(reason, p)](src/yaku.js?source#L322)** | ||
- ### **[Yaku.unhandledRejection(reason, p)](src/yaku.js?source#L332)** | ||
@@ -423,3 +423,3 @@ Catch all possibly unhandled rejections. If you want to use specific | ||
var Promise = require('yaku'); | ||
Promise.onUnhandledRejection = (reason) => { | ||
Promise.unhandledRejection = (reason) => { | ||
console.error(reason); | ||
@@ -435,3 +435,3 @@ }; | ||
- ### **[Yaku.rejectionHandled(reason, p)](src/yaku.js?source#L337)** | ||
- ### **[Yaku.rejectionHandled(reason, p)](src/yaku.js?source#L347)** | ||
@@ -449,3 +449,3 @@ Emitted whenever a Promise was rejected and an error handler was | ||
- ### **[Yaku.enableLongStackTrace](src/yaku.js?source#L355)** | ||
- ### **[Yaku.enableLongStackTrace](src/yaku.js?source#L365)** | ||
@@ -469,3 +469,3 @@ It is used to enable the long stack trace. | ||
- ### **[Yaku.nextTick](src/yaku.js?source#L378)** | ||
- ### **[Yaku.nextTick](src/yaku.js?source#L388)** | ||
@@ -1031,3 +1031,3 @@ Only Node has `process.nextTick` function. For browser there are | ||
- ### **[Observable.merge(iterable)](src/Observable.js?source#L178)** | ||
- ### **[Observable.merge(iterable)](src/Observable.js?source#L173)** | ||
@@ -1112,6 +1112,11 @@ Merge multiple observables into one. | ||
Make sure you have `npm` and `npm install` at the root of the project first. | ||
Other than use `gulp`, all my projects use [nokit][] to deal with automation. | ||
Run `npm run no -- -h` to print all the tasks that you can use. | ||
## Update `readme.md` | ||
Please don't alter the `readme.md` directly, it is compiled from the `docs/readme.jst.md`. | ||
Edit the `docs/readme.jst.md` and execute `npm run no` to rebuild the project. | ||
@@ -1118,0 +1123,0 @@ [docs/lazyTree.md]: docs/lazyTree.md |
131293
2270
1129