@trullock/firebase-common 1.1.0 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trullock/firebase-common",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Collection of common firebase helpers",
5
5
  "homepage": "https://github.com/trullock/firebase#readme",
6
6
  "bugs": {
package/src/automapper.js CHANGED
@@ -210,10 +210,10 @@ export function autoMapFromFirestore(obj)
210
210
 
211
211
  for(let migration of migrations)
212
212
  {
213
- if(!migration.shouldApply(key, obj, value, dest, mapping.type))
213
+ if(!migration.shouldApply(key, obj, value, dest, mapping?.type))
214
214
  continue;
215
215
 
216
- value = migration.apply(key, obj, value, dest, mapping.type);
216
+ value = migration.apply(key, obj, value, dest, mapping?.type);
217
217
  }
218
218
 
219
219
  let handled = false;