@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 @@ }; |
158
package.json
{ | ||
"name": "@peerbit/any-store-opfs", | ||
"version": "1.0.5", | ||
"description": "OPFS worker", | ||
"sideEffects": true, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
}, | ||
"./opfs-store": { | ||
"types": "./dist/src/opfs-store.d.ts", | ||
"import": "./dist/src/opfs-store.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "peerbit", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dao-xyz/peerbit" | ||
}, | ||
"homepage": "https://github.com/dao-xyz/peerbit", | ||
"bugs": "https://github.com/dao-xyz/peerbit/issues", | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"build": "aegir build", | ||
"test": "", | ||
"lint": "aegir lint" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@peerbit/crypto": "^2.3.5", | ||
"@peerbit/logger": "1.0.3", | ||
"@peerbit/time": "2.0.8", | ||
"@peerbit/any-store-interface": "^1.0.0", | ||
"uuid": "^10.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/uuid": "^9.0.8" | ||
}, | ||
"localMaintainers": [ | ||
"dao.xyz" | ||
] | ||
"name": "@peerbit/any-store-opfs", | ||
"version": "1.0.6-ee20213", | ||
"description": "OPFS worker", | ||
"sideEffects": true, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
}, | ||
"./opfs-store": { | ||
"types": "./dist/src/opfs-store.d.ts", | ||
"import": "./dist/src/opfs-store.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "peerbit", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dao-xyz/peerbit" | ||
}, | ||
"homepage": "https://github.com/dao-xyz/peerbit", | ||
"bugs": "https://github.com/dao-xyz/peerbit/issues", | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"build": "aegir build", | ||
"test": "", | ||
"lint": "aegir lint" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@peerbit/crypto": "2.3.5-ee20213", | ||
"@peerbit/logger": "1.0.3-ee20213", | ||
"@peerbit/time": "2.0.8-ee20213", | ||
"@peerbit/any-store-interface": "1.0.0-ee20213", | ||
"uuid": "^10.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/uuid": "^9.0.8" | ||
}, | ||
"localMaintainers": [ | ||
"dao.xyz" | ||
] | ||
} |
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
842123
0.02%3
50%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated