@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.
Files changed (48) hide show
  1. package/dist/auth/providers/privy-wallet-provider.d.ts +2 -0
  2. package/dist/index.esm.js +26190 -7
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +26307 -108
  5. package/dist/index.js.map +1 -1
  6. package/dist/{index.native-C8GJTcIy.esm.js → index.native-BxNuEqgy.esm.js} +19 -15
  7. package/dist/index.native-BxNuEqgy.esm.js.map +1 -0
  8. package/dist/{index.native-DpYQ8GUh.js → index.native-CCc03Zxr.js} +19 -16
  9. package/dist/index.native-CCc03Zxr.js.map +1 -0
  10. package/dist/index.native.esm.js +1 -1
  11. package/dist/index.native.js +1 -1
  12. package/dist/{phantom-wallet-provider-FOSnYV4t.esm.js → phantom-wallet-provider-CxnVOBTM.esm.js} +3 -3
  13. package/dist/{phantom-wallet-provider-FOSnYV4t.esm.js.map → phantom-wallet-provider-CxnVOBTM.esm.js.map} +1 -1
  14. package/dist/{phantom-wallet-provider-B8gezRxB.js → phantom-wallet-provider-yMlFdfKn.js} +3 -3
  15. package/dist/{phantom-wallet-provider-B8gezRxB.js.map → phantom-wallet-provider-yMlFdfKn.js.map} +1 -1
  16. package/dist/{privy-wallet-provider-BPOjNW9O.esm.js → privy-wallet-provider-BbjUoSdY.esm.js} +43 -23
  17. package/dist/privy-wallet-provider-BbjUoSdY.esm.js.map +1 -0
  18. package/dist/{privy-wallet-provider-DfR-7xpE.js → privy-wallet-provider-BcbjdOfk.js} +43 -23
  19. package/dist/privy-wallet-provider-BcbjdOfk.js.map +1 -0
  20. package/dist/{solana-mobile-wallet-provider-CBAeRxGQ.js → solana-mobile-wallet-provider-BCoTvY5g.js} +5 -5
  21. package/dist/{solana-mobile-wallet-provider-CBAeRxGQ.js.map → solana-mobile-wallet-provider-BCoTvY5g.js.map} +1 -1
  22. package/dist/{solana-mobile-wallet-provider-CoS-38SL.esm.js → solana-mobile-wallet-provider-wl_xDwIC.esm.js} +5 -5
  23. package/dist/{solana-mobile-wallet-provider-CoS-38SL.esm.js.map → solana-mobile-wallet-provider-wl_xDwIC.esm.js.map} +1 -1
  24. package/package.json +23 -12
  25. package/dist/index-30RA_Bdf.esm.js +0 -26167
  26. package/dist/index-30RA_Bdf.esm.js.map +0 -1
  27. package/dist/index-B9DtkVXb.esm.js +0 -16843
  28. package/dist/index-B9DtkVXb.esm.js.map +0 -1
  29. package/dist/index-CdqFc68L.js +0 -16884
  30. package/dist/index-CdqFc68L.js.map +0 -1
  31. package/dist/index-CplhW55m.js +0 -16882
  32. package/dist/index-CplhW55m.js.map +0 -1
  33. package/dist/index-DXdFMfDw.esm.js +0 -16841
  34. package/dist/index-DXdFMfDw.esm.js.map +0 -1
  35. package/dist/index-ZYhdEVCA.js +0 -26289
  36. package/dist/index-ZYhdEVCA.js.map +0 -1
  37. package/dist/index.browser-C_TToxuO.esm.js +0 -4208
  38. package/dist/index.browser-C_TToxuO.esm.js.map +0 -1
  39. package/dist/index.browser-Cictefil.esm.js +0 -5064
  40. package/dist/index.browser-Cictefil.esm.js.map +0 -1
  41. package/dist/index.browser-DcHalmEf.js +0 -4213
  42. package/dist/index.browser-DcHalmEf.js.map +0 -1
  43. package/dist/index.browser-sADlt75X.js +0 -5074
  44. package/dist/index.browser-sADlt75X.js.map +0 -1
  45. package/dist/index.native-C8GJTcIy.esm.js.map +0 -1
  46. package/dist/index.native-DpYQ8GUh.js.map +0 -1
  47. package/dist/privy-wallet-provider-BPOjNW9O.esm.js.map +0 -1
  48. package/dist/privy-wallet-provider-DfR-7xpE.js.map +0 -1
