Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@deckstar/final-form-focus
Advanced tools
Decorator that will attempt to apply focus to the first field with an error upon an attempted form submission in 🏁 Final Form. Made with TypeScript.
Final Form TS is a subscription-based state-management library for building forms in JavaScript.
Final Form TS is a fork of Erik Rasmussen's Final Form, rewritten in TypeScript.
Pick the form package that you want and install it with the "@deckstar" prefix. For example:
yarn add @deckstar/final-form-focus
The package is mostly compatible with the original final-form
packages.
import { getFormInputs } from "@deckstar/final-form-focus"; // almost identical to the original final-form-focus
If you wish to import packages with their original names (e.g. "final-form-focus" rather than "@deckstar/final-form-focus"), you must install the packages with an alias. Make sure to include the version! For example:
yarn add final-form@npm:@deckstar/final-form-focus@^1.0.0
This alias would allow you to import things with the same package name as the original package. This can be useful if you don't wish to rewrite imports throughout a project.
// import { getFormInputs } from "@deckstar/final-form-focus"; // won't work anymore
import { getFormInputs } from "final-form-focus"; // works after adding the alias!
FAQs
Decorator that will attempt to apply focus to the first field with an error upon an attempted form submission in 🏁 Final Form. Made with TypeScript.
We found that @deckstar/final-form-focus demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.