@daaku/firebase-blob-db
Advanced tools
Comparing version 1.2.0 to 2.0.0
import { downloadURL, } from '@daaku/firebase-storage'; | ||
// Resilient uploading of blobs to Firebase Storage. | ||
export class FirebaseBlobDB { | ||
db; | ||
client; | ||
onError; | ||
onComplete; | ||
blobInfoStoreName; | ||
blobCacheStoreName; | ||
blobQueueStoreName; | ||
running = false; | ||
constructor(config) { | ||
var _a, _b, _c; | ||
this.running = false; | ||
this.client = config.client; | ||
this.onError = config.onError; | ||
this.onComplete = config.onComplete; | ||
this.blobInfoStoreName = (_a = config.blobInfoStoreName) !== null && _a !== void 0 ? _a : 'blob_info'; | ||
this.blobCacheStoreName = (_b = config.blobCacheStoreName) !== null && _b !== void 0 ? _b : 'blob_cache'; | ||
this.blobQueueStoreName = (_c = config.blobQueueStoreName) !== null && _c !== void 0 ? _c : 'blob_queue'; | ||
this.blobInfoStoreName = config.blobInfoStoreName ?? 'blob_info'; | ||
this.blobCacheStoreName = config.blobCacheStoreName ?? 'blob_cache'; | ||
this.blobQueueStoreName = config.blobQueueStoreName ?? 'blob_queue'; | ||
} | ||
@@ -14,0 +20,0 @@ // Call this in your upgradeDB transaction. |
{ | ||
"name": "@daaku/firebase-blob-db", | ||
"author": "Naitik Shah <n@daaku.org>", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "Resilient uploading of blobs to Firebase Storage.", | ||
"repository": "git@github.com:daaku/firebase-blob-db", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"license": "MIT", | ||
"prettier": "prettier-config-daaku", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": "./dist/src/index.js", | ||
"types": "./dist/src/index.d.ts" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "@daaku" | ||
}, | ||
"scripts": { | ||
@@ -24,11 +33,10 @@ "check:types": "tsc --noEmit", | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@daaku/eslint-config": "^4.0.0", | ||
"@daaku/firebase-auth": "^1.1.0", | ||
"@daaku/qunit-puppeteer": "^1.2.0", | ||
"@daaku/firebase-auth": "^2.2.0", | ||
"@daaku/qunit-puppeteer": "^2.0.0", | ||
"@types/qunit": "^2.11.2", | ||
"esbuild": "^0.13.8", | ||
"esbuild": "^0.14.0", | ||
"eslint": "^8.1.0", | ||
"nanoid": "^3.1.30", | ||
"nanoid": "^4.0.0", | ||
"npm-run-all": "^4.1.5", | ||
@@ -40,5 +48,5 @@ "prettier-config-daaku": "^1.0.0", | ||
"dependencies": { | ||
"@daaku/firebase-storage": "^1.1.0", | ||
"idb": "^6.1.5" | ||
"@daaku/firebase-storage": "^2.0.0", | ||
"idb": "^7.0.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
15968
200
Yes
+ Added@daaku/firebase-storage@2.2.0(transitive)
+ Addedidb@7.1.1(transitive)
- Removed@daaku/firebase-storage@1.1.0(transitive)
- Removedidb@6.1.5(transitive)
Updatedidb@^7.0.2