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.4.10 to 0.5.0

6

lib/cjs/serialized-query.d.ts

@@ -1,5 +0,5 @@

import { rtdb } from "firebase-api-surface";
export interface ISimplifiedDBAdaptor {
ref: (path: string) => any;
}
export declare type DataSnapshot = import("@firebase/database-types").DataSnapshot;
export declare type LazyPath = () => string;

@@ -35,3 +35,3 @@ export declare function slashNotation(path: string): string;

protected _equalTo: string;
protected _handleSnapshot: (snap: rtdb.IDataSnapshot) => any;
protected _handleSnapshot: (snap: DataSnapshot) => any;
constructor(path?: string | LazyPath);

@@ -64,3 +64,3 @@ readonly path: string | LazyPath;

/** allows you to add a handler/transformer for snapshots with the results of the execute() method */
handleSnapshot(fn: (snap: rtdb.IDataSnapshot) => any): this;
handleSnapshot(fn: (snap: DataSnapshot) => any): this;
/** execute the query as a one time fetch */

@@ -67,0 +67,0 @@ execute(): Promise<any>;

@@ -1,5 +0,5 @@

import { rtdb } from "firebase-api-surface";
export interface ISimplifiedDBAdaptor {
ref: (path: string) => any;
}
export declare type DataSnapshot = import("@firebase/database-types").DataSnapshot;
export declare type LazyPath = () => string;

@@ -35,3 +35,3 @@ export declare function slashNotation(path: string): string;

protected _equalTo: string;
protected _handleSnapshot: (snap: rtdb.IDataSnapshot) => any;
protected _handleSnapshot: (snap: DataSnapshot) => any;
constructor(path?: string | LazyPath);

@@ -64,3 +64,3 @@ readonly path: string | LazyPath;

/** allows you to add a handler/transformer for snapshots with the results of the execute() method */
handleSnapshot(fn: (snap: rtdb.IDataSnapshot) => any): this;
handleSnapshot(fn: (snap: DataSnapshot) => any): this;
/** execute the query as a one time fetch */

@@ -67,0 +67,0 @@ execute(): Promise<any>;

{
"name": "serialized-query",
"version": "0.4.10",
"version": "0.5.0",
"description": "A simple Typescript class to serialize Firebase queries",

@@ -19,3 +19,3 @@ "license": "MIT",

"main": "lib/cjs/serialized-query.js",
"typings": "lib/cjs/serialized-query.d.ts",
"typings": "lib/es/serialized-query.d.ts",
"scripts": {

@@ -34,9 +34,8 @@ "clean": "rimraf lib",

"dependencies": {
"common-types": "^1.8.2",
"firebase-api-surface": "^0.8.5"
"common-types": "^1.9.7"
},
"devDependencies": {
"@firebase/database-types": "^0.3.6",
"@types/chai": "^4.1.2",
"@types/chalk": "^2.2.0",
"@types/firebase": "^3.2.1",
"@types/mocha": "^2.2.41",

@@ -46,3 +45,4 @@ "@types/node": "^6.0.0",

"@types/stack-trace": "^0.0.28",
"abstracted-admin": "^0.15.2",
"abstracted-admin": "^0.15.4",
"abstracted-firebase": "^0.15.13",
"async-shelljs": "^0.1.2",

@@ -54,3 +54,3 @@ "bili": "^3.1.2",

"firemock": "^0.19.1",
"firemodel": "^0.19.1",
"firemodel": "^0.20.1",
"js-yaml": "^3.0.0",

@@ -57,0 +57,0 @@ "lodash": "^4.0.0",

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