@cero-base/core 2.1.0 → 2.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cero-base/core",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "cero p2p primitives — identity, storage, network, database, blobs, rpc, pairing.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -338,6 +338,8 @@ export class Database extends ReadyResource {
338
338
  }
339
339
  this.guard()
340
340
  if (!this.bee.writable) throw CeroError.NOT_WRITABLE('Database')
341
+ // writable flips inside the apply that admits us, before its view flush lands our device row
342
+ await this.bee.updated()
341
343
  const encoded = ops.map(([op, payload]) =>
342
344
  this.spec.dispatch.encode(`@${this.ns}/${op}`, payload)
343
345
  )