@fireproof/core 0.8.0-dev.2 → 0.8.0-dev.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -125,7 +125,7 @@ export class Base {
125
125
  header.key && this.setKeyMaterial(header.key);
126
126
  // this.setCarCidMapCarCid(header.car) // instead we should just extract the list of cars from the car
127
127
  const carHeader = await this.readHeaderCar(header.car);
128
- this.carLog = carHeader.cars;
128
+ this.carLog = carHeader.cars || [];
129
129
  // console.log('stored carHeader', this.name, this.config.type, this.carLog)
130
130
  // this.lastCar = header.car // ?
131
131
  if (header.car) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fireproof/core",
3
- "version": "0.8.0-dev.2",
3
+ "version": "0.8.0-dev.3",
4
4
  "description": "Live data for React, accelerated by proofs, powered by IPFS",
5
5
  "main": "dist/src/fireproof.js",
6
6
  "module": "dist/src/fireproof.mjs",
@@ -143,7 +143,7 @@ export class Base {
143
143
  header.key && this.setKeyMaterial(header.key)
144
144
  // this.setCarCidMapCarCid(header.car) // instead we should just extract the list of cars from the car
145
145
  const carHeader = await this.readHeaderCar(header.car)
146
- this.carLog = carHeader.cars
146
+ this.carLog = carHeader.cars || []
147
147
  // console.log('stored carHeader', this.name, this.config.type, this.carLog)
148
148
 
149
149
  // this.lastCar = header.car // ?