@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.
- 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 -5
- package/dist/index.native-C-duG1XV.js.map +0 -1
- package/dist/index.native-DnVLH-7o.esm.js.map +0 -1
|
@@ -10538,13 +10538,6 @@ async function makeApiRequest(method, urlPath, data, _overrides) {
|
|
|
10538
10538
|
? await _overrides._getAuthHeaders()
|
|
10539
10539
|
: await createAuthHeader(config.isServer);
|
|
10540
10540
|
const headers = Object.assign({ "Content-Type": "application/json", "X-Public-App-Id": config.appId, "X-App-Id": config.appId }, authHeader);
|
|
10541
|
-
if (typeof window !== "undefined" &&
|
|
10542
|
-
window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
10543
|
-
const customAppId = window.CUSTOM_BOUNDED_APP_ID_HEADER;
|
|
10544
|
-
if (customAppId) {
|
|
10545
|
-
headers["X-App-Id"] = customAppId;
|
|
10546
|
-
}
|
|
10547
|
-
}
|
|
10548
10541
|
// Apply custom headers from _overrides
|
|
10549
10542
|
if (_overrides === null || _overrides === void 0 ? void 0 : _overrides.headers) {
|
|
10550
10543
|
Object.assign(headers, _overrides.headers);
|
|
@@ -12257,17 +12250,10 @@ async function getOrCreateConnection(appId, isServer, routePath, authTokenProvid
|
|
|
12257
12250
|
const wsUrl = new URL(config.wsApiUrl);
|
|
12258
12251
|
// Always use v2 path
|
|
12259
12252
|
wsUrl.pathname = WS_V2_PATH;
|
|
12260
|
-
// Set appId
|
|
12261
|
-
//
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
}
|
|
12265
|
-
else if (typeof window !== 'undefined' && window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
12266
|
-
wsUrl.searchParams.append('appId', window.CUSTOM_BOUNDED_APP_ID_HEADER);
|
|
12267
|
-
}
|
|
12268
|
-
else {
|
|
12269
|
-
wsUrl.searchParams.append('appId', config.appId);
|
|
12270
|
-
}
|
|
12253
|
+
// Set appId from the configured SDK source, or an explicit per-call
|
|
12254
|
+
// override passed through subscribeV2. Do not consult ambient globals:
|
|
12255
|
+
// app identity must come from init({ appId }) or an explicit call option.
|
|
12256
|
+
wsUrl.searchParams.append('appId', appId || config.appId);
|
|
12271
12257
|
// Per-room connection: carry the room path so the worker routes this WS
|
|
12272
12258
|
// to the room DO (appId#room#roomId) where the live view fan-out lives.
|
|
12273
12259
|
if (connection.routePath) {
|
|
@@ -19090,17 +19076,17 @@ function clearIncompatibleSession() {
|
|
|
19090
19076
|
// Lazy loaders for web-only providers.
|
|
19091
19077
|
// Using dynamic import() ensures Metro (RN) never resolves these modules.
|
|
19092
19078
|
async function loadPhantomWalletProvider() {
|
|
19093
|
-
const mod = await Promise.resolve().then(function () { return require('./phantom-wallet-provider-
|
|
19079
|
+
const mod = await Promise.resolve().then(function () { return require('./phantom-wallet-provider-CFFRpATv.js'); });
|
|
19094
19080
|
return { PhantomWalletProvider: mod.PhantomWalletProvider };
|
|
19095
19081
|
}
|
|
19096
19082
|
// Web Privy provider (depends on react-dom + @privy-io/react-auth). Lazy so Metro
|
|
19097
19083
|
// never bundles it into the RN build — RN uses the @privy-io/expo provider instead.
|
|
19098
19084
|
async function loadPrivyWalletProvider() {
|
|
19099
|
-
const mod = await Promise.resolve().then(function () { return require('./privy-wallet-provider-
|
|
19085
|
+
const mod = await Promise.resolve().then(function () { return require('./privy-wallet-provider-CuClH2mS.js'); });
|
|
19100
19086
|
return mod.PrivyWalletProvider;
|
|
19101
19087
|
}
|
|
19102
19088
|
async function loadSolanaMobileWalletProvider() {
|
|
19103
|
-
const mod = await Promise.resolve().then(function () { return require('./solana-mobile-wallet-provider-
|
|
19089
|
+
const mod = await Promise.resolve().then(function () { return require('./solana-mobile-wallet-provider-DHxdYO4I.js'); });
|
|
19104
19090
|
return mod.SolanaMobileWalletProvider;
|
|
19105
19091
|
}
|
|
19106
19092
|
async function hotSwapToMWAProvider(config) {
|
|
@@ -20210,4 +20196,4 @@ exports.wsGet = wsGet;
|
|
|
20210
20196
|
exports.wsGetMany = wsGetMany;
|
|
20211
20197
|
exports.wsQuery = wsQuery;
|
|
20212
20198
|
exports.wsSet = wsSet;
|
|
20213
|
-
//# sourceMappingURL=index.native-
|
|
20199
|
+
//# sourceMappingURL=index.native-BIm0gZmJ.js.map
|