@fireproof/core 0.5.5 → 0.5.6

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.5",
3
+ "version": "0.5.6",
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
@@ -17,7 +17,7 @@ import { TransactionBlockstore, doTransaction } from './blockstore.js'
17
17
  // @ts-ignore
18
18
  import charwise from 'charwise'
19
19
 
20
- const ALWAYS_REBUILD = false // todo: make false
20
+ const ALWAYS_REBUILD = false // todo: remove
21
21
 
22
22
  const compare = (a, b) => {
23
23
  const [aKey, aRef] = a
package/src/fireproof.js CHANGED
@@ -47,7 +47,7 @@ export class Fireproof {
47
47
  clock: {
48
48
  byId: byId ? parseCID(byId) : null,
49
49
  byKey: byKey ? parseCID(byKey) : null,
50
- db: db ? db.map(c => parseCID(c)) : null
50
+ db: (db && db.length > 0) ? db.map(c => parseCID(c)) : null
51
51
  },
52
52
  code,
53
53
  name