From 61ac3c1b4d09419332d33a4c934dde1facd5c6cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 12:25:14 +0000 Subject: [PATCH] [CI] test built --- dist/index.js | 10 +++++++++- report.txt | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 report.txt diff --git a/dist/index.js b/dist/index.js index b555e947..d20f16fa 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 @@ -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'); diff --git a/report.txt b/report.txt new file mode 100644 index 00000000..860998a5 --- /dev/null +++ b/report.txt @@ -0,0 +1 @@ +1735043113