@imtbl/checkout-sdk 2.4.6 → 2.4.7-alpha.0
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/browser/index.js +13 -6
- package/dist/node/index.cjs +14 -7
- package/dist/node/index.js +13 -6
- package/package.json +9 -9
package/dist/browser/index.js
CHANGED
|
@@ -801,7 +801,7 @@ var it = {
|
|
|
801
801
|
};
|
|
802
802
|
|
|
803
803
|
// src/env/env.ts
|
|
804
|
-
var _o = "2.4.
|
|
804
|
+
var _o = "2.4.7-alpha.0";
|
|
805
805
|
var me = () => _o;
|
|
806
806
|
|
|
807
807
|
// src/availability/availability.ts
|
|
@@ -1515,15 +1515,22 @@ var Ae = class {
|
|
|
1515
1515
|
const o = this.getCache(t);
|
|
1516
1516
|
if (o) return Promise.resolve(o);
|
|
1517
1517
|
const n = await this.httpClient.get(t);
|
|
1518
|
-
const a = {
|
|
1519
|
-
|
|
1520
|
-
|
|
1518
|
+
const a = n.data?.items?.map((s) => {
|
|
1519
|
+
const c = { ...s.token };
|
|
1520
|
+
if (!c.address && c.address_hash) {
|
|
1521
|
+
c.address = c.address_hash;
|
|
1522
|
+
}
|
|
1523
|
+
return { ...s, token: c };
|
|
1524
|
+
}) || [];
|
|
1525
|
+
const i = {
|
|
1526
|
+
items: a.filter(
|
|
1527
|
+
(s) => s.token.address && s.token.address !== this.nativeToken.address
|
|
1521
1528
|
),
|
|
1522
1529
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1523
1530
|
next_page_params: n.data?.next_page_params
|
|
1524
1531
|
};
|
|
1525
|
-
this.setCache(t,
|
|
1526
|
-
return Promise.resolve(
|
|
1532
|
+
this.setCache(t, i);
|
|
1533
|
+
return Promise.resolve(i);
|
|
1527
1534
|
} catch (t) {
|
|
1528
1535
|
let o = Jt.InternalServerError;
|
|
1529
1536
|
let n = "InternalServerError";
|
package/dist/node/index.cjs
CHANGED
|
@@ -801,7 +801,7 @@ var ot = {
|
|
|
801
801
|
};
|
|
802
802
|
|
|
803
803
|
// src/env/env.ts
|
|
804
|
-
var vn = "2.4.
|
|
804
|
+
var vn = "2.4.7-alpha.0";
|
|
805
805
|
var pe = () => vn;
|
|
806
806
|
|
|
807
807
|
// src/availability/availability.ts
|
|
@@ -1515,15 +1515,22 @@ var he = (_class3 = class {
|
|
|
1515
1515
|
const n = this.getCache(t);
|
|
1516
1516
|
if (n) return Promise.resolve(n);
|
|
1517
1517
|
const o = await this.httpClient.get(t);
|
|
1518
|
-
const a = {
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1518
|
+
const a = _optionalChain([o, 'access', _61 => _61.data, 'optionalAccess', _62 => _62.items, 'optionalAccess', _63 => _63.map, 'call', _64 => _64((i) => {
|
|
1519
|
+
const c = { ...i.token };
|
|
1520
|
+
if (!c.address && c.address_hash) {
|
|
1521
|
+
c.address = c.address_hash;
|
|
1522
|
+
}
|
|
1523
|
+
return { ...i, token: c };
|
|
1524
|
+
})]) || [];
|
|
1525
|
+
const s = {
|
|
1526
|
+
items: a.filter(
|
|
1527
|
+
(i) => i.token.address && i.token.address !== this.nativeToken.address
|
|
1528
|
+
),
|
|
1522
1529
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1523
1530
|
next_page_params: _optionalChain([o, 'access', _65 => _65.data, 'optionalAccess', _66 => _66.next_page_params])
|
|
1524
1531
|
};
|
|
1525
|
-
this.setCache(t,
|
|
1526
|
-
return Promise.resolve(
|
|
1532
|
+
this.setCache(t, s);
|
|
1533
|
+
return Promise.resolve(s);
|
|
1527
1534
|
} catch (t) {
|
|
1528
1535
|
let n = _axios.HttpStatusCode.InternalServerError;
|
|
1529
1536
|
let o = "InternalServerError";
|
package/dist/node/index.js
CHANGED
|
@@ -801,7 +801,7 @@ var ot = {
|
|
|
801
801
|
};
|
|
802
802
|
|
|
803
803
|
// src/env/env.ts
|
|
804
|
-
var vn = "2.4.
|
|
804
|
+
var vn = "2.4.7-alpha.0";
|
|
805
805
|
var pe = () => vn;
|
|
806
806
|
|
|
807
807
|
// src/availability/availability.ts
|
|
@@ -1515,15 +1515,22 @@ var he = class {
|
|
|
1515
1515
|
const n = this.getCache(t);
|
|
1516
1516
|
if (n) return Promise.resolve(n);
|
|
1517
1517
|
const o = await this.httpClient.get(t);
|
|
1518
|
-
const a = {
|
|
1519
|
-
|
|
1520
|
-
|
|
1518
|
+
const a = o.data?.items?.map((i) => {
|
|
1519
|
+
const c = { ...i.token };
|
|
1520
|
+
if (!c.address && c.address_hash) {
|
|
1521
|
+
c.address = c.address_hash;
|
|
1522
|
+
}
|
|
1523
|
+
return { ...i, token: c };
|
|
1524
|
+
}) || [];
|
|
1525
|
+
const s = {
|
|
1526
|
+
items: a.filter(
|
|
1527
|
+
(i) => i.token.address && i.token.address !== this.nativeToken.address
|
|
1521
1528
|
),
|
|
1522
1529
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1523
1530
|
next_page_params: o.data?.next_page_params
|
|
1524
1531
|
};
|
|
1525
|
-
this.setCache(t,
|
|
1526
|
-
return Promise.resolve(
|
|
1532
|
+
this.setCache(t, s);
|
|
1533
|
+
return Promise.resolve(s);
|
|
1527
1534
|
} catch (t) {
|
|
1528
1535
|
let n = Zt.InternalServerError;
|
|
1529
1536
|
let o = "InternalServerError";
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtbl/checkout-sdk",
|
|
3
3
|
"description": "Immutable Checkout SDK",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.7-alpha.0",
|
|
5
5
|
"author": "immutable",
|
|
6
6
|
"bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@imtbl/blockchain-data": "2.4.
|
|
9
|
-
"@imtbl/bridge-sdk": "2.4.
|
|
10
|
-
"@imtbl/config": "2.4.
|
|
11
|
-
"@imtbl/dex-sdk": "2.4.
|
|
12
|
-
"@imtbl/generated-clients": "2.4.
|
|
13
|
-
"@imtbl/metrics": "2.4.
|
|
14
|
-
"@imtbl/orderbook": "2.4.
|
|
15
|
-
"@imtbl/passport": "2.4.
|
|
8
|
+
"@imtbl/blockchain-data": "2.4.7-alpha.0",
|
|
9
|
+
"@imtbl/bridge-sdk": "2.4.7-alpha.0",
|
|
10
|
+
"@imtbl/config": "2.4.7-alpha.0",
|
|
11
|
+
"@imtbl/dex-sdk": "2.4.7-alpha.0",
|
|
12
|
+
"@imtbl/generated-clients": "2.4.7-alpha.0",
|
|
13
|
+
"@imtbl/metrics": "2.4.7-alpha.0",
|
|
14
|
+
"@imtbl/orderbook": "2.4.7-alpha.0",
|
|
15
|
+
"@imtbl/passport": "2.4.7-alpha.0",
|
|
16
16
|
"@metamask/detect-provider": "^2.0.0",
|
|
17
17
|
"axios": "^1.6.5",
|
|
18
18
|
"ethers": "^6.13.4",
|