@bounded-sh/core 0.0.112 → 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
@@ -4190,7 +4190,7 @@ class ServerSessionManager {
4190
4190
  const sessionConfig = (_a = this.sessionConfig) !== null && _a !== void 0 ? _a : undefined;
4191
4191
  /* fetch nonce from auth API (bound to the snapshotted app+issuer) */
4192
4192
  const nonce = await genAuthNonce(sessionConfig);
4193
- const { genSolanaMessage } = await Promise.resolve().then(function () { return require('./solana-message-Ce6_jR6H.js'); });
4193
+ const { genSolanaMessage } = await Promise.resolve().then(function () { return require('./solana-message-DPR9uw0N.js'); });
4194
4194
  const message = await genSolanaMessage(address, nonce, sessionConfig === null || sessionConfig === void 0 ? void 0 : sessionConfig.appId);
4195
4195
  /* sign the message */
4196
4196
  const sigBytes = nacl.sign.detached(new TextEncoder().encode(message), kp.secretKey);
@@ -7168,7 +7168,11 @@ async function subscribeV2(path, subscriptionOptions, roomRoutePath) {
7168
7168
  }, matchesThisSubscription);
7169
7169
  connection = acquisition.connection;
7170
7170
  releaseConnection = acquisition.release;
7171
- existingSubscription = existing;
7171
+ // Identical subscribes started together all scan before any of them registers,
7172
+ // so look again here, synchronously with the registration below: whichever
7173
+ // registered first is joined. Otherwise each sends its own id for one spec,
7174
+ // and the worker refuses past one subscription plus eight aliases.
7175
+ existingSubscription = existing !== null && existing !== void 0 ? existing : Array.from(connection.subscriptions.values()).find(matchesThisSubscription);
7172
7176
  }
7173
7177
  catch (error) {
7174
7178
  const err = error instanceof Error ? error : new Error(String(error));
@@ -7529,7 +7533,7 @@ async function doReconnectWithNewAuth() {
7529
7533
  console.warn('[WS v2] Failed to clear HTTP read cache on auth change:', error);
7530
7534
  }
7531
7535
  try {
7532
- const { reconnectRealtimeStoreWithNewAuth } = await Promise.resolve().then(function () { return require('./realtime-store-7itLaAao.js'); });
7536
+ const { reconnectRealtimeStoreWithNewAuth } = await Promise.resolve().then(function () { return require('./realtime-store-CR80Jac5.js'); });
7533
7537
  await reconnectRealtimeStoreWithNewAuth();
7534
7538
  }
7535
7539
  catch (error) {
@@ -9027,7 +9031,7 @@ async function setMany(many, options) {
9027
9031
  if (typeof curTx.serializedTransaction !== 'string' || typeof curTx.poofnetIntentId !== 'string') {
9028
9032
  throw new Error('Unsupported 202 transaction shape: a poofnet write needs serializedTransaction and poofnetIntentId');
9029
9033
  }
9030
- const { signPoofnetTransaction, buildExpectedWriteIntent } = await Promise.resolve().then(function () { return require('./solana-operations-CNeO_lJ2.js'); });
9034
+ const { signPoofnetTransaction, buildExpectedWriteIntent } = await Promise.resolve().then(function () { return require('./solana-operations-BMB6sq_i.js'); });
9031
9035
  const signedTransaction = await signPoofnetTransaction(curTx.serializedTransaction, authProvider, options, buildExpectedWriteIntent(documents));
9032
9036
  // Signing-only, exactly as on a real chain: signed and NOT committed.
9033
9037
  if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {
@@ -9052,7 +9056,7 @@ async function setMany(many, options) {
9052
9056
  'Nothing was signed or submitted.');
9053
9057
  }
9054
9058
  const solanaChain = workerChain;
9055
- const { handlePreBuiltTransaction, buildExpectedWriteIntent } = await Promise.resolve().then(function () { return require('./solana-operations-CNeO_lJ2.js'); });
9059
+ const { handlePreBuiltTransaction, buildExpectedWriteIntent } = await Promise.resolve().then(function () { return require('./solana-operations-BMB6sq_i.js'); });
9056
9060
  // OA-0001: derive the expected intent from OUR OWN request (the one
9057
9061
  // ground truth a tampered builder response cannot change) so the
9058
9062
  // validator can reject any transaction whose operation semantics
@@ -10816,7 +10820,7 @@ function toMillis(seconds) {
10816
10820
 
10817
10821
  /** SIWS message creation is async already, so its onchain module can be lazy. */
10818
10822
  async function genSolanaMessage(address, nonce) {
10819
- const implementation = await Promise.resolve().then(function () { return require('./solana-message-Ce6_jR6H.js'); });
10823
+ const implementation = await Promise.resolve().then(function () { return require('./solana-message-DPR9uw0N.js'); });
10820
10824
  return implementation.genSolanaMessage(address, nonce);
10821
10825
  }
10822
10826
 
@@ -11464,4 +11468,4 @@ exports.toSeconds = toSeconds;
11464
11468
  exports.waitForSetResult = waitForSetResult;
11465
11469
  exports.withEffects = withEffects;
11466
11470
  exports.writeNotAppliedPhase = writeNotAppliedPhase;
11467
- //# sourceMappingURL=index-WIHuQp4L.js.map
11471
+ //# sourceMappingURL=index--ahzzmm5.js.map