@bounded-sh/core 0.0.113 → 0.0.114

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.
Files changed (25) hide show
  1. package/dist/{index-WIHuQp4L.js → index--ahzzmm5.js} +11 -7
  2. package/dist/index--ahzzmm5.js.map +1 -0
  3. package/dist/{index-CkgEqMkJ.mjs → index-DTTh5Wt5.mjs} +11 -7
  4. package/dist/index-DTTh5Wt5.mjs.map +1 -0
  5. package/dist/index.js +1 -1
  6. package/dist/index.mjs +1 -1
  7. package/dist/{realtime-store-BIB8v265.mjs → realtime-store-Bcra04TH.mjs} +2 -2
  8. package/dist/{realtime-store-BIB8v265.mjs.map → realtime-store-Bcra04TH.mjs.map} +1 -1
  9. package/dist/{realtime-store-7itLaAao.js → realtime-store-CR80Jac5.js} +2 -2
  10. package/dist/{realtime-store-7itLaAao.js.map → realtime-store-CR80Jac5.js.map} +1 -1
  11. package/dist/{solana-message-BBMxFFjM.mjs → solana-message-BwPW9Fst.mjs} +2 -2
  12. package/dist/{solana-message-BBMxFFjM.mjs.map → solana-message-BwPW9Fst.mjs.map} +1 -1
  13. package/dist/{solana-message-Ce6_jR6H.js → solana-message-DPR9uw0N.js} +2 -2
  14. package/dist/{solana-message-Ce6_jR6H.js.map → solana-message-DPR9uw0N.js.map} +1 -1
  15. package/dist/{solana-operations-Cshh2EfH.mjs → solana-operations-BBQllFVm.mjs} +3 -3
  16. package/dist/{solana-operations-Cshh2EfH.mjs.map → solana-operations-BBQllFVm.mjs.map} +1 -1
  17. package/dist/{solana-operations-CNeO_lJ2.js → solana-operations-BMB6sq_i.js} +3 -3
  18. package/dist/{solana-operations-CNeO_lJ2.js.map → solana-operations-BMB6sq_i.js.map} +1 -1
  19. package/dist/{solana-v1-operations-c0p0YESV.js → solana-v1-operations-CCHbLEo-.js} +3 -3
  20. package/dist/{solana-v1-operations-c0p0YESV.js.map → solana-v1-operations-CCHbLEo-.js.map} +1 -1
  21. package/dist/{solana-v1-operations-B8vV5teG.mjs → solana-v1-operations-DBuA0PlD.mjs} +3 -3
  22. package/dist/{solana-v1-operations-B8vV5teG.mjs.map → solana-v1-operations-DBuA0PlD.mjs.map} +1 -1
  23. package/package.json +1 -1
  24. package/dist/index-CkgEqMkJ.mjs.map +0 -1
  25. package/dist/index-WIHuQp4L.js.map +0 -1
@@ -4188,7 +4188,7 @@ class ServerSessionManager {
4188
4188
  const sessionConfig = (_a = this.sessionConfig) !== null && _a !== void 0 ? _a : undefined;
4189
4189
  /* fetch nonce from auth API (bound to the snapshotted app+issuer) */
4190
4190
  const nonce = await genAuthNonce(sessionConfig);
4191
- const { genSolanaMessage } = await import('./solana-message-BBMxFFjM.mjs');
4191
+ const { genSolanaMessage } = await import('./solana-message-BwPW9Fst.mjs');
4192
4192
  const message = await genSolanaMessage(address, nonce, sessionConfig === null || sessionConfig === void 0 ? void 0 : sessionConfig.appId);
4193
4193
  /* sign the message */
4194
4194
  const sigBytes = nacl.sign.detached(new TextEncoder().encode(message), kp.secretKey);
@@ -7166,7 +7166,11 @@ async function subscribeV2(path, subscriptionOptions, roomRoutePath) {
7166
7166
  }, matchesThisSubscription);
7167
7167
  connection = acquisition.connection;
7168
7168
  releaseConnection = acquisition.release;
7169
- existingSubscription = existing;
7169
+ // Identical subscribes started together all scan before any of them registers,
7170
+ // so look again here, synchronously with the registration below: whichever
7171
+ // registered first is joined. Otherwise each sends its own id for one spec,
7172
+ // and the worker refuses past one subscription plus eight aliases.
7173
+ existingSubscription = existing !== null && existing !== void 0 ? existing : Array.from(connection.subscriptions.values()).find(matchesThisSubscription);
7170
7174
  }
