@cero-base/core 3.3.1 → 3.4.1
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 +9 -9
- package/src/database/dispatch.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cero-base/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "cero p2p primitives — identity, storage, network, database, blobs, rpc, pairing.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -152,10 +152,10 @@
|
|
|
152
152
|
},
|
|
153
153
|
"dependencies": {
|
|
154
154
|
"@hyperswarm/secret-stream": "^6.9.2",
|
|
155
|
-
"autobee": "2.
|
|
155
|
+
"autobee": "2.14.0",
|
|
156
156
|
"b4a": "^1.9.0",
|
|
157
|
-
"bare-crypto": "^1.
|
|
158
|
-
"bare-fs": "^4.8.
|
|
157
|
+
"bare-crypto": "^1.16.1",
|
|
158
|
+
"bare-fs": "^4.8.5",
|
|
159
159
|
"bare-path": "^3.1.3",
|
|
160
160
|
"bip39-mnemonic": "^2.5.0",
|
|
161
161
|
"blind-peering": "^2.14.0",
|
|
@@ -163,21 +163,21 @@
|
|
|
163
163
|
"compact-encoding": "^3.7.0",
|
|
164
164
|
"corestore": "^7.16.1",
|
|
165
165
|
"framed-stream": "^1.0.1",
|
|
166
|
-
"hrpc": "^4.3.
|
|
166
|
+
"hrpc": "^4.3.2",
|
|
167
167
|
"hyperblobs": "^2.13.0",
|
|
168
168
|
"hypercore": "^11.40.4",
|
|
169
169
|
"hypercore-blob-server": "^1.15.1",
|
|
170
170
|
"hypercore-crypto": "^3.7.0",
|
|
171
171
|
"hypercore-id-encoding": "^1.3.0",
|
|
172
172
|
"hypercore-storage": "^3.4.0",
|
|
173
|
-
"hyperdb": "^6.11.
|
|
173
|
+
"hyperdb": "^6.11.2",
|
|
174
174
|
"hyperdht": "^6.36.0",
|
|
175
175
|
"hyperdispatch": "^1.6.0",
|
|
176
176
|
"hyperschema": "^1.26.2",
|
|
177
177
|
"hyperswarm": "^4.17.2",
|
|
178
178
|
"keet-identity-key": "^3.2.0",
|
|
179
179
|
"ms": "^2.1.3",
|
|
180
|
-
"protomux-wakeup": "^2.9.
|
|
180
|
+
"protomux-wakeup": "^2.9.2",
|
|
181
181
|
"ready-resource": "^1.2.0",
|
|
182
182
|
"safety-catch": "^1.0.3",
|
|
183
183
|
"sodium-universal": "^5.0.1",
|
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
"bare-fetch": "^3.5.0",
|
|
192
192
|
"bare-process": "^4.5.1",
|
|
193
193
|
"bare-subprocess": "^6.2.2",
|
|
194
|
-
"bare-url": "^2.5.
|
|
195
|
-
"blind-peer": "^3.18.
|
|
194
|
+
"bare-url": "^2.5.8",
|
|
195
|
+
"blind-peer": "^3.18.3",
|
|
196
196
|
"blind-push-gateway": "^1.0.0",
|
|
197
197
|
"brittle": "^4.5.0",
|
|
198
198
|
"protomux": "^3.13.1",
|
package/src/database/dispatch.js
CHANGED
|
@@ -334,13 +334,14 @@ export function makeDispatcher({
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
// a write naming what its stamp does not have is refused on its device: left out, it would be
|
|
337
|
-
// lost without a word
|
|
337
|
+
// lost without a word. A field is named by a value the encoding writes: nothing, false, 0 and ''
|
|
338
|
+
// are how it reads where it was never written, so a row read and written back names none
|
|
338
339
|
function supported(route, value, stamp) {
|
|
339
340
|
const name = things.get(route) ?? route
|
|
340
341
|
if ((since?.routes[route] ?? 0) > stamp) throw CeroError.UNSUPPORTED(`'${name}'`)
|
|
341
342
|
const fields = since?.types[routes.get(route)?.type] ?? {}
|
|
342
343
|
for (const f of Object.keys(fields)) {
|
|
343
|
-
if (fields[f] > stamp && value?.[f]
|
|
344
|
+
if (fields[f] > stamp && value?.[f]) {
|
|
344
345
|
throw CeroError.UNSUPPORTED(`'${f}' in '${name}'`)
|
|
345
346
|
}
|
|
346
347
|
}
|