Skip to content

Commit

Permalink
build: update distribution (#3583)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-bot authored Dec 27, 2024
1 parent b378ed5 commit bb88e27
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35664,7 +35664,8 @@ __nccwpck_require__.r(__webpack_exports__);

// EXPORTS
__nccwpck_require__.d(__webpack_exports__, {
"default": () => (/* binding */ pLimit)
"default": () => (/* binding */ pLimit),
limitFunction: () => (/* binding */ limitFunction)
});

;// CONCATENATED MODULE: ./node_modules/yocto-queue/index.js
Expand Down Expand Up @@ -35840,6 +35841,13 @@ function pLimit(concurrency) {
return generator;
}

function limitFunction(function_, option) {
const {concurrency} = option;
const limit = pLimit(concurrency);

return (...arguments_) => limit(() => function_(...arguments_));
}

function validateConcurrency(concurrency) {
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
throw new TypeError('Expected `concurrency` to be a number from 1 and up');
Expand Down

0 comments on commit bb88e27

Please sign in to comment.