New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1 to 0.2.2

8

lib/serialized-query.d.ts

@@ -7,4 +7,4 @@ /// <reference types="firebase" />

export declare function slashNotation(path: string): string;
export declare class SerializedQuery {
static path(path: string | LazyPath): SerializedQuery;
export declare class SerializedQuery<T = any> {
static path(path: string | LazyPath): SerializedQuery<any>;
protected _db: ISimplifiedDBAdaptor;

@@ -19,2 +19,3 @@ protected _path: string | LazyPath;

protected _equalTo: string;
protected _handleSnapshot: (snap: FirebaseDataSnapshot) => any;
constructor(path: string | LazyPath);

@@ -31,4 +32,5 @@ limitToFirst(num: number): this;

deserialize(db?: ISimplifiedDBAdaptor): FirebaseQuery;
execute(db?: ISimplifiedDBAdaptor): Promise<FirebaseDataSnapshot>;
handleSnapshot(fn: (snap: FirebaseDataSnapshot) => any): void;
execute(db?: ISimplifiedDBAdaptor): Promise<any>;
private validateNoKey(caller, key);
}

@@ -100,2 +100,5 @@ "use strict";

}
handleSnapshot(fn) {
this._handleSnapshot = fn;
}
execute(db) {

@@ -106,3 +109,6 @@ return __awaiter(this, void 0, void 0, function* () {

}
return this.deserialize(db).once('value');
const snap = yield this.deserialize(db).once('value');
return this._handleSnapshot
? this._handleSnapshot(snap)
: snap;
});

@@ -109,0 +115,0 @@ }

{
"name": "serialized-query",
"version": "0.2.1",
"version": "0.2.2",
"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