Comparing version 1.2.1 to 1.3.0
@@ -32,2 +32,3 @@ import _regeneratorRuntime from "babel-runtime/regenerator"; | ||
var tick = function tick() { | ||
console.log(running); | ||
if (!running) { | ||
@@ -106,3 +107,6 @@ return; | ||
var api = { | ||
add: function add(fn, priority) { | ||
add: function add(fn) { | ||
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, | ||
priority = _ref2.priority; | ||
return new Promise(function (resolve, reject) { | ||
@@ -109,0 +113,0 @@ if (priority) { |
@@ -43,2 +43,3 @@ "use strict"; | ||
var tick = function tick() { | ||
console.log(running); | ||
if (!running) { | ||
@@ -117,3 +118,6 @@ return; | ||
var api = { | ||
add: function add(fn, priority) { | ||
add: function add(fn) { | ||
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, | ||
priority = _ref2.priority; | ||
return new Promise(function (resolve, reject) { | ||
@@ -120,0 +124,0 @@ if (priority) { |
{ | ||
"name": "swimmer", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "An async task pooling and throttling utility for javascript.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
/*! | ||
* swimmer v1.2.1 - https://github.com/tannerlinsley/swimmer | ||
* swimmer v1.3.0 - https://github.com/tannerlinsley/swimmer | ||
* MIT Licensed | ||
@@ -128,2 +128,3 @@ */ | ||
var tick = function tick() { | ||
console.log(running); | ||
if (!running) { | ||
@@ -202,3 +203,6 @@ return; | ||
var api = { | ||
add: function add(fn, priority) { | ||
add: function add(fn) { | ||
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, | ||
priority = _ref2.priority; | ||
return new Promise(function (resolve, reject) { | ||
@@ -205,0 +209,0 @@ if (priority) { |
/*! | ||
* swimmer v1.2.1 - https://github.com/tannerlinsley/swimmer | ||
* swimmer v1.3.0 - https://github.com/tannerlinsley/swimmer | ||
* MIT Licensed | ||
*/ | ||
!function(t,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var e=r();for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}("undefined"!=typeof self?self:this,function(){return function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=0)}([function(t,r,e){t.exports=e(1)},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createPool=a,r.poolAll=function(t,r){var e=this;return new Promise(function(n,i){var c=a({concurrency:r}),f=[];c.onSettled(function(){n(f)}),c.onError(function(t){i(t)}),t.forEach(function(t,r){c.add(u(o.a.mark(function n(){var i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:return i=e.sent,f[r]=i,e.abrupt("return",i);case 5:case"end":return e.stop()}},n,e)})))}),c.start()})};var n=e(2),o=e.n(n),i=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t};function u(t){return function(){var r=t.apply(this,arguments);return new Promise(function(t,e){return function n(o,i){try{var u=r[o](i),c=u.value}catch(t){return void e(t)}if(!u.done)return Promise.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}("next")})}}var c={concurrency:5,started:!0,tasks:[]};function a(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=i({},c,r),n=e.concurrency,a=[],f=[],s=[],h=e.started,l=[],p=e.tasks,v=n,y=function r(){if(h)if(p.length||l.length)for(var e=function(){var e=p.shift();l.push(e),u(o.a.mark(function n(){var i,u,c;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=!1,u=void 0,c=void 0,t.prev=3,t.next=6,e();case 6:u=t.sent,i=!0,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),c=t.t0;case 13:l=l.filter(function(t){return t!==e}),i?(e.resolve(u),s.forEach(function(t){return t(u,e)})):(e.reject(c),f.forEach(function(t){return t(c,e)})),r();case 16:case"end":return t.stop()}},n,t,[[3,10]])}))()};l.length<v&&p.length;)e();else a.forEach(function(t){return t()})};return{add:function(t,r){return new Promise(function(e,n){r?p.unShift(t):p.push(t),t.resolve=e,t.reject=n,y()})},throttle:function(t){v=t},onSettled:function(t){return a.push(t),function(){a=a.filter(function(r){return r!==t})}},onError:function(t){return f.push(t),function(){f=f.filter(function(r){return r!==t})}},onSuccess:function(t){return s.push(t),function(){s=s.filter(function(r){return r!==t})}},stop:function(){h=!1},start:function(){h=!0,y()},clear:function(){p=[]},getActive:function(){return l},getPending:function(){return p},getAll:function(){return[].concat(l,p)},isRunning:function(){return h},isSettled:function(){return!h&&!l.length&&!p.length}}}},function(t,r,e){t.exports=e(3)},function(t,r,e){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=e(4),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,r){!function(r){"use strict";var e,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",f="object"==typeof t,s=r.regeneratorRuntime;if(s)f&&(t.exports=s);else{(s=r.regeneratorRuntime=f?t.exports:{}).wrap=x;var h="suspendedStart",l="suspendedYield",p="executing",v="completed",y={},d={};d[u]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(N([])));m&&m!==n&&o.call(m,u)&&(d=m);var w=j.prototype=E.prototype=Object.create(d);L.prototype=w.constructor=j,j.constructor=L,j[a]=L.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===L||"GeneratorFunction"===(r.displayName||r.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(w),t},s.awrap=function(t){return{__await:t}},O(_.prototype),_.prototype[c]=function(){return this},s.AsyncIterator=_,s.async=function(t,r,e,n){var o=new _(x(t,r,e,n));return s.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},O(w),w[a]="Generator",w[u]=function(){return this},w.toString=function(){return"[object Generator]"},s.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},s.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),f=o.call(u,"finallyLoc");if(a&&f){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(u)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}}}function x(t,r,e,n){var o=r&&r.prototype instanceof E?r:E,i=Object.create(o.prototype),u=new R(n||[]);return i._invoke=function(t,r,e){var n=h;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return G()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var c=P(u,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===h)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var a=b(t,r,e);if("normal"===a.type){if(n=e.done?v:l,a.arg===y)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(n=v,e.method="throw",e.arg=a.arg)}}}(t,e,u),i}function b(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}function E(){}function L(){}function j(){}function O(t){["next","throw","return"].forEach(function(r){t[r]=function(t){return this._invoke(r,t)}})}function _(t){var r;this._invoke=function(e,n){function i(){return new Promise(function(r,i){!function r(e,n,i,u){var c=b(t[e],t,n);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&o.call(f,"__await")?Promise.resolve(f.__await).then(function(t){r("next",t,i,u)},function(t){r("throw",t,i,u)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},u)}u(c.arg)}(e,n,r,i)})}return r=r?r.then(i,i):i()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=b(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:G}}function G(){return{value:e,done:!0}}}(function(){return this}()||Function("return this")())}]).default}); | ||
!function(t,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var e=r();for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}("undefined"!=typeof self?self:this,function(){return function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=0)}([function(t,r,e){t.exports=e(1)},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createPool=a,r.poolAll=function(t,r){var e=this;return new Promise(function(n,i){var c=a({concurrency:r}),f=[];c.onSettled(function(){n(f)}),c.onError(function(t){i(t)}),t.forEach(function(t,r){c.add(u(o.a.mark(function n(){var i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:return i=e.sent,f[r]=i,e.abrupt("return",i);case 5:case"end":return e.stop()}},n,e)})))}),c.start()})};var n=e(2),o=e.n(n),i=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t};function u(t){return function(){var r=t.apply(this,arguments);return new Promise(function(t,e){return function n(o,i){try{var u=r[o](i),c=u.value}catch(t){return void e(t)}if(!u.done)return Promise.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}("next")})}}var c={concurrency:5,started:!0,tasks:[]};function a(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=i({},c,r),n=e.concurrency,a=[],f=[],s=[],l=e.started,h=[],p=e.tasks,v=n,y=function r(){if(console.log(l),l)if(p.length||h.length)for(var e=function(){var e=p.shift();h.push(e),u(o.a.mark(function n(){var i,u,c;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=!1,u=void 0,c=void 0,t.prev=3,t.next=6,e();case 6:u=t.sent,i=!0,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),c=t.t0;case 13:h=h.filter(function(t){return t!==e}),i?(e.resolve(u),s.forEach(function(t){return t(u,e)})):(e.reject(c),f.forEach(function(t){return t(c,e)})),r();case 16:case"end":return t.stop()}},n,t,[[3,10]])}))()};h.length<v&&p.length;)e();else a.forEach(function(t){return t()})};return{add:function(t){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).priority;return new Promise(function(e,n){r?p.unShift(t):p.push(t),t.resolve=e,t.reject=n,y()})},throttle:function(t){v=t},onSettled:function(t){return a.push(t),function(){a=a.filter(function(r){return r!==t})}},onError:function(t){return f.push(t),function(){f=f.filter(function(r){return r!==t})}},onSuccess:function(t){return s.push(t),function(){s=s.filter(function(r){return r!==t})}},stop:function(){l=!1},start:function(){l=!0,y()},clear:function(){p=[]},getActive:function(){return h},getPending:function(){return p},getAll:function(){return[].concat(h,p)},isRunning:function(){return l},isSettled:function(){return!l&&!h.length&&!p.length}}}},function(t,r,e){t.exports=e(3)},function(t,r,e){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=e(4),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,r){!function(r){"use strict";var e,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",f="object"==typeof t,s=r.regeneratorRuntime;if(s)f&&(t.exports=s);else{(s=r.regeneratorRuntime=f?t.exports:{}).wrap=x;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",y={},d={};d[u]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(N([])));m&&m!==n&&o.call(m,u)&&(d=m);var w=j.prototype=E.prototype=Object.create(d);L.prototype=w.constructor=j,j.constructor=L,j[a]=L.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===L||"GeneratorFunction"===(r.displayName||r.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(w),t},s.awrap=function(t){return{__await:t}},O(_.prototype),_.prototype[c]=function(){return this},s.AsyncIterator=_,s.async=function(t,r,e,n){var o=new _(x(t,r,e,n));return s.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},O(w),w[a]="Generator",w[u]=function(){return this},w.toString=function(){return"[object Generator]"},s.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},s.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),f=o.call(u,"finallyLoc");if(a&&f){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(u)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}}}function x(t,r,e,n){var o=r&&r.prototype instanceof E?r:E,i=Object.create(o.prototype),u=new R(n||[]);return i._invoke=function(t,r,e){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return G()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var c=P(u,e);if(c){if(c===y)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===l)throw n=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var a=b(t,r,e);if("normal"===a.type){if(n=e.done?v:h,a.arg===y)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(n=v,e.method="throw",e.arg=a.arg)}}}(t,e,u),i}function b(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}function E(){}function L(){}function j(){}function O(t){["next","throw","return"].forEach(function(r){t[r]=function(t){return this._invoke(r,t)}})}function _(t){var r;this._invoke=function(e,n){function i(){return new Promise(function(r,i){!function r(e,n,i,u){var c=b(t[e],t,n);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&o.call(f,"__await")?Promise.resolve(f.__await).then(function(t){r("next",t,i,u)},function(t){r("throw",t,i,u)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},u)}u(c.arg)}(e,n,r,i)})}return r=r?r.then(i,i):i()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=b(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:G}}function G(){return{value:e,done:!0}}}(function(){return this}()||Function("return this")())}]).default}); | ||
//# sourceMappingURL=swimmer.min.js.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112656
1381