New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yaku

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaku - npm Package Compare versions

Comparing version 0.18.4 to 0.18.5

2

dist/yaku.browser.global.min.js

@@ -10,2 +10,2 @@ !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=100)}({100:/*!***********************!*\

\*********************/
function(n,t,e){(function(t){!function(){"use strict";function e(){return rn[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,M)}function c(n,t,e){if(!t(n))throw h(e)}function f(){try{return R.apply(S,arguments)}catch(n){return nn.e=n,nn}}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=A(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&rn.nextTick(e)}}function l(n,t){var e,r,u,c,f=0;if(!n)throw h(Q);var a=n[rn[q][z]];if(o(a))r=a.call(n);else{if(!o(n.next)){if(i(n,A)){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++))===nn)throw o(r[G])&&r[G](),c.e;return f}function h(n){return new TypeError(n)}function v(n){return(n?"":V)+(new M).stack}function _(n,t){var e="on"+n.toLowerCase(),r=O[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 d(n){return n&&n._s}function p(n){if(d(n))return new n(tn);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){L&&(n[N]=v(!0)),t===Y?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),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 j(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return L&&(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(en,"")}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===U&&(L&&u(e)&&(e.longStack=j(e,n)),un(n));r<o;)on(n,n[r++]);return n}function k(n,t){if(t===n&&t)return x(n,U,h(W)),n;if(t!==C&&(o(t)||r(t))){var e=s(b)(t);if(e===nn)return x(n,U,e.e),n;o(e)?(L&&d(t)&&(n._next=t),d(t)?T(n,t,e):rn.nextTick(function(){T(n,t,e)})):x(n,Y,t)}else x(n,Y,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,U,e))});r===nn&&t&&(x(n,U,r.e),t=C)}var P,R,S,C=null,F="object"==typeof window,O=F?window:t,E=O.Promise,H=O.process,I=O.console,L=!1,A=Array,M=Error,U=1,Y=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",Z="unhandledRejection",nn={e:C},tn=function(){},en=/^.+\/node_modules\/yaku\/.+\n?/gm,rn=function(n){var t,e=this;if(!r(e)||e._s!==P)throw h("Invalid this");if(e._s=$,L&&(e[K]=v()),n!==tn){if(!o(n))throw h(Q);t=s(n)(w(e,Y),w(e,U)),t===nn&&x(e,U,t.e)}};rn["default"]=rn,function(n,t){for(var e in t)n[e]=t[e]}(rn.prototype,{then:function(n,t){if(this._s===undefined)throw h();return y(this,p(rn.speciesConstructor(this,rn)),n,t)},"catch":function(n){return this.then(P,n)},"finally":function(n){return this.then(function(t){return rn.resolve(n()).then(function(){return t})},function(t){return rn.resolve(n()).then(function(){throw t})})},_c:0,_p:C}),rn.resolve=function(n){return d(n)?n:k(p(this),n)},rn.reject=function(n){return x(p(this),U,n)},rn.race=function(n){var t=this,e=p(t),r=function(n){x(e,Y,n)},o=function(n){x(e,U,n)},i=s(l)(n,function(n){t.resolve(n).then(r,o)});return i===nn?t.reject(i.e):e},rn.all=function(n){function t(n){x(o,U,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,Y,i)},t)}))===nn?r.reject(e.e):(e||x(o,Y,[]),o)},rn.Symbol=O[q]||{},s(function(){Object.defineProperty(rn,e(),{get:function(){return this}})})(),rn.speciesConstructor=function(n,t){var r=n.constructor;return r?r[e()]||t:t},rn.unhandledRejection=function(n,t){I&&I.error("Uncaught (in promise)",L?t.longStack:j(n,t))},rn.rejectionHandled=tn,rn.enableLongStackTrace=function(){L=!0},rn.nextTick=F?function(n){E?new E(function(n){n()}).then(n):setTimeout(n)}:H.nextTick,rn._s=1;var on=a(999,function(n,t){var e,r;return(r=n._s!==U?t._onFulfilled:t._onRejected)===P?void x(t,n._s,n._v):(e=s(g)(r,n._v))===nn?void x(t,U,e.e):void k(t,e)}),un=a(9,function(n){m(n)||(n[J]=1,_(Z,n))});try{n.exports=rn}catch(cn){O.Yaku=rn}}()}).call(t,e(/*! ./../~/webpack/buildin/global.js */2))}});
function(n,t,e){(function(t){!function(){"use strict";function e(){return rn[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,M)}function c(n,t,e){if(!t(n))throw h(e)}function f(){try{return R.apply(S,arguments)}catch(n){return nn.e=n,nn}}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=A(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&rn.nextTick(e)}}function l(n,t){var e,r,u,c,f=0;if(!n)throw h(Q);var a=n[rn[q][z]];if(o(a))r=a.call(n);else{if(!o(n.next)){if(i(n,A)){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++))===nn)throw o(r[G])&&r[G](),c.e;return f}function h(n){return new TypeError(n)}function v(n){return(n?"":V)+(new M).stack}function _(n,t){var e="on"+n.toLowerCase(),r=O[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 d(n){return n&&n._s}function p(n){if(d(n))return new n(tn);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){var e=!1;return function(r){e||(e=!0,L&&(n[N]=v(!0)),t===Y?k(n,r):x(n,t,r))}}function y(n,t,e,r){return o(e)&&(t._onFulfilled=e),o(r)&&(n[J]&&_(X,n),t._onRejected=r),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 j(n,t){function e(n){return r.push(n.replace(/^\s+|\s+$/g,""))}var r=[];return L&&(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(en,"")}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===U&&(L&&u(e)&&(e.longStack=j(e,n)),un(n));r<o;)on(n,n[r++]);return n}function k(n,t){if(t===n&&t)return x(n,U,h(W)),n;if(t!==C&&(o(t)||r(t))){var e=s(b)(t);if(e===nn)return x(n,U,e.e),n;o(e)?(L&&d(t)&&(n._next=t),d(t)?T(n,t,e):rn.nextTick(function(){T(n,t,e)})):x(n,Y,t)}else x(n,Y,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,U,e))});r===nn&&t&&(x(n,U,r.e),t=C)}var P,R,S,C=null,F="object"==typeof window,O=F?window:t,E=O.Promise,H=O.process,I=O.console,L=!1,A=Array,M=Error,U=1,Y=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",Z="unhandledRejection",nn={e:C},tn=function(){},en=/^.+\/node_modules\/yaku\/.+\n?/gm,rn=function(n){var t,e=this;if(!r(e)||e._s!==P)throw h("Invalid this");if(e._s=$,L&&(e[K]=v()),n!==tn){if(!o(n))throw h(Q);t=s(n)(w(e,Y),w(e,U)),t===nn&&x(e,U,t.e)}};rn["default"]=rn,function(n,t){for(var e in t)n[e]=t[e]}(rn.prototype,{then:function(n,t){if(this._s===undefined)throw h();return y(this,p(rn.speciesConstructor(this,rn)),n,t)},"catch":function(n){return this.then(P,n)},"finally":function(n){return this.then(function(t){return rn.resolve(n()).then(function(){return t})},function(t){return rn.resolve(n()).then(function(){throw t})})},_c:0,_p:C}),rn.resolve=function(n){return d(n)?n:k(p(this),n)},rn.reject=function(n){return x(p(this),U,n)},rn.race=function(n){var t=this,e=p(t),r=function(n){x(e,Y,n)},o=function(n){x(e,U,n)},i=s(l)(n,function(n){t.resolve(n).then(r,o)});return i===nn?t.reject(i.e):e},rn.all=function(n){function t(n){x(o,U,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,Y,i)},t)}))===nn?r.reject(e.e):(e||x(o,Y,[]),o)},rn.Symbol=O[q]||{},s(function(){Object.defineProperty(rn,e(),{get:function(){return this}})})(),rn.speciesConstructor=function(n,t){var r=n.constructor;return r?r[e()]||t:t},rn.unhandledRejection=function(n,t){I&&I.error("Uncaught (in promise)",L?t.longStack:j(n,t))},rn.rejectionHandled=tn,rn.enableLongStackTrace=function(){L=!0},rn.nextTick=F?function(n){E?new E(function(n){n()}).then(n):setTimeout(n)}:H.nextTick,rn._s=1;var on=a(999,function(n,t){var e,r;return(r=n._s!==U?t._onFulfilled:t._onRejected)===P?void x(t,n._s,n._v):(e=s(g)(r,n._v))===nn?void x(t,U,e.e):void k(t,e)}),un=a(9,function(n){m(n)||(n[J]=1,_(Z,n))});try{n.exports=rn}catch(cn){O.Yaku=rn}}()}).call(t,e(/*! ./../~/webpack/buildin/global.js */2))}});

@@ -1,1 +0,1 @@

!function(){"use strict";function n(){return K[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 u(){try{return k.apply(b,arguments)}catch(n){return G.e=n,G}}function i(n,t){return k=n,b=t,u}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=F(n),o=0;return function(n,t){e[o++]=n,e[o++]=t,2===o&&M(r)}}function c(n,t){var o,u,f,c,s=0;if(!n)throw a(q);var h=n[K[A]];if(r(h))u=h.call(n);else{if(!r(n.next)){if(e(n,F)){for(o=n.length;s<o;)t(n[s],s++);return s}throw a(q)}u=n}for(;!(f=u.next()).done;)if((c=i(t)(f.value,s++))===G)throw r(u[L])&&u[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===D?T.emit(n,t._v,t):T.emit(n,t):e&&e({reason:t._v,promise:t})}function h(n){return n&&n._Yaku}function l(n){if(h(n))return new n(J);var t,e,u;return t=new n(function(n,r){if(t)throw a();e=n,u=r}),o(e,r),o(u,r),t}function v(n,t){return function(r){t===P?y(n,r):w(n,t,r)}}function _(n,t,e,o){return r(e)&&(t._onFulfilled=e),r(o)&&(n[O]&&s(B,n),t._onRejected=o),n[n._pCount++]=t,n._s!==S&&U(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===I&&V(n);e<o;)U(n,n[e++]);return n}function y(n,e){if(e===n&&e)return w(n,I,a(z)),n;if(e!==C&&(r(e)||t(e))){var o=i(m)(e);if(o===G)return w(n,I,o.e),n;r(o)?h(e)?j(n,e,o):M(function(){j(n,e,o)}):w(n,P,e)}else w(n,P,e);return n}function m(n){return n.then}function j(n,t,r){var e=i(r,t)(function(r){t&&(t=C,y(n,r))},function(r){t&&(t=C,w(n,I,r))});e===G&&t&&(w(n,I,e.e),t=C)}var g,k,b,C=null,x="object"==typeof window,R=x?window:global,Y=R.Promise,T=R.process,F=Array,I=0,P=1,S=2,A="iterator",E="species",H="Symbol("+E+")",L="return",O="_uh",q="Invalid argument",z="Chaining cycle detected for promise",B="rejectionHandled",D="unhandledRejection",G={e:C},J=function(){},K=R.Symbol||{},M=x?function(n){Y?new Y(function(n){n()}).then(n):setTimeout(n)}:T.nextTick,N=function(t,r){var e=t.constructor;return e?e[n()]||r:r},Q=function(n){var e,o=this;if(!t(o)||o._s!==g)throw a("Invalid this");if(o._s=S,n!==J){if(!r(n))throw a(q);e=i(n)(v(o,P),v(o,I)),e===G&&w(o,I,e.e)}};Q.default=Q,function(n,t){for(var r in t)n.prototype[r]=t[r]}(Q,{then:function(n,t){if(void 0===this._s)throw a();return _(this,l(N(this,Q)),n,t)},catch:function(n){return this.then(g,n)},finally:function(n){return this.then(function(t){return Q.resolve(n()).then(function(){return t})},function(t){return Q.resolve(n()).then(function(){throw t})})},_pCount:0,_pre:C,_Yaku:1}),Q.resolve=function(n){return h(n)?n:y(l(this),n)},Q.reject=function(n){return w(l(this),I,n)},Q.race=function(n){var t=this,r=l(t),e=function(n){w(r,P,n)},o=function(n){w(r,I,n)},u=i(c)(n,function(n){t.resolve(n).then(e,o)});return u===G?t.reject(u.e):r},Q.all=function(n){function t(n){w(o,I,n)}var r,e=this,o=l(e),u=[];return(r=i(c)(n,function(n,i){e.resolve(n).then(function(n){u[i]=n,--r||w(o,P,u)},t)}))===G?e.reject(r.e):(r||w(o,P,[]),o)},i(function(){Object.defineProperty(Q,n(),{get:function(){return this}})})(),Q._Yaku=1;var U=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=i(p)(e,n._v))===G?void w(t,I,r.e):void y(t,r)}),V=f(9,function(n){d(n)||(n[O]=1,s(D,n))});try{module.exports=Q}catch(n){R.Yaku=Q}}();
!function(){"use strict";function n(){return K[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 u(){try{return k.apply(b,arguments)}catch(n){return G.e=n,G}}function i(n,t){return k=n,b=t,u}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=F(n),o=0;return function(n,t){e[o++]=n,e[o++]=t,2===o&&M(r)}}function c(n,t){var o,u,f,c,s=0;if(!n)throw a(q);var h=n[K[A]];if(r(h))u=h.call(n);else{if(!r(n.next)){if(e(n,F)){for(o=n.length;s<o;)t(n[s],s++);return s}throw a(q)}u=n}for(;!(f=u.next()).done;)if((c=i(t)(f.value,s++))===G)throw r(u[L])&&u[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===D?T.emit(n,t._v,t):T.emit(n,t):e&&e({reason:t._v,promise:t})}function h(n){return n&&n._Yaku}function l(n){if(h(n))return new n(J);var t,e,u;return t=new n(function(n,r){if(t)throw a();e=n,u=r}),o(e,r),o(u,r),t}function v(n,t){var r=!1;return function(e){r||(r=!0,t===P?y(n,e):w(n,t,e))}}function _(n,t,e,o){return r(e)&&(t._onFulfilled=e),r(o)&&(n[O]&&s(B,n),t._onRejected=o),n[n._pCount++]=t,n._s!==S&&U(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===I&&V(n);e<o;)U(n,n[e++]);return n}function y(n,e){if(e===n&&e)return w(n,I,a(z)),n;if(e!==C&&(r(e)||t(e))){var o=i(m)(e);if(o===G)return w(n,I,o.e),n;r(o)?h(e)?j(n,e,o):M(function(){j(n,e,o)}):w(n,P,e)}else w(n,P,e);return n}function m(n){return n.then}function j(n,t,r){var e=i(r,t)(function(r){t&&(t=C,y(n,r))},function(r){t&&(t=C,w(n,I,r))});e===G&&t&&(w(n,I,e.e),t=C)}var g,k,b,C=null,x="object"==typeof window,R=x?window:global,Y=R.Promise,T=R.process,F=Array,I=0,P=1,S=2,A="iterator",E="species",H="Symbol("+E+")",L="return",O="_uh",q="Invalid argument",z="Chaining cycle detected for promise",B="rejectionHandled",D="unhandledRejection",G={e:C},J=function(){},K=R.Symbol||{},M=x?function(n){Y?new Y(function(n){n()}).then(n):setTimeout(n)}:T.nextTick,N=function(t,r){var e=t.constructor;return e?e[n()]||r:r},Q=function(n){var e,o=this;if(!t(o)||o._s!==g)throw a("Invalid this");if(o._s=S,n!==J){if(!r(n))throw a(q);e=i(n)(v(o,P),v(o,I)),e===G&&w(o,I,e.e)}};Q.default=Q,function(n,t){for(var r in t)n.prototype[r]=t[r]}(Q,{then:function(n,t){if(void 0===this._s)throw a();return _(this,l(N(this,Q)),n,t)},catch:function(n){return this.then(g,n)},finally:function(n){return this.then(function(t){return Q.resolve(n()).then(function(){return t})},function(t){return Q.resolve(n()).then(function(){throw t})})},_pCount:0,_pre:C,_Yaku:1}),Q.resolve=function(n){return h(n)?n:y(l(this),n)},Q.reject=function(n){return w(l(this),I,n)},Q.race=function(n){var t=this,r=l(t),e=function(n){w(r,P,n)},o=function(n){w(r,I,n)},u=i(c)(n,function(n){t.resolve(n).then(e,o)});return u===G?t.reject(u.e):r},Q.all=function(n){function t(n){w(o,I,n)}var r,e=this,o=l(e),u=[];return(r=i(c)(n,function(n,i){e.resolve(n).then(function(n){u[i]=n,--r||w(o,P,u)},t)}))===G?e.reject(r.e):(r||w(o,P,[]),o)},i(function(){Object.defineProperty(Q,n(),{get:function(){return this}})})(),Q._Yaku=1;var U=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=i(p)(e,n._v))===G?void w(t,I,r.e):void y(t,r)}),V=f(9,function(n){d(n)||(n[O]=1,s(D,n))});try{module.exports=Q}catch(n){R.Yaku=Q}}();

@@ -1,1 +0,1 @@

!function(){"use strict";function n(){return tn[$][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=P(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&tn.nextTick(e)}}function s(n,t){var o,i,u,f,s=0;if(!n)throw a(M);var l=n[tn[$][q]];if(e(l))i=l.call(n);else{if(!e(n.next)){if(r(n,P)){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];H&&H.listeners(n).length?n===W?H.emit(n,t._v,t):H.emit(n,t):r?r({reason:t._v,promise:t}):tn[n](t._v,t)}function v(n){return n&&n._s}function _(n){if(v(n))return new n(Z);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){L&&(n[K]=l(!0)),t===U?j(n,e):g(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),L&&(t._p=n),n[n._c++]=t,n._s!==Y&&en(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 L&&(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(nn,"")}function y(n,t){return n(t)}function g(n,t,e){var r=0,i=n._c;if(n._s===Y)for(n._s=t,n._v=e,t===O&&(L&&o(e)&&(e.longStack=m(e,n)),rn(n));r<i;)en(n,n[r++]);return n}function j(n,r){if(r===n&&r)return g(n,O,a(Q)),n;if(r!==S&&(e(r)||t(r))){var o=c(k)(r);if(o===X)return g(n,O,o.e),n;e(o)?(L&&v(r)&&(n._next=r),v(r)?x(n,r,o):tn.nextTick(function(){x(n,r,o)})):g(n,U,r)}else g(n,U,r);return n}function k(n){return n.then}function x(n,t,e){var r=c(e,t)(function(e){t&&(t=S,j(n,e))},function(e){t&&(t=S,g(n,O,e))});r===X&&t&&(g(n,O,r.e),t=S)}var b,T,R,S=null,C="object"==typeof window,F=C?window:global,E=F.Promise,H=F.process,I=F.console,L=!1,P=Array,A=Error,O=1,U=2,Y=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},Z=function(){},nn=/^.+\/node_modules\/yaku\/.+\n?/gm,tn=function(n){var r,o=this;if(!t(o)||o._s!==b)throw a("Invalid this");if(o._s=Y,L&&(o[J]=l()),n!==Z){if(!e(n))throw a(M);r=c(n)(d(o,U),d(o,O)),r===X&&g(o,O,r.e)}};tn.default=tn,function(n,t){for(var e in t)n[e]=t[e]}(tn.prototype,{then:function(n,t){if(void 0===this._s)throw a();return p(this,_(tn.speciesConstructor(this,tn)),n,t)},catch:function(n){return this.then(b,n)},finally:function(n){return this.then(function(t){return tn.resolve(n()).then(function(){return t})},function(t){return tn.resolve(n()).then(function(){throw t})})},_c:0,_p:S}),tn.resolve=function(n){return v(n)?n:j(_(this),n)},tn.reject=function(n){return g(_(this),O,n)},tn.race=function(n){var t=this,e=_(t),r=function(n){g(e,U,n)},o=function(n){g(e,O,n)},i=c(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){g(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||g(o,U,i)},t)}))===X?r.reject(e.e):(e||g(o,U,[]),o)},tn.Symbol=F[$]||{},c(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){I&&I.error("Uncaught (in promise)",L?t.longStack:m(n,t))},tn.rejectionHandled=Z,tn.enableLongStackTrace=function(){L=!0},tn.nextTick=C?function(n){E?new E(function(n){n()}).then(n):setTimeout(n)}:H.nextTick,tn._s=1;var en=f(999,function(n,t){var e,r;return(r=n._s!==O?t._onFulfilled:t._onRejected)===b?void g(t,n._s,n._v):(e=c(y)(r,n._v))===X?void g(t,O,e.e):void j(t,e)}),rn=f(9,function(n){w(n)||(n[G]=1,h(W,n))});try{module.exports=tn}catch(n){F.Yaku=tn}}();
!function(){"use strict";function n(){return tn[$][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=P(n),o=0;return function(n,t){r[o++]=n,r[o++]=t,2===o&&tn.nextTick(e)}}function s(n,t){var o,i,u,f,s=0;if(!n)throw a(M);var l=n[tn[$][q]];if(e(l))i=l.call(n);else{if(!e(n.next)){if(r(n,P)){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];H&&H.listeners(n).length?n===W?H.emit(n,t._v,t):H.emit(n,t):r?r({reason:t._v,promise:t}):tn[n](t._v,t)}function v(n){return n&&n._s}function _(n){if(v(n))return new n(Z);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){var e=!1;return function(r){e||(e=!0,L&&(n[K]=l(!0)),t===U?j(n,r):g(n,t,r))}}function p(n,t,r,o){return e(r)&&(t._onFulfilled=r),e(o)&&(n[G]&&h(V,n),t._onRejected=o),L&&(t._p=n),n[n._c++]=t,n._s!==Y&&en(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 L&&(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(nn,"")}function y(n,t){return n(t)}function g(n,t,e){var r=0,i=n._c;if(n._s===Y)for(n._s=t,n._v=e,t===O&&(L&&o(e)&&(e.longStack=m(e,n)),rn(n));r<i;)en(n,n[r++]);return n}function j(n,r){if(r===n&&r)return g(n,O,a(Q)),n;if(r!==S&&(e(r)||t(r))){var o=c(k)(r);if(o===X)return g(n,O,o.e),n;e(o)?(L&&v(r)&&(n._next=r),v(r)?x(n,r,o):tn.nextTick(function(){x(n,r,o)})):g(n,U,r)}else g(n,U,r);return n}function k(n){return n.then}function x(n,t,e){var r=c(e,t)(function(e){t&&(t=S,j(n,e))},function(e){t&&(t=S,g(n,O,e))});r===X&&t&&(g(n,O,r.e),t=S)}var b,T,R,S=null,C="object"==typeof window,F=C?window:global,E=F.Promise,H=F.process,I=F.console,L=!1,P=Array,A=Error,O=1,U=2,Y=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},Z=function(){},nn=/^.+\/node_modules\/yaku\/.+\n?/gm,tn=function(n){var r,o=this;if(!t(o)||o._s!==b)throw a("Invalid this");if(o._s=Y,L&&(o[J]=l()),n!==Z){if(!e(n))throw a(M);r=c(n)(d(o,U),d(o,O)),r===X&&g(o,O,r.e)}};tn.default=tn,function(n,t){for(var e in t)n[e]=t[e]}(tn.prototype,{then:function(n,t){if(void 0===this._s)throw a();return p(this,_(tn.speciesConstructor(this,tn)),n,t)},catch:function(n){return this.then(b,n)},finally:function(n){return this.then(function(t){return tn.resolve(n()).then(function(){return t})},function(t){return tn.resolve(n()).then(function(){throw t})})},_c:0,_p:S}),tn.resolve=function(n){return v(n)?n:j(_(this),n)},tn.reject=function(n){return g(_(this),O,n)},tn.race=function(n){var t=this,e=_(t),r=function(n){g(e,U,n)},o=function(n){g(e,O,n)},i=c(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){g(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||g(o,U,i)},t)}))===X?r.reject(e.e):(e||g(o,U,[]),o)},tn.Symbol=F[$]||{},c(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){I&&I.error("Uncaught (in promise)",L?t.longStack:m(n,t))},tn.rejectionHandled=Z,tn.enableLongStackTrace=function(){L=!0},tn.nextTick=C?function(n){E?new E(function(n){n()}).then(n):setTimeout(n)}:H.nextTick,tn._s=1;var en=f(999,function(n,t){var e,r;return(r=n._s!==O?t._onFulfilled:t._onRejected)===b?void g(t,n._s,n._v):(e=c(y)(r,n._v))===X?void g(t,O,e.e):void j(t,e)}),rn=f(9,function(n){w(n)||(n[G]=1,h(W,n))});try{module.exports=tn}catch(n){F.Yaku=tn}}();
var _ = require("./_");
function noop () {}
module.exports = function () {
return new _.Promise(function () {});
return new _.Promise(noop);
};

@@ -553,3 +553,7 @@ /**

function genSettler (self, state) {
var isCalled = false;
return function (value) {
if (isCalled) return;
isCalled = true;
if (state === $resolved)

@@ -556,0 +560,0 @@ settleWithX(self, value);

/*
Yaku v0.18.4
Yaku v0.18.5
(c) 2015 Yad Smood. http://ysmood.org

@@ -667,3 +667,7 @@ License MIT

function genSettler (self, state) {
var isCalled = false;
return function (value) {
if (isCalled) return;
isCalled = true;
if (isLongStackTrace)

@@ -670,0 +674,0 @@ self[$settlerTrace] = genTraceInfo(true);

{
"name": "yaku",
"version": "0.18.4",
"version": "0.18.5",
"description": "A lightweight promise library",

@@ -5,0 +5,0 @@ "main": "lib/yaku.js",

@@ -23,3 +23,3 @@ <a href="http://promisesaplus.com/">

- One of the best for mobile, gzipped file is only 1.9KB
- One of the best for mobile, gzipped file is only 2.0KB
- Supports "uncaught rejection" and "long stack trace", [Comparison][docs/debugHelperComparison.md]

@@ -166,3 +166,3 @@ - Works on IE5+ and other major browsers

- #### require('yaku/lib/utils')
- #### require('yaku/lib/utils') or any of them like require('yaku/lib/retry')
- [all(limit, list)](#alllimit-list)

@@ -169,0 +169,0 @@ - [any(iterable)](#anyiterable)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc