@arkade-os/sdk 0.4.71 → 0.4.72
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/README.md +29 -0
- package/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{asyncStorageTaskQueue-CjKAUiuj.d.ts → asyncStorageTaskQueue-DhhNZc4v.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-DgXf4iuU.d.cts → asyncStorageTaskQueue-s5lUGWxu.d.cts} +2 -2
- package/dist/{chunk-I7ZNWBBU.cjs → chunk-4BWZ437E.cjs} +21 -17
- package/dist/chunk-4BWZ437E.cjs.map +1 -0
- package/dist/{chunk-FM263GKH.cjs → chunk-4C5PMGBB.cjs} +51 -25
- package/dist/chunk-4C5PMGBB.cjs.map +1 -0
- package/dist/{chunk-2ZX4Z2IP.js → chunk-5GQFYVWP.js} +30 -5
- package/dist/chunk-5GQFYVWP.js.map +1 -0
- package/dist/{chunk-5J5PDZRR.cjs → chunk-6FTHFJAN.cjs} +30 -4
- package/dist/chunk-6FTHFJAN.cjs.map +1 -0
- package/dist/{chunk-E5JNYFOF.js → chunk-BHLYB44A.js} +210 -53
- package/dist/chunk-BHLYB44A.js.map +1 -0
- package/dist/{chunk-ALZ2CZ3T.js → chunk-CB6QPAO5.js} +3 -3
- package/dist/{chunk-ALZ2CZ3T.js.map → chunk-CB6QPAO5.js.map} +1 -1
- package/dist/{chunk-NOWVA5CM.js → chunk-CZPBPMO2.js} +4 -4
- package/dist/{chunk-NOWVA5CM.js.map → chunk-CZPBPMO2.js.map} +1 -1
- package/dist/{chunk-ZT3EM4CE.js → chunk-IGER5FPC.js} +37 -11
- package/dist/chunk-IGER5FPC.js.map +1 -0
- package/dist/{chunk-7PHMT3T4.cjs → chunk-KDMHEWTD.cjs} +10 -10
- package/dist/{chunk-7PHMT3T4.cjs.map → chunk-KDMHEWTD.cjs.map} +1 -1
- package/dist/{chunk-P6EXRY5L.cjs → chunk-NPM5YZBC.cjs} +49 -49
- package/dist/{chunk-P6EXRY5L.cjs.map → chunk-NPM5YZBC.cjs.map} +1 -1
- package/dist/{chunk-SCSLCU66.js → chunk-S5PUFSXC.js} +8 -4
- package/dist/chunk-S5PUFSXC.js.map +1 -0
- package/dist/{chunk-MK5EPTTB.cjs → chunk-U5I3ITV7.cjs} +643 -485
- package/dist/chunk-U5I3ITV7.cjs.map +1 -0
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-D-gEEqrP.d.cts → delegate-BJp8f6LT.d.cts} +1 -1
- package/dist/{delegate-CKJdsC99.d.ts → delegate-Ckz_TWzM.d.ts} +1 -1
- package/dist/{hdWalletCapable-CwLPmWct.d.cts → hdWalletCapable-DA9bJ5eB.d.cts} +2 -2
- package/dist/{hdWalletCapable-BJ4pvkai.d.ts → hdWalletCapable-DABgAD-T.d.ts} +2 -2
- package/dist/{index-Boppyqav.d.ts → index-B8xrELXY.d.ts} +2 -2
- package/dist/{index-BE1uFXrV.d.cts → index-DSbDm0Io.d.cts} +2 -2
- package/dist/{index-CyGnhCSS.d.ts → index-Dg0-TvBQ.d.cts} +51 -3
- package/dist/{index-CyGnhCSS.d.cts → index-Dg0-TvBQ.d.ts} +51 -3
- package/dist/index.cjs +306 -298
- package/dist/index.d.cts +54 -10
- package/dist/index.d.ts +54 -10
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +18 -18
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-CjmMH_rW.d.cts → taskRunner-BH_FxaNI.d.cts} +2 -2
- package/dist/{taskRunner-l3zyfW_Q.d.ts → taskRunner-DrVz2QZs.d.ts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-2ZX4Z2IP.js.map +0 -1
- package/dist/chunk-5J5PDZRR.cjs.map +0 -1
- package/dist/chunk-E5JNYFOF.js.map +0 -1
- package/dist/chunk-FM263GKH.cjs.map +0 -1
- package/dist/chunk-I7ZNWBBU.cjs.map +0 -1
- package/dist/chunk-MK5EPTTB.cjs.map +0 -1
- package/dist/chunk-SCSLCU66.js.map +0 -1
- package/dist/chunk-ZT3EM4CE.js.map +0 -1
|
@@ -1044,7 +1044,7 @@ function resolveEventSource(override) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
1046
|
// package.json
|
|
1047
|
-
var version = "0.4.
|
|
1047
|
+
var version = "0.4.72";
|
|
1048
1048
|
|
|
1049
1049
|
// src/utils/fetch.ts
|
|
1050
1050
|
var buildVersion = "0.9.9";
|
|
@@ -1061,11 +1061,36 @@ var FetchError = class extends Error {
|
|
|
1061
1061
|
this.method = options.method;
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
|
+
var READ_TIMEOUT_MS = 3e4;
|
|
1065
|
+
var warnedNoTimeoutSupport = false;
|
|
1066
|
+
function readDeadline(input, init) {
|
|
1067
|
+
if (init?.signal || input instanceof Request) return void 0;
|
|
1068
|
+
const { method } = describeRequest(input, init);
|
|
1069
|
+
const verb = method.toUpperCase();
|
|
1070
|
+
if (verb !== "GET" && verb !== "HEAD") return void 0;
|
|
1071
|
+
if (typeof AbortSignal !== "undefined" && typeof AbortSignal.timeout === "function") {
|
|
1072
|
+
return AbortSignal.timeout(READ_TIMEOUT_MS);
|
|
1073
|
+
}
|
|
1074
|
+
if (typeof AbortController === "function") {
|
|
1075
|
+
const controller = new AbortController();
|
|
1076
|
+
const timer = setTimeout(() => controller.abort(), READ_TIMEOUT_MS);
|
|
1077
|
+
timer?.unref?.();
|
|
1078
|
+
return controller.signal;
|
|
1079
|
+
}
|
|
1080
|
+
if (!warnedNoTimeoutSupport) {
|
|
1081
|
+
warnedNoTimeoutSupport = true;
|
|
1082
|
+
console.warn(
|
|
1083
|
+
"Neither AbortSignal.timeout nor AbortController is available in this runtime: provider reads are UNBOUNDED and READ_TIMEOUT_MS is not being applied."
|
|
1084
|
+
);
|
|
1085
|
+
}
|
|
1086
|
+
return void 0;
|
|
1087
|
+
}
|
|
1064
1088
|
function baseFetch(input, init) {
|
|
1065
1089
|
if (typeof globalThis.fetch !== "function") {
|
|
1066
1090
|
throw new Error("Fetch API is not available in this environment.");
|
|
1067
1091
|
}
|
|
1068
|
-
|
|
1092
|
+
const signal = readDeadline(input, init);
|
|
1093
|
+
return globalThis.fetch(input, signal ? { ...init, signal } : init).catch((cause) => {
|
|
1069
1094
|
const { url, method } = describeRequest(input, init);
|
|
1070
1095
|
throw new FetchError(`Network request failed: ${method} ${url}`, { url, method, cause });
|
|
1071
1096
|
});
|
|
@@ -2466,6 +2491,7 @@ exports.OP_RETURN_EMPTY_PKSCRIPT = OP_RETURN_EMPTY_PKSCRIPT;
|
|
|
2466
2491
|
exports.PrevArkTxField = PrevArkTxField;
|
|
2467
2492
|
exports.PrevoutTxField = PrevoutTxField;
|
|
2468
2493
|
exports.ProviderUnavailableError = ProviderUnavailableError;
|
|
2494
|
+
exports.READ_TIMEOUT_MS = READ_TIMEOUT_MS;
|
|
2469
2495
|
exports.REGTEST_EMULATOR_PUBKEY = REGTEST_EMULATOR_PUBKEY;
|
|
2470
2496
|
exports.RestArkProvider = RestArkProvider;
|
|
2471
2497
|
exports.SCRIPT_QUERY_CHUNK_SIZE = SCRIPT_QUERY_CHUNK_SIZE;
|
|
@@ -2527,5 +2553,5 @@ exports.toBatchExpiry = toBatchExpiry;
|
|
|
2527
2553
|
exports.toOffchainInputFeeParams = toOffchainInputFeeParams;
|
|
2528
2554
|
exports.toProviderUnavailable = toProviderUnavailable;
|
|
2529
2555
|
exports.toVirtualStatus = toVirtualStatus;
|
|
2530
|
-
//# sourceMappingURL=chunk-
|
|
2531
|
-
//# sourceMappingURL=chunk-
|
|
2556
|
+
//# sourceMappingURL=chunk-6FTHFJAN.cjs.map
|
|
2557
|
+
//# sourceMappingURL=chunk-6FTHFJAN.cjs.map
|