
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.
@deleteagency/forms
Advanced tools
TODO
Use the package manager npm for installation.
$ npm install @deleteagency/forms
import {Form} from '@deleteagency/forms';
let formElement1 = document.getElementById('form1');
// Extending with options example
const form1 = new Form(formElement1, {
submitElement: formElement1.querySelector('button[type="submit"]'),
errorsSummary: formElement1.querySelector('[data-errors-summary]'),
onSuccessfulSubmit: (response) => {
console.log(response);
},
onFailedSubmit: (error) => {
console.error(error);
},
errorsSummaryTemplate: (errors) => {
return `<div class="alert alert-danger" role="alert">${errors.map(error => `<div>${error}</div>`).join()}</div>`;
},
parsley: {
errorClass: 'is-invalid',
successClass: 'is-valid',
errorsWrapper: '<div class="invalid-feedback" aria-live="assertive"></div>',
errorTemplate: '<div></div>',
},
});
// Extending with inheritance example
class BaseForm extends Form {
constructor(el, options) {
options = {
...options,
submitElement: el.querySelector('button[type="submit"]'),
errorsSummary: el.querySelector('[data-errors-summary]'),
parsley: {
errorClass: 'is-invalid',
successClass: 'is-valid',
errorsWrapper: '<div class="invalid-feedback" aria-live="assertive"></div>',
errorTemplate: '<div></div>',
},
};
super(el, options);
}
onSuccessfulSubmit(response) {
console.log(response);
}
onFailedSubmit(error) {
console.error(error);
}
errorsSummaryTemplate(errors) {
return `<div class="alert alert-danger" role="alert">${errors.map(error => `<div>${error}</div>`).join()}</div>`;
}
}
let formElement2 = document.getElementById('form2');
const form2 = new BaseForm(formElement2);
Required
Type: HTMLFormElement
Optional
Type: Object
Type: boolean
Default: true
Should form be submitted via XHR (axios) or natively.
Type: HTMLElement
Default: null
todo
Type: HTMLElement
Default: null
todo
Type: Axios
Default: require('axios')
todo
Type: string
Default: data-form-control
todo
Type: string
Default: data-form-control-name
todo
Type: string
Default: data-validate-always
todo
Type: Parsley settings
Default: { errorClass: 'is-invalid', successClass: 'is-valid', errorsWrapper: '<ul aria-live="assertive"></ul>', errorTemplate: '<li></li>', }
todo
Type: Function
todo
Type: Function
todo
Type: Function
tod
Type: Function
todo
Type: Function
todo
Type: Function
todo
Type: Function
todo
Type: Function
todo
FAQs
[Live Demo](https://delete-agency.github.io/forms/)
The npm package @deleteagency/forms receives a total of 1 weekly downloads. As such, @deleteagency/forms popularity was classified as not popular.
We found that @deleteagency/forms 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.