@fireproof/core 0.5.14 → 0.5.15
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/dist/src/fireproof.mjs
CHANGED
@@ -39012,6 +39012,8 @@ class DbIndex {
|
|
39012
39012
|
this.mapFn = mapFn;
|
39013
39013
|
this.mapFnString = mapFn.toString();
|
39014
39014
|
}
|
39015
|
+
const matches = /=>\s*(.*)/.exec(this.mapFnString);
|
39016
|
+
this.includeDocsDefault = matches && matches.length > 0;
|
39015
39017
|
this.name = name || this.makeName();
|
39016
39018
|
}
|
39017
39019
|
|
@@ -39025,7 +39027,6 @@ class DbIndex {
|
|
39025
39027
|
return this.mapFnString
|
39026
39028
|
} else {
|
39027
39029
|
// it's a consise arrow function, match everythign after the arrow
|
39028
|
-
this.includeDocsDefault = true;
|
39029
39030
|
return matches[1]
|
39030
39031
|
}
|
39031
39032
|
}
|