@bounded-sh/client 0.0.8 → 0.0.10

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.esm.js +4 -18
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +4 -18
  4. package/dist/index.js.map +1 -1
  5. package/dist/{index.native-C-duG1XV.js → index.native-BIm0gZmJ.js} +8 -22
  6. package/dist/index.native-BIm0gZmJ.js.map +1 -0
  7. package/dist/{index.native-DnVLH-7o.esm.js → index.native-DYxf9g9r.esm.js} +8 -22
  8. package/dist/index.native-DYxf9g9r.esm.js.map +1 -0
  9. package/dist/index.native.esm.js +1 -1
  10. package/dist/index.native.js +1 -1
  11. package/dist/{phantom-wallet-provider-DKScS8m6.js → phantom-wallet-provider-CFFRpATv.js} +2 -2
  12. package/dist/{phantom-wallet-provider-DKScS8m6.js.map → phantom-wallet-provider-CFFRpATv.js.map} +1 -1
  13. package/dist/{phantom-wallet-provider-DfTqdjx7.esm.js → phantom-wallet-provider-LZRhTqLr.esm.js} +2 -2
  14. package/dist/{phantom-wallet-provider-DfTqdjx7.esm.js.map → phantom-wallet-provider-LZRhTqLr.esm.js.map} +1 -1
  15. package/dist/{privy-wallet-provider-wCTdqpRq.js → privy-wallet-provider-CuClH2mS.js} +3 -3
  16. package/dist/{privy-wallet-provider-wCTdqpRq.js.map → privy-wallet-provider-CuClH2mS.js.map} +1 -1
  17. package/dist/{privy-wallet-provider-BpPAZyUD.esm.js → privy-wallet-provider-Tuh_afc9.esm.js} +3 -3
  18. package/dist/{privy-wallet-provider-BpPAZyUD.esm.js.map → privy-wallet-provider-Tuh_afc9.esm.js.map} +1 -1
  19. package/dist/{solana-mobile-wallet-provider-xmASWrPf.esm.js → solana-mobile-wallet-provider-CsbnYUp-.esm.js} +2 -2
  20. package/dist/{solana-mobile-wallet-provider-xmASWrPf.esm.js.map → solana-mobile-wallet-provider-CsbnYUp-.esm.js.map} +1 -1
  21. package/dist/{solana-mobile-wallet-provider-DZx3xVit.js → solana-mobile-wallet-provider-DHxdYO4I.js} +2 -2
  22. package/dist/{solana-mobile-wallet-provider-DZx3xVit.js.map → solana-mobile-wallet-provider-DHxdYO4I.js.map} +1 -1
  23. package/package.json +2 -5
  24. package/dist/index.native-C-duG1XV.js.map +0 -1
  25. package/dist/index.native-DnVLH-7o.esm.js.map +0 -1
