
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
A small vanilla js library for validate your forms without external dependencies
Install the package
npm install formaggino
Initialize the library
import Formaggino from "formaggino";
const formaggino = new Formaggino();
Create a form remember to include method
, action
and novalidate
on your form
<form
method="POST"
id="form"
action="https://your-action.io/sendform"
novalidate
>
<input name="name" type="text" required />
<span class="form-error">Your error text</span>
...
<div class="form-report-error">error</div>
<div class="form-report-success">success</div>
<span class="form-loading"> loading... </span>
<button type="submit">submit</button>
</form>
call the submitEvent
method
formaggino.submitEvent("#form");
or use the options
formaggino.submitEvent("#form"{
mode: 'json',
loadingClass: 'your-loading__custom_class',
closingTimint: 8000
...
});
don't forget to set you css
.form-error,
.invalid-feedback,
.form-loading,
.form-report-error,
.form-report-success {
display: none;
}
.active {
display: block;
}
Option | Type | Default | Description |
---|---|---|---|
mode | string | form-data | the type of data to send to fetch request, you can also use json |
loadingClass | string | form-loading | the css class for loading element |
errorClass | string | form-error | the css class for each single field of form |
formSuccess | string | form-report-success | the css class for form success element |
formError | string | form-report-error | the css class for form error element |
closingTiming | integer | 3000 | timeout for form report duration |
listener | string | change | the event listener for each single field in form |
npm run dev
. This command will generate UMD
(unminified), CommonJS
and ESM
modules under the dist
folder. It will also watch for changes in source files to recompile.npm run build
. This command will generate the same modules as above and one extra minified UMD
bundle for usage in browser.npm run build
- Produces production version of library modules under dist
folder.npm run dev
- Produces a development version of library and runs a watcher to watch for changes.npm run test
- Runs the tests.npm run lint
- Lints the source code with ESlint.npm run prepare
- Run both BEFORE the package is packed and published, on local npm install without any arguments, and when installing git dependencies.npm run clean
- Deletes dist
and coverage
folders.npm run serve
- serve the index.html with http-serverFAQs
A small vanilla js library for validate your forms
The npm package formaggino receives a total of 0 weekly downloads. As such, formaggino popularity was classified as not popular.
We found that formaggino 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.