Gathering detailed insights and metrics for inflight-barrier
Gathering detailed insights and metrics for inflight-barrier
Gathering detailed insights and metrics for inflight-barrier
Gathering detailed insights and metrics for inflight-barrier
One promise for multiple tasks in flight to avoid async duplication
npm install inflight-barrier
Typescript
Module System
Node Version
NPM Version
TypeScript (95.57%)
JavaScript (4.43%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Feb 01, 2021
Latest Version
1.0.1
Package Id
inflight-barrier@1.0.1
Unpacked Size
9.63 kB
Size
2.95 kB
File Count
18
NPM Version
6.14.5
Node Version
14.2.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
One promise for multiple requests in flight to avoid async duplication
1import createInflightBarrier from 'inflight-barrier' 2 3const barrier = createInflightBarrier() 4 5// some request that does some stuff 6function req(key) { 7 // key can be any value which can be used as a key in a Map 8 return barrier(key, () => { 9 // this is where you'd fetch the url or whatever 10 return Promise.delay(100) 11 }) 12} 13 14// only assigns a single setTimeout 15// when it dings, all thens get called with the same result. (There's only 16// one underlying promise.) 17req('foo').then(…) 18req('foo').then(…) 19req('foo').then(…) 20req('foo').then(…)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/1 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
52 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More