Skip to content

Commit

Permalink
deps: promise-call-limit@3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Nov 20, 2024
1 parent b25712e commit ccadf2a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions node_modules/promise-call-limit/dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const os = __importStar(require("node:os"));
// cpus() cpus() can return an empty list if /proc is not mounted, use 1 in
// this case
/* c8 ignore start */
const defLimit = 'availableParallelism' in os
? Math.max(1, os.availableParallelism() - 1)
const defLimit = 'availableParallelism' in os ?
Math.max(1, os.availableParallelism() - 1)
: Math.max(1, os.cpus().length - 1);
const callLimit = (queue, { limit = defLimit, rejectLate } = {}) => new Promise((res, rej) => {
let active = 0;
Expand Down
4 changes: 2 additions & 2 deletions node_modules/promise-call-limit/dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as os from 'node:os';
// cpus() cpus() can return an empty list if /proc is not mounted, use 1 in
// this case
/* c8 ignore start */
const defLimit = 'availableParallelism' in os
? Math.max(1, os.availableParallelism() - 1)
const defLimit = 'availableParallelism' in os ?
Math.max(1, os.availableParallelism() - 1)
: Math.max(1, os.cpus().length - 1);
export const callLimit = (queue, { limit = defLimit, rejectLate } = {}) => new Promise((res, rej) => {
let active = 0;
Expand Down
18 changes: 10 additions & 8 deletions node_modules/promise-call-limit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "promise-call-limit",
"version": "3.0.1",
"version": "3.0.2",
"files": [
"dist"
],
Expand All @@ -18,16 +18,17 @@
"test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags"
"prepublishOnly": "git push origin --follow-tags",
"format": "prettier --write . --log-level warn --cache"
},
"devDependencies": {
"prettier": "^3.2.1",
"tap": "^18.6.1",
"tshy": "^1.8.2",
"format": "prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache",
"typedoc": "typedoc"
"prettier": "^3.3.3",
"tap": "^21.0.1",
"tshy": "^3.0.2",
"typedoc": "^0.26.6"
},
"prettier": {
"experimentalTernaries": true,
"semi": false,
"printWidth": 70,
"tabWidth": 2,
Expand Down Expand Up @@ -62,5 +63,6 @@
},
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"type": "module"
"type": "module",
"module": "./dist/esm/index.js"
}
6 changes: 3 additions & 3 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -12678,9 +12678,9 @@
}
},
"node_modules/promise-call-limit": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/promise-call-limit/-/promise-call-limit-3.0.1.tgz",
"integrity": "sha512-utl+0x8gIDasV5X+PI5qWEPqH6fJS0pFtQ/4gZ95xfEFb/89dmh+/b895TbFDBLiafBvxD/PGTKfvxl4kH/pQg==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/promise-call-limit/-/promise-call-limit-3.0.2.tgz",
"integrity": "sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==",
"license": "ISC",
"funding": {
"url": "https://github.com/sponsors/isaacs"
Expand Down

0 comments on commit ccadf2a

Please sign in to comment.