@peerbit/any-store-opfs
Advanced tools
Comparing version
@@ -86,3 +86,3 @@ import { deserialize, serialize } from "@dao-xyz/borsh"; | ||
async close() { | ||
this.worker.terminate(); | ||
this.worker?.terminate(); | ||
this.worker = undefined; | ||
@@ -89,0 +89,0 @@ this._responseCallbacks.clear(); |
@@ -83,4 +83,4 @@ // TODO make bundle by removing unecessary dependencies | ||
} | ||
await calculateSize(); | ||
} | ||
await calculateSize(); | ||
isOpen = true; | ||
@@ -87,0 +87,0 @@ }; |
{ | ||
"name": "@peerbit/any-store-opfs", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "OPFS worker", | ||
@@ -5,0 +5,0 @@ "sideEffects": true, |
@@ -131,3 +131,3 @@ import { deserialize, serialize } from "@dao-xyz/borsh"; | ||
async close(): Promise<void> { | ||
this.worker.terminate(); | ||
this.worker?.terminate(); | ||
this.worker = undefined!; | ||
@@ -134,0 +134,0 @@ this._responseCallbacks.clear(); |
@@ -108,4 +108,4 @@ // TODO make bundle by removing unecessary dependencies | ||
} | ||
await calculateSize(); | ||
} | ||
await calculateSize(); | ||
isOpen = true; | ||
@@ -112,0 +112,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
841927
051
-5.56%