serialized-query
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -128,20 +128,14 @@ "use strict"; | ||
if (this._limitToFirst) { | ||
console.log("ltf"); | ||
q = q.limitToFirst(this.identity.limitToFirst); | ||
} | ||
if (this._limitToLast) { | ||
console.log("ltl"); | ||
q = q.limitToLast(this.identity.limitToLast); | ||
} | ||
if (this._startAt) { | ||
console.log("sa"); | ||
q = q.startAt(this.identity.startAt, this.identity.startAtKey); | ||
} | ||
if (this._endAt) { | ||
console.log("ea"); | ||
q = q.endAt(this.identity.endAt, this.identity.endAtKey); | ||
} | ||
console.log("equalTo:", this._equalTo); | ||
if (this._equalTo) { | ||
console.log("et", this.identity.equalTo, this.identity.equalToKey); | ||
q = q.equalTo(this.identity.equalTo, this.identity.equalToKey); | ||
@@ -220,4 +214,2 @@ } | ||
validateKey(caller, key, allowed) { | ||
console.log(key); | ||
console.log(this.identity); | ||
if (key && !allowed.includes(this._orderBy)) { | ||
@@ -224,0 +216,0 @@ throw new Error(`You can not use the "key" parameter with ${caller}() when using a "${this._orderBy}" sort. Valid ordering strategies are: ${allowed.join(", ")}`); |
@@ -134,20 +134,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (this._limitToFirst) { | ||
console.log("ltf"); | ||
q = q.limitToFirst(this.identity.limitToFirst); | ||
} | ||
if (this._limitToLast) { | ||
console.log("ltl"); | ||
q = q.limitToLast(this.identity.limitToLast); | ||
} | ||
if (this._startAt) { | ||
console.log("sa"); | ||
q = q.startAt(this.identity.startAt, this.identity.startAtKey); | ||
} | ||
if (this._endAt) { | ||
console.log("ea"); | ||
q = q.endAt(this.identity.endAt, this.identity.endAtKey); | ||
} | ||
console.log("equalTo:", this._equalTo); | ||
if (this._equalTo) { | ||
console.log("et", this.identity.equalTo, this.identity.equalToKey); | ||
q = q.equalTo(this.identity.equalTo, this.identity.equalToKey); | ||
@@ -228,4 +222,2 @@ } | ||
validateKey(caller, key, allowed) { | ||
console.log(key); | ||
console.log(this.identity); | ||
if (key && !allowed.includes(this._orderBy)) { | ||
@@ -232,0 +224,0 @@ throw new Error(`You can not use the "key" parameter with ${caller}() when using a "${this._orderBy}" sort. Valid ordering strategies are: ${allowed.join(", ")}`); |
{ | ||
"name": "serialized-query", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"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
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
35736
631