@bounded-sh/client 0.0.5 → 0.0.7
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/auth/providers/privy-wallet-provider.d.ts +2 -0
- package/dist/index.esm.js +26190 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +26307 -108
- package/dist/index.js.map +1 -1
- package/dist/{index.native-C8GJTcIy.esm.js → index.native-BxNuEqgy.esm.js} +19 -15
- package/dist/index.native-BxNuEqgy.esm.js.map +1 -0
- package/dist/{index.native-DpYQ8GUh.js → index.native-CCc03Zxr.js} +19 -16
- package/dist/index.native-CCc03Zxr.js.map +1 -0
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +1 -1
- package/dist/{phantom-wallet-provider-FOSnYV4t.esm.js → phantom-wallet-provider-CxnVOBTM.esm.js} +3 -3
- package/dist/{phantom-wallet-provider-FOSnYV4t.esm.js.map → phantom-wallet-provider-CxnVOBTM.esm.js.map} +1 -1
- package/dist/{phantom-wallet-provider-B8gezRxB.js → phantom-wallet-provider-yMlFdfKn.js} +3 -3
- package/dist/{phantom-wallet-provider-B8gezRxB.js.map → phantom-wallet-provider-yMlFdfKn.js.map} +1 -1
- package/dist/{privy-wallet-provider-BPOjNW9O.esm.js → privy-wallet-provider-BbjUoSdY.esm.js} +43 -23
- package/dist/privy-wallet-provider-BbjUoSdY.esm.js.map +1 -0
- package/dist/{privy-wallet-provider-DfR-7xpE.js → privy-wallet-provider-BcbjdOfk.js} +43 -23
- package/dist/privy-wallet-provider-BcbjdOfk.js.map +1 -0
- package/dist/{solana-mobile-wallet-provider-CBAeRxGQ.js → solana-mobile-wallet-provider-BCoTvY5g.js} +5 -5
- package/dist/{solana-mobile-wallet-provider-CBAeRxGQ.js.map → solana-mobile-wallet-provider-BCoTvY5g.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-CoS-38SL.esm.js → solana-mobile-wallet-provider-wl_xDwIC.esm.js} +5 -5
- package/dist/{solana-mobile-wallet-provider-CoS-38SL.esm.js.map → solana-mobile-wallet-provider-wl_xDwIC.esm.js.map} +1 -1
- package/package.json +23 -12
- package/dist/index-30RA_Bdf.esm.js +0 -26167
- package/dist/index-30RA_Bdf.esm.js.map +0 -1
- package/dist/index-B9DtkVXb.esm.js +0 -16843
- package/dist/index-B9DtkVXb.esm.js.map +0 -1
- package/dist/index-CdqFc68L.js +0 -16884
- package/dist/index-CdqFc68L.js.map +0 -1
- package/dist/index-CplhW55m.js +0 -16882
- package/dist/index-CplhW55m.js.map +0 -1
- package/dist/index-DXdFMfDw.esm.js +0 -16841
- package/dist/index-DXdFMfDw.esm.js.map +0 -1
- package/dist/index-ZYhdEVCA.js +0 -26289
- package/dist/index-ZYhdEVCA.js.map +0 -1
- package/dist/index.browser-C_TToxuO.esm.js +0 -4208
- package/dist/index.browser-C_TToxuO.esm.js.map +0 -1
- package/dist/index.browser-Cictefil.esm.js +0 -5064
- package/dist/index.browser-Cictefil.esm.js.map +0 -1
- package/dist/index.browser-DcHalmEf.js +0 -4213
- package/dist/index.browser-DcHalmEf.js.map +0 -1
- package/dist/index.browser-sADlt75X.js +0 -5074
- package/dist/index.browser-sADlt75X.js.map +0 -1
- package/dist/index.native-C8GJTcIy.esm.js.map +0 -1
- package/dist/index.native-DpYQ8GUh.js.map +0 -1
- package/dist/privy-wallet-provider-BPOjNW9O.esm.js.map +0 -1
- package/dist/privy-wallet-provider-DfR-7xpE.js.map +0 -1
|
@@ -9888,7 +9888,7 @@ function requireBs58 () {
|
|
|
9888
9888
|
}
|
|
9889
9889
|
|
|
9890
9890
|
var bs58Exports = requireBs58();
|
|
9891
|
-
var bs58 = /*@__PURE__*/getDefaultExportFromCjs(bs58Exports);
|
|
9891
|
+
var bs58$2 = /*@__PURE__*/getDefaultExportFromCjs(bs58Exports);
|
|
9892
9892
|
|
|
9893
9893
|
// ─────────────────────────────────────────────────────────────
|
|
9894
9894
|
// Local implementation of getSimulationComputeUnits
|
|
@@ -10175,7 +10175,7 @@ function loadKeypairFromEnv() {
|
|
|
10175
10175
|
try {
|
|
10176
10176
|
const secretKey = secret.trim().startsWith("[")
|
|
10177
10177
|
? Uint8Array.from(JSON.parse(secret))
|
|
10178
|
-
: bs58.decode(secret.trim());
|
|
10178
|
+
: bs58$2.decode(secret.trim());
|
|
10179
10179
|
return Keypair.fromSecretKey(secretKey);
|
|
10180
10180
|
}
|
|
10181
10181
|
catch (err) {
|
|
@@ -10692,9 +10692,13 @@ function normalizeReadResult(responseData, pathIsDocument) {
|
|
|
10692
10692
|
let doc = responseData;
|
|
10693
10693
|
// Unwrap the single-doc envelope `{ data, status }` (Bug 2). A real document
|
|
10694
10694
|
// never has the exact shape `{ data, status }` with nothing else meaningful,
|
|
10695
|
-
// so detect the envelope by `data`
|
|
10695
|
+
// so detect the envelope by `data` + numeric `status` AND the absence of a
|
|
10696
|
+
// top-level `_id` (a real stored doc always carries `_id`/`pathId` from the
|
|
10697
|
+
// worker; the envelope wrapper does not). This avoids unwrapping a genuine
|
|
10698
|
+
// document that merely happens to own `data`/`status` fields.
|
|
10696
10699
|
if (doc && typeof doc === 'object' && !Array.isArray(doc) &&
|
|
10697
|
-
'data' in doc && 'status' in doc && typeof doc.status === 'number'
|
|
10700
|
+
'data' in doc && 'status' in doc && typeof doc.status === 'number' &&
|
|
10701
|
+
!('_id' in doc) && !('pathId' in doc)) {
|
|
10698
10702
|
doc = doc.data;
|
|
10699
10703
|
}
|
|
10700
10704
|
if (doc === undefined || doc === null)
|
|
@@ -17932,11 +17936,11 @@ var srcExports = requireSrc();
|
|
|
17932
17936
|
var basex = /*@__PURE__*/getDefaultExportFromCjs$1(srcExports);
|
|
17933
17937
|
|
|
17934
17938
|
var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
17935
|
-
var
|
|
17939
|
+
var bs58 = basex(ALPHABET);
|
|
17936
17940
|
|
|
17937
17941
|
var index = /*#__PURE__*/Object.freeze({
|
|
17938
17942
|
__proto__: null,
|
|
17939
|
-
default:
|
|
17943
|
+
default: bs58
|
|
17940
17944
|
});
|
|
17941
17945
|
|
|
17942
17946
|
var naclFast = {exports: {}};
|
|
@@ -20414,7 +20418,7 @@ async function tryWebCrypto() {
|
|
|
20414
20418
|
await idbPut(db, IDB_KEY, pair); // CryptoKey is structured-cloneable; bytes never exposed
|
|
20415
20419
|
}
|
|
20416
20420
|
const raw = new Uint8Array(await s.exportKey('raw', pair.publicKey)); // public is exportable
|
|
20417
|
-
const address =
|
|
20421
|
+
const address = bs58.encode(raw);
|
|
20418
20422
|
return {
|
|
20419
20423
|
address,
|
|
20420
20424
|
nonExtractable: true,
|
|
@@ -20435,12 +20439,12 @@ function fallbackKey() {
|
|
|
20435
20439
|
let secret;
|
|
20436
20440
|
const saved = store.getItem(FALLBACK_STORE_KEY);
|
|
20437
20441
|
if (saved) {
|
|
20438
|
-
secret =
|
|
20442
|
+
secret = bs58.decode(saved);
|
|
20439
20443
|
}
|
|
20440
20444
|
else {
|
|
20441
20445
|
const kp = Keypair.generate();
|
|
20442
20446
|
secret = kp.secretKey; // 64 bytes
|
|
20443
|
-
store.setItem(FALLBACK_STORE_KEY,
|
|
20447
|
+
store.setItem(FALLBACK_STORE_KEY, bs58.encode(secret));
|
|
20444
20448
|
}
|
|
20445
20449
|
const kp = Keypair.fromSecretKey(secret);
|
|
20446
20450
|
const address = kp.publicKey.toBase58();
|
|
@@ -21223,17 +21227,17 @@ function clearIncompatibleSession() {
|
|
|
21223
21227
|
// Lazy loaders for web-only providers.
|
|
21224
21228
|
// Using dynamic import() ensures Metro (RN) never resolves these modules.
|
|
21225
21229
|
async function loadPhantomWalletProvider() {
|
|
21226
|
-
const mod = await import('./phantom-wallet-provider-
|
|
21230
|
+
const mod = await import('./phantom-wallet-provider-CxnVOBTM.esm.js');
|
|
21227
21231
|
return { PhantomWalletProvider: mod.PhantomWalletProvider };
|
|
21228
21232
|
}
|
|
21229
21233
|
// Web Privy provider (depends on react-dom + @privy-io/react-auth). Lazy so Metro
|
|
21230
21234
|
// never bundles it into the RN build — RN uses the @privy-io/expo provider instead.
|
|
21231
21235
|
async function loadPrivyWalletProvider() {
|
|
21232
|
-
const mod = await import('./privy-wallet-provider-
|
|
21236
|
+
const mod = await import('./privy-wallet-provider-BbjUoSdY.esm.js');
|
|
21233
21237
|
return mod.PrivyWalletProvider;
|
|
21234
21238
|
}
|
|
21235
21239
|
async function loadSolanaMobileWalletProvider() {
|
|
21236
|
-
const mod = await import('./solana-mobile-wallet-provider-
|
|
21240
|
+
const mod = await import('./solana-mobile-wallet-provider-wl_xDwIC.esm.js');
|
|
21237
21241
|
return mod.SolanaMobileWalletProvider;
|
|
21238
21242
|
}
|
|
21239
21243
|
async function hotSwapToMWAProvider(config) {
|
|
@@ -22044,7 +22048,7 @@ class PrivyExpoProvider {
|
|
|
22044
22048
|
const wallet = await this.getWalletOrThrow();
|
|
22045
22049
|
const messageBytes = getPlatform().textEncode(message);
|
|
22046
22050
|
const result = await wallet.signMessage(messageBytes);
|
|
22047
|
-
return
|
|
22051
|
+
return bs58.encode(result.signature);
|
|
22048
22052
|
}
|
|
22049
22053
|
async signTransaction(transaction) {
|
|
22050
22054
|
await this.ensureReady();
|
|
@@ -22212,5 +22216,5 @@ class PrivyExpoProvider {
|
|
|
22212
22216
|
}
|
|
22213
22217
|
}
|
|
22214
22218
|
|
|
22215
|
-
export {
|
|
22216
|
-
//# sourceMappingURL=index.native-
|
|
22219
|
+
export { count as $, sendEmailOtp as A, verifyEmailOtp as B, linkEmail as C, loginWithPrivy as D, loginWithRedirect as E, linkWithRedirect as F, completeLoginFromRedirect as G, loginWithPopup as H, completeLoginInPopup as I, get as J, getMany as K, docId as L, set as M, setMany as N, setFile as O, getFiles as P, search as Q, queryAggregate as R, SOLANA_DEVNET_RPC_URL as S, runQuery as T, runQueryMany as U, runExpression as V, WebSessionManager as W, runExpressionMany as X, signMessage as Y, signTransaction as Z, signAndSubmitTransaction as _, buildSetDocumentsTransaction as a, aggregate as a0, subscribe as a1, useAuth as a2, deserializeTransaction as a3, getIdToken as a4, setPlatform as a5, MockAuthProvider as a6, DEFAULT_TEST_ADDRESS as a7, OffchainAuthProvider as a8, PrivyExpoProvider as a9, revokeSession as aA, serverTimestamp as aB, signSessionCreateMessage as aC, subscribeView as aD, toMillis as aE, toSeconds as aF, withEffects as aG, wsDelete as aH, wsGet as aI, wsGetMany as aJ, wsQuery as aK, wsSet as aL, index as aM, EFFECT_INTENT_ADDRESS as aa, FunctionInvokeError as ab, InsufficientBalanceError as ac, LiveIntentError as ad, ReactNativeSessionManager as ae, RealtimeStore as af, ServerSessionManager as ag, clearCache as ah, closeAllSubscriptions as ai, defineLiveModule as aj, deriveUserIdentityFromIdToken as ak, functions as al, getCachedData as am, getRealtimeStore as an, getWebhookKeysUrl as ao, hasActiveConnection as ap, increment as aq, invoke as ar, isEffectResult as as, live as at, intent as au, status as av, now as aw, reconnectWithNewAuth as ax, refreshSession as ay, resetRealtimeStore 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 };
|
|
22220
|
+
//# sourceMappingURL=index.native-BxNuEqgy.esm.js.map
|