@@ -10517,13 +10517,6 @@ async function makeApiRequest(method, urlPath, data, _overrides) {
10517
10517
  ? await _overrides._getAuthHeaders()
10518
10518
  : await createAuthHeader(config.isServer);
10519
10519
  const headers = Object.assign({ "Content-Type": "application/json", "X-Public-App-Id": config.appId, "X-App-Id": config.appId }, authHeader);
10520
- if (typeof window !== "undefined" &&
10521
- window.CUSTOM_BOUNDED_APP_ID_HEADER) {
10522
- const customAppId = window.CUSTOM_BOUNDED_APP_ID_HEADER;
10523
- if (customAppId) {
10524
- headers["X-App-Id"] = customAppId;
10525
- }
10526
- }
10527
10520
  // Apply custom headers from _overrides
10528
10521
  if (_overrides === null || _overrides === void 0 ? void 0 : _overrides.headers) {
10529
10522
  Object.assign(headers, _overrides.headers);
@@ -12236,17 +12229,10 @@ async function getOrCreateConnection(appId, isServer, routePath, authTokenProvid
12236
12229
  const wsUrl = new URL(config.wsApiUrl);
12237
12230
  // Always use v2 path
12238
12231
  wsUrl.pathname = WS_V2_PATH;
12239
- // Set appId — prefer the explicit appId passed to getOrCreateConnection,
12240
- // fall back to window global for legacy callers, then config default
12241
- if (appId && appId !== config.appId) {
12242
- wsUrl.searchParams.append('appId', appId);
12243
- }
12244
- else if (typeof window !== 'undefined' && window.CUSTOM_BOUNDED_APP_ID_HEADER) {
12245
- wsUrl.searchParams.append('appId', window.CUSTOM_BOUNDED_APP_ID_HEADER);
12246
- }
12247
- else {
12248
- wsUrl.searchParams.append('appId', config.appId);
12249
- }
12232
+ // Set appId from the configured SDK source, or an explicit per-call
12233
+ // override passed through subscribeV2. Do not consult ambient globals:
12234
+ // app identity must come from init({ appId }) or an explicit call option.
12235
+ wsUrl.searchParams.append('appId', appId || config.appId);
12250
12236
  // Per-room connection: carry the room path so the worker routes this WS
12251
12237
  // to the room DO (appId#room#roomId) where the live view fan-out lives.
12252
12238
  if (connection.routePath) {
@@ -19069,17 +19055,17 @@ function clearIncompatibleSession() {
19069
19055
  // Lazy loaders for web-only providers.
19070
19056
  // Using dynamic import() ensures Metro (RN) never resolves these modules.
19071
19057
  async function loadPhantomWalletProvider() {
19072
- const mod = await import('./phantom-wallet-provider-DfTqdjx7.esm.js');
19058
+ const mod = await import('./phantom-wallet-provider-LZRhTqLr.esm.js');
19073
19059
  return { PhantomWalletProvider: mod.PhantomWalletProvider };
19074
19060
  }
19075
19061
  // Web Privy provider (depends on react-dom + @privy-io/react-auth). Lazy so Metro
19076
19062
  // never bundles it into the RN build — RN uses the @privy-io/expo provider instead.
19077
19063
  async function loadPrivyWalletProvider() {
19078
- const mod = await import('./privy-wallet-provider-BpPAZyUD.esm.js');
19064
+ const mod = await import('./privy-wallet-provider-Tuh_afc9.esm.js');
19079
19065
  return mod.PrivyWalletProvider;
19080
19066
  }
19081
19067
  async function loadSolanaMobileWalletProvider() {
19082
- const mod = await import('./solana-mobile-wallet-provider-xmASWrPf.esm.js');
19068
+ const mod = await import('./solana-mobile-wallet-provider-CsbnYUp-.esm.js');
19083
19069
  return mod.SolanaMobileWalletProvider;
19084
19070
  }
19085
19071
  async function hotSwapToMWAProvider(config) {
@@ -20085,4 +20071,4 @@ class PrivyExpoProvider {
20085
20071
  }
20086
20072
 
20087
20073
  export { signTransaction as $, sendEmailOtp as A, sendTextOtp as B, verifyEmailOtp as C, verifyTextOtp as D, linkEmail as E, loginWithPrivy as F, loginWithRedirect as G, linkWithRedirect as H, completeLoginFromRedirect as I, loginWithPopup as J, completeLoginInPopup as K, get as L, getMany as M, docId as N, set as O, setMany as P, setFile as Q, getFiles as R, SOLANA_DEVNET_RPC_URL as S, search as T, queryAggregate as U, runQuery as V, WebSessionManager as W, runQueryMany as X, runExpression as Y, runExpressionMany as Z, signMessage as _, buildSetDocumentsTransaction as a, signAndSubmitTransaction as a0, count as a1, aggregate as a2, subscribe as a3, useAuth as a4, deserializeTransaction as a5, getIdToken as a6, setPlatform as a7, MockAuthProvider as a8, DEFAULT_TEST_ADDRESS as a9, refreshSession as aA, resetRealtimeStore as aB, revokeSession as aC, serverTimestamp as aD, signSessionCreateMessage as aE, subscribeView as aF, toMillis as aG, toSeconds as aH, withEffects as aI, wsDelete as aJ, wsGet as aK, wsGetMany as aL, wsQuery as aM, wsSet as aN, index as aO, OffchainAuthProvider as aa, PrivyExpoProvider as ab, EFFECT_INTENT_ADDRESS as ac, FunctionInvokeError as ad, InsufficientBalanceError as ae, LiveIntentError as af, ReactNativeSessionManager as ag, RealtimeStore as ah, ServerSessionManager as ai, clearCache as aj, closeAllSubscriptions as ak, defineLiveModule as al, deriveUserIdentityFromIdToken as am, functions as an, getCachedData as ao, getRealtimeStore as ap, getWebhookKeysUrl as aq, hasActiveConnection as ar, increment as as, invoke as at, isEffectResult as au, live as av, intent as aw, status as ax, now as ay, reconnectWithNewAuth as az, bufferExports as b, convertRemainingAccounts as c, confirmAndCheckTransaction as d, SOLANA_MAINNET_RPC_URL as e, SURFNET_RPC_URL$1 as f, detectMobile as g, detectAndroid as h, getPlatform as i, setAuthLoading as j, genAuthNonce as k, genSolanaMessage as l, createSessionWithSignature as m, getActiveSessionManager as n, bs58 as o, init as p, getCurrentUser as q, onAuthStateChanged as r, setCurrentUser as s, onAuthLoadingChanged as t, getAuthLoading as u, login as v, logout as w, getConfig as x, getAuthProvider as y, signInAnonymously as z };
20088
- //# sourceMappingURL=index.native-DnVLH-7o.esm.js.map
20074
+ //# sourceMappingURL=index.native-DYxf9g9r.esm.js.map