@fireproof/core 0.8.0-dev.2 → 0.8.0-dev.3
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.js +214 -180
- package/dist/src/fireproof.js.map +1 -1
- package/dist/src/fireproof.mjs +214 -180
- package/dist/src/fireproof.mjs.map +1 -1
- package/dist/storage/base.js +1 -1
- package/package.json +1 -1
- package/src/storage/base.js +1 -1
package/dist/storage/base.js
CHANGED
@@ -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
package/src/storage/base.js
CHANGED
@@ -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 // ?
|