@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.esm.js
CHANGED
|
@@ -10518,13 +10518,6 @@ async function makeApiRequest(method, urlPath, data, _overrides) {
|
|
|
10518
10518
|
? await _overrides._getAuthHeaders()
|
|
10519
10519
|
: await createAuthHeader(config.isServer);
|
|
10520
10520
|
const headers = Object.assign({ "Content-Type": "application/json", "X-Public-App-Id": config.appId, "X-App-Id": config.appId }, authHeader);
|
|
10521
|
-
if (typeof window !== "undefined" &&
|
|
10522
|
-
window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
10523
|
-
const customAppId = window.CUSTOM_BOUNDED_APP_ID_HEADER;
|
|
10524
|
-
if (customAppId) {
|
|
10525
|
-
headers["X-App-Id"] = customAppId;
|
|
10526
|
-
}
|
|
10527
|
-
}
|
|
10528
10521
|
// Apply custom headers from _overrides
|
|
10529
10522
|
if (_overrides === null || _overrides === void 0 ? void 0 : _overrides.headers) {
|
|
10530
10523
|
Object.assign(headers, _overrides.headers);
|
|
@@ -12237,17 +12230,10 @@ async function getOrCreateConnection(appId, isServer, routePath, authTokenProvid
|
|
|
12237
12230
|
const wsUrl = new URL(config.wsApiUrl);
|
|
12238
12231
|
// Always use v2 path
|
|
12239
12232
|
wsUrl.pathname = WS_V2_PATH;
|
|
12240
|
-
// Set appId
|
|
12241
|
-
//
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
}
|
|
12245
|
-
else if (typeof window !== 'undefined' && window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
12246
|
-
wsUrl.searchParams.append('appId', window.CUSTOM_BOUNDED_APP_ID_HEADER);
|
|
12247
|
-
}
|
|
12248
|
-
else {
|
|
12249
|
-
wsUrl.searchParams.append('appId', config.appId);
|
|
12250
|
-
}
|
|
12233
|
+
// Set appId from the configured SDK source, or an explicit per-call
|
|
12234
|
+
// override passed through subscribeV2. Do not consult ambient globals:
|
|
12235
|
+
// app identity must come from init({ appId }) or an explicit call option.
|
|
12236
|
+
wsUrl.searchParams.append('appId', appId || config.appId);
|
|
12251
12237
|
// Per-room connection: carry the room path so the worker routes this WS
|
|
12252
12238
|
// to the room DO (appId#room#roomId) where the live view fan-out lives.
|
|
12253
12239
|
if (connection.routePath) {
|