Browsers' Window.fetch is a WebIDL bound operation; storing it as this.fetchImpl / this.fetchFn and calling via the instance receiver threw "Illegal invocation" on the first request. Bind once at construction in InboxClient, LongPollBridge, and SseBridge. Reported by Prism (multi-device E2EE terminal), blocking every browser consumer of the v4.6 transport stack on inbox.start() / bridge.connect(). WsBridge unaffected (uses WebSocket). Node/Bun fetch tolerates a free receiver, so the bug never surfaced server-side — added regression tests that install a strict-receiver globalThis.fetch to catch the issue without an actual browser harness. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
38 lines
866 B
JSON
38 lines
866 B
JSON
{
|
|
"name": "@shade/storage-encrypted",
|
|
"version": "4.6.1",
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"browser": "./src/index.browser.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./crypto": "./src/crypto.ts",
|
|
"./sqlite": "./src/sqlite.ts",
|
|
"./postgres": "./src/postgres.ts",
|
|
"./idb": "./src/idb.ts"
|
|
},
|
|
"dependencies": {
|
|
"@noble/hashes": "^2.0.1",
|
|
"@shade/core": "workspace:*",
|
|
"@shade/crypto-web": "workspace:*",
|
|
"@shade/storage-postgres": "workspace:*",
|
|
"@shade/storage-sqlite": "workspace:*",
|
|
"idb": "^8.0.3",
|
|
"postgres": "^3.4.9"
|
|
},
|
|
"devDependencies": {
|
|
"fake-indexeddb": "^6.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@shade/keychain": "workspace:*"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@shade/keychain": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|