Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
An AJAX library abstracted from jQuery offers the same APIs as jQuery AJAX without other redundancy.
npm install unjq-ajax
such as: .ajax, .get, .post, .getJSON, .getScript
such as: .then(func), .done(func), .fail(func), .always(func)
such as: ajaxStart, ajaxSend, ajaxSuccess, ajaxError, ajaxComplete, ajaxStop
Encode a set of form elements as a string for submission.
Encode a set of form elements as an array of names and values.
such as isFunction, isWindow, isPlainObject, extend, param
Upload file(s) with one or several file input elements.
import UnJQ, {serialize, upload} from 'unjq-ajax'
UnJQ.get('/json'
, { memo: 'Hello World' }
, (resp) => {
//TODO
}, 'json')
.done(() => {
//TODO
})
.fail(() => {
//TODO
})
.always(() => {
//TODO
})
UnJQ.getJSON('/json'
, (resp) => {
//TODO
})
.fail(() => {
//TODO
})
UnJQ.getScript( "test.js"
, ( data, textStatus, jqxhr ) => {
console.log( data ); // Data returned
console.log( textStatus ); // Success
console.log( jqxhr.status ); // 200
console.log( "Load was performed." );
})
UnJQ.post('/post'
, serialize( document.getElementById('form1') )
, (resp) => {
//TODO
}, 'json')
let file = document.getElementById('theFile')
upload(file, '/post'
, serialize( document.getElementById('form1') )
, (resp) => {
//TODO
})
Run the server
node examples/server.js
DEMO Links
##License
FAQs
AJAX library abstracted from jQuery offers the same APIs.
The npm package unjq-ajax receives a total of 1 weekly downloads. As such, unjq-ajax popularity was classified as not popular.
We found that unjq-ajax 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.