@arkade-os/sdk 0.4.36 → 0.4.38
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/adapters/expo.cjs +4 -4
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +2 -2
- package/dist/adapters/indexedDB.cjs +3 -3
- package/dist/adapters/indexedDB.js +2 -2
- package/dist/{ark-D6sau_6-.d.cts → ark-BzUNnkoc.d.cts} +1 -1
- package/dist/{ark-D6sau_6-.d.ts → ark-BzUNnkoc.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-CpC027t_.d.cts → asyncStorageTaskQueue-C0kQoY1x.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-GT8fmPUG.d.ts → asyncStorageTaskQueue-CIYeI6GM.d.ts} +2 -2
- package/dist/{chunk-Z2VRVZW4.js → chunk-A25NYZT5.js} +3 -3
- package/dist/{chunk-Z2VRVZW4.js.map → chunk-A25NYZT5.js.map} +1 -1
- package/dist/{chunk-HBPKIIMN.js → chunk-CCUUO2GR.js} +6 -7
- package/dist/chunk-CCUUO2GR.js.map +1 -0
- package/dist/{chunk-2JJKX2RK.js → chunk-ISWKPRX3.js} +21 -21
- package/dist/chunk-ISWKPRX3.js.map +1 -0
- package/dist/{chunk-TUSGEWOX.cjs → chunk-JSTCR7PQ.cjs} +81 -82
- package/dist/chunk-JSTCR7PQ.cjs.map +1 -0
- package/dist/{chunk-A5PY4NBP.cjs → chunk-KHUOY3QD.cjs} +7 -7
- package/dist/{chunk-A5PY4NBP.cjs.map → chunk-KHUOY3QD.cjs.map} +1 -1
- package/dist/{chunk-C6OODRWD.cjs → chunk-PXMV7RPT.cjs} +21 -21
- package/dist/chunk-PXMV7RPT.cjs.map +1 -0
- package/dist/{chunk-KZV3FJJR.js → chunk-RJK63VVZ.js} +3 -3
- package/dist/{chunk-KZV3FJJR.js.map → chunk-RJK63VVZ.js.map} +1 -1
- package/dist/{chunk-2XE5BSIY.cjs → chunk-ZLDWJQIY.cjs} +11 -11
- package/dist/{chunk-2XE5BSIY.cjs.map → chunk-ZLDWJQIY.cjs.map} +1 -1
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/{delegate-De5__fpZ.d.ts → delegate-BjPbX-MR.d.ts} +1 -1
- package/dist/{delegate-C-L6gSZx.d.cts → delegate-DHAgMIS9.d.cts} +1 -1
- package/dist/{index-BETdjE_o.d.ts → index-BOQKDCmS.d.ts} +2 -2
- package/dist/{index-jwQfHP6D.d.cts → index-YkMAtSfw.d.cts} +2 -2
- package/dist/index.cjs +119 -111
- package/dist/index.d.cts +19 -10
- package/dist/index.d.ts +19 -10
- package/dist/index.js +2 -2
- package/dist/repositories/realm/index.cjs +11 -11
- package/dist/repositories/realm/index.d.cts +1 -1
- package/dist/repositories/realm/index.d.ts +1 -1
- package/dist/repositories/realm/index.js +2 -2
- package/dist/repositories/sqlite/index.cjs +11 -11
- package/dist/repositories/sqlite/index.d.cts +1 -1
- package/dist/repositories/sqlite/index.d.ts +1 -1
- package/dist/repositories/sqlite/index.js +2 -2
- package/dist/{taskRunner-DCyp6Gea.d.cts → taskRunner-CVEgBO6d.d.cts} +2 -2
- package/dist/{taskRunner-DnxtObeq.d.ts → taskRunner-Dfmt7ZPN.d.ts} +2 -2
- package/dist/wallet/expo/background.cjs +12 -12
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +4 -4
- package/dist/wallet/expo/index.cjs +11 -11
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +3 -3
- package/dist/{wallet-Bth5uucA.d.ts → wallet-C4Pide44.d.ts} +2 -2
- package/dist/{wallet-BWHbd5b1.d.cts → wallet-_PTv-lMe.d.cts} +2 -2
- package/dist/worker/expo/index.cjs +7 -7
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-2JJKX2RK.js.map +0 -1
- package/dist/chunk-C6OODRWD.cjs.map +0 -1
- package/dist/chunk-HBPKIIMN.js.map +0 -1
- 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.38";
|
|
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-
|
|
2769
|
-
//# sourceMappingURL=chunk-
|
|
2768
|
+
//# sourceMappingURL=chunk-ISWKPRX3.js.map
|
|
2769
|
+
//# sourceMappingURL=chunk-ISWKPRX3.js.map
|