@@ -9909,7 +9909,7 @@ function requireBs58 () {
9909
9909
  }
9910
9910
 
9911
9911
  var bs58Exports = requireBs58();
9912
- var bs58 = /*@__PURE__*/getDefaultExportFromCjs(bs58Exports);
9912
+ var bs58$2 = /*@__PURE__*/getDefaultExportFromCjs(bs58Exports);
9913
9913
 
9914
9914
  // ─────────────────────────────────────────────────────────────
9915
9915
  // Local implementation of getSimulationComputeUnits
@@ -10196,7 +10196,7 @@ function loadKeypairFromEnv() {
10196
10196
  try {
10197
10197
  const secretKey = secret.trim().startsWith("[")
10198
10198
  ? Uint8Array.from(JSON.parse(secret))
10199
- : bs58.decode(secret.trim());
10199
+ : bs58$2.decode(secret.trim());
10200
10200
  return web3_js.Keypair.fromSecretKey(secretKey);
10201
10201
  }
10202
10202
  catch (err) {
@@ -10713,9 +10713,13 @@ function normalizeReadResult(responseData, pathIsDocument) {
10713
10713
  let doc = responseData;
10714
10714
  // Unwrap the single-doc envelope `{ data, status }` (Bug 2). A real document
10715
10715
  // never has the exact shape `{ data, status }` with nothing else meaningful,
10716
- // so detect the envelope by `data` being present alongside a numeric `status`.
10716
+ // so detect the envelope by `data` + numeric `status` AND the absence of a
10717
+ // top-level `_id` (a real stored doc always carries `_id`/`pathId` from the
10718
+ // worker; the envelope wrapper does not). This avoids unwrapping a genuine
10719
+ // document that merely happens to own `data`/`status` fields.
10717
10720
  if (doc && typeof doc === 'object' && !Array.isArray(doc) &&
10718
- 'data' in doc && 'status' in doc && typeof doc.status === 'number') {
10721
+ 'data' in doc && 'status' in doc && typeof doc.status === 'number' &&
10722
+ !('_id' in doc) && !('pathId' in doc)) {
10719
10723
  doc = doc.data;
10720
10724
  }
10721
10725
  if (doc === undefined || doc === null)
@@ -17953,11 +17957,11 @@ var srcExports = requireSrc();
17953
17957
  var basex = /*@__PURE__*/getDefaultExportFromCjs$1(srcExports);
17954
17958
 
17955
17959
  var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
17956
- var bs582 = basex(ALPHABET);
17960
+ var bs58 = basex(ALPHABET);
17957
17961
 
17958
17962
  var index = /*#__PURE__*/Object.freeze({
17959
17963
  __proto__: null,
17960
- default: bs582
17964
+ default: bs58
17961
17965
  });
17962
17966
 
17963
17967
  var naclFast = {exports: {}};
@@ -20435,7 +20439,7 @@ async function tryWebCrypto() {
20435
20439
  await idbPut(db, IDB_KEY, pair); // CryptoKey is structured-cloneable; bytes never exposed
20436
20440
  }
20437
20441
  const raw = new Uint8Array(await s.exportKey('raw', pair.publicKey)); // public is exportable
20438
- const address = bs582.encode(raw);
20442
+ const address = bs58.encode(raw);
20439
20443
  return {
20440
20444
  address,
20441
20445
  nonExtractable: true,
@@ -20456,12 +20460,12 @@ function fallbackKey() {
20456
20460
  let secret;
20457
20461
  const saved = store.getItem(FALLBACK_STORE_KEY);
20458
20462
  if (saved) {
20459
- secret = bs582.decode(saved);
20463
+ secret = bs58.decode(saved);
20460
20464
  }
20461
20465
  else {
20462
20466
  const kp = web3_js.Keypair.generate();
20463
20467
  secret = kp.secretKey; // 64 bytes
20464
- store.setItem(FALLBACK_STORE_KEY, bs582.encode(secret));
20468
+ store.setItem(FALLBACK_STORE_KEY, bs58.encode(secret));
20465
20469
  }
20466
20470
  const kp = web3_js.Keypair.fromSecretKey(secret);
20467
20471
  const address = kp.publicKey.toBase58();
@@ -21244,17 +21248,17 @@ function clearIncompatibleSession() {
21244
21248
  // Lazy loaders for web-only providers.
21245
21249
  // Using dynamic import() ensures Metro (RN) never resolves these modules.
21246
21250
  async function loadPhantomWalletProvider() {
21247
- const mod = await Promise.resolve().then(function () { return require('./phantom-wallet-provider-B8gezRxB.js'); });
21251
+ const mod = await Promise.resolve().then(function () { return require('./phantom-wallet-provider-yMlFdfKn.js'); });
21248
21252
  return { PhantomWalletProvider: mod.PhantomWalletProvider };
21249
21253
  }
21250
21254
  // Web Privy provider (depends on react-dom + @privy-io/react-auth). Lazy so Metro
21251
21255
  // never bundles it into the RN build — RN uses the @privy-io/expo provider instead.
21252
21256
  async function loadPrivyWalletProvider() {
21253
- const mod = await Promise.resolve().then(function () { return require('./privy-wallet-provider-DfR-7xpE.js'); });
21257
+ const mod = await Promise.resolve().then(function () { return require('./privy-wallet-provider-BcbjdOfk.js'); });
21254
21258
  return mod.PrivyWalletProvider;
21255
21259
  }
21256
21260
  async function loadSolanaMobileWalletProvider() {
21257
- const mod = await Promise.resolve().then(function () { return require('./solana-mobile-wallet-provider-CBAeRxGQ.js'); });
21261
+ const mod = await Promise.resolve().then(function () { return require('./solana-mobile-wallet-provider-BCoTvY5g.js'); });
21258
21262
  return mod.SolanaMobileWalletProvider;
21259
21263
  }
21260
21264
  async function hotSwapToMWAProvider(config) {
@@ -22065,7 +22069,7 @@ class PrivyExpoProvider {
22065
22069
  const wallet = await this.getWalletOrThrow();
22066
22070
  const messageBytes = getPlatform().textEncode(message);
22067
22071
  const result = await wallet.signMessage(messageBytes);
22068
- return bs582.encode(result.signature);
22072
+ return bs58.encode(result.signature);
22069
22073
  }
22070
22074
  async signTransaction(transaction) {
22071
22075
  await this.ensureReady();
@@ -22249,7 +22253,7 @@ exports.SURFNET_RPC_URL = SURFNET_RPC_URL$1;
22249
22253
  exports.ServerSessionManager = ServerSessionManager;
22250
22254
  exports.WebSessionManager = WebSessionManager;
22251
22255
  exports.aggregate = aggregate;
22252
- exports.bs582 = bs582;
22256
+ exports.bs58 = bs58;
22253
22257
  exports.bufferExports = bufferExports;
22254
22258
  exports.buildSetDocumentsTransaction = buildSetDocumentsTransaction;
22255
22259
  exports.clearCache = clearCache;
@@ -22276,7 +22280,6 @@ exports.getAuthProvider = getAuthProvider;
22276
22280
  exports.getCachedData = getCachedData;
22277
22281
  exports.getConfig = getConfig;
22278
22282
  exports.getCurrentUser = getCurrentUser;
22279
- exports.getDefaultExportFromCjs = getDefaultExportFromCjs$1;
22280
22283
  exports.getFiles = getFiles;
22281
22284
  exports.getIdToken = getIdToken;
22282
22285
  exports.getMany = getMany;
@@ -22337,4 +22340,4 @@ exports.wsGet = wsGet;
22337
22340
  exports.wsGetMany = wsGetMany;
22338
22341
  exports.wsQuery = wsQuery;
22339
22342
  exports.wsSet = wsSet;
22340
- //# sourceMappingURL=index.native-DpYQ8GUh.js.map
22343
+ //# sourceMappingURL=index.native-CCc03Zxr.js.map