Socket
Socket
Sign inDemoInstall

@felte/extender-persist

Package Overview
Dependencies
1
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.8 to 1.0.9

9

package.json
{
"name": "@felte/extender-persist",
"version": "1.0.8",
"version": "1.0.9",
"description": "Use localStorage to persist your Felte forms",

@@ -31,6 +31,6 @@ "main": "dist/index.cjs",

"dependencies": {
"@felte/common": "1.1.1"
"@felte/common": "1.1.2"
},
"devDependencies": {
"felte": "1.2.1",
"felte": "1.2.3",
"module-alias": "^2.2.2",

@@ -60,4 +60,3 @@ "svelte": "^3.46.4"

"test:ci": "nyc -n src pnpm test"
},
"readme": "# @felte/extender-persist\n\n[![Tests](https://github.com/pablo-abc/felte/workflows/Tests/badge.svg)](https://github.com/pablo-abc/felte/actions/workflows/test.yml)\n[![Bundle size](https://img.shields.io/bundlephobia/min/@felte/extender-persist)](https://bundlephobia.com/result?p=@felte/extender-persist)\n[![NPM Version](https://img.shields.io/npm/v/@felte/extender-persist)](https://www.npmjs.com/package/@felte/extender-persist)\n[![codecov](https://codecov.io/gh/pablo-abc/felte/branch/main/graph/badge.svg?token=T73OJZ50LC)](https://codecov.io/gh/pablo-abc/felte)\n\nA package to persist your form's state in localStorage.\n\n## Installation\n\n```sh\nnpm install --save @felte/extender-persist\n\n# Or, if you use yarn\n\nyarn add @felte/extender-persist\n```\n\n## Usage\n\nExtend Felte with the `extender` export, the extenders accepts an object with options. A unique ID is required to use it as the ID for the localStorage.\n\n```javascript\nimport { extender } from '@felte/validator-yup';\n\nconst { form } = createForm({\n // ...\n extend: extender({ id: 'uniqueId' }), // or `extend: [extender({ id: 'uniqueId' })],`\n // ...\n});\n```\n\n## Ignoring fields\n\nYou might not want to save certain fields such as passwords to local storage, for this you may add an extra property to the configuration of the extender with an array of paths to the data you want to ignore:\n\n```javascript\n{\n extend: extender({ id: 'uniqueId', ignore: ['account.password'] }),\n}\n```\n\nOr you may add the attribute `data-felte-extender-persist-ignore` to the input you don't want to persist.\n"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc