serialized-query
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -48,3 +48,3 @@ import { IDictionary } from "common-types"; | ||
constructor(path?: string); | ||
readonly path: string; | ||
get path(): string; | ||
setPath(path: string): this; | ||
@@ -81,3 +81,3 @@ /** | ||
where<V>(operation: IComparisonOperator, value: V, key?: string): this; | ||
readonly identity: ISerializedQueryIdentity<T>; | ||
get identity(): ISerializedQueryIdentity<T>; | ||
toJSON(): ISerializedQueryIdentity<T>; | ||
@@ -84,0 +84,0 @@ toString(): string; |
@@ -124,19 +124,19 @@ "use strict"; | ||
case "orderByChild": | ||
q = q.orderByChild(this._orderKey); | ||
q = q.orderByChild(this.identity.orderByKey); | ||
break; | ||
} | ||
if (this._limitToFirst) { | ||
q = q.limitToFirst(this._limitToFirst); | ||
q = q.limitToFirst(this.identity.limitToFirst); | ||
} | ||
if (this._limitToLast) { | ||
q = q.limitToLast(this._limitToLast); | ||
q = q.limitToLast(this.identity.limitToLast); | ||
} | ||
if (this._startAt) { | ||
q = q.startAt(this._startAt, this._startAtKey); | ||
q = q.startAt(this.identity.startAt, this.identity.startAtKey); | ||
} | ||
if (this._endAt) { | ||
q = q.endAt(this._endAt, this._endAtKey); | ||
q = q.endAt(this.identity.endAt, this.identity.endAtKey); | ||
} | ||
if (this._equalTo) { | ||
q = q.equalTo(this._equalTo, this._equalToKey); | ||
q = q.equalTo(this.identity.equalTo, this.identity.equalToKey); | ||
} | ||
@@ -143,0 +143,0 @@ return q; |
@@ -48,3 +48,3 @@ import { IDictionary } from "common-types"; | ||
constructor(path?: string); | ||
readonly path: string; | ||
get path(): string; | ||
setPath(path: string): this; | ||
@@ -81,3 +81,3 @@ /** | ||
where<V>(operation: IComparisonOperator, value: V, key?: string): this; | ||
readonly identity: ISerializedQueryIdentity<T>; | ||
get identity(): ISerializedQueryIdentity<T>; | ||
toJSON(): ISerializedQueryIdentity<T>; | ||
@@ -84,0 +84,0 @@ toString(): string; |
@@ -130,19 +130,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
case "orderByChild": | ||
q = q.orderByChild(this._orderKey); | ||
q = q.orderByChild(this.identity.orderByKey); | ||
break; | ||
} | ||
if (this._limitToFirst) { | ||
q = q.limitToFirst(this._limitToFirst); | ||
q = q.limitToFirst(this.identity.limitToFirst); | ||
} | ||
if (this._limitToLast) { | ||
q = q.limitToLast(this._limitToLast); | ||
q = q.limitToLast(this.identity.limitToLast); | ||
} | ||
if (this._startAt) { | ||
q = q.startAt(this._startAt, this._startAtKey); | ||
q = q.startAt(this.identity.startAt, this.identity.startAtKey); | ||
} | ||
if (this._endAt) { | ||
q = q.endAt(this._endAt, this._endAtKey); | ||
q = q.endAt(this.identity.endAt, this.identity.endAtKey); | ||
} | ||
if (this._equalTo) { | ||
q = q.equalTo(this._equalTo, this._equalToKey); | ||
q = q.equalTo(this.identity.equalTo, this.identity.equalToKey); | ||
} | ||
@@ -149,0 +149,0 @@ return q; |
{ | ||
"name": "serialized-query", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"description": "A simple Typescript class to serialize Firebase queries", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"common-types": "^1.12.9" | ||
"common-types": "^1.12.13" | ||
}, | ||
@@ -35,3 +35,3 @@ "devDependencies": { | ||
"@types/mocha": "^2.2.41", | ||
"@types/node": "^8.10.0", | ||
"@types/node": "^10.10.0", | ||
"@types/rimraf": "^2.0.2", | ||
@@ -55,3 +55,3 @@ "@types/shelljs": "^0.8.5", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.6.4" | ||
"typescript": "^3.7.2" | ||
}, | ||
@@ -58,0 +58,0 @@ "engines": { |
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
34800
Updatedcommon-types@^1.12.13