@calimero-network/mero-js 24.4.1 → 24.6.0

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/index.cjs CHANGED
@@ -10481,7 +10481,7 @@ function bytes32(value, label2) {
10481
10481
  }
10482
10482
 
10483
10483
  // src/namespace-op/namespace-op.ts
10484
- var SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 23;
10484
+ var SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 24;
10485
10485
  var NAMESPACE_SIGN_DOMAIN = new TextEncoder().encode("calimero.namespace.v1");
10486
10486
  var NAMESPACE_OP_ROOT = 0;
10487
10487
  var ROOT_OP2 = {
@@ -12484,8 +12484,12 @@ var MeroJs = class {
12484
12484
  }
12485
12485
  }
12486
12486
  }
12487
- /** Run `fn` under the cross-tab refresh lock, or directly if Web Locks are unavailable. */
12487
+ /**
12488
+ * Run `fn` under the refresh lock: the token store's own (shared across
12489
+ * processes), else the cross-tab Web Lock, else directly.
12490
+ */
12488
12491
  withRefreshLock(fn) {
12492
+ if (this.tokenStore?.withLock) return this.tokenStore.withLock(fn);
12489
12493
  const locks = getLockManager();
12490
12494
  return locks ? locks.request(REFRESH_LOCK_NAME, fn) : fn();
12491
12495
  }