Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@akiyamka/extended-fetch
Advanced tools
A window.fetch JavaScript implementation with additional features
A window.fetch JavaScript implementation with additional features
Works just like whatwg fetch but you can
import { fetch, isTimeoutError } from 'extended-fetch';
fetch('/users', {
method: 'POST',
body: JSON.stringify({ foo: 'bar' }),
}).catch((error) => {
// Allow identify timeout error
console.assert(error.message, 'Timeout Error');
console.assert(isTimeoutError(error), true);
});
fetch(
'/users',
{
method: 'POST',
body: JSON.stringify({ foo: 'bar' }),
},
{
// Extra setting
eventListener: (event) => {
if (event.type === 'progress') {
console.log(`Progress changed to ${event.payload}`);
}
},
}
).catch((error) => {
// Allow identify timeout error
console.assert(error.message, 'Timeout Error');
console.assert(isTimeoutError(error), true);
});
Inspired by https://github.com/JakeChampion/fetch
FAQs
Tiny window.fetch JavaScript implementation over XMLHttpRequest with additional features
The npm package @akiyamka/extended-fetch receives a total of 16 weekly downloads. As such, @akiyamka/extended-fetch popularity was classified as not popular.
We found that @akiyamka/extended-fetch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.