Skip to content

Commit 04f424c

Browse files
committed
deps: promise-call-limit@3.0.2
1 parent a0aff07 commit 04f424c

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

node_modules/promise-call-limit/dist/commonjs/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const os = __importStar(require("node:os"));
2929
// cpus() cpus() can return an empty list if /proc is not mounted, use 1 in
3030
// this case
3131
/* c8 ignore start */
32-
const defLimit = 'availableParallelism' in os
33-
? Math.max(1, os.availableParallelism() - 1)
32+
const defLimit = 'availableParallelism' in os ?
33+
Math.max(1, os.availableParallelism() - 1)
3434
: Math.max(1, os.cpus().length - 1);
3535
const callLimit = (queue, { limit = defLimit, rejectLate } = {}) => new Promise((res, rej) => {
3636
let active = 0;

node_modules/promise-call-limit/dist/esm/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import * as os from 'node:os';
33
// cpus() cpus() can return an empty list if /proc is not mounted, use 1 in
44
// this case
55
/* c8 ignore start */
6-
const defLimit = 'availableParallelism' in os
7-
? Math.max(1, os.availableParallelism() - 1)
6+
const defLimit = 'availableParallelism' in os ?
7+
Math.max(1, os.availableParallelism() - 1)
88
: Math.max(1, os.cpus().length - 1);
99
export const callLimit = (queue, { limit = defLimit, rejectLate } = {}) => new Promise((res, rej) => {
1010
let active = 0;

node_modules/promise-call-limit/package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "promise-call-limit",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"files": [
55
"dist"
66
],
@@ -18,16 +18,17 @@
1818
"test": "tap",
1919
"preversion": "npm test",
2020
"postversion": "npm publish",
21-
"prepublishOnly": "git push origin --follow-tags"
21+
"prepublishOnly": "git push origin --follow-tags",
22+
"format": "prettier --write . --log-level warn --cache"
2223
},
2324
"devDependencies": {
24-
"prettier": "^3.2.1",
25-
"tap": "^18.6.1",
26-
"tshy": "^1.8.2",
27-
"format": "prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache",
28-
"typedoc": "typedoc"
25+
"prettier": "^3.3.3",
26+
"tap": "^21.0.1",
27+
"tshy": "^3.0.2",
28+
"typedoc": "^0.26.6"
2929
},
3030
"prettier": {
31+
"experimentalTernaries": true,
3132
"semi": false,
3233
"printWidth": 70,
3334
"tabWidth": 2,
@@ -62,5 +63,6 @@
6263
},
6364
"main": "./dist/commonjs/index.js",
6465
"types": "./dist/commonjs/index.d.ts",
65-
"type": "module"
66+
"type": "module",
67+
"module": "./dist/esm/index.js"
6668
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12678,9 +12678,9 @@
1267812678
}
1267912679
},
1268012680
"node_modules/promise-call-limit": {
12681-
"version": "3.0.1",
12682-
"resolved": "https://registry.npmjs.org/promise-call-limit/-/promise-call-limit-3.0.1.tgz",
12683-
"integrity": "sha512-utl+0x8gIDasV5X+PI5qWEPqH6fJS0pFtQ/4gZ95xfEFb/89dmh+/b895TbFDBLiafBvxD/PGTKfvxl4kH/pQg==",
12681+
"version": "3.0.2",
12682+
"resolved": "https://registry.npmjs.org/promise-call-limit/-/promise-call-limit-3.0.2.tgz",
12683+
"integrity": "sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==",
1268412684
"license": "ISC",
1268512685
"funding": {
1268612686
"url": "https://github.com/sponsors/isaacs"

0 commit comments

Comments
 (0)