New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

firebase-api-surface

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-api-surface - npm Package Compare versions

Comparing version

to
0.7.1

5

lib/rtdb.d.ts

@@ -34,5 +34,6 @@ import { FirebaseApp } from "@firebase/app-types";

remove(onComplete?: (a: Error | null) => void): Promise<void>;
transaction(transactionUpdate: (a: Partial<T>) => Partial<T>, onComplete?: (a: Error | null, b: boolean, c: IDataSnapshot<T> | null) => void, applyLocally?: boolean): Promise<ITransactionResult<T>>;
transaction(transactionUpdate: (a: Partial<T>) => any, onComplete?: (a: Error | null, b: boolean, c: IDataSnapshot | null) => any, applyLocally?: boolean): Promise<ITransactionResult<T>>;
update(values: Object, onComplete?: (a: Error | null) => any): Promise<any>;
setPriority(priority: string | number | null, onComplete?: (a: Error | null) => void): Promise<void>;
push(value?: any, onComplete?: (a: Error | null) => void): IReference<T>;
push(value?: any, onComplete?: (a: Error | null) => void): IThenableReference<T>;
onDisconnect(): IOnDisconnect<T>;

@@ -39,0 +40,0 @@ readonly key: string | null;

2

package.json
{
"name": "firebase-api-surface",
"version": "0.7.0",
"version": "0.7.1",
"description": "the publically exposed firebase API",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -79,2 +79,3 @@ import { FirebaseApp } from "@firebase/app-types";

import { DataSnapshot } from "@firebase/database-types";
export interface IReference<T = any> extends IQuery<T> {

@@ -98,10 +99,7 @@ /** Writes data to a Database location */

transaction(
transactionUpdate: (a: Partial<T>) => Partial<T>,
onComplete?: (
a: Error | null,
b: boolean,
c: IDataSnapshot<T> | null
) => void,
transactionUpdate: (a: Partial<T>) => any,
onComplete?: (a: Error | null, b: boolean, c: IDataSnapshot | null) => any,
applyLocally?: boolean
): Promise<ITransactionResult<T>>;
update(values: Object, onComplete?: (a: Error | null) => any): Promise<any>;
/** Sets a priority for the data at this Database location. */

@@ -113,3 +111,6 @@ setPriority(

/** Generates a new child location using a unique key and returns its IReference. */
push(value?: any, onComplete?: (a: Error | null) => void): IReference<T>;
push(
value?: any,
onComplete?: (a: Error | null) => void
): IThenableReference<T>;
/** Returns an OnDisconnect object - see Enabling Offline Capabilities in JavaScript for more information on how to use it. */

@@ -116,0 +117,0 @@ onDisconnect(): IOnDisconnect<T>;