@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.mjs CHANGED
@@ -10199,7 +10199,7 @@ function bytes32(value, label2) {
10199
10199
  }
10200
10200
 
10201
10201
  // src/namespace-op/namespace-op.ts
10202
- var SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 23;
10202
+ var SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 24;
10203
10203
  var NAMESPACE_SIGN_DOMAIN = new TextEncoder().encode("calimero.namespace.v1");
10204
10204
  var NAMESPACE_OP_ROOT = 0;
10205
10205
  var ROOT_OP2 = {
@@ -12202,8 +12202,12 @@ var MeroJs = class {
12202
12202
  }
12203
12203
  }
12204
12204
  }
12205
- /** Run `fn` under the cross-tab refresh lock, or directly if Web Locks are unavailable. */
12205
+ /**
12206
+ * Run `fn` under the refresh lock: the token store's own (shared across
12207
+ * processes), else the cross-tab Web Lock, else directly.
12208
+ */
12206
12209
  withRefreshLock(fn) {
12210
+ if (this.tokenStore?.withLock) return this.tokenStore.withLock(fn);
12207
12211
  const locks = getLockManager();
12208
12212
  return locks ? locks.request(REFRESH_LOCK_NAME, fn) : fn();
12209
12213
  }