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.
@axway/amplify-request
Advanced tools
HTTP/HTTPS request library that wraps got and wires up proxy support.
npm install @axway/amplify-request
Create a got
instance:
import * as request from '@axway/amplify-request';
const got = request.init({
ca: '/path/to/ca-bundle.pem',
proxy: 'https://localhost:3129',
strictSSL: false
// ... other got options
});
const { body } = await got('https://www.axway.com', { retry: 0 });
Create got
options object:
import * as request from '@axway/amplify-request';
const opts = request.options({
ca: '/path/to/ca-bundle.pem',
defaults: {
// `defaults` is a helper for declaring values loaded from a config file
caFile: '/path/to/ca-bundle.pem',
certFile: '/path/to/cert.crt',
keyFile: '/path/to/private.key',
proxy: 'https://localhost:3129',
strictSSL: true
},
proxy: 'https://localhost:3129',
strictSSL: false
// ... other got options
});
Get a regular got
instance:
Note that
got
does not support theca
,cert
,defaults
,key
,proxy
, orstrictSSL
properties. Those are specific torequest.options()
andrequest.init()
.
import * as request from '@axway/amplify-request';
let response = await request.got('https://www.axway.com/', { retry: 0 });
// or pass in a generated options object
const opts = request.options({
proxy: 'https://localhost:3129'
});
response = await request.got('https://www.axway.com/', opts);
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE
file included
in this distribution for more information.
FAQs
HTTP request library for Axway CLI packages
The npm package @axway/amplify-request receives a total of 4,760 weekly downloads. As such, @axway/amplify-request popularity was classified as popular.
We found that @axway/amplify-request 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.