@dereekb/firebase 13.1.0 → 13.2.0
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/index.cjs.js +3 -3
- package/index.cjs.js.map +1 -1
- package/index.esm.js +3 -3
- package/index.esm.js.map +1 -1
- package/package.json +5 -5
- package/src/lib/common/firestore/snapshot/snapshot.field.d.ts +11 -11
- package/test/package.json +6 -6
package/index.esm.js
CHANGED
|
@@ -5478,15 +5478,15 @@ function firebaseModelLoader(getFirestoreCollection) {
|
|
|
5478
5478
|
/**
|
|
5479
5479
|
* ArkType schema for a FirestoreModelKey (full path like "collection/12345").
|
|
5480
5480
|
*/
|
|
5481
|
-
const firestoreModelKeyType = type('string > 0').narrow((val, ctx) => isFirestoreModelKey(val) || ctx.mustBe('a valid FirestoreModelKey'));
|
|
5481
|
+
const firestoreModelKeyType = type('string > 0').narrow((val, ctx) => (val != null && isFirestoreModelKey(val)) || ctx.mustBe('a valid FirestoreModelKey'));
|
|
5482
5482
|
/**
|
|
5483
5483
|
* ArkType schema for a FirestoreModelId (document ID like "12345").
|
|
5484
5484
|
*/
|
|
5485
|
-
const firestoreModelIdType = type('string > 0').narrow((val, ctx) => isFirestoreModelId(val) || ctx.mustBe('a valid FirestoreModelId'));
|
|
5485
|
+
const firestoreModelIdType = type('string > 0').narrow((val, ctx) => (val != null && isFirestoreModelId(val)) || ctx.mustBe('a valid FirestoreModelId'));
|
|
5486
5486
|
/**
|
|
5487
5487
|
* ArkType schema for a FirestoreModelId or FirestoreModelKey.
|
|
5488
5488
|
*/
|
|
5489
|
-
const firestoreModelIdOrKeyType = type('string > 0').narrow((val, ctx) => isFirestoreModelIdOrKey(val) || ctx.mustBe('a valid FirestoreModelId or FirestoreModelKey'));
|
|
5489
|
+
const firestoreModelIdOrKeyType = type('string > 0').narrow((val, ctx) => (val != null && isFirestoreModelIdOrKey(val)) || ctx.mustBe('a valid FirestoreModelId or FirestoreModelKey'));
|
|
5490
5490
|
|
|
5491
5491
|
const targetModelParamsType = type({
|
|
5492
5492
|
key: firestoreModelKeyType
|