
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
fetch-beacon
Advanced tools
A tiny HTTP client that implements sendBeacon API
navigator.sendBeacon
, which is useful for analytics and diagnostics needs.WARN: You should not use it besides analytics and diagnostics needs
$ npm install fetch-beacon
import beacon from 'fetch-beacon';
(async () => {
const resp = await beacon('https://example.com', {json: {foo: true}});
console.log(resp.json());
//=> `{data: '🦄'}`
})();
Same as fetch, except folloing option.
fetch-beacon
will cache the failed request when get below status code or TimeoutError
and retry it when document load again.
Status codes: 408 413 429 500 502 503 504
Type: number
,
Default: 10000
Type: boolean
,
Default: true
#### options.retry
Type: number
,
Default: 2
Retry failed request if get one of following code.
The error thrown when the request times out.
FAQs
tiny HTTP client that implements sendBeacon API
The npm package fetch-beacon receives a total of 0 weekly downloads. As such, fetch-beacon popularity was classified as not popular.
We found that fetch-beacon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.