@rebasepro/firebase 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -5,8 +5,8 @@ import { deleteObject, getDownloadURL, getMetadata, getStorage, list, ref, uploa
|
|
|
5
5
|
import { deleteApp, getApps, initializeApp } from "firebase/app";
|
|
6
6
|
import { getToken, initializeAppCheck } from "firebase/app-check";
|
|
7
7
|
import { DEFAULT_DATA_SOURCE_KEY, EntityReference, GeoPoint } from "@rebasepro/types";
|
|
8
|
+
import { COLLECTION_PATH_SEPARATOR, buildRebaseData, normalizeDriverOrderBy, sortProperties, stripCollectionPath } from "@rebasepro/common";
|
|
8
9
|
import { DocumentReference, GeoPoint as GeoPoint$1, Timestamp, VectorValue, collection, deleteDoc, deleteField, doc, getCountFromServer, getDoc, getDocs, getFirestore, limit, onSnapshot, orderBy, query, serverTimestamp, setDoc, startAfter, vector, where } from "firebase/firestore";
|
|
9
|
-
import { COLLECTION_PATH_SEPARATOR, buildRebaseData, sortProperties, stripCollectionPath } from "@rebasepro/common";
|
|
10
10
|
import Fuse from "fuse.js";
|
|
11
11
|
import { getFunctions, httpsCallable } from "firebase/functions";
|
|
12
12
|
import { endAt, equalTo, get, getDatabase, limitToFirst, onValue, orderByChild, orderByKey, push, query as query$1, ref as ref$1, remove, set, startAfter as startAfter$1, startAt } from "firebase/database";
|
|
@@ -1022,7 +1022,7 @@ function useFirestoreDriver({ firebaseApp, textSearchControllerBuilder, firestor
|
|
|
1022
1022
|
if (op === "like" || op === "ilike" || op === "not-like" || op === "not-ilike") throw new Error(`Firestore does not support the "${op}" operator (SQL pattern matching). Use a full-text search index or the collection's searchString instead.`);
|
|
1023
1023
|
queryParams.push(where(key, op, rebaseToFirestoreModel(value, firestore)));
|
|
1024
1024
|
});
|
|
1025
|
-
|
|
1025
|
+
for (const [field, direction] of normalizeDriverOrderBy(orderBy$1, order) ?? []) queryParams.push(orderBy(field, direction));
|
|
1026
1026
|
if (startAfter$2) queryParams.push(startAfter(startAfter$2));
|
|
1027
1027
|
if (limit$1) queryParams.push(limit(limit$1));
|
|
1028
1028
|
return query(collectionReference, ...queryParams);
|