@codesense/conseal 0.1.6

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.
@@ -0,0 +1,8 @@
1
+ /** Persists a CryptoKey to IndexedDB under the given name. Overwrites if name exists. */
2
+ declare function save(name: string, key: CryptoKey): Promise<void>;
3
+ /** Loads a CryptoKey from IndexedDB. Returns null if the name is not found. */
4
+ declare function load(name: string): Promise<CryptoKey | null>;
5
+ /** Removes a CryptoKey from IndexedDB. No-op if the name does not exist. */
6
+ declare function remove(name: string): Promise<void>;
7
+
8
+ export { load, remove, save };
@@ -0,0 +1,10 @@
1
+ import {
2
+ load,
3
+ remove,
4
+ save
5
+ } from "./chunk-MDWFWP7Z.js";
6
+ export {
7
+ load,
8
+ remove,
9
+ save
10
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@codesense/conseal",
3
+ "version": "0.1.6",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "types": "./dist/index.d.ts"
11
+ },
12
+ "./storage": {
13
+ "import": "./dist/storage.js",
14
+ "types": "./dist/storage.d.ts"
15
+ }
16
+ },
17
+ "scripts": {
18
+ "build": "tsup",
19
+ "test": "vitest run",
20
+ "test:watch": "vitest"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "engines": {
26
+ "node": ">=18"
27
+ },
28
+ "devDependencies": {
29
+ "fake-indexeddb": "^6.2.5",
30
+ "happy-dom": "^20.0.0",
31
+ "tsup": "^8.0.0",
32
+ "typescript": "^6.0.0",
33
+ "vitest": "^4.0.0",
34
+ "@scure/bip39": "^2.0.0"
35
+ }
36
+ }