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.
Astatine - A Small Ajax and HTML Form Library. Library entry point. Globally available by using Astatine
or At
.
npm install axa --save
dist/axa.js
src/axa.b.m.js
Ajax is a lower level utility function that allows for more control but less features than the submit method.
action: String
Resource action url. Required
method: String
Valid methods get, post, put, delete. Required
success: Function
Required
error: Function
Required
data: Object
If method is GET
than data is 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' stringify options.data
xml
'application/xml, text/xml'html
'text/html'text
'text/plain'options.data
responseType: String
Converts the response data after sending.
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 it will map directly to the XHR header. The Will overwrite any above options.
Astatine.ajax({
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 = Astatine.serialize(data);
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.