7171
7175
  catch (error) {
7172
7176
  const err = error instanceof Error ? error : new Error(String(error));
@@ -7527,7 +7531,7 @@ async function doReconnectWithNewAuth() {
7527
7531
  console.warn('[WS v2] Failed to clear HTTP read cache on auth change:', error);
7528
7532
  }
7529
7533
  try {
7530
- const { reconnectRealtimeStoreWithNewAuth } = await import('./realtime-store-BIB8v265.mjs');
7534
+ const { reconnectRealtimeStoreWithNewAuth } = await import('./realtime-store-Bcra04TH.mjs');
7531
7535
  await reconnectRealtimeStoreWithNewAuth();
7532
7536
  }
7533
7537
  catch (error) {
@@ -9025,7 +9029,7 @@ async function setMany(many, options) {
9025
9029
  if (typeof curTx.serializedTransaction !== 'string' || typeof curTx.poofnetIntentId !== 'string') {
9026
9030
  throw new Error('Unsupported 202 transaction shape: a poofnet write needs serializedTransaction and poofnetIntentId');
9027
9031
  }
9028
- const { signPoofnetTransaction, buildExpectedWriteIntent } = await import('./solana-operations-Cshh2EfH.mjs');
9032
+ const { signPoofnetTransaction, buildExpectedWriteIntent } = await import('./solana-operations-BBQllFVm.mjs');
9029
9033
  const signedTransaction = await signPoofnetTransaction(curTx.serializedTransaction, authProvider, options, buildExpectedWriteIntent(documents));
9030
9034
  // Signing-only, exactly as on a real chain: signed and NOT committed.
9031
9035
  if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {
@@ -9050,7 +9054,7 @@ async function setMany(many, options) {
9050
9054
  'Nothing was signed or submitted.');
9051
9055
  }
9052
9056
  const solanaChain = workerChain;
9053
- const { handlePreBuiltTransaction, buildExpectedWriteIntent } = await import('./solana-operations-Cshh2EfH.mjs');
9057
+ const { handlePreBuiltTransaction, buildExpectedWriteIntent } = await import('./solana-operations-BBQllFVm.mjs');
9054
9058
  // OA-0001: derive the expected intent from OUR OWN request (the one
9055
9059
  // ground truth a tampered builder response cannot change) so the
9056
9060
  // validator can reject any transaction whose operation semantics
@@ -10814,7 +10818,7 @@ function toMillis(seconds) {
10814
10818
 
10815
10819
  /** SIWS message creation is async already, so its onchain module can be lazy. */
10816
10820
  async function genSolanaMessage(address, nonce) {
10817
- const implementation = await import('./solana-message-BBMxFFjM.mjs');
10821
+ const implementation = await import('./solana-message-BwPW9Fst.mjs');
10818
10822
  return implementation.genSolanaMessage(address, nonce);
10819
10823
  }
10820
10824
 
@@ -11364,4 +11368,4 @@ function defineLiveModule(mod) {
11364
11368
  }
11365
11369
 
11366
11370
  export { increment as $, isWriteNotApplied as A, writeNotAppliedPhase as B, subscribe as C, closeAllSubscriptions as D, clearCache as E, getCachedData as F, reconnectWithNewAuth as G, createClient as H, InsufficientBalanceError as I, exchangeAppToken as J, clearAppTokenCache as K, createAppTokenAuthHeaders as L, AppTokenExchangeError as M, subscribeQuery as N, closeAllQuerySubscriptions as O, canonicalizeArgs as P, canonicalizeResult as Q, DEFAULT_QUERY_POLL_INTERVAL_MS as R, ScopedClientReadOnlyError as S, MIN_QUERY_POLL_INTERVAL_MS as T, BoundedDeclineError as U, deriveDecline as V, dispatchDeclineEvent as W, DECLINE_EVENT_NAME as X, dispatchRateLimitEvent as Y, RATE_LIMIT_EVENT_NAME as Z, hasActiveConnection as _, getWebhookKeysUrl as a, serverTimestamp as a0, now as a1, toSeconds as a2, toMillis as a3, getIdToken as a4, deriveUserIdentityFromIdToken as a5, getSessionGeneration as a6, WebSessionManager as a7, ReactNativeSessionManager as a8, getActiveSessionManager as a9, live as aA, intent as aB, status as aC, subscribeView as aD, LiveIntentError as aE, withEffects as aF, isEffectResult as aG, defineLiveModule as aH, EFFECT_INTENT_ADDRESS as aI, onSessionCleared as aa, SessionEnvironmentError as ab, UNSUPPORTED_ENVIRONMENT_CODE as ac, AUTH_CHANGED_CODE as ad, AUTH_EXPIRED_CODE as ae, isAuthExpiredError as af, getFreshAuthToken as ag, ServerSessionManager as ah, createSessionWithSignature as ai, refreshSession as aj, revokeSession as ak, signSessionCreateMessage as al, genAuthNonce as am, genSolanaMessage as an, createSolanaSignInRequest as ao, createSolanaSignInMessageText as ap, genSolanaSignInRequest as aq, genSolanaSignInMessage as ar, browserSignInDomain as as, SOLANA_SIGN_IN_STATEMENT as at, genSiweMessage as au, normalizeEvmAddress as av, toLowerEvmAddress as aw, functions as ax, invoke as ay, FunctionInvokeError as az, bufferExports as b, getConfiguredAppId as c, get as d, getMany as e, docId as f, getConfig as g, setMany as h, init as i, setFile as j, getFiles as k, search as l, markWriteNotApplied as m, runQueryMany as n, runExpression as o, runExpressionMany as p, queryAggregate as q, runQuery as r, set as s, signMessage as t, signTransaction as u, signAndSubmitTransaction as v, count as w, aggregate as x, reconcileSetResult as y, waitForSetResult as z };
11367
- //# sourceMappingURL=index-CkgEqMkJ.mjs.map
11371
+ //# sourceMappingURL=index-DTTh5Wt5.mjs.map