@cero-base/core 2.3.0 → 2.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cero-base/core",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "cero p2p primitives — identity, storage, network, database, blobs, rpc, pairing.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -148,10 +148,10 @@
148
148
  },
149
149
  "dependencies": {
150
150
  "@hyperswarm/secret-stream": "^6.9.2",
151
- "autobee": "2.11.8",
151
+ "autobee": "2.12.0",
152
152
  "b4a": "^1.9.0",
153
153
  "bare-crypto": "^1.15.3",
154
- "bare-fs": "^4.8.1",
154
+ "bare-fs": "^4.8.2",
155
155
  "bare-path": "^3.1.2",
156
156
  "bip39-mnemonic": "^2.5.0",
157
157
  "blind-peering": "^2.9.5",
@@ -762,12 +762,15 @@ export class Database extends ReadyResource {
762
762
  /** @private */
763
763
  _inHook(fn) {
764
764
  return async (ctx) => {
765
+ // only the hook's own synchronous run is inside it: other work interleaves at its awaits
765
766
  this._hooking++
767
+ let result
766
768
  try {
767
- return await fn(ctx)
769
+ result = fn(ctx)
768
770
  } finally {
769
771
  this._hooking--
770
772
  }
773
+ return await result
771
774
  }
772
775
  }
773
776