@heyanon/sdk 2.1.9 → 2.1.10
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/index.js +6 -0
- package/dist/index.mjs +6 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/stringify.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -556,6 +556,11 @@ async function retry(fn, options) {
|
|
|
556
556
|
// src/utils/sleep.ts
|
|
557
557
|
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
558
558
|
|
|
559
|
+
// src/utils/stringify.ts
|
|
560
|
+
function stringify(value, space) {
|
|
561
|
+
return JSON.stringify(value, (_key, value2) => typeof value2 === "bigint" ? value2.toString() : value2, space);
|
|
562
|
+
}
|
|
563
|
+
|
|
559
564
|
exports.AdapterTag = AdapterTag;
|
|
560
565
|
exports.Chain = Chain;
|
|
561
566
|
exports.EVM = evm_exports;
|
|
@@ -566,4 +571,5 @@ exports.allChains = allChains;
|
|
|
566
571
|
exports.allEvmChains = allEvmChains;
|
|
567
572
|
exports.retry = retry;
|
|
568
573
|
exports.sleep = sleep;
|
|
574
|
+
exports.stringify = stringify;
|
|
569
575
|
exports.toResult = toResult;
|
package/dist/index.mjs
CHANGED
|
@@ -554,4 +554,9 @@ async function retry(fn, options) {
|
|
|
554
554
|
// src/utils/sleep.ts
|
|
555
555
|
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
556
556
|
|
|
557
|
-
|
|
557
|
+
// src/utils/stringify.ts
|
|
558
|
+
function stringify(value, space) {
|
|
559
|
+
return JSON.stringify(value, (_key, value2) => typeof value2 === "bigint" ? value2.toString() : value2, space);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export { AdapterTag, Chain, evm_exports as EVM, solana_exports as Solana, ton_exports as TON, WalletType, allChains, allEvmChains, retry, sleep, stringify, toResult };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function stringify(value: any, space?: string | number): string;
|