@gardenfi/utils 0.0.1-beta.19 → 0.0.1-beta.20
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.cjs +1 -1
- package/dist/index.js +14 -13
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +7 -6
- package/dist/src/lib/utils.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index2.cjs"),e=require("./index3.cjs"),i=require("./index4.cjs"),c=require("./index5.cjs"),r=require("./index6.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index2.cjs"),e=require("./index3.cjs"),i=require("./index4.cjs"),c=require("./index5.cjs"),r=require("./index6.cjs"),n=require("./index7.cjs"),s=require("./index8.cjs"),t=require("./index9.cjs");exports.ApiStatus=o.ApiStatus;exports.Authorization=e.Authorization;exports.Environment=e.Environment;exports.Network=e.Network;exports.sleep=e.sleep;exports.with0x=e.with0x;exports.checkAllowanceAndApprove=i.checkAllowanceAndApprove;exports.Url=c.Url;exports.Siwe=r.Siwe;exports.parseJwt=r.parseJwt;exports.MemoryStorage=n.MemoryStorage;exports.StoreKeys=s.StoreKeys;exports.fetchBitcoinBlockNumber=t.fetchBitcoinBlockNumber;exports.fetchEVMBlockNumber=t.fetchEVMBlockNumber;
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { ApiStatus as e } from "./index2.js";
|
|
2
|
-
import { Authorization as p,
|
|
3
|
-
import { checkAllowanceAndApprove as
|
|
2
|
+
import { Authorization as p, Environment as m, Network as f, sleep as x, with0x as c } from "./index3.js";
|
|
3
|
+
import { checkAllowanceAndApprove as n } from "./index4.js";
|
|
4
4
|
import { Url as a } from "./index5.js";
|
|
5
5
|
import { Siwe as w, parseJwt as A } from "./index6.js";
|
|
6
|
-
import { MemoryStorage as
|
|
7
|
-
import { StoreKeys as
|
|
8
|
-
import { fetchBitcoinBlockNumber as
|
|
6
|
+
import { MemoryStorage as s } from "./index7.js";
|
|
7
|
+
import { StoreKeys as S } from "./index8.js";
|
|
8
|
+
import { fetchBitcoinBlockNumber as N, fetchEVMBlockNumber as b } from "./index9.js";
|
|
9
9
|
export {
|
|
10
10
|
e as ApiStatus,
|
|
11
11
|
p as Authorization,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
m as Environment,
|
|
13
|
+
s as MemoryStorage,
|
|
14
|
+
f as Network,
|
|
14
15
|
w as Siwe,
|
|
15
|
-
|
|
16
|
+
S as StoreKeys,
|
|
16
17
|
a as Url,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
n as checkAllowanceAndApprove,
|
|
19
|
+
N as fetchBitcoinBlockNumber,
|
|
20
|
+
b as fetchEVMBlockNumber,
|
|
20
21
|
A as parseJwt,
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
x as sleep,
|
|
23
|
+
c as with0x
|
|
23
24
|
};
|
package/dist/index3.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=t=>t.startsWith("0x")?t:`0x${t}`,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=t=>t.startsWith("0x")?t:`0x${t}`,o=t=>`Bearer ${t}`,a=t=>new Promise(n=>setTimeout(n,t));var e=(t=>(t.MAINNET="mainnet",t.TESTNET="testnet",t))(e||{}),r=(t=>(t.MAINNET="mainnet",t.TESTNET="testnet",t.LOCALNET="localnet",t))(r||{});exports.Authorization=o;exports.Environment=r;exports.Network=e;exports.sleep=a;exports.with0x=i;
|
package/dist/index3.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
var n = /* @__PURE__ */ ((t) => (t.MAINNET = "mainnet", t.TESTNET = "testnet", t))(n || {});
|
|
1
|
+
const T = (t) => t.startsWith("0x") ? t : `0x${t}`, a = (t) => `Bearer ${t}`, s = (t) => new Promise((e) => setTimeout(e, t));
|
|
2
|
+
var r = /* @__PURE__ */ ((t) => (t.MAINNET = "mainnet", t.TESTNET = "testnet", t))(r || {}), n = /* @__PURE__ */ ((t) => (t.MAINNET = "mainnet", t.TESTNET = "testnet", t.LOCALNET = "localnet", t))(n || {});
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
n as
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
a as Authorization,
|
|
5
|
+
n as Environment,
|
|
6
|
+
r as Network,
|
|
7
|
+
s as sleep,
|
|
8
|
+
T as with0x
|
|
8
9
|
};
|
package/dist/src/lib/utils.d.ts
CHANGED