@fireproof/core 0.5.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fireproof/core",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Cloudless database for apps, the browser, and IPFS",
5
5
  "main": "dist/src/fireproof.js",
6
6
  "module": "dist/src/fireproof.mjs",
package/src/db-index.js CHANGED
@@ -100,8 +100,8 @@ export class DbIndex {
100
100
  }
101
101
  if (typeof name === 'function') {
102
102
  // app is using deprecated API, remove in 0.7
103
- opts = clock
104
- clock = mapFn
103
+ opts = clock || {}
104
+ clock = mapFn || null
105
105
  mapFn = name
106
106
  name = null
107
107
  }