@fireproof/core 0.5.0 → 0.5.2

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.
@@ -38695,11 +38695,13 @@ class DbIndex {
38695
38695
  if (!database.indexBlocks) {
38696
38696
  database.indexBlocks = new TransactionBlockstore(database?.name + '.indexes', database.blocks.valet?.getKeyMaterial());
38697
38697
  }
38698
- /**
38699
- * The map function to apply to each entry in the database.
38700
- * @type {Function}
38701
- */
38702
-
38698
+ if (typeof name === 'function') {
38699
+ // app is using deprecated API, remove in 0.7
38700
+ opts = clock || {};
38701
+ clock = mapFn || null;
38702
+ mapFn = name;
38703
+ name = null;
38704
+ }
38703
38705
  if (typeof mapFn === 'string') {
38704
38706
  this.mapFnString = mapFn;
38705
38707
  } else {