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.2.0 to 0.2.1

3

lib/serialized-query.d.ts

@@ -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

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