
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
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 3 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.