diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2016-07-06 12:11:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-06 12:11:30 -0400 |
commit | 4a47e5d3e17220982eae226e29980a49f64c02c2 (patch) | |
tree | 898f35dd696d16b17764f91a39a85351e140d87b | |
parent | 37eca1e634b061043083b802aaecd9a0127c0436 (diff) | |
parent | 48e0b01876669e086b450c95af3a95f1c472a46b (diff) | |
download | async-4a47e5d3e17220982eae226e29980a49f64c02c2.tar.gz |
Merge pull request #1218 from ex1st/master
Prevent arguments leak (compose)
-rw-r--r-- | dist/async.js | 8 | ||||
-rw-r--r-- | dist/async.min.js | 2 | ||||
-rw-r--r-- | dist/async.min.map | 2 | ||||
-rw-r--r-- | lib/compose.js | 9 |
4 files changed, 9 insertions, 12 deletions
diff --git a/dist/async.js b/dist/async.js index b964a50..a7d903b 100644 --- a/dist/async.js +++ b/dist/async.js @@ -2404,8 +2404,6 @@ }); }); - var reverse = Array.prototype.reverse; - /** * Creates a function which is a composition of the passed asynchronous * functions. Each function consumes the return value of the function that @@ -2441,9 +2439,9 @@ * // result now equals 15 * }); */ - function compose() /* functions... */{ - return seq.apply(null, reverse.call(arguments)); - } + var compose = rest(function (args) { + return seq.apply(null, args.reverse()); + }); function concat$1(eachfn, arr, fn, callback) { var result = []; diff --git a/dist/async.min.js b/dist/async.min.js index f840eb0..9131ea5 100644 --- a/dist/async.min.js +++ b/dist/async.min.js @@ -1,2 +1,2 @@ -!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.async=n.async||{})}(this,function(n){"use strict";function t(n,t,e){var r=e.length;switch(r){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function e(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function r(n){var t=e(n)?ut.call(n):"";return t==tt||t==et}function u(n){return!!n&&"object"==typeof n}function i(n){return"symbol"==typeof n||u(n)&&ct.call(n)==it}function o(n){if("number"==typeof n)return n;if(i(n))return at;if(e(n)){var t=r(n.valueOf)?n.valueOf():n;n=e(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(ft,"");var u=st.test(n);return u||pt.test(n)?ht(n.slice(2),u?2:8):lt.test(n)?at:+n}function c(n){if(!n)return 0===n?n:0;if(n=o(n),n===yt||n===-yt){var t=0>n?-1:1;return t*vt}return n===n?n:0}function a(n){var t=c(n),e=t%1;return t===t?e?t-e:t:0}function f(n,e){if("function"!=typeof n)throw new TypeError(mt);return e=dt(void 0===e?n.length-1:a(e),0),function(){for(var r=arguments,u=-1,i=dt(r.length-e,0),o=Array(i);++u<i;)o[u]=r[e+u];switch(e){case 0:return n.call(this,o);case 1:return n.call(this,r[0],o);case 2:return n.call(this,r[0],r[1],o)}var c=Array(e+1);for(u=-1;++u<e;)c[u]=r[u];return c[e]=o,t(n,this,c)}}function l(n){return f(function(t){var e=t.pop();n.call(this,t,e)})}function s(n){return f(function(t,e){var r=l(function(e,r){var u=this;return n(t,function(n,t){n.apply(u,e.concat([t]))},r)});return e.length?r.apply(this,e):r})}function p(){}function h(n){return function(){if(null!==n){var t=n;n=null,t.apply(this,arguments)}}}function y(n){return function(t){return null==t?void 0:t[n]}}function v(n){return"number"==typeof n&&n>-1&&n%1==0&&bt>=n}function m(n){return null!=n&&v(gt(n))&&!r(n)}function d(n){return St&&n[St]&&n[St]()}function g(n){return jt(Object(n))}function b(n,t){return null!=n&&(wt.call(n,t)||"object"==typeof n&&t in n&&null===g(n))}function S(n){return xt(Object(n))}function j(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}function k(n){return u(n)&&m(n)}function w(n){return k(n)&&Ot.call(n,"callee")&&(!_t.call(n,"callee")||At.call(n)==Et)}function x(n){return"string"==typeof n||!It(n)&&u(n)&&$t.call(n)==Tt}function E(n){var t=n?n.length:void 0;return v(t)&&(It(n)||x(n)||w(n))?j(t,String):null}function L(n,t){return t=null==t?zt:t,!!t&&("number"==typeof n||Bt.test(n))&&n>-1&&n%1==0&&t>n}function O(n){var t=n&&n.constructor,e="function"==typeof t&&t.prototype||Mt;return n===e}function A(n){var t=O(n);if(!t&&!m(n))return S(n);var e=E(n),r=!!e,u=e||[],i=u.length;for(var o in n)!b(n,o)||r&&("length"==o||L(o,i))||t&&"constructor"==o||u.push(o);return u}function _(n){var t,e=-1;if(m(n))return t=n.length,function(){return e++,t>e?{value:n[e],key:e}:null};var r=d(n);if(r)return function(){var n=r.next();return n.done?null:(e++,{value:n.value,key:e})};var u=A(n);return t=u.length,function(){e++;var r=u[e];return t>e?{value:n[r],key:r}:null}}function I(n){return function(){if(null===n)throw new Error("Callback was already called.");var t=n;n=null,t.apply(this,arguments)}}function T(n){return function(t,e,r){r=h(r||p),t=t||[];var u=_(t);if(0>=n)return r(null);var i=!1,o=0,c=!1;!function a(){if(i&&0>=o)return r(null);for(;n>o&&!c;){var t=u();if(null===t)return i=!0,void(0>=o&&r(null));o+=1,e(t.value,t.key,I(function(n){o-=1,n?(r(n),c=!0):a()}))}}()}}function F(n){return function(t,e,r,u){return n(T(e),t,r,u)}}function $(n,t,e,r){r=h(r||p),t=t||[];var u=[],i=0;n(t,function(n,t,r){var o=i++;e(n,function(n,t){u[o]=t,r(n)})},function(n){r(n,u)})}function z(n,t){return function(e,r,u){return n(e,t,r,u)}}function B(n){return l(function(t,r){var u;try{u=n.apply(this,t)}catch(i){return r(i)}e(u)&&"function"==typeof u.then?u.then(function(n){r(null,n)},function(n){r(n.message?n:new Error(n))}):r(null,u)})}function M(n,t){for(var e=-1,r=n?n.length:0;++e<r&&t(n[e],e,n)!==!1;);return n}function V(n){return function(t,e,r){for(var u=-1,i=Object(t),o=r(t),c=o.length;c--;){var a=o[n?c:++u];if(e(i[a],a,i)===!1)break}return t}}function q(n,t){return n&&Ut(n,t,A)}function C(n,t,e){for(var r=n.length,u=t+(e?1:-1);e?u--:++u<r;){var i=n[u];if(i!==i)return u}return-1}function D(n,t,e){if(t!==t)return C(n,e);for(var r=e-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function P(n,t,e){function r(n,t){b.push(function(){c(n,t)})}function u(){if(0===b.length&&0===m)return e(null,v);for(;b.length&&t>m;){var n=b.shift();n()}}function i(n,t){var e=g[n];e||(e=g[n]=[]),e.push(t)}function o(n){var t=g[n]||[];M(t,function(n){n()}),u()}function c(n,t){if(!d){var r=I(f(function(t,r){if(m--,r.length<=1&&(r=r[0]),t){var u={};q(v,function(n,t){u[t]=n}),u[n]=r,d=!0,g=[],e(t,u)}else v[n]=r,o(n)}));m++;var u=t[t.length-1];t.length>1?u(v,r):u(r)}}function a(){for(var n,t=0;S.length;)n=S.pop(),t++,M(l(n),function(n){--j[n]||S.push(n)});if(t!==y)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function l(t){var e=[];return q(n,function(n,r){It(n)&&D(n,t,0)>=0&&e.push(r)}),e}"function"==typeof t&&(e=t,t=null),e=h(e||p);var s=A(n),y=s.length;if(!y)return e(null);t||(t=y);var v={},m=0,d=!1,g={},b=[],S=[],j={};q(n,function(t,e){if(!It(t))return r(e,[t]),void S.push(e);var u=t.slice(0,t.length-1),o=u.length;return 0===o?(r(e,t),void S.push(e)):(j[e]=o,void M(u,function(c){if(!n[c])throw new Error("async.auto task `"+e+"` has a non-existent dependency in "+u.join(", "));i(c,function(){o--,0===o&&r(e,t)})}))}),a(),u()}function R(n,t){for(var e=-1,r=n?n.length:0,u=Array(r);++e<r;)u[e]=t(n[e],e,n);return u}function U(n,t){var e=-1,r=n.length;for(t||(t=Array(r));++e<r;)t[e]=n[e];return t}function N(n){return n&&n.Object===Object?n:null}function Q(n){if("string"==typeof n)return n;if(i(n))return Xt?Xt.call(n):"";var t=n+"";return"0"==t&&1/n==-Jt?"-0":t}function W(n,t,e){var r=-1,u=n.length;0>t&&(t=-t>u?0:u+t),e=e>u?u:e,0>e&&(e+=u),u=t>e?0:e-t>>>0,t>>>=0;for(var i=Array(u);++r<u;)i[r]=n[r+t];return i}function G(n,t,e){var r=n.length;return e=void 0===e?r:e,!t&&e>=r?n:W(n,t,e)}function H(n,t){for(var e=n.length;e--&&D(t,n[e],0)>-1;);return e}function J(n,t){for(var e=-1,r=n.length;++e<r&&D(t,n[e],0)>-1;);return e}function K(n){return n.match(ve)}function X(n){return null==n?"":Q(n)}function Y(n,t,e){if(n=X(n),n&&(e||void 0===t))return n.replace(me,"");if(!n||!(t=Q(t)))return n;var r=K(n),u=K(t),i=J(r,u),o=H(r,u)+1;return G(r,i,o).join("")}function Z(n){return n=n.toString().replace(Se,""),n=n.match(de)[2].replace(" ",""),n=n?n.split(ge):[],n=n.map(function(n){return Y(n.replace(be,""))})}function nn(n,t){var e={};q(n,function(n,t){function r(t,e){var r=R(u,function(n){return t[n]});r.push(e),n.apply(null,r)}var u;if(It(n))u=U(n),n=u.pop(),e[t]=u.concat(u.length>0?r:n);else if(1===n.length)e[t]=n;else{if(u=Z(n),0===n.length&&0===u.length)throw new Error("autoInject task functions require explicit parameters.");u.pop(),e[t]=u.concat(r)}}),P(e,t)}function tn(n){setTimeout(n,0)}function en(n){return f(function(t,e){n(function(){t.apply(null,e)})})}function rn(){this.head=this.tail=null,this.length=0}function un(n,t){n.length=1,n.head=n.tail=t}function on(n,t,e){function r(n,t,e){if(null!=e&&"function"!=typeof e)throw new Error("task callback must be a function");return c.started=!0,It(n)||(n=[n]),0===n.length&&c.idle()?we(function(){c.drain()}):(M(n,function(n){var r={data:n,callback:e||p};t?c._tasks.unshift(r):c._tasks.push(r)}),void we(c.process))}function u(n){return function(){i-=1;var t=!1,e=arguments;M(n,function(n){M(o,function(e,r){e!==n||t||(o.splice(r,1),t=!0)}),n.callback.apply(n,e),null!=e[0]&&c.error(e[0],n.data)}),i<=c.concurrency-c.buffer&&c.unsaturated(),c._tasks.length+i===0&&c.drain(),c.process()}}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var i=0,o=[],c={_tasks:new rn,concurrency:t,payload:e,saturated:p,unsaturated:p,buffer:t/4,empty:p,drain:p,error:p,started:!1,paused:!1,push:function(n,t){r(n,!1,t)},kill:function(){c.drain=p,c._tasks.empty()},unshift:function(n,t){r(n,!0,t)},process:function(){for(;!c.paused&&i<c.concurrency&&c._tasks.length;){var t=[],e=[],r=c._tasks.length;c.payload&&(r=Math.min(r,c.payload));for(var a=0;r>a;a++){var f=c._tasks.shift();t.push(f),e.push(f.data)}0===c._tasks.length&&c.empty(),i+=1,o.push(t[0]),i===c.concurrency&&c.saturated();var l=I(u(t));n(e,l)}},length:function(){return c._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return c._tasks.length+i===0},pause:function(){c.paused=!0},resume:function(){if(c.paused!==!1){c.paused=!1;for(var n=Math.min(c.concurrency,c._tasks.length),t=1;n>=t;t++)we(c.process)}}};return c}function cn(n,t){return on(n,1,t)}function an(n,t,e,r){T(t)(n,e,r)}function fn(n,t,e,r){Ee(n,function(n,r,u){e(t,n,function(n,e){t=e,u(n)})},function(n){r(n,t)})}function ln(){return Le.apply(null,Oe.call(arguments))}function sn(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(n,t){u=u.concat(t||[]),r(n)})},function(n){r(n,u)})}function pn(n){return function(t,e,r){return n(Ae,t,e,r)}}function hn(n){return function(t,e,r){return n(Ee,t,e,r)}}function yn(n){return n}function vn(n,t,e){return function(r,u,i,o){function c(n){o&&(n?o(n):o(null,e(!1)))}function a(n,r,u){return o?void i(n,function(r,c){o&&(r?(o(r),o=i=!1):t(c)&&(o(null,e(!0,n)),o=i=!1)),u()}):u()}arguments.length>3?(o=o||p,n(r,u,a,c)):(o=i,o=o||p,i=u,n(r,a,c))}}function mn(n,t){return t}function dn(n){return f(function(t,e){t.apply(null,e.concat([f(function(t,e){"object"==typeof console&&(t?console.error&&console.error(t):console[n]&&M(e,function(t){console[n](t)}))})]))})}function gn(n,t,e){e=e||p;var r=f(function(t,r){t?e(t):(r.push(u),n.apply(this,r))}),u=function(n,u){return n?e(n):u?void t(r):e(null)};n(u)}function bn(n,t,e){var r=0;gn(function(n){return r++<1?n(null,!0):void t.apply(this,arguments)},n,e)}function Sn(n,t,e){if(e=e||p,!n())return e(null);var r=f(function(u,i){return u?e(u):n.apply(this,i)?t(r):void e.apply(null,[null].concat(i))});t(r)}function jn(n,t,e){var r=0;Sn(function(){return++r<=1||t.apply(this,arguments)},n,e)}function kn(n,t,e){jn(n,function(){return!t.apply(this,arguments)},e)}function wn(n){return function(t,e,r){return n(t,r)}}function xn(n,t,e,r){T(t)(n,wn(e),r)}function En(n){return l(function(t,e){var r=!0;t.push(function(){var n=arguments;r?we(function(){e.apply(null,n)}):e.apply(null,n)}),n.apply(this,t),r=!1})}function Ln(n){return!n}function On(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(e,i){e?r(e):(i&&u.push({index:t,value:n}),r())})},function(n){n?r(n):r(null,R(u.sort(function(n,t){return n.index-t.index}),y("value")))})}function An(n,t){function e(n){return n?r(n):void u(e)}var r=I(t||p),u=En(n);e()}function _n(n){function t(e){function r(){return n.length&&n[e].apply(null,arguments),r.next()}return r.next=function(){return e<n.length-1?t(e+1):null},r}return t(0)}function In(n,t,e,r){var u={};an(n,t,function(n,t,r){e(n,t,function(n,e){return n?r(n):(u[t]=e,void r())})},function(n){r(n,u)})}function Tn(n,t){return t in n}function Fn(n,t){var e=Object.create(null),r=Object.create(null);t=t||yn;var u=l(function(u,i){var o=t.apply(null,u);Tn(e,o)?we(function(){i.apply(null,e[o])}):Tn(r,o)?r[o].push(i):(r[o]=[i],n.apply(null,u.concat([f(function(n){e[o]=n;var t=r[o];delete r[o];for(var u=0,i=t.length;i>u;u++)t[u].apply(null,n)})])))});return u.memo=e,u.unmemoized=n,u}function $n(n,t,e){e=e||p;var r=m(t)?[]:{};n(t,function(n,t,e){n(f(function(n,u){u.length<=1&&(u=u[0]),r[t]=u,e(n)}))},function(n){e(n,r)})}function zn(n,t,e){$n(T(t),n,e)}function Bn(n,t){return on(function(t,e){n(t[0],e)},t,1)}function Mn(n,t){var e=Bn(n,t);return e.push=function(n,t,r){if(null==r&&(r=p),"function"!=typeof r)throw new Error("task callback must be a function");if(e.started=!0,It(n)||(n=[n]),0===n.length)return we(function(){e.drain()});for(var u=e._tasks.head;u&&t>=u.priority;)u=u.next;M(n,function(n){var i={data:n,priority:t,callback:r};u?e._tasks.insertBefore(u,i):e._tasks.push(i)}),we(e.process)},delete e.unshift,e}function Vn(n,t){return t=h(t||p),It(n)?n.length?void M(n,function(n){n(t)}):t():t(new TypeError("First argument to race must be an array of functions"))}function qn(n,t,e,r){var u=Je.call(n).reverse();fn(u,t,e,r)}function Cn(n){return l(function(t,e){return t.push(f(function(n,t){if(n)e(null,{error:n});else{var r=null;1===t.length?r=t[0]:t.length>1&&(r=t),e(null,{value:r})}})),n.apply(this,t)})}function Dn(n,t,e,r){On(n,t,function(n,t){e(n,function(n,e){n?t(n):t(null,!e)})},r)}function Pn(n){var t;return It(n)?t=R(n,Cn):(t={},q(n,function(n,e){t[e]=Cn.call(this,n)})),t}function Rn(n,t){$n(Ee,n,t)}function Un(n){return function(){return n}}function Nn(n,t,e){function r(n,t){if("object"==typeof t)n.times=+t.times||o,n.intervalFunc="function"==typeof t.interval?t.interval:Un(+t.interval||c);else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");n.times=+t||o}}function u(n){return function(e){t(function(t,r){e(!t||n,{err:t,result:r})})}}function i(n){return function(t){setTimeout(function(){t(null)},n)}}var o=5,c=0,a={times:o,intervalFunc:Un(c)};if(arguments.length<3&&"function"==typeof n?(e=t||p,t=n):(r(a,n),e=e||p),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");for(var f=[],l=1;l<a.times+1;l++){var s=l==a.times;f.push(u(s));var h=a.intervalFunc(l);!s&&h>0&&f.push(i(h))}Rn(f,function(n,t){t=t[t.length-1],e(t.err,t.result)})}function Qn(n,t){return t||(t=n,n=null),l(function(e,r){function u(n){t.apply(null,e.concat([n]))}n?Nn(n,u,r):Nn(u,r)})}function Wn(n,t,e){function r(n,t){var e=n.criteria,r=t.criteria;return r>e?-1:e>r?1:0}qt(n,function(n,e){t(n,function(t,r){return t?e(t):void e(null,{value:n,criteria:r})})},function(n,t){return n?e(n):void e(null,R(t.sort(r),y("value")))})}function Gn(n,t,e){function r(){c||(i.apply(null,arguments),clearTimeout(o))}function u(){var t=n.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",e&&(r.info=e),c=!0,i(r)}var i,o,c=!1;return l(function(e,c){i=c,o=setTimeout(u,t),n.apply(null,e.concat(r))})}function Hn(n,t,e,r){for(var u=-1,i=rr(er((t-n)/(e||1)),0),o=Array(i);i--;)o[r?i:++u]=n,n+=e;return o}function Jn(n,t,e,r){Vt(Hn(0,n,1),t,e,r)}function Kn(n,t,e,r){3===arguments.length&&(r=e,e=t,t=It(n)?[]:{}),Ae(n,function(n,r,u){e(t,n,r,u)},function(n){r(n,t)})}function Xn(n){return function(){return(n.unmemoized||n).apply(null,arguments)}}function Yn(n,t,e){Sn(function(){return!n.apply(this,arguments)},t,e)}function Zn(n,t){function e(u){if(r===n.length)return t.apply(null,[null].concat(u));var i=I(f(function(n,r){return n?t.apply(null,[n].concat(r)):void e(r)}));u.push(i);var o=n[r++];o.apply(null,u)}if(t=h(t||p),!It(n))return t(new Error("First argument to waterfall must be an array of functions"));if(!n.length)return t();var r=0;e([])}var nt,tt="[object Function]",et="[object GeneratorFunction]",rt=Object.prototype,ut=rt.toString,it="[object Symbol]",ot=Object.prototype,ct=ot.toString,at=NaN,ft=/^\s+|\s+$/g,lt=/^[-+]0x[0-9a-f]+$/i,st=/^0b[01]+$/i,pt=/^0o[0-7]+$/i,ht=parseInt,yt=1/0,vt=1.7976931348623157e308,mt="Expected a function",dt=Math.max,gt=y("length"),bt=9007199254740991,St="function"==typeof Symbol&&Symbol.iterator,jt=Object.getPrototypeOf,kt=Object.prototype,wt=kt.hasOwnProperty,xt=Object.keys,Et="[object Arguments]",Lt=Object.prototype,Ot=Lt.hasOwnProperty,At=Lt.toString,_t=Lt.propertyIsEnumerable,It=Array.isArray,Tt="[object String]",Ft=Object.prototype,$t=Ft.toString,zt=9007199254740991,Bt=/^(?:0|[1-9]\d*)$/,Mt=Object.prototype,Vt=F($),qt=z(Vt,1/0),Ct=s(qt),Dt=z(Vt,1),Pt=s(Dt),Rt=f(function(n,t){return f(function(e){return n.apply(null,t.concat(e))})}),Ut=V(),Nt=N("object"==typeof global&&global),Qt=N("object"==typeof self&&self),Wt=N("object"==typeof this&&this),Gt=Nt||Qt||Wt||Function("return this")(),Ht=Gt.Symbol,Jt=1/0,Kt=Ht?Ht.prototype:void 0,Xt=Kt?Kt.toString:void 0,Yt="\\ud800-\\udfff",Zt="\\u0300-\\u036f\\ufe20-\\ufe23",ne="\\u20d0-\\u20f0",te="\\ufe0e\\ufe0f",ee="["+Yt+"]",re="["+Zt+ne+"]",ue="\\ud83c[\\udffb-\\udfff]",ie="(?:"+re+"|"+ue+")",oe="[^"+Yt+"]",ce="(?:\\ud83c[\\udde6-\\uddff]){2}",ae="[\\ud800-\\udbff][\\udc00-\\udfff]",fe="\\u200d",le=ie+"?",se="["+te+"]?",pe="(?:"+fe+"(?:"+[oe,ce,ae].join("|")+")"+se+le+")*",he=se+le+pe,ye="(?:"+[oe+re+"?",re,ce,ae,ee].join("|")+")",ve=RegExp(ue+"(?="+ue+")|"+ye+he,"g"),me=/^\s+|\s+$/g,de=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ge=/,/,be=/(=.+)?(\s*)$/,Se=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,je="function"==typeof setImmediate&&setImmediate,ke="object"==typeof process&&"function"==typeof process.nextTick;nt=je?setImmediate:ke?process.nextTick:tn;var we=en(nt);rn.prototype.removeLink=function(n){return n.prev?n.prev.next=n.next:this.head=n.next,n.next?n.next.prev=n.prev:this.tail=n.prev,n.prev=n.next=null,this.length-=1,n},rn.prototype.empty=rn,rn.prototype.insertAfter=function(n,t){t.prev=n,t.next=n.next,n.next?n.next.prev=t:this.tail=t,n.next=t,this.length+=1},rn.prototype.insertBefore=function(n,t){t.prev=n.prev,t.next=n,n.prev?n.prev.next=t:this.head=t,n.prev=t,this.length+=1},rn.prototype.unshift=function(n){this.head?this.insertBefore(this.head,n):un(this,n)},rn.prototype.push=function(n){this.tail?this.insertAfter(this.tail,n):un(this,n)},rn.prototype.shift=function(){return this.head&&this.removeLink(this.head)},rn.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};var xe,Ee=z(an,1),Le=f(function(n){return f(function(t){var e=this,r=t[t.length-1];"function"==typeof r?t.pop():r=p,fn(n,t,function(n,t,r){t.apply(e,n.concat([f(function(n,t){r(n,t)})]))},function(n,t){r.apply(e,[n].concat(t))})})}),Oe=Array.prototype.reverse,Ae=z(an,1/0),_e=pn(sn),Ie=hn(sn),Te=f(function(n){var t=[null].concat(n);return l(function(n,e){return e.apply(this,t)})}),Fe=vn(Ae,yn,mn),$e=vn(an,yn,mn),ze=vn(Ee,yn,mn),Be=dn("dir"),Me=z(xn,1/0),Ve=z(xn,1),qe=vn(an,Ln,Ln),Ce=z(qe,1/0),De=z(qe,1),Pe=F(On),Re=z(Pe,1/0),Ue=z(Pe,1),Ne=dn("log"),Qe=z(In,1/0),We=z(In,1);xe=ke?process.nextTick:je?setImmediate:tn;var Ge=en(xe),He=z(zn,1/0),Je=Array.prototype.slice,Ke=F(Dn),Xe=z(Ke,1/0),Ye=z(Ke,1),Ze=vn(an,Boolean,yn),nr=z(Ze,1/0),tr=z(Ze,1),er=Math.ceil,rr=Math.max,ur=z(Jn,1/0),ir=z(Jn,1),or={applyEach:Ct,applyEachSeries:Pt,apply:Rt,asyncify:B,auto:P,autoInject:nn,cargo:cn,compose:ln,concat:_e,concatSeries:Ie,constant:Te,detect:Fe,detectLimit:$e,detectSeries:ze,dir:Be,doDuring:bn,doUntil:kn,doWhilst:jn,during:gn,each:Me,eachLimit:xn,eachOf:Ae,eachOfLimit:an,eachOfSeries:Ee,eachSeries:Ve,ensureAsync:En,every:Ce,everyLimit:qe,everySeries:De,filter:Re,filterLimit:Pe,filterSeries:Ue,forever:An,iterator:_n,log:Ne,map:qt,mapLimit:Vt,mapSeries:Dt,mapValues:Qe,mapValuesLimit:In,mapValuesSeries:We,memoize:Fn,nextTick:Ge,parallel:He,parallelLimit:zn,priorityQueue:Mn,queue:Bn,race:Vn,reduce:fn,reduceRight:qn,reflect:Cn,reflectAll:Pn,reject:Xe,rejectLimit:Ke,rejectSeries:Ye,retry:Nn,retryable:Qn,seq:Le,series:Rn,setImmediate:we,some:nr,someLimit:Ze,someSeries:tr,sortBy:Wn,timeout:Gn,times:ur,timesLimit:Jn,timesSeries:ir,transform:Kn,unmemoize:Xn,until:Yn,waterfall:Zn,whilst:Sn,all:Ce,any:nr,forEach:Me,forEachSeries:Ve,forEachLimit:xn,forEachOf:Ae,forEachOfSeries:Ee,forEachOfLimit:an,inject:fn,foldl:fn,foldr:qn,select:Re,selectLimit:Pe,selectSeries:Ue,wrapSync:B};n["default"]=or,n.applyEach=Ct,n.applyEachSeries=Pt,n.apply=Rt,n.asyncify=B,n.auto=P,n.autoInject=nn,n.cargo=cn,n.compose=ln,n.concat=_e,n.concatSeries=Ie,n.constant=Te,n.detect=Fe,n.detectLimit=$e,n.detectSeries=ze,n.dir=Be,n.doDuring=bn,n.doUntil=kn,n.doWhilst=jn,n.during=gn,n.each=Me,n.eachLimit=xn,n.eachOf=Ae,n.eachOfLimit=an,n.eachOfSeries=Ee,n.eachSeries=Ve,n.ensureAsync=En,n.every=Ce,n.everyLimit=qe,n.everySeries=De,n.filter=Re,n.filterLimit=Pe,n.filterSeries=Ue,n.forever=An,n.iterator=_n,n.log=Ne,n.map=qt,n.mapLimit=Vt,n.mapSeries=Dt,n.mapValues=Qe,n.mapValuesLimit=In,n.mapValuesSeries=We,n.memoize=Fn,n.nextTick=Ge,n.parallel=He,n.parallelLimit=zn,n.priorityQueue=Mn,n.queue=Bn,n.race=Vn,n.reduce=fn,n.reduceRight=qn,n.reflect=Cn,n.reflectAll=Pn,n.reject=Xe,n.rejectLimit=Ke,n.rejectSeries=Ye,n.retry=Nn,n.retryable=Qn,n.seq=Le,n.series=Rn,n.setImmediate=we,n.some=nr,n.someLimit=Ze,n.someSeries=tr,n.sortBy=Wn,n.timeout=Gn,n.times=ur,n.timesLimit=Jn,n.timesSeries=ir,n.transform=Kn,n.unmemoize=Xn,n.until=Yn,n.waterfall=Zn,n.whilst=Sn,n.all=Ce,n.allLimit=qe,n.allSeries=De,n.any=nr,n.anyLimit=Ze,n.anySeries=tr,n.find=Fe,n.findLimit=$e,n.findSeries=ze,n.forEach=Me,n.forEachSeries=Ve,n.forEachLimit=xn,n.forEachOf=Ae,n.forEachOfSeries=Ee,n.forEachOfLimit=an,n.inject=fn,n.foldl=fn,n.foldr=qn,n.select=Re,n.selectLimit=Pe,n.selectSeries=Ue,n.wrapSync=B}); +!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.async=n.async||{})}(this,function(n){"use strict";function t(n,t,e){var r=e.length;switch(r){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function e(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function r(n){var t=e(n)?rt.call(n):"";return t==nt||t==tt}function u(n){return!!n&&"object"==typeof n}function i(n){return"symbol"==typeof n||u(n)&&ot.call(n)==ut}function o(n){if("number"==typeof n)return n;if(i(n))return ct;if(e(n)){var t=r(n.valueOf)?n.valueOf():n;n=e(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(at,"");var u=lt.test(n);return u||st.test(n)?pt(n.slice(2),u?2:8):ft.test(n)?ct:+n}function c(n){if(!n)return 0===n?n:0;if(n=o(n),n===ht||n===-ht){var t=0>n?-1:1;return t*yt}return n===n?n:0}function a(n){var t=c(n),e=t%1;return t===t?e?t-e:t:0}function f(n,e){if("function"!=typeof n)throw new TypeError(vt);return e=mt(void 0===e?n.length-1:a(e),0),function(){for(var r=arguments,u=-1,i=mt(r.length-e,0),o=Array(i);++u<i;)o[u]=r[e+u];switch(e){case 0:return n.call(this,o);case 1:return n.call(this,r[0],o);case 2:return n.call(this,r[0],r[1],o)}var c=Array(e+1);for(u=-1;++u<e;)c[u]=r[u];return c[e]=o,t(n,this,c)}}function l(n){return f(function(t){var e=t.pop();n.call(this,t,e)})}function s(n){return f(function(t,e){var r=l(function(e,r){var u=this;return n(t,function(n,t){n.apply(u,e.concat([t]))},r)});return e.length?r.apply(this,e):r})}function p(){}function h(n){return function(){if(null!==n){var t=n;n=null,t.apply(this,arguments)}}}function y(n){return function(t){return null==t?void 0:t[n]}}function v(n){return"number"==typeof n&&n>-1&&n%1==0&>>=n}function m(n){return null!=n&&v(dt(n))&&!r(n)}function d(n){return bt&&n[bt]&&n[bt]()}function g(n){return St(Object(n))}function b(n,t){return null!=n&&(kt.call(n,t)||"object"==typeof n&&t in n&&null===g(n))}function S(n){return wt(Object(n))}function j(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}function k(n){return u(n)&&m(n)}function w(n){return k(n)&&Lt.call(n,"callee")&&(!At.call(n,"callee")||Ot.call(n)==xt)}function x(n){return"string"==typeof n||!_t(n)&&u(n)&&Ft.call(n)==It}function E(n){var t=n?n.length:void 0;return v(t)&&(_t(n)||x(n)||w(n))?j(t,String):null}function L(n,t){return t=null==t?$t:t,!!t&&("number"==typeof n||zt.test(n))&&n>-1&&n%1==0&&t>n}function O(n){var t=n&&n.constructor,e="function"==typeof t&&t.prototype||Bt;return n===e}function A(n){var t=O(n);if(!t&&!m(n))return S(n);var e=E(n),r=!!e,u=e||[],i=u.length;for(var o in n)!b(n,o)||r&&("length"==o||L(o,i))||t&&"constructor"==o||u.push(o);return u}function _(n){var t,e=-1;if(m(n))return t=n.length,function(){return e++,t>e?{value:n[e],key:e}:null};var r=d(n);if(r)return function(){var n=r.next();return n.done?null:(e++,{value:n.value,key:e})};var u=A(n);return t=u.length,function(){e++;var r=u[e];return t>e?{value:n[r],key:r}:null}}function I(n){return function(){if(null===n)throw new Error("Callback was already called.");var t=n;n=null,t.apply(this,arguments)}}function T(n){return function(t,e,r){r=h(r||p),t=t||[];var u=_(t);if(0>=n)return r(null);var i=!1,o=0,c=!1;!function a(){if(i&&0>=o)return r(null);for(;n>o&&!c;){var t=u();if(null===t)return i=!0,void(0>=o&&r(null));o+=1,e(t.value,t.key,I(function(n){o-=1,n?(r(n),c=!0):a()}))}}()}}function F(n){return function(t,e,r,u){return n(T(e),t,r,u)}}function $(n,t,e,r){r=h(r||p),t=t||[];var u=[],i=0;n(t,function(n,t,r){var o=i++;e(n,function(n,t){u[o]=t,r(n)})},function(n){r(n,u)})}function z(n,t){return function(e,r,u){return n(e,t,r,u)}}function B(n){return l(function(t,r){var u;try{u=n.apply(this,t)}catch(i){return r(i)}e(u)&&"function"==typeof u.then?u.then(function(n){r(null,n)},function(n){r(n.message?n:new Error(n))}):r(null,u)})}function M(n,t){for(var e=-1,r=n?n.length:0;++e<r&&t(n[e],e,n)!==!1;);return n}function V(n){return function(t,e,r){for(var u=-1,i=Object(t),o=r(t),c=o.length;c--;){var a=o[n?c:++u];if(e(i[a],a,i)===!1)break}return t}}function q(n,t){return n&&Rt(n,t,A)}function C(n,t,e){for(var r=n.length,u=t+(e?1:-1);e?u--:++u<r;){var i=n[u];if(i!==i)return u}return-1}function D(n,t,e){if(t!==t)return C(n,e);for(var r=e-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function P(n,t,e){function r(n,t){b.push(function(){c(n,t)})}function u(){if(0===b.length&&0===m)return e(null,v);for(;b.length&&t>m;){var n=b.shift();n()}}function i(n,t){var e=g[n];e||(e=g[n]=[]),e.push(t)}function o(n){var t=g[n]||[];M(t,function(n){n()}),u()}function c(n,t){if(!d){var r=I(f(function(t,r){if(m--,r.length<=1&&(r=r[0]),t){var u={};q(v,function(n,t){u[t]=n}),u[n]=r,d=!0,g=[],e(t,u)}else v[n]=r,o(n)}));m++;var u=t[t.length-1];t.length>1?u(v,r):u(r)}}function a(){for(var n,t=0;S.length;)n=S.pop(),t++,M(l(n),function(n){--j[n]||S.push(n)});if(t!==y)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function l(t){var e=[];return q(n,function(n,r){_t(n)&&D(n,t,0)>=0&&e.push(r)}),e}"function"==typeof t&&(e=t,t=null),e=h(e||p);var s=A(n),y=s.length;if(!y)return e(null);t||(t=y);var v={},m=0,d=!1,g={},b=[],S=[],j={};q(n,function(t,e){if(!_t(t))return r(e,[t]),void S.push(e);var u=t.slice(0,t.length-1),o=u.length;return 0===o?(r(e,t),void S.push(e)):(j[e]=o,void M(u,function(c){if(!n[c])throw new Error("async.auto task `"+e+"` has a non-existent dependency in "+u.join(", "));i(c,function(){o--,0===o&&r(e,t)})}))}),a(),u()}function R(n,t){for(var e=-1,r=n?n.length:0,u=Array(r);++e<r;)u[e]=t(n[e],e,n);return u}function U(n,t){var e=-1,r=n.length;for(t||(t=Array(r));++e<r;)t[e]=n[e];return t}function N(n){return n&&n.Object===Object?n:null}function Q(n){if("string"==typeof n)return n;if(i(n))return Kt?Kt.call(n):"";var t=n+"";return"0"==t&&1/n==-Ht?"-0":t}function W(n,t,e){var r=-1,u=n.length;0>t&&(t=-t>u?0:u+t),e=e>u?u:e,0>e&&(e+=u),u=t>e?0:e-t>>>0,t>>>=0;for(var i=Array(u);++r<u;)i[r]=n[r+t];return i}function G(n,t,e){var r=n.length;return e=void 0===e?r:e,!t&&e>=r?n:W(n,t,e)}function H(n,t){for(var e=n.length;e--&&D(t,n[e],0)>-1;);return e}function J(n,t){for(var e=-1,r=n.length;++e<r&&D(t,n[e],0)>-1;);return e}function K(n){return n.match(ye)}function X(n){return null==n?"":Q(n)}function Y(n,t,e){if(n=X(n),n&&(e||void 0===t))return n.replace(ve,"");if(!n||!(t=Q(t)))return n;var r=K(n),u=K(t),i=J(r,u),o=H(r,u)+1;return G(r,i,o).join("")}function Z(n){return n=n.toString().replace(be,""),n=n.match(me)[2].replace(" ",""),n=n?n.split(de):[],n=n.map(function(n){return Y(n.replace(ge,""))})}function nn(n,t){var e={};q(n,function(n,t){function r(t,e){var r=R(u,function(n){return t[n]});r.push(e),n.apply(null,r)}var u;if(_t(n))u=U(n),n=u.pop(),e[t]=u.concat(u.length>0?r:n);else if(1===n.length)e[t]=n;else{if(u=Z(n),0===n.length&&0===u.length)throw new Error("autoInject task functions require explicit parameters.");u.pop(),e[t]=u.concat(r)}}),P(e,t)}function tn(n){setTimeout(n,0)}function en(n){return f(function(t,e){n(function(){t.apply(null,e)})})}function rn(){this.head=this.tail=null,this.length=0}function un(n,t){n.length=1,n.head=n.tail=t}function on(n,t,e){function r(n,t,e){if(null!=e&&"function"!=typeof e)throw new Error("task callback must be a function");return c.started=!0,_t(n)||(n=[n]),0===n.length&&c.idle()?ke(function(){c.drain()}):(M(n,function(n){var r={data:n,callback:e||p};t?c._tasks.unshift(r):c._tasks.push(r)}),void ke(c.process))}function u(n){return function(){i-=1;var t=!1,e=arguments;M(n,function(n){M(o,function(e,r){e!==n||t||(o.splice(r,1),t=!0)}),n.callback.apply(n,e),null!=e[0]&&c.error(e[0],n.data)}),i<=c.concurrency-c.buffer&&c.unsaturated(),c._tasks.length+i===0&&c.drain(),c.process()}}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var i=0,o=[],c={_tasks:new rn,concurrency:t,payload:e,saturated:p,unsaturated:p,buffer:t/4,empty:p,drain:p,error:p,started:!1,paused:!1,push:function(n,t){r(n,!1,t)},kill:function(){c.drain=p,c._tasks.empty()},unshift:function(n,t){r(n,!0,t)},process:function(){for(;!c.paused&&i<c.concurrency&&c._tasks.length;){var t=[],e=[],r=c._tasks.length;c.payload&&(r=Math.min(r,c.payload));for(var a=0;r>a;a++){var f=c._tasks.shift();t.push(f),e.push(f.data)}0===c._tasks.length&&c.empty(),i+=1,o.push(t[0]),i===c.concurrency&&c.saturated();var l=I(u(t));n(e,l)}},length:function(){return c._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return c._tasks.length+i===0},pause:function(){c.paused=!0},resume:function(){if(c.paused!==!1){c.paused=!1;for(var n=Math.min(c.concurrency,c._tasks.length),t=1;n>=t;t++)ke(c.process)}}};return c}function cn(n,t){return on(n,1,t)}function an(n,t,e,r){T(t)(n,e,r)}function fn(n,t,e,r){xe(n,function(n,r,u){e(t,n,function(n,e){t=e,u(n)})},function(n){r(n,t)})}function ln(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(n,t){u=u.concat(t||[]),r(n)})},function(n){r(n,u)})}function sn(n){return function(t,e,r){return n(Oe,t,e,r)}}function pn(n){return function(t,e,r){return n(xe,t,e,r)}}function hn(n){return n}function yn(n,t,e){return function(r,u,i,o){function c(n){o&&(n?o(n):o(null,e(!1)))}function a(n,r,u){return o?void i(n,function(r,c){o&&(r?(o(r),o=i=!1):t(c)&&(o(null,e(!0,n)),o=i=!1)),u()}):u()}arguments.length>3?(o=o||p,n(r,u,a,c)):(o=i,o=o||p,i=u,n(r,a,c))}}function vn(n,t){return t}function mn(n){return f(function(t,e){t.apply(null,e.concat([f(function(t,e){"object"==typeof console&&(t?console.error&&console.error(t):console[n]&&M(e,function(t){console[n](t)}))})]))})}function dn(n,t,e){e=e||p;var r=f(function(t,r){t?e(t):(r.push(u),n.apply(this,r))}),u=function(n,u){return n?e(n):u?void t(r):e(null)};n(u)}function gn(n,t,e){var r=0;dn(function(n){return r++<1?n(null,!0):void t.apply(this,arguments)},n,e)}function bn(n,t,e){if(e=e||p,!n())return e(null);var r=f(function(u,i){return u?e(u):n.apply(this,i)?t(r):void e.apply(null,[null].concat(i))});t(r)}function Sn(n,t,e){var r=0;bn(function(){return++r<=1||t.apply(this,arguments)},n,e)}function jn(n,t,e){Sn(n,function(){return!t.apply(this,arguments)},e)}function kn(n){return function(t,e,r){return n(t,r)}}function wn(n,t,e,r){T(t)(n,kn(e),r)}function xn(n){return l(function(t,e){var r=!0;t.push(function(){var n=arguments;r?ke(function(){e.apply(null,n)}):e.apply(null,n)}),n.apply(this,t),r=!1})}function En(n){return!n}function Ln(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(e,i){e?r(e):(i&&u.push({index:t,value:n}),r())})},function(n){n?r(n):r(null,R(u.sort(function(n,t){return n.index-t.index}),y("value")))})}function On(n,t){function e(n){return n?r(n):void u(e)}var r=I(t||p),u=xn(n);e()}function An(n){function t(e){function r(){return n.length&&n[e].apply(null,arguments),r.next()}return r.next=function(){return e<n.length-1?t(e+1):null},r}return t(0)}function _n(n,t,e,r){var u={};an(n,t,function(n,t,r){e(n,t,function(n,e){return n?r(n):(u[t]=e,void r())})},function(n){r(n,u)})}function In(n,t){return t in n}function Tn(n,t){var e=Object.create(null),r=Object.create(null);t=t||hn;var u=l(function(u,i){var o=t.apply(null,u);In(e,o)?ke(function(){i.apply(null,e[o])}):In(r,o)?r[o].push(i):(r[o]=[i],n.apply(null,u.concat([f(function(n){e[o]=n;var t=r[o];delete r[o];for(var u=0,i=t.length;i>u;u++)t[u].apply(null,n)})])))});return u.memo=e,u.unmemoized=n,u}function Fn(n,t,e){e=e||p;var r=m(t)?[]:{};n(t,function(n,t,e){n(f(function(n,u){u.length<=1&&(u=u[0]),r[t]=u,e(n)}))},function(n){e(n,r)})}function $n(n,t,e){Fn(T(t),n,e)}function zn(n,t){return on(function(t,e){n(t[0],e)},t,1)}function Bn(n,t){var e=zn(n,t);return e.push=function(n,t,r){if(null==r&&(r=p),"function"!=typeof r)throw new Error("task callback must be a function");if(e.started=!0,_t(n)||(n=[n]),0===n.length)return ke(function(){e.drain()});for(var u=e._tasks.head;u&&t>=u.priority;)u=u.next;M(n,function(n){var i={data:n,priority:t,callback:r};u?e._tasks.insertBefore(u,i):e._tasks.push(i)}),ke(e.process)},delete e.unshift,e}function Mn(n,t){return t=h(t||p),_t(n)?n.length?void M(n,function(n){n(t)}):t():t(new TypeError("First argument to race must be an array of functions"))}function Vn(n,t,e,r){var u=He.call(n).reverse();fn(u,t,e,r)}function qn(n){return l(function(t,e){return t.push(f(function(n,t){if(n)e(null,{error:n});else{var r=null;1===t.length?r=t[0]:t.length>1&&(r=t),e(null,{value:r})}})),n.apply(this,t)})}function Cn(n,t,e,r){Ln(n,t,function(n,t){e(n,function(n,e){n?t(n):t(null,!e)})},r)}function Dn(n){var t;return _t(n)?t=R(n,qn):(t={},q(n,function(n,e){t[e]=qn.call(this,n)})),t}function Pn(n,t){Fn(xe,n,t)}function Rn(n){return function(){return n}}function Un(n,t,e){function r(n,t){if("object"==typeof t)n.times=+t.times||o,n.intervalFunc="function"==typeof t.interval?t.interval:Rn(+t.interval||c);else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");n.times=+t||o}}function u(n){return function(e){t(function(t,r){e(!t||n,{err:t,result:r})})}}function i(n){return function(t){setTimeout(function(){t(null)},n)}}var o=5,c=0,a={times:o,intervalFunc:Rn(c)};if(arguments.length<3&&"function"==typeof n?(e=t||p,t=n):(r(a,n),e=e||p),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");for(var f=[],l=1;l<a.times+1;l++){var s=l==a.times;f.push(u(s));var h=a.intervalFunc(l);!s&&h>0&&f.push(i(h))}Pn(f,function(n,t){t=t[t.length-1],e(t.err,t.result)})}function Nn(n,t){return t||(t=n,n=null),l(function(e,r){function u(n){t.apply(null,e.concat([n]))}n?Un(n,u,r):Un(u,r)})}function Qn(n,t,e){function r(n,t){var e=n.criteria,r=t.criteria;return r>e?-1:e>r?1:0}Vt(n,function(n,e){t(n,function(t,r){return t?e(t):void e(null,{value:n,criteria:r})})},function(n,t){return n?e(n):void e(null,R(t.sort(r),y("value")))})}function Wn(n,t,e){function r(){c||(i.apply(null,arguments),clearTimeout(o))}function u(){var t=n.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",e&&(r.info=e),c=!0,i(r)}var i,o,c=!1;return l(function(e,c){i=c,o=setTimeout(u,t),n.apply(null,e.concat(r))})}function Gn(n,t,e,r){for(var u=-1,i=er(tr((t-n)/(e||1)),0),o=Array(i);i--;)o[r?i:++u]=n,n+=e;return o}function Hn(n,t,e,r){Mt(Gn(0,n,1),t,e,r)}function Jn(n,t,e,r){3===arguments.length&&(r=e,e=t,t=_t(n)?[]:{}),Oe(n,function(n,r,u){e(t,n,r,u)},function(n){r(n,t)})}function Kn(n){return function(){return(n.unmemoized||n).apply(null,arguments)}}function Xn(n,t,e){bn(function(){return!n.apply(this,arguments)},t,e)}function Yn(n,t){function e(u){if(r===n.length)return t.apply(null,[null].concat(u));var i=I(f(function(n,r){return n?t.apply(null,[n].concat(r)):void e(r)}));u.push(i);var o=n[r++];o.apply(null,u)}if(t=h(t||p),!_t(n))return t(new Error("First argument to waterfall must be an array of functions"));if(!n.length)return t();var r=0;e([])}var Zn,nt="[object Function]",tt="[object GeneratorFunction]",et=Object.prototype,rt=et.toString,ut="[object Symbol]",it=Object.prototype,ot=it.toString,ct=NaN,at=/^\s+|\s+$/g,ft=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,st=/^0o[0-7]+$/i,pt=parseInt,ht=1/0,yt=1.7976931348623157e308,vt="Expected a function",mt=Math.max,dt=y("length"),gt=9007199254740991,bt="function"==typeof Symbol&&Symbol.iterator,St=Object.getPrototypeOf,jt=Object.prototype,kt=jt.hasOwnProperty,wt=Object.keys,xt="[object Arguments]",Et=Object.prototype,Lt=Et.hasOwnProperty,Ot=Et.toString,At=Et.propertyIsEnumerable,_t=Array.isArray,It="[object String]",Tt=Object.prototype,Ft=Tt.toString,$t=9007199254740991,zt=/^(?:0|[1-9]\d*)$/,Bt=Object.prototype,Mt=F($),Vt=z(Mt,1/0),qt=s(Vt),Ct=z(Mt,1),Dt=s(Ct),Pt=f(function(n,t){return f(function(e){return n.apply(null,t.concat(e))})}),Rt=V(),Ut=N("object"==typeof global&&global),Nt=N("object"==typeof self&&self),Qt=N("object"==typeof this&&this),Wt=Ut||Nt||Qt||Function("return this")(),Gt=Wt.Symbol,Ht=1/0,Jt=Gt?Gt.prototype:void 0,Kt=Jt?Jt.toString:void 0,Xt="\\ud800-\\udfff",Yt="\\u0300-\\u036f\\ufe20-\\ufe23",Zt="\\u20d0-\\u20f0",ne="\\ufe0e\\ufe0f",te="["+Xt+"]",ee="["+Yt+Zt+"]",re="\\ud83c[\\udffb-\\udfff]",ue="(?:"+ee+"|"+re+")",ie="[^"+Xt+"]",oe="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",ae="\\u200d",fe=ue+"?",le="["+ne+"]?",se="(?:"+ae+"(?:"+[ie,oe,ce].join("|")+")"+le+fe+")*",pe=le+fe+se,he="(?:"+[ie+ee+"?",ee,oe,ce,te].join("|")+")",ye=RegExp(re+"(?="+re+")|"+he+pe,"g"),ve=/^\s+|\s+$/g,me=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,de=/,/,ge=/(=.+)?(\s*)$/,be=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Se="function"==typeof setImmediate&&setImmediate,je="object"==typeof process&&"function"==typeof process.nextTick;Zn=Se?setImmediate:je?process.nextTick:tn;var ke=en(Zn);rn.prototype.removeLink=function(n){return n.prev?n.prev.next=n.next:this.head=n.next,n.next?n.next.prev=n.prev:this.tail=n.prev,n.prev=n.next=null,this.length-=1,n},rn.prototype.empty=rn,rn.prototype.insertAfter=function(n,t){t.prev=n,t.next=n.next,n.next?n.next.prev=t:this.tail=t,n.next=t,this.length+=1},rn.prototype.insertBefore=function(n,t){t.prev=n.prev,t.next=n,n.prev?n.prev.next=t:this.head=t,n.prev=t,this.length+=1},rn.prototype.unshift=function(n){this.head?this.insertBefore(this.head,n):un(this,n)},rn.prototype.push=function(n){this.tail?this.insertAfter(this.tail,n):un(this,n)},rn.prototype.shift=function(){return this.head&&this.removeLink(this.head)},rn.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};var we,xe=z(an,1),Ee=f(function(n){return f(function(t){var e=this,r=t[t.length-1];"function"==typeof r?t.pop():r=p,fn(n,t,function(n,t,r){t.apply(e,n.concat([f(function(n,t){r(n,t)})]))},function(n,t){r.apply(e,[n].concat(t))})})}),Le=f(function(n){return Ee.apply(null,n.reverse())}),Oe=z(an,1/0),Ae=sn(ln),_e=pn(ln),Ie=f(function(n){var t=[null].concat(n);return l(function(n,e){return e.apply(this,t)})}),Te=yn(Oe,hn,vn),Fe=yn(an,hn,vn),$e=yn(xe,hn,vn),ze=mn("dir"),Be=z(wn,1/0),Me=z(wn,1),Ve=yn(an,En,En),qe=z(Ve,1/0),Ce=z(Ve,1),De=F(Ln),Pe=z(De,1/0),Re=z(De,1),Ue=mn("log"),Ne=z(_n,1/0),Qe=z(_n,1);we=je?process.nextTick:Se?setImmediate:tn;var We=en(we),Ge=z($n,1/0),He=Array.prototype.slice,Je=F(Cn),Ke=z(Je,1/0),Xe=z(Je,1),Ye=yn(an,Boolean,hn),Ze=z(Ye,1/0),nr=z(Ye,1),tr=Math.ceil,er=Math.max,rr=z(Hn,1/0),ur=z(Hn,1),ir={applyEach:qt,applyEachSeries:Dt,apply:Pt,asyncify:B,auto:P,autoInject:nn,cargo:cn,compose:Le,concat:Ae,concatSeries:_e,constant:Ie,detect:Te,detectLimit:Fe,detectSeries:$e,dir:ze,doDuring:gn,doUntil:jn,doWhilst:Sn,during:dn,each:Be,eachLimit:wn,eachOf:Oe,eachOfLimit:an,eachOfSeries:xe,eachSeries:Me,ensureAsync:xn,every:qe,everyLimit:Ve,everySeries:Ce,filter:Pe,filterLimit:De,filterSeries:Re,forever:On,iterator:An,log:Ue,map:Vt,mapLimit:Mt,mapSeries:Ct,mapValues:Ne,mapValuesLimit:_n,mapValuesSeries:Qe,memoize:Tn,nextTick:We,parallel:Ge,parallelLimit:$n,priorityQueue:Bn,queue:zn,race:Mn,reduce:fn,reduceRight:Vn,reflect:qn,reflectAll:Dn,reject:Ke,rejectLimit:Je,rejectSeries:Xe,retry:Un,retryable:Nn,seq:Ee,series:Pn,setImmediate:ke,some:Ze,someLimit:Ye,someSeries:nr,sortBy:Qn,timeout:Wn,times:rr,timesLimit:Hn,timesSeries:ur,transform:Jn,unmemoize:Kn,until:Xn,waterfall:Yn,whilst:bn,all:qe,any:Ze,forEach:Be,forEachSeries:Me,forEachLimit:wn,forEachOf:Oe,forEachOfSeries:xe,forEachOfLimit:an,inject:fn,foldl:fn,foldr:Vn,select:Pe,selectLimit:De,selectSeries:Re,wrapSync:B};n["default"]=ir,n.applyEach=qt,n.applyEachSeries=Dt,n.apply=Pt,n.asyncify=B,n.auto=P,n.autoInject=nn,n.cargo=cn,n.compose=Le,n.concat=Ae,n.concatSeries=_e,n.constant=Ie,n.detect=Te,n.detectLimit=Fe,n.detectSeries=$e,n.dir=ze,n.doDuring=gn,n.doUntil=jn,n.doWhilst=Sn,n.during=dn,n.each=Be,n.eachLimit=wn,n.eachOf=Oe,n.eachOfLimit=an,n.eachOfSeries=xe,n.eachSeries=Me,n.ensureAsync=xn,n.every=qe,n.everyLimit=Ve,n.everySeries=Ce,n.filter=Pe,n.filterLimit=De,n.filterSeries=Re,n.forever=On,n.iterator=An,n.log=Ue,n.map=Vt,n.mapLimit=Mt,n.mapSeries=Ct,n.mapValues=Ne,n.mapValuesLimit=_n,n.mapValuesSeries=Qe,n.memoize=Tn,n.nextTick=We,n.parallel=Ge,n.parallelLimit=$n,n.priorityQueue=Bn,n.queue=zn,n.race=Mn,n.reduce=fn,n.reduceRight=Vn,n.reflect=qn,n.reflectAll=Dn,n.reject=Ke,n.rejectLimit=Je,n.rejectSeries=Xe,n.retry=Un,n.retryable=Nn,n.seq=Ee,n.series=Pn,n.setImmediate=ke,n.some=Ze,n.someLimit=Ye,n.someSeries=nr,n.sortBy=Qn,n.timeout=Wn,n.times=rr,n.timesLimit=Hn,n.timesSeries=ur,n.transform=Jn,n.unmemoize=Kn,n.until=Xn,n.waterfall=Yn,n.whilst=bn,n.all=qe,n.allLimit=Ve,n.allSeries=Ce,n.any=Ze,n.anyLimit=Ye,n.anySeries=nr,n.find=Te,n.findLimit=Fe,n.findSeries=$e,n.forEach=Be,n.forEachSeries=Me,n.forEachLimit=wn,n.forEachOf=Oe,n.forEachOfSeries=xe,n.forEachOfLimit=an,n.inject=fn,n.foldl=fn,n.foldr=Vn,n.select=Pe,n.selectLimit=De,n.selectSeries=Re,n.wrapSync=B}); //# sourceMappingURL=async.min.map
\ No newline at end of file diff --git a/dist/async.min.map b/dist/async.min.map index 0e9d594..aea2630 100644 --- a/dist/async.min.map +++ b/dist/async.min.map @@ -1 +1 @@ -{"version":3,"file":"build/dist/async.min.js","sources":["build/dist/async.js"],"names":["global","factory","exports","module","define","amd","async","this","apply","func","thisArg","args","length","call","isObject","value","type","isFunction","tag","objectToString","funcTag","genTag","isObjectLike","isSymbol","objectToString$1","symbolTag","toNumber","NAN","other","valueOf","replace","reTrim","isBinary","reIsBinary","test","reIsOctal","freeParseInt","slice","reIsBadHex","toFinite","INFINITY","sign","MAX_INTEGER","toInteger","result","remainder","rest","start","TypeError","FUNC_ERROR_TEXT","nativeMax","undefined","arguments","index","array","Array","otherArgs","initialParams","fn","callback","pop","applyEach$1","eachfn","fns","go","that","cb","concat","noop","once","callFn","baseProperty","key","object","isLength","MAX_SAFE_INTEGER","isArrayLike","getLength","getIterator","coll","iteratorSymbol","getPrototype","nativeGetPrototype","Object","baseHas","hasOwnProperty","baseKeys","nativeKeys","baseTimes","n","iteratee","isArrayLikeObject","isArguments","hasOwnProperty$1","propertyIsEnumerable","objectToString$2","argsTag","isString","isArray","objectToString$3","stringTag","indexKeys","String","isIndex","MAX_SAFE_INTEGER$1","reIsUint","isPrototype","Ctor","constructor","proto","prototype","objectProto$5","keys","isProto","indexes","skipIndexes","push","iterator","len","i","iterate","item","next","done","okeys","onlyOnce","Error","_eachOfLimit","limit","obj","nextElem","running","errored","replenish","elem","err","doParallelLimit","_asyncMap","arr","results","counter","_","v","doLimit","iterable","asyncify","e","then","message","arrayEach","createBaseFor","fromRight","keysFunc","props","baseForOwn","baseFor","indexOfNaN","fromIndex","baseIndexOf","auto","tasks","concurrency","enqueueTask","task","readyTasks","runTask","processQueue","runningTasks","run","shift","addListener","taskName","taskListeners","listeners","taskComplete","hasError","taskCallback","safeResults","val","rkey","taskFn","checkForDeadlocks","currentTask","readyToCheck","getDependents","dependent","uncheckedDependencies","numTasks","keys$$","dependencies","remainingDependencies","dependencyName","join","arrayMap","copyArray","source","checkGlobal","baseToString","symbolToString","INFINITY$1","baseSlice","end","castSlice","charsEndIndex","strSymbols","chrSymbols","charsStartIndex","stringToArray","string","match","reComplexSymbol","toString","trim","chars","guard","reTrim$1","parseParams","STRIP_COMMENTS","FN_ARGS","split","FN_ARG_SPLIT","map","arg","FN_ARG","autoInject","newTasks","newTask","taskCb","newArgs","params","name","fallback","setTimeout","wrap","defer","DLL","head","tail","setInitial","dll","node","queue","worker","payload","_insert","data","pos","q","started","idle","setImmediate$1","drain","_tasks","unshift","process","_next","workers","removed","workersList","splice","error","buffer","unsaturated","saturated","empty","paused","kill","l","Math","min","pause","resume","resumeCount","w","cargo","eachOfLimit","reduce","memo","eachOfSeries","x","compose","seq","reverse","concat$1","y","doParallel","eachOf","doSeries","identity","_createTester","check","getResult","wrappedIteratee","_findGetResult","consoleFunc","console","during","truth","doDuring","calls","whilst","doWhilst","doUntil","_withoutIndex","eachLimit","ensureAsync","sync","innerArgs","notId","_filter","sort","a","b","forever","errback","iterator$1","makeCallback","mapValuesLimit","newObj","has","memoize","hasher","create","queues","memoized","unmemoized","_parallel","parallelLimit","queue$1","items","priorityQueue","priority","nextNode","insertBefore","race","reduceRight","reversed","reflect","reflectCallback","cbArgs","reject$1","reflectAll","series","constant$1","retry","opts","parseTimes","acc","t","times","DEFAULT_TIMES","intervalFunc","interval","DEFAULT_INTERVAL","retryAttempt","isFinalAttempt","seriesCallback","retryInterval","options","attempts","retryable","sortBy","comparator","left","right","criteria","timeout","asyncFn","milliseconds","info","injectedCallback","timedOut","originalCallback","clearTimeout","timer","timeoutCallback","code","origCallback","baseRange","step","nativeMax$1","nativeCeil","timeLimit","count","mapLimit","transform","accumulator","k","unmemoize","until","waterfall","nextTask","taskIndex","_defer","objectProto","objectProto$1","parseInt","max","Symbol","getPrototypeOf","objectProto$2","objectProto$3","objectProto$4","Infinity","applyEach","mapSeries","applyEachSeries","apply$1","callArgs","freeGlobal","freeSelf","self","thisGlobal","root","Function","Symbol$1","symbolProto","rsAstralRange","rsComboMarksRange","rsComboSymbolsRange","rsVarRange","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsZWJ","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsSymbol","RegExp","hasSetImmediate","setImmediate","hasNextTick","nextTick","removeLink","prev","insertAfter","newNode","_defer$1","functions","newargs","nextargs","concatSeries","constant","values","ignoredArgs","detect","detectLimit","detectSeries","dir","each","eachSeries","everyLimit","every","everySeries","filterLimit","filter","filterSeries","log","mapValues","mapValuesSeries","parallel","rejectLimit","reject","rejectSeries","someLimit","Boolean","some","someSeries","ceil","timesSeries","timesLimit","all","any","forEach","forEachSeries","forEachLimit","forEachOf","forEachOfSeries","forEachOfLimit","inject","foldl","foldr","select","selectLimit","selectSeries","wrapSync","allLimit","allSeries","anyLimit","anySeries","find","findLimit","findSeries"],"mappings":"CAAC,SAAUA,EAAQC,GACE,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,SACrD,kBAAXE,SAAyBA,OAAOC,IAAMD,QAAQ,WAAYH,GAChEA,EAASD,EAAOM,MAAQN,EAAOM,YAChCC,KAAM,SAAUL,GAAW,YAY3B,SAASM,GAAMC,EAAMC,EAASC,GAC5B,GAAIC,GAASD,EAAKC,MAClB,QAAQA,GACN,IAAK,GAAG,MAAOH,GAAKI,KAAKH,EACzB,KAAK,G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e,SAAWnC,GACnBvc,EAAQ2e,UAAYlC,GACpBzc,EAAQ4d,IAAMN,GACdtd,EAAQ4e,SAAWxB,GACnBpd,EAAQ6e,UAAYtB,GACpBvd,EAAQ8e,KAAO7C,GACfjc,EAAQ+e,UAAY7C,GACpBlc,EAAQgf,WAAa7C,GACrBnc,EAAQ6d,QAAUxB,GAClBrc,EAAQ8d,cAAgBxB,GACxBtc,EAAQ+d,aAAejL,GACvB9S,EAAQge,UAAYpM,GACpB5R,EAAQie,gBAAkB7M,GAC1BpR,EAAQke,eAAiBjN,GACzBjR,EAAQme,OAASjN,GACjBlR,EAAQoe,MAAQlN,GAChBlR,EAAQqe,MAAQxJ,GAChB7U,EAAQse,OAAS3B,GACjB3c,EAAQue,YAAc7B,GACtB1c,EAAQwe,aAAe5B,GACvB5c,EAAQye,SAAW1V"}
\ No newline at end of file +{"version":3,"file":"build/dist/async.min.js","sources":["build/dist/async.js"],"names":["global","factory","exports","module","define","amd","async","this","apply","func","thisArg","args","length","call","isObject","value","type","isFunction","tag","objectToString","funcTag","genTag","isObjectLike","isSymbol","objectToString$1","symbolTag","toNumber","NAN","other","valueOf","replace","reTrim","isBinary","reIsBinary","test","reIsOctal","freeParseInt","slice","reIsBadHex","toFinite","INFINITY","sign","MAX_INTEGER","toInteger","result","remainder","rest","start","TypeError","FUNC_ERROR_TEXT","nativeMax","undefined","arguments","index","array","Array","otherArgs","initialParams","fn","callback","pop","applyEach$1","eachfn","fns","go","that","cb","concat","noop","once","callFn","baseProperty","key","object","isLength","MAX_SAFE_INTEGER","isArrayLike","getLength","getIterator","coll","iteratorSymbol","getPrototype","nativeGetPrototype","Object","baseHas","hasOwnProperty","baseKeys","nativeKeys","baseTimes","n","iteratee","isArrayLikeObject","isArguments","hasOwnProperty$1","propertyIsEnumerable","objectToString$2","argsTag","isString","isArray","objectToString$3","stringTag","indexKeys","String","isIndex","MAX_SAFE_INTEGER$1","reIsUint","isPrototype","Ctor","constructor","proto","prototype","objectProto$5","keys","isProto","indexes","skipIndexes","push","iterator","len","i","iterate","item","next","done","okeys","onlyOnce","Error","_eachOfLimit","limit","obj","nextElem","running","errored","replenish","elem","err","doParallelLimit","_asyncMap","arr","results","counter","_","v","doLimit","iterable","asyncify","e","then","message","arrayEach","createBaseFor","fromRight","keysFunc","props","baseForOwn","baseFor","indexOfNaN","fromIndex","baseIndexOf","auto","tasks","concurrency","enqueueTask","task","readyTasks","runTask","processQueue","runningTasks","run","shift","addListener","taskName","taskListeners","listeners","taskComplete","hasError","taskCallback","safeResults","val","rkey","taskFn","checkForDeadlocks","currentTask","readyToCheck","getDependents","dependent","uncheckedDependencies","numTasks","keys$$","dependencies","remainingDependencies","dependencyName","join","arrayMap","copyArray","source","checkGlobal","baseToString","symbolToString","INFINITY$1","baseSlice","end","castSlice","charsEndIndex","strSymbols","chrSymbols","charsStartIndex","stringToArray","string","match","reComplexSymbol","toString","trim","chars","guard","reTrim$1","parseParams","STRIP_COMMENTS","FN_ARGS","split","FN_ARG_SPLIT","map","arg","FN_ARG","autoInject","newTasks","newTask","taskCb","newArgs","params","name","fallback","setTimeout","wrap","defer","DLL","head","tail","setInitial","dll","node","queue","worker","payload","_insert","data","pos","q","started","idle","setImmediate$1","drain","_tasks","unshift","process","_next","workers","removed","workersList","splice","error","buffer","unsaturated","saturated","empty","paused","kill","l","Math","min","pause","resume","resumeCount","w","cargo","eachOfLimit","reduce","memo","eachOfSeries","x","concat$1","y","doParallel","eachOf","doSeries","identity","_createTester","check","getResult","wrappedIteratee","_findGetResult","consoleFunc","console","during","truth","doDuring","calls","whilst","doWhilst","doUntil","_withoutIndex","eachLimit","ensureAsync","sync","innerArgs","notId","_filter","sort","a","b","forever","errback","iterator$1","makeCallback","mapValuesLimit","newObj","has","memoize","hasher","create","queues","memoized","unmemoized","_parallel","parallelLimit","queue$1","items","priorityQueue","priority","nextNode","insertBefore","race","reduceRight","reversed","reverse","reflect","reflectCallback","cbArgs","reject$1","reflectAll","series","constant$1","retry","opts","parseTimes","acc","t","times","DEFAULT_TIMES","intervalFunc","interval","DEFAULT_INTERVAL","retryAttempt","isFinalAttempt","seriesCallback","retryInterval","options","attempts","retryable","sortBy","comparator","left","right","criteria","timeout","asyncFn","milliseconds","info","injectedCallback","timedOut","originalCallback","clearTimeout","timer","timeoutCallback","code","origCallback","baseRange","step","nativeMax$1","nativeCeil","timeLimit","count","mapLimit","transform","accumulator","k","unmemoize","until","waterfall","nextTask","taskIndex","_defer","objectProto","objectProto$1","parseInt","max","Symbol","getPrototypeOf","objectProto$2","objectProto$3","objectProto$4","Infinity","applyEach","mapSeries","applyEachSeries","apply$1","callArgs","freeGlobal","freeSelf","self","thisGlobal","root","Function","Symbol$1","symbolProto","rsAstralRange","rsComboMarksRange","rsComboSymbolsRange","rsVarRange","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsZWJ","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsSymbol","RegExp","hasSetImmediate","setImmediate","hasNextTick","nextTick","removeLink","prev","insertAfter","newNode","_defer$1","seq","functions","newargs","nextargs","compose","concatSeries","constant","values","ignoredArgs","detect","detectLimit","detectSeries","dir","each","eachSeries","everyLimit","every","everySeries","filterLimit","filter","filterSeries","log","mapValues","mapValuesSeries","parallel","rejectLimit","reject","rejectSeries","someLimit","Boolean","some","someSeries","ceil","timesSeries","timesLimit","all","any","forEach","forEachSeries","forEachLimit","forEachOf","forEachOfSeries","forEachOfLimit","inject","foldl","foldr","select","selectLimit","selectSeries","wrapSync","allLimit","allSeries","anyLimit","anySeries","find","findLimit","findSeries"],"mappings":"CAAC,SAAUA,EAAQC,GACE,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,SACrD,kBAAXE,SAAyBA,OAAOC,IAAMD,QAAQ,WAAYH,GAChEA,EAASD,EAAOM,MAAQN,EAAOM,YAChCC,KAAM,SAAUL,GAAW,YAY3B,SAASM,GAAMC,EAAMC,EAASC,GAC5B,GAAIC,GAASD,EAAKC,MAClB,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2d,IAAMnB,GACdxc,EAAQ0e,SAAWnC,GACnBvc,EAAQ2e,UAAYlC,GACpBzc,EAAQ4d,IAAMN,GACdtd,EAAQ4e,SAAWxB,GACnBpd,EAAQ6e,UAAYtB,GACpBvd,EAAQ8e,KAAO7C,GACfjc,EAAQ+e,UAAY7C,GACpBlc,EAAQgf,WAAa7C,GACrBnc,EAAQ6d,QAAUxB,GAClBrc,EAAQ8d,cAAgBxB,GACxBtc,EAAQ+d,aAAepL,GACvB3S,EAAQge,UAAYvM,GACpBzR,EAAQie,gBAAkB7M,GAC1BpR,EAAQke,eAAiBjN,GACzBjR,EAAQme,OAASjN,GACjBlR,EAAQoe,MAAQlN,GAChBlR,EAAQqe,MAAQ3J,GAChB1U,EAAQse,OAAS3B,GACjB3c,EAAQue,YAAc7B,GACtB1c,EAAQwe,aAAe5B,GACvB5c,EAAQye,SAAW1V"}
\ No newline at end of file diff --git a/lib/compose.js b/lib/compose.js index ff2e0ab..9cec3a5 100644 --- a/lib/compose.js +++ b/lib/compose.js @@ -1,6 +1,5 @@ import seq from './seq'; - -var reverse = Array.prototype.reverse; +import rest from 'lodash/rest'; /** * Creates a function which is a composition of the passed asynchronous @@ -37,6 +36,6 @@ var reverse = Array.prototype.reverse; * // result now equals 15 * }); */ -export default function compose(/* functions... */) { - return seq.apply(null, reverse.call(arguments)); -} +export default rest(function(args) { + return seq.apply(null, args.reverse()); +}); |