@wxn0brp/db-storage-web 0.0.4 → 0.0.5
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 +14 -0
- package/dist/version.js +1 -1
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -6,4 +6,18 @@ This plugin provides web storage (localStorage/sessionStorage) operations for Va
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @wxn0brp/db-storage-web
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { createWebStorageValthera } from "@wxn0brp/db-storage-web";
|
|
15
|
+
|
|
16
|
+
// Similar to createMemoryValthera, but persists data in web storage
|
|
17
|
+
const db = createWebStorageValthera("my-db", {
|
|
18
|
+
users: [
|
|
19
|
+
{ id: 1, name: "Alice" },
|
|
20
|
+
{ id: 2, name: "Mieszko" }
|
|
21
|
+
]
|
|
22
|
+
});
|
|
9
23
|
```
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.0.
|
|
1
|
+
export const version = "0.0.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wxn0brp/db-storage-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "wxn0brP",
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/wxn0brP/ValtheraDB",
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@wxn0brp/db-core": ">=0.
|
|
16
|
+
"@wxn0brp/db-core": ">=0.3.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@wxn0brp/db-core": "^0.2.4",
|
|
19
|
+
"@wxn0brp/db-core": "^0.3.0",
|
|
21
20
|
"tsc-alias": "*",
|
|
22
21
|
"typescript": "*"
|
|
23
22
|
},
|