expo-openclaw-chat 0.2.5 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-openclaw-chat",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Minimal chat SDK for Expo apps to connect to OpenClaw gateway",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -12,8 +12,12 @@ import { sha256, sha512 } from "@noble/hashes/sha2.js";
12
12
  import { bytesToHex } from "@noble/hashes/utils.js";
13
13
  import { storage } from "./storage";
14
14
 
15
- // Configure ed25519 to use sync sha512 (avoids crypto.subtle requirement)
16
- ed.hashes.sha512 = (message: Uint8Array): Uint8Array => sha512(message);
15
+ // Configure ed25519 to use sync sha512 (avoids crypto.subtle requirement).
16
+ // Cast bypasses a Uint8Array<ArrayBufferLike> mismatch against @noble/ed25519
17
+ // v3's Bytes type that surfaces under consumers' stricter TS lib settings.
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+ (ed.hashes as any).sha512 = (message: Uint8Array): Uint8Array =>
20
+ sha512(message);
17
21
 
18
22
  const STORAGE_KEY = "openclaw_device_identity";
19
23
  const STORAGE_KEY_PUBLIC = "openclaw_device_identity_public";