@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.
- package/README.md +11 -0
- package/dist/src/fireproof.js +7 -5
- package/dist/src/fireproof.js.map +1 -1
- package/dist/src/fireproof.mjs +7 -5
- package/dist/src/fireproof.mjs.map +1 -1
- package/package.json +3 -3
- package/src/db-index.js +7 -5
package/dist/src/fireproof.mjs
CHANGED
@@ -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
|
-
|
38700
|
-
|
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 {
|