@arkade-os/sdk 0.4.36 → 0.4.37

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 (47) hide show
  1. package/dist/adapters/expo.cjs +4 -4
  2. package/dist/adapters/expo.js +2 -2
  3. package/dist/adapters/indexedDB.cjs +3 -3
  4. package/dist/adapters/indexedDB.js +2 -2
  5. package/dist/{asyncStorageTaskQueue-CpC027t_.d.cts → asyncStorageTaskQueue-BhBGByYL.d.cts} +2 -2
  6. package/dist/{asyncStorageTaskQueue-GT8fmPUG.d.ts → asyncStorageTaskQueue-Da-ZSm36.d.ts} +2 -2
  7. package/dist/{chunk-Z2VRVZW4.js → chunk-HRD64JRO.js} +3 -3
  8. package/dist/{chunk-Z2VRVZW4.js.map → chunk-HRD64JRO.js.map} +1 -1
  9. package/dist/{chunk-HBPKIIMN.js → chunk-IW3PO5S5.js} +6 -7
  10. package/dist/chunk-IW3PO5S5.js.map +1 -0
  11. package/dist/{chunk-TUSGEWOX.cjs → chunk-MIYDTURH.cjs} +81 -82
  12. package/dist/chunk-MIYDTURH.cjs.map +1 -0
  13. package/dist/{chunk-C6OODRWD.cjs → chunk-SPRQOO5F.cjs} +21 -21
  14. package/dist/{chunk-C6OODRWD.cjs.map → chunk-SPRQOO5F.cjs.map} +1 -1
  15. package/dist/{chunk-2JJKX2RK.js → chunk-T5KOXHPT.js} +21 -21
  16. package/dist/{chunk-2JJKX2RK.js.map → chunk-T5KOXHPT.js.map} +1 -1
  17. package/dist/{chunk-KZV3FJJR.js → chunk-VE5PDCGK.js} +3 -3
  18. package/dist/{chunk-KZV3FJJR.js.map → chunk-VE5PDCGK.js.map} +1 -1
  19. package/dist/{chunk-2XE5BSIY.cjs → chunk-XTA64TQF.cjs} +11 -11
  20. package/dist/{chunk-2XE5BSIY.cjs.map → chunk-XTA64TQF.cjs.map} +1 -1
  21. package/dist/{chunk-A5PY4NBP.cjs → chunk-YFEN24OW.cjs} +7 -7
  22. package/dist/{chunk-A5PY4NBP.cjs.map → chunk-YFEN24OW.cjs.map} +1 -1
  23. package/dist/index.cjs +119 -111
  24. package/dist/index.d.cts +17 -4
  25. package/dist/index.d.ts +17 -4
  26. package/dist/index.js +2 -2
  27. package/dist/repositories/realm/index.cjs +11 -11
  28. package/dist/repositories/realm/index.js +2 -2
  29. package/dist/repositories/sqlite/index.cjs +11 -11
  30. package/dist/repositories/sqlite/index.js +2 -2
  31. package/dist/{taskRunner-DCyp6Gea.d.cts → taskRunner-D7ytRcrz.d.cts} +1 -1
  32. package/dist/{taskRunner-DnxtObeq.d.ts → taskRunner-Dh1DKYD4.d.ts} +1 -1
  33. package/dist/wallet/expo/background.cjs +12 -12
  34. package/dist/wallet/expo/background.d.cts +2 -2
  35. package/dist/wallet/expo/background.d.ts +2 -2
  36. package/dist/wallet/expo/background.js +4 -4
  37. package/dist/wallet/expo/index.cjs +11 -11
  38. package/dist/wallet/expo/index.d.cts +1 -1
  39. package/dist/wallet/expo/index.d.ts +1 -1
  40. package/dist/wallet/expo/index.js +3 -3
  41. package/dist/worker/expo/index.cjs +7 -7
  42. package/dist/worker/expo/index.d.cts +3 -3
  43. package/dist/worker/expo/index.d.ts +3 -3
  44. package/dist/worker/expo/index.js +3 -3
  45. package/package.json +1 -1
  46. package/dist/chunk-HBPKIIMN.js.map +0 -1
  47. package/dist/chunk-TUSGEWOX.cjs.map +0 -1
@@ -339,6 +339,25 @@ function prepareCoinAsIntentProofInput(coin) {
339
339
  };
340
340
  }
341
341
 
342
+ // package.json
343
+ var version = "0.4.37";
344
+
345
+ // src/utils/fetch.ts
346
+ var buildVersion = "0.9.9";
347
+ var sdkVersion = `ts-sdk/${version}`;
348
+ function baseFetch(input, init) {
349
+ if (typeof globalThis.fetch !== "function") {
350
+ throw new Error("Fetch API is not available in this environment.");
351
+ }
352
+ return globalThis.fetch(input, init);
353
+ }
354
+ function fetch(input, init) {
355
+ const headers = new Headers(init?.headers);
356
+ headers.set("X-Build-Version", buildVersion);
357
+ headers.set("X-SDK-VERSION", sdkVersion);
358
+ return baseFetch(input, { ...init, headers });
359
+ }
360
+
342
361
  // src/providers/utils.ts
343
362
  function createAbortError() {
344
363
  const error = new Error("EventSource closed");
@@ -439,25 +458,6 @@ function isEventSourceError(error) {
439
458
  return error instanceof Error && error.name === "EventSourceError";
440
459
  }
441
460
 
442
- // package.json
443
- var version = "0.4.36";
444
-
445
- // src/utils/fetch.ts
446
- var buildVersion = "0.9.9";
447
- var sdkVersion = `ts-sdk/${version}`;
448
- function baseFetch(input, init) {
449
- if (typeof globalThis.fetch !== "function") {
450
- throw new Error("Fetch API is not available in this environment.");
451
- }
452
- return globalThis.fetch(input, init);
453
- }
454
- function fetch(input, init) {
455
- const headers = new Headers(init?.headers);
456
- headers.set("X-Build-Version", buildVersion);
457
- headers.set("X-SDK-VERSION", sdkVersion);
458
- return baseFetch(input, { ...init, headers });
459
- }
460
-
461
461
  // src/providers/ark.ts
462
462
  var DigestMismatchError = class extends Error {
463
463
  constructor(message) {
@@ -2765,5 +2765,5 @@ var Response;
2765
2765
  })(Response || (Response = {}));
2766
2766
 
2767
2767
  export { ArkError, ArkPsbtFieldKey, ArkPsbtFieldKeyType, AssetGroup, AssetId, AssetInput, AssetOutput, AssetRef, BufferReader, ChainTxType, ConditionWitness, CosignerPublicKey, DigestMismatchError, IndexerTxType, Intent, Metadata, OP_RETURN_EMPTY_PKSCRIPT, Packet, RestArkProvider, RestIndexerProvider, SettlementEventType, Transaction, VtxoTaprootTree, VtxoTreeExpiry, asset_exports, baseFetch, buildVersion, craftToSpendTx, fetch, getArkPsbtFields, isEventSourceError, isFetchTimeoutError, maybeArkError, sdkVersion, setArkPsbtField };
2768
- //# sourceMappingURL=chunk-2JJKX2RK.js.map
2769
- //# sourceMappingURL=chunk-2JJKX2RK.js.map
2768
+ //# sourceMappingURL=chunk-T5KOXHPT.js.map
2769
+ //# sourceMappingURL=chunk-T5KOXHPT.js.map