@immahq/aegis 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,8 +71,12 @@ const myStorage: StorageAdapter = {
71
71
  };
72
72
 
73
73
  // Initialize the library before any other operation
74
- import { E2EE } from "@immahq/aegis";
75
- const aegis = new E2EE(myStorage);
74
+ import { Aegis, MemoryStorage } from "@immahq/aegis";
75
+ import type {StorageAdapter} from "@immahq/aegis";
76
+
77
+ //Plug in your preferred storage or use MemoryStorage
78
+ //const memory = new MemoryStorage();
79
+ const aegis = new Aegis(myStorage);
76
80
  ```
77
81
 
78
82
  > **Security Note**: The adapter will store secret key material. In production, always use platform-secured storage (e.g., iOS Keychain, Android Keystore, or a securely encrypted database).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immahq/aegis",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Lightweight, storage-agnostic library for client-side End-to-End (E2E) encryption",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",