safe-session-storage 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@ A secure, lightweight wrapper for `localStorage`, `sessionStorage`, and `AsyncSt
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
7
|
+
- **Automatic Encryption**: Data is encrypted before being stored.
|
|
8
|
+
- **React & React Native Support**: Hooks for both synchronous and asynchronous storage.
|
|
9
|
+
- **SSR Friendly**: Works perfectly with Next.js and other SSR frameworks.
|
|
10
|
+
- **Zero External Dependencies**: Lightweight and fast.
|
|
11
|
+
- **Type Safe**: Full TypeScript support.
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
@@ -89,6 +89,11 @@ When you store data in storage engines, it is usually stored in plain text. Anyo
|
|
|
89
89
|
- `useAsyncSafeStorage(key, initialValue, options)`
|
|
90
90
|
- `AsyncSafeStorage` class.
|
|
91
91
|
|
|
92
|
+
|
|
93
|
+
## Contribution
|
|
94
|
+
|
|
95
|
+
Feel free to fork and improve this project! Pull requests are welcome.
|
|
96
|
+
|
|
92
97
|
## License
|
|
93
98
|
|
|
94
|
-
|
|
99
|
+
This project is licensed under the Apache-2.0 License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "safe-session-storage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A secure wrapper for localStorage and sessionStorage with automatic encryption.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"crypto-js": "^4.2.0"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|