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.
@gwansikk/server-chain
Advanced tools
The server-chain is a simple and lightweight HTTP Request library.
A Simple, Lightweight and Easy-to-Use Extension Library for Fetch API.
npm i @gwansikk/server-chain
yarn add @gwansikk/server-chain
const server = ServerChain({
key: 'INSTANCE',
baseURL: 'https://jsonplaceholder.typicode.com',
});
server.get({ url: 'posts/1' }).then(data => console.log(data));
const server = ServerChain({
key: 'INTERCEPTOR',
baseURL: 'https://jsonplaceholder.typicode.com',
interceptors: {
request: request => {
console.log('** request interceptor **');
// You need to modify the request and return the modified request.
// For example, you can add a specific header to the request or modify the URL.
request.headers = {
...request.headers,
Authorization: 'Bearer YOUR_ACCESS_TOKEN',
};
return request;
},
response: response => {
console.log('** response interceptor **');
// You need to modify the response and return the modified response.
return response;
},
error: response => {
console.log('** error interceptor **');
// You need to modify the error response and return the modified response.
return response;
},
},
});
The list below is a roadmap to get to version 1.0.
Information describing how to contribute can be found in the file.
CONTRIBUTING.md
FAQs
The server-chain is a simple and lightweight HTTP Request library.
We found that @gwansikk/server-chain demonstrated a healthy version release cadence and project activity because the last version was released less than 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.