Installations
npm install @sanity/timed-out
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
>=0.10.0
Node Version
12.6.0
NPM Version
6.9.0
Score
98.8
Supply Chain
75.7
Quality
82.5
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
floatdrop
Download Statistics
Total Downloads
19,007,416
Last Day
13,904
Last Week
65,476
Last Month
222,585
Last Year
3,708,563
GitHub Statistics
52 Stars
50 Commits
22 Forks
6 Watching
1 Branches
9 Contributors
Bundle Size
817.00 B
Minified
424.00 B
Minified + Gzipped
Package Meta Information
Latest Version
4.0.2
Package Id
@sanity/timed-out@4.0.2
Size
2.07 kB
NPM Version
6.9.0
Node Version
12.6.0
Publised On
22 Aug 2019
Total Downloads
Cumulative downloads
Total Downloads
19,007,416
Last day
13.7%
13,904
Compared to previous day
Last week
30.9%
65,476
Compared to previous week
Last month
-20.9%
222,585
Compared to previous month
Last year
-28%
3,708,563
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
timed-out
Timeout HTTP/HTTPS requests
Emit Error object with code
property equal ETIMEDOUT
or ESOCKETTIMEDOUT
when ClientRequest is hanged.
Usage
1var get = require('http').get; 2var timeout = require('timed-out'); 3 4var req = get('http://www.google.ru'); 5timeout(req, 2000); // Set 2 seconds limit
API
timedout(request, time)
request
Required
Type: ClientRequest
The request to watch on.
time
Required
Type: number
or object
Time in milliseconds to wait for connect
event on socket and also time to wait on inactive socket.
Or you can pass Object with following fields:
connect
- time to wait for connectionsocket
- time to wait for activity on socket
License
MIT © Vsevolod Strukchinsky
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
- Info: security policy file detected: .github/security.md:1
- Info: Found linked content: .github/security.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/security.md:1
- Info: Found text in security policy: .github/security.md:1
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
Found 10/26 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/timed-out/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/timed-out/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 14 are checked with a SAST tool
Score
4.3
/10
Last Scanned on 2025-01-06
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