Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
final-form-persist
Advanced tools
Persist your final-form values into a storage
npm install --save final-form-persist
or
yarn add final-form-persist
import { createForm } from 'final-form'
import { createPersistDecorator } from 'final-form-persist'
const form = createForm({ onSubmit })
const { persistDecorator, clear } = createPersistDecorator({
name: 'myPersistKey'
debounceTime: 500 // in ms
whitelist: ['some', 'key']
storage: localStorage // this is the default
})
const undecorate = persistDecorator(form)
// Use form
// Remove the entry from the storage if you want
clear()
// Clean up
undecorate()
Example build with react-final-form
createPersistDecorator
Creates a final form decorator.
createPersistDecorator = ({
name: string
debounceTime?: number
whitelist: string[]
storage?: Storage
}) => FinalFormPersistDecorator
FinalFormPersistDecorator
{
persistDecorator: Decorator
clear: () => void
isPersisted: boolean
}
MIT © premieroctet
FAQs
Persist your form values into a storage
The npm package final-form-persist receives a total of 450 weekly downloads. As such, final-form-persist popularity was classified as not popular.
We found that final-form-persist demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.