@fireproof/core 0.7.2-dev → 0.7.2-dev.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/valet.js CHANGED
@@ -102,6 +102,8 @@ export class Valet {
102
102
  }
103
103
  async function parkCar(storage, innerBlockstore, cids) {
104
104
  // console.log('parkCar', this.instanceId, this.name, carCid, cids)
105
+ if (storage.readonly)
106
+ return;
105
107
  let newCar;
106
108
  if (storage.keyMaterial) {
107
109
  // console.log('encrypting car', innerBlockstore.label)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fireproof/core",
3
- "version": "0.7.2-dev",
3
+ "version": "0.7.2-dev.2",
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",
package/src/valet.js CHANGED
@@ -106,6 +106,7 @@ export class Valet {
106
106
 
107
107
  async function parkCar (storage, innerBlockstore, cids) {
108
108
  // console.log('parkCar', this.instanceId, this.name, carCid, cids)
109
+ if (storage.readonly) return
109
110
  let newCar
110
111
  if (storage.keyMaterial) {
111
112
  // console.log('encrypting car', innerBlockstore.label)