serialized-query
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -28,4 +28,5 @@ /// <reference types="firebase" /> | ||
setDB(db: ISimplifiedDBAdaptor): this; | ||
execute(db?: ISimplifiedDBAdaptor): FirebaseQuery; | ||
deserialize(db?: ISimplifiedDBAdaptor): FirebaseQuery; | ||
execute(db?: ISimplifiedDBAdaptor): Promise<FirebaseDataSnapshot>; | ||
private validateNoKey(caller, key); | ||
} |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -56,3 +64,3 @@ function slashNotation(path) { | ||
} | ||
execute(db) { | ||
deserialize(db) { | ||
if (!db) { | ||
@@ -93,2 +101,10 @@ db = this._db; | ||
} | ||
execute(db) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!db) { | ||
db = this._db; | ||
} | ||
return this.deserialize(db).once('value'); | ||
}); | ||
} | ||
validateNoKey(caller, key) { | ||
@@ -95,0 +111,0 @@ if (key && this._orderBy === 'orderByKey') { |
{ | ||
"name": "serialized-query", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11096
145