@fireproof/core 0.7.1 → 0.7.2-dev.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/dist/src/fireproof.js +1 -0
- package/dist/src/fireproof.js.map +1 -1
- package/dist/src/fireproof.mjs +1 -0
- package/dist/src/fireproof.mjs.map +1 -1
- package/dist/valet.js +2 -0
- package/package.json +5 -1
- package/src/valet.js +1 -0
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.
|
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",
|
@@ -9,6 +9,7 @@
|
|
9
9
|
"type": "module",
|
10
10
|
"scripts": {
|
11
11
|
"keygen": "node scripts/keygen.js",
|
12
|
+
"server": "node scripts/sever.js",
|
12
13
|
"test": "standard && tsc && npm run test:unencrypted && npm run test:mocha",
|
13
14
|
"test:unencrypted": "set NO_ENCRYPT=true && npm run test:mocha",
|
14
15
|
"test:mocha": "mocha test/*.test.js",
|
@@ -73,6 +74,7 @@
|
|
73
74
|
"rollup-plugin-visualizer": "^5.9.0",
|
74
75
|
"standard": "^17.0.0",
|
75
76
|
"typescript": "^5.0.2",
|
77
|
+
"vector-storage": "^1.0.55",
|
76
78
|
"webpack": "^5.78.0",
|
77
79
|
"webpack-cli": "^5.0.1"
|
78
80
|
},
|
@@ -106,6 +108,8 @@
|
|
106
108
|
"default": "./dist/src/fireproof.js",
|
107
109
|
"require": "./dist/src/fireproof.js"
|
108
110
|
},
|
111
|
+
"./src/*.js": "./src/*.js",
|
112
|
+
"./src/**/*.js": "./src/**/*.js",
|
109
113
|
"./package.json": "./package.json"
|
110
114
|
},
|
111
115
|
"files": [
|
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)
|