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.
http-factory
Advanced tools
A declarative way to instantiate http interfaces and make iterable requests
A declarative way to instantiate http interfaces and make iterable requests.
var client = new HttpClient({ ...options })
.transforms({
request: fn,
response: fn
})
.intercepts({
request: fn,
response: fn,
error: fn
})
.logs({
request: true,
response: true
})
.setBaseUrl('...');
var results = [];
var urls : [{ url: '/users/1 }, { url: '/users/2' }, { url: '/users/3' }];
async function fetchAll () {
for await (var response of client.serialGet(urls)) {
results.push({ data: response.data.id });
// [ { data: 1 } ]
// [ { data: 1 }, { data: 2 } ]
// [ { data: 1 }, { data: 2 }, { data: 3 } ]
}
}
FAQs
declarative, strongly-typed http clients and serial requests
The npm package http-factory receives a total of 1 weekly downloads. As such, http-factory popularity was classified as not popular.
We found that http-factory 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
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.