serialized-query
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -31,4 +31,4 @@ import { ISnapShot } from 'typed-conversions'; | ||
handleSnapshot(fn: (snap: ISnapShot) => any): this; | ||
execute(db?: ISimplifiedDBAdaptor): Promise<any>; | ||
execute(): Promise<any>; | ||
private validateNoKey(caller, key); | ||
} |
@@ -104,8 +104,5 @@ "use strict"; | ||
} | ||
execute(db) { | ||
execute() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!db) { | ||
db = this._db; | ||
} | ||
const snap = yield this.deserialize(db).once('value'); | ||
const snap = yield this.deserialize().once('value'); | ||
return this._handleSnapshot | ||
@@ -112,0 +109,0 @@ ? this._handleSnapshot(snap) |
{ | ||
"name": "serialized-query", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "A simple Typescript class to serialize Firebase queries", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
11500
151