@nemigo/storage 1.8.0 → 2.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/dist/cookie.d.ts +1 -1
- package/dist/cookie.js +1 -1
- package/dist/derived/vault.d.ts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/web.d.ts +1 -1
- package/dist/web.js +1 -1
- package/package.json +11 -11
package/dist/cookie.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { SetDocumentCookieOptions } from "@nemigo/helpers/html/cookie";
|
|
1
2
|
import type { ConstructVeilPrefixStorage } from "./internal/veil-prefix.js";
|
|
2
3
|
import { VeilPrefixStorage } from "./internal/veil-prefix.js";
|
|
3
4
|
import type { IStorage, IStorageValue } from "./types.js";
|
|
4
|
-
import type { SetDocumentCookieOptions } from "@nemigo/helpers/html/cookie";
|
|
5
5
|
/**
|
|
6
6
|
* Опции для {@link CookieStorage.set}
|
|
7
7
|
*/
|
package/dist/cookie.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VeilPrefixStorage } from "./internal/veil-prefix.js";
|
|
2
1
|
import { isSSR } from "@nemigo/helpers/html";
|
|
3
2
|
import { deleteDocumentCookie, getDocumentCookie, setDocumentCookie } from "@nemigo/helpers/html/cookie";
|
|
4
3
|
import { unveil, veil } from "@nemigo/helpers/veil";
|
|
4
|
+
import { VeilPrefixStorage } from "./internal/veil-prefix.js";
|
|
5
5
|
export class CookieStorage extends VeilPrefixStorage {
|
|
6
6
|
__server = new Map();
|
|
7
7
|
constructor(ctx = {}) {
|
package/dist/derived/vault.d.ts
CHANGED
package/dist/runtime.d.ts
CHANGED
package/dist/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Timestamp } from "@nemigo/helpers/types";
|
|
1
2
|
import { VeilPrefixStorage } from "./internal/veil-prefix.js";
|
|
2
3
|
import type { IStorage, IStorageValue } from "./types.js";
|
|
3
|
-
import type { Timestamp } from "@nemigo/helpers/types";
|
|
4
4
|
export type WebStorageType = "local" | "session";
|
|
5
5
|
export interface WebStorageOptions {
|
|
6
6
|
type?: WebStorageType;
|
package/dist/web.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VeilPrefixStorage } from "./internal/veil-prefix.js";
|
|
2
1
|
import { isSSR } from "@nemigo/helpers/html";
|
|
3
2
|
import { unveil, veil } from "@nemigo/helpers/veil";
|
|
3
|
+
import { VeilPrefixStorage } from "./internal/veil-prefix.js";
|
|
4
4
|
export class WebStorage extends VeilPrefixStorage {
|
|
5
5
|
__isExpired(entry, now) {
|
|
6
6
|
return entry.expired !== undefined && now > entry.expired;
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nemigo/storage",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Vlad Logvin",
|
|
7
7
|
"email": "vlad.logvin84@gmail.com"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"engines": {
|
|
11
|
-
"node": ">=22",
|
|
12
|
-
"pnpm": ">=10.9.0"
|
|
13
|
-
},
|
|
14
10
|
"scripts": {
|
|
15
11
|
"build": "svelte-package && rimraf .svelte-kit",
|
|
16
|
-
"check": "tsc --noemit",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
12
|
+
"check": "bunx --bun tsc --noemit",
|
|
13
|
+
"eslint": "bunx --bun eslint ./",
|
|
14
|
+
"eslint:fix": "bunx --bun eslint --fix ./",
|
|
15
|
+
"lint": "biome lint",
|
|
16
|
+
"lint:fix": "biome lint --fix --unsafe",
|
|
17
|
+
"lint:fix:unsafe": "biome lint --fix --unsafe",
|
|
18
|
+
"format": "biome check --write --linter-enabled=false"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
"./capacity": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@nemigo/helpers": ">=
|
|
51
|
+
"@nemigo/helpers": ">=2.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@nemigo/configs": "
|
|
55
|
-
"@nemigo/helpers": "
|
|
54
|
+
"@nemigo/configs": "2.1.2",
|
|
55
|
+
"@nemigo/helpers": "2.0.2"
|
|
56
56
|
}
|
|
57
57
|
}
|