@infrab4a/connect 1.0.0-beta.15 → 1.0.0-beta.16

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.
@@ -1729,7 +1729,7 @@
1729
1729
  fromFirestore: function (snap) {
1730
1730
  var data = snap.data();
1731
1731
  Object.keys(data).forEach(function (key) {
1732
- if (data[key] instanceof firebase__default["default"].firestore.Timestamp) {
1732
+ if (typeof data[key] === 'object' && '_seconds' in data[key]) {
1733
1733
  data[key] = data[key].toDate();
1734
1734
  }
1735
1735
  });
@@ -1843,7 +1843,7 @@
1843
1843
  case 0:
1844
1844
  query = this.collection(this.buildCollectionPathForFind(filters));
1845
1845
  query = this.makeFirestoreWhere(query, filters);
1846
- Object.keys(orderBy).forEach(function (fieldName) { return (query = query.orderBy(fieldName, orderBy[fieldName])); });
1846
+ Object.keys(orderBy || {}).forEach(function (fieldName) { return (query = query.orderBy(fieldName, orderBy[fieldName])); });
1847
1847
  return [4 /*yield*/, this.defineLimits(query, filters, limits)];
1848
1848
  case 1:
1849
1849
  query = _a.sent();