
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@donutteam/ajax-form
Advanced tools
A class that simplifies AJAX form submission.
Install the package with NPM:
npm install @donutteam/ajax-forms
Simply import the class:
import { AJAXForm } from "@donutteam/ajax-form";
And then call bindAll
:
AJAXForm.bindAll();
That will bind all forms on the page with the ajax
class on them by default. This can also be customized, see Configuration below.
If you prefer, you can also manually construct an AJAXForm
by passing in a form element:
const myForm = document.querySelector("form.my-form");
new AJAXForm(myForm);
The AJAXForm
class contains various static members that can be changed to configure its functionality.
Below are the default options and a brief explanation of what they do:
// The selector required for an element to be selected by bindAll.
AJAXForm.selector = "form.ajax";
// The default credentials mode for the fetch requests performed by AJAXForm.
// This can be overriden on a per-form basis by a "data-credentials-mode" attribute.
AJAXForm.defaultCredentialsMode = "same-origin";
// A selector used on the form itself to find it's message list.
AJAXForm.messageListSelector = "ul";
// The Regular Expression used on message codes to determine if they were success codes.
// This applies a different class to the message list items.
AJAXForm.successCodeRegExp = /SUCCESS_(.*)/;
// The class applied to messages whose codes match the above RegExp.
AJAXForm.successCSSClass = "success";
// The class applied to messages whose codes DO NOT match the above RegExp.
AJAXForm.errorCSSClass = "error";
FAQs
A class that simplifies AJAX form submission.
The npm package @donutteam/ajax-form receives a total of 0 weekly downloads. As such, @donutteam/ajax-form popularity was classified as not popular.
We found that @donutteam/ajax-form 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.