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.
Axa a low level Ajax/Xhr library.
npm install axa --save
dist/axa.js
src/axa.b.m.js
Performance an ajaxa request and is highly configurable.
action: String
Resource action url/uri. Required
method: String
Valid methods get, post, put, delete. Default: GET
success: Function
error: Function
data: Object
If method is GET
than data is serialized and concatenated to the action/url
as parameters.
requestType: String
Converts the request data before sending.
script
'text/javascript, application/javascript, application/x-javascript'json
'application/json' stringifies options.data
xml
'application/xml, text/xml'html
'text/html'text
'text/plain'options.data
responseType: String
Converts the response data after sending a request.
script
'text/javascript, application/javascript, application/x-javascript'json
'application/json'xml
'application/xml, text/xml'html
'text/html'text
'text/plain'contentType: String
Short hand to set the Content-Type Headers. (For request)
accept: String
Short hand to set the Accept Headers. (For response)
mimeType: String
Overwrites return type.
username: String
password: String
withCredentials: Boolean
headers: Object
A low level headers object. This will map directly to the XMLHttpRequest header. This Will overwrite any previously defined options.
Axa.request({
method: 'get',
action: '/examples/index.html',
data: { name: 'stuff' },
success: function (xhr) {
console.log(xhr);
},
error: function (xhr) {
console.log(xhr);
}
});
Object
Single level deep key value parevar stringData = Axa.serialize(data);
Object
a object containing the mimes.var mime = Axa.mime;
Licensed Under MPL 2.0 Copyright 2016 Alexander Elias
FAQs
Axa a low level Ajax/Xhr library.
The npm package axa receives a total of 0 weekly downloads. As such, axa popularity was classified as not popular.
We found that axa 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.