@bounded-sh/client 0.0.9 → 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.
- package/dist/index.esm.js +4 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -18
- package/dist/index.js.map +1 -1
- package/dist/{index.native-C-duG1XV.js → index.native-BIm0gZmJ.js} +8 -22
- package/dist/index.native-BIm0gZmJ.js.map +1 -0
- package/dist/{index.native-DnVLH-7o.esm.js → index.native-DYxf9g9r.esm.js} +8 -22
- package/dist/index.native-DYxf9g9r.esm.js.map +1 -0
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +1 -1
- package/dist/{phantom-wallet-provider-DKScS8m6.js → phantom-wallet-provider-CFFRpATv.js} +2 -2
- package/dist/{phantom-wallet-provider-DKScS8m6.js.map → phantom-wallet-provider-CFFRpATv.js.map} +1 -1
- package/dist/{phantom-wallet-provider-DfTqdjx7.esm.js → phantom-wallet-provider-LZRhTqLr.esm.js} +2 -2
- package/dist/{phantom-wallet-provider-DfTqdjx7.esm.js.map → phantom-wallet-provider-LZRhTqLr.esm.js.map} +1 -1
- package/dist/{privy-wallet-provider-wCTdqpRq.js → privy-wallet-provider-CuClH2mS.js} +3 -3
- package/dist/{privy-wallet-provider-wCTdqpRq.js.map → privy-wallet-provider-CuClH2mS.js.map} +1 -1
- package/dist/{privy-wallet-provider-BpPAZyUD.esm.js → privy-wallet-provider-Tuh_afc9.esm.js} +3 -3
- package/dist/{privy-wallet-provider-BpPAZyUD.esm.js.map → privy-wallet-provider-Tuh_afc9.esm.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-xmASWrPf.esm.js → solana-mobile-wallet-provider-CsbnYUp-.esm.js} +2 -2
- package/dist/{solana-mobile-wallet-provider-xmASWrPf.esm.js.map → solana-mobile-wallet-provider-CsbnYUp-.esm.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-DZx3xVit.js → solana-mobile-wallet-provider-DHxdYO4I.js} +2 -2
- package/dist/{solana-mobile-wallet-provider-DZx3xVit.js.map → solana-mobile-wallet-provider-DHxdYO4I.js.map} +1 -1
- package/package.json +2 -2
- package/dist/index.native-C-duG1XV.js.map +0 -1
- package/dist/index.native-DnVLH-7o.esm.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -10540,13 +10540,6 @@ async function makeApiRequest(method, urlPath, data, _overrides) {
|
|
|
10540
10540
|
? await _overrides._getAuthHeaders()
|
|
10541
10541
|
: await createAuthHeader(config.isServer);
|
|
10542
10542
|
const headers = Object.assign({ "Content-Type": "application/json", "X-Public-App-Id": config.appId, "X-App-Id": config.appId }, authHeader);
|
|
10543
|
-
if (typeof window !== "undefined" &&
|
|
10544
|
-
window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
10545
|
-
const customAppId = window.CUSTOM_BOUNDED_APP_ID_HEADER;
|
|
10546
|
-
if (customAppId) {
|
|
10547
|
-
headers["X-App-Id"] = customAppId;
|
|
10548
|
-
}
|
|
10549
|
-
}
|
|
10550
10543
|
// Apply custom headers from _overrides
|
|
10551
10544
|
if (_overrides === null || _overrides === void 0 ? void 0 : _overrides.headers) {
|
|
10552
10545
|
Object.assign(headers, _overrides.headers);
|
|
@@ -12259,17 +12252,10 @@ async function getOrCreateConnection(appId, isServer, routePath, authTokenProvid
|
|
|
12259
12252
|
const wsUrl = new URL(config.wsApiUrl);
|
|
12260
12253
|
// Always use v2 path
|
|
12261
12254
|
wsUrl.pathname = WS_V2_PATH;
|
|
12262
|
-
// Set appId
|
|
12263
|
-
//
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
}
|
|
12267
|
-
else if (typeof window !== 'undefined' && window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
12268
|
-
wsUrl.searchParams.append('appId', window.CUSTOM_BOUNDED_APP_ID_HEADER);
|
|
12269
|
-
}
|
|
12270
|
-
else {
|
|
12271
|
-
wsUrl.searchParams.append('appId', config.appId);
|
|
12272
|
-
}
|
|
12255
|
+
// Set appId from the configured SDK source, or an explicit per-call
|
|
12256
|
+
// override passed through subscribeV2. Do not consult ambient globals:
|
|
12257
|
+
// app identity must come from init({ appId }) or an explicit call option.
|
|
12258
|
+
wsUrl.searchParams.append('appId', appId || config.appId);
|
|
12273
12259
|
// Per-room connection: carry the room path so the worker routes this WS
|
|
12274
12260
|
// to the room DO (appId#room#roomId) where the live view fan-out lives.
|
|
12275
12261
|
if (connection.routePath) {
|