@daaku/firebase-blob-db
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,8 +0,6 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FirebaseBlobDB = void 0; | ||
const firebase_storage_1 = require("@daaku/firebase-storage"); | ||
import { downloadURL, } from '@daaku/firebase-storage'; | ||
// Resilient uploading of blobs to Firebase Storage. | ||
class FirebaseBlobDB { | ||
export class FirebaseBlobDB { | ||
constructor(config) { | ||
var _a, _b, _c; | ||
this.running = false; | ||
@@ -12,5 +10,5 @@ this.client = config.client; | ||
this.onComplete = config.onComplete; | ||
this.blobInfoStoreName = config.blobInfoStoreName ?? 'blob_info'; | ||
this.blobCacheStoreName = config.blobCacheStoreName ?? 'blob_cache'; | ||
this.blobQueueStoreName = config.blobQueueStoreName ?? 'blob_queue'; | ||
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'; | ||
} | ||
@@ -89,3 +87,3 @@ // Call this in your upgradeDB transaction. | ||
path: pending.path, | ||
downloadURL: firebase_storage_1.downloadURL(result.metadata), | ||
downloadURL: downloadURL(result.metadata), | ||
}; | ||
@@ -164,3 +162,2 @@ const t = this.db.transaction([ | ||
} | ||
exports.FirebaseBlobDB = FirebaseBlobDB; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@daaku/firebase-blob-db", | ||
"author": "Naitik Shah <n@daaku.org>", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Resilient uploading of blobs to Firebase Storage.", | ||
@@ -27,10 +27,10 @@ "repository": "git@github.com:daaku/firebase-blob-db", | ||
"@daaku/eslint-config": "^3.0.0", | ||
"@daaku/firebase-auth": "^0.1.1", | ||
"@daaku/qunit-puppeteer": "^0.1.2", | ||
"@daaku/firebase-auth": "^0.1.2", | ||
"@daaku/qunit-puppeteer": "^0.1.3", | ||
"@types/qunit": "^2.9.5", | ||
"esbuild": "^0.7.8", | ||
"eslint": "^7.10.0", | ||
"esbuild": "^0.7.15", | ||
"eslint": "^7.11.0", | ||
"nanoid": "^3.1.12", | ||
"npm-run-all": "^4.1.5", | ||
"qunit": "^2.11.2", | ||
"qunit": "^2.11.3", | ||
"typescript": "^4.0.3" | ||
@@ -40,4 +40,4 @@ }, | ||
"@daaku/firebase-storage": "^0.1.1", | ||
"idb": "^5.0.6" | ||
"idb": "^5.0.7" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
15717
194
Updatedidb@^5.0.7