Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serialized-query

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serialized-query - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

8

lib/cjs/serialized-query.js

@@ -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(", ")}`);

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc