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

@firebase/firestore-compat

Package Overview
Dependencies
Maintainers
5
Versions
1180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/firestore-compat - npm Package Compare versions

Comparing version 0.1.0-2021719172025 to 0.1.0-2021719182840

2

dist/index.esm2017.js

@@ -7,3 +7,3 @@ import firebase from '@firebase/app-compat';

const name = "@firebase/firestore-compat";
const version = "0.1.0-2021719172025";
const version = "0.1.0-2021719182840";

@@ -10,0 +10,0 @@ /**

@@ -8,3 +8,3 @@ import firebase from '@firebase/app-compat';

const name = "@firebase/firestore-compat";
const version = "0.1.0-2021719172025";
const version = "0.1.0-2021719182840";

@@ -11,0 +11,0 @@ /**

@@ -7,3 +7,3 @@ import firebase from '@firebase/app-compat';

const name = "@firebase/firestore-compat";
const version = "0.1.0-2021719172025";
const version = "0.1.0-2021719182840";

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ import firebase from '@firebase/app-compat';

const name = "@firebase/firestore-compat";
const version = "0.1.0-2021719172025";
const version = "0.1.0-2021719182840";

@@ -10,0 +10,0 @@ /**

@@ -50,1 +50,73 @@ /**

}
import { FirebaseApp as FirebaseAppCompat } from "@firebase/app-compat";
import { WithFieldValue, DocumentReference, CollectionReference, DocumentData, Query, EmulatorMockTokenOptions, PersistenceSettings, DocumentSnapshot, QuerySnapshot, Firestore, FirestoreSettings, LoadBundleTask, FirestoreError, Unsubscribe, SnapshotListenOptions, QueryConstraint, Transaction, PartialWithFieldValue, SetOptions, UpdateData, FieldPath, WriteBatch } from "@firebase/firestore";
declare module "@firebase/firestore" {
function addDoc<T>(reference: types.CollectionReference<T>, data: WithFieldValue<T>): Promise<DocumentReference<T>>;
function clearIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
function collection(firestore: types.FirebaseFirestore, path: string, ...pathSegments: string[]): CollectionReference<DocumentData>;
function collection(reference: types.CollectionReference<unknown>, path: string, ...pathSegments: string[]): CollectionReference<DocumentData>;
function collection(reference: types.DocumentReference, path: string, ...pathSegments: string[]): CollectionReference<DocumentData>;
function collectionGroup(firestore: types.FirebaseFirestore, collectionId: string): Query<DocumentData>;
function connectFirestoreEmulator(firestore: types.FirebaseFirestore, host: string, port: number, options?: {
mockUserToken?: EmulatorMockTokenOptions | string;
}): void;
function deleteDoc(reference: types.DocumentReference<unknown>): Promise<void>;
function disableNetwork(firestore: types.FirebaseFirestore): Promise<void>;
function doc(firestore: types.FirebaseFirestore, path: string, ...pathSegments: string[]): DocumentReference<DocumentData>;
function doc<T>(reference: types.CollectionReference<T>, path?: string, ...pathSegments: string[]): DocumentReference<T>;
function doc(reference: types.DocumentReference<unknown>, path: string, ...pathSegments: string[]): DocumentReference<DocumentData>;
function enableIndexedDbPersistence(firestore: types.FirebaseFirestore, persistenceSettings?: PersistenceSettings): Promise<void>;
function enableMultiTabIndexedDbPersistence(firestore: types.FirebaseFirestore): Promise<void>;
function enableNetwork(firestore: types.FirebaseFirestore): Promise<void>;
function getDoc<T>(reference: types.DocumentReference<T>): Promise<DocumentSnapshot<T>>;
function getDocFromCache<T>(reference: types.DocumentReference<T>): Promise<DocumentSnapshot<T>>;
function getDocFromServer<T>(reference: types.DocumentReference<T>): Promise<DocumentSnapshot<T>>;
function getDocs<T>(query: types.Query<T>): Promise<QuerySnapshot<T>>;
function getDocsFromCache<T>(query: types.Query<T>): Promise<QuerySnapshot<T>>;
function getDocsFromServer<T>(query: types.Query<T>): Promise<QuerySnapshot<T>>;
function getFirestore(app?: FirebaseAppCompat): Firestore;
function initializeFirestore(app: FirebaseAppCompat, settings: FirestoreSettings): Firestore;
function loadBundle(firestore: types.FirebaseFirestore, bundleData: ReadableStream<Uint8Array> | ArrayBuffer | string): LoadBundleTask;
function namedQuery(firestore: types.FirebaseFirestore, name: string): Promise<Query | null>;
function onSnapshot<T>(reference: types.DocumentReference<T>, observer: {
next?: (snapshot: DocumentSnapshot<T>) => void;
error?: (error: FirestoreError) => void;
complete?: () => void;
}): Unsubscribe;
function onSnapshot<T>(reference: types.DocumentReference<T>, options: SnapshotListenOptions, observer: {
next?: (snapshot: DocumentSnapshot<T>) => void;
error?: (error: FirestoreError) => void;
complete?: () => void;
}): Unsubscribe;
function onSnapshot<T>(reference: types.DocumentReference<T>, onNext: (snapshot: DocumentSnapshot<T>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
function onSnapshot<T>(reference: types.DocumentReference<T>, options: SnapshotListenOptions, onNext: (snapshot: DocumentSnapshot<T>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
function onSnapshot<T>(query: types.Query<T>, observer: {
next?: (snapshot: QuerySnapshot<T>) => void;
error?: (error: FirestoreError) => void;
complete?: () => void;
}): Unsubscribe;
function onSnapshot<T>(query: types.Query<T>, options: SnapshotListenOptions, observer: {
next?: (snapshot: QuerySnapshot<T>) => void;
error?: (error: FirestoreError) => void;
complete?: () => void;
}): Unsubscribe;
function onSnapshot<T>(query: types.Query<T>, onNext: (snapshot: QuerySnapshot<T>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
function onSnapshot<T>(query: types.Query<T>, options: SnapshotListenOptions, onNext: (snapshot: QuerySnapshot<T>) => void, onError?: (error: FirestoreError) => void, onCompletion?: () => void): Unsubscribe;
function onSnapshotsInSync(firestore: types.FirebaseFirestore, observer: {
next?: (value: void) => void;
error?: (error: FirestoreError) => void;
complete?: () => void;
}): Unsubscribe;
function onSnapshotsInSync(firestore: types.FirebaseFirestore, onSync: () => void): Unsubscribe;
function query<T>(query: types.Query<T>, ...queryConstraints: QueryConstraint[]): Query<T>;
function queryEqual<T>(left: types.Query<T>, right: types.Query<T>): boolean;
function runTransaction<T>(firestore: types.FirebaseFirestore, updateFunction: (transaction: Transaction) => Promise<T>): Promise<T>;
function setDoc<T>(reference: types.DocumentReference<T>, data: WithFieldValue<T>): Promise<void>;
function setDoc<T>(reference: types.DocumentReference<T>, data: PartialWithFieldValue<T>, options: SetOptions): Promise<void>;
function terminate(firestore: types.FirebaseFirestore): Promise<void>;
function updateDoc<T>(reference: types.DocumentReference<T>, data: UpdateData<T>): Promise<void>;
function updateDoc(reference: types.DocumentReference<unknown>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): Promise<void>;
function waitForPendingWrites(firestore: types.FirebaseFirestore): Promise<void>;
function writeBatch(firestore: types.FirebaseFirestore): WriteBatch;
}
{
"name": "@firebase/firestore-compat",
"version": "0.1.0-2021719172025",
"version": "0.1.0-2021719182840",
"description": "The Cloud Firestore component of the Firebase JS SDK.",

@@ -23,9 +23,9 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",

"peerDependencies": {
"@firebase/app-compat": "0.1.0-2021719172025"
"@firebase/app-compat": "0.1.0-2021719182840"
},
"dependencies": {
"@firebase/component": "0.5.6-2021719172025",
"@firebase/firestore": "3.0.0-2021719172025",
"@firebase/util": "1.3.0-2021719172025",
"@firebase/firestore-types": "2.4.0-2021719172025",
"@firebase/component": "0.5.6-2021719182840",
"@firebase/firestore": "3.0.0-2021719182840",
"@firebase/util": "1.3.0-2021719182840",
"@firebase/firestore-types": "2.4.0-2021719182840",
"tslib": "^2.1.0"

@@ -32,0 +32,0 @@ },

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