react-secure-storage
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "react-secure-storage", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "This libraries is used to securely store data in local storage", | ||
@@ -5,0 +5,0 @@ "author": "Sushin Pv", |
@@ -76,2 +76,19 @@ [![npm](https://img.shields.io/npm/v/react-secure-storage.svg)](https://www.npmjs.com/package/react-secure-storage) [![downloads](https://img.shields.io/npm/dm/react-secure-storage.svg)](http://npm-stat.com/charts.html?package=react-secure-storage) | ||
## How to use with Vite | ||
In the latest version of Vite, process is not defined by default, It uses `import.meta.env`, | ||
To define the process, You need to add the following code inside `vite.config.ts` | ||
import { defineConfig } from 'vite' | ||
// ... | ||
export default defineConfig({ | ||
// ... | ||
define: { | ||
"process.env": {}, | ||
}, | ||
}) | ||
Here you can pass all the required `ENV` variables supported by the library inside the process.env object | ||
## To disable properties from key generation | ||
@@ -78,0 +95,0 @@ |
87610
187