First release

This commit is contained in:
Owen Quinlan 2021-07-02 19:29:34 +10:00
commit fa6c85266e
2339 changed files with 761050 additions and 0 deletions

21
node_modules/throttles/dist/index.js generated vendored Normal file
View file

@ -0,0 +1,21 @@
module.exports = function (limit) {
limit = limit || 1;
var queue=[], wip=0;
function toAdd(fn) {
queue.push(fn) > 1 || run(); // initializes if 1st
}
function isDone() {
wip--; // make room for next
run();
}
function run() {
if (wip < limit && queue.length > 0) {
queue.shift()(); wip++; // is now WIP
}
}
return [toAdd, isDone];
}

1
node_modules/throttles/dist/index.min.js generated vendored Normal file
View file

@ -0,0 +1 @@
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=function(n){n=n||1;var t=[],f=0;function u(){f<n&&t.length>0&&(t.shift()(),f++)}return[function(n){t.push(n)>1||u()},function(){f--,u()}]}:"function"==typeof define&&define.amd?define(t):n.throttles=function(n){n=n||1;var t=[],f=0;function u(){f<n&&t.length>0&&(t.shift()(),f++)}return[function(n){t.push(n)>1||u()},function(){f--,u()}]}}(this,(function(){return function(n){n=n||1;var t=[],f=0;function u(){f<n&&t.length>0&&(t.shift()(),f++)}return[function(n){t.push(n)>1||u()},function(){f--,u()}]}}));

21
node_modules/throttles/dist/index.mjs generated vendored Normal file
View file

@ -0,0 +1,21 @@
export default function (limit) {
limit = limit || 1;
var queue=[], wip=0;
function toAdd(fn) {
queue.push(fn) > 1 || run(); // initializes if 1st
}
function isDone() {
wip--; // make room for next
run();
}
function run() {
if (wip < limit && queue.length > 0) {
queue.shift()(); wip++; // is now WIP
}
}
return [toAdd, isDone];
}