@lydianpay/sdk-web 3.19.0 → 3.19.1
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/chunks/{browser-LUCPMqOV.js → browser-Da7U5b-F.js} +1 -1
- package/dist/chunks/{connect-multichain-ZoZGkReI.js → connect-multichain-Di5u--8V.js} +9 -9
- package/dist/chunks/{dist-YaXkB10_.js → dist-0Dd5FSyY.js} +3 -3
- package/dist/chunks/{dist-RcKY9RHt.js → dist-CWcQKmv5.js} +2 -2
- package/dist/chunks/{index-d1CYqhfC.js → index-BGAgYaji.js} +51 -50
- package/dist/chunks/{index-R_sAPlVY.js → index-DF2KOMki.js} +2 -2
- package/dist/chunks/{index-Ll9MJfyW.js → index-DxqjdB8F.js} +1 -1
- package/dist/chunks/{index-0LgMrBt6.js → index-dI__rqKb.js} +1 -1
- package/dist/chunks/{mountEngine-Zn0WefMk.js → mountEngine-BlCoRuML.js} +3 -3
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Va = Object.defineProperty;
|
|
2
2
|
var Ka = (e, t, r) => t in e ? Va(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var Ee = (e, t, r) => Ka(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { E as Ja } from "./index-
|
|
5
|
-
import { g as ri, c as gr } from "./mountEngine-
|
|
4
|
+
import { E as Ja } from "./index-dI__rqKb.js";
|
|
5
|
+
import { g as ri, c as gr } from "./mountEngine-BlCoRuML.js";
|
|
6
6
|
var _r = { exports: {} }, on, Hi;
|
|
7
7
|
function Ya() {
|
|
8
8
|
if (Hi) return on;
|
|
@@ -7879,7 +7879,7 @@ var Cn, Rs, Is, Fs, qe, gt, _t, xr, Bs, Os, Cr, zt, Ps, Ns, Ds, ta, ra = V({
|
|
|
7879
7879
|
}
|
|
7880
7880
|
getActiveSession() {
|
|
7881
7881
|
return S(this, null, function* () {
|
|
7882
|
-
const { kvstore: e } = this, { SessionStore: t } = yield import("./index-
|
|
7882
|
+
const { kvstore: e } = this, { SessionStore: t } = yield import("./index-DF2KOMki.js").then((n) => n.i), r = yield t.create(e);
|
|
7883
7883
|
try {
|
|
7884
7884
|
const [n] = yield r.list();
|
|
7885
7885
|
return n;
|
|
@@ -8058,7 +8058,7 @@ Xr(na, {
|
|
|
8058
8058
|
});
|
|
8059
8059
|
function Qd() {
|
|
8060
8060
|
return S(this, null, function* () {
|
|
8061
|
-
const { decrypt: e, encrypt: t, PrivateKey: r, PublicKey: n } = yield import("./index-
|
|
8061
|
+
const { decrypt: e, encrypt: t, PrivateKey: r, PublicKey: n } = yield import("./index-DxqjdB8F.js").then((i) => i.i);
|
|
8062
8062
|
return {
|
|
8063
8063
|
generateKeyPair() {
|
|
8064
8064
|
const i = new r();
|
|
@@ -9329,12 +9329,12 @@ Ta = function() {
|
|
|
9329
9329
|
Ui = function() {
|
|
9330
9330
|
return S(this, null, function* () {
|
|
9331
9331
|
const [e, { DappClient: t }, { createKeyManager: r }] = yield Promise.all([
|
|
9332
|
-
import("./index-
|
|
9333
|
-
import("./dist-
|
|
9332
|
+
import("./index-DF2KOMki.js").then((h) => h.i),
|
|
9333
|
+
import("./dist-0Dd5FSyY.js"),
|
|
9334
9334
|
Promise.resolve().then(() => (eh(), na))
|
|
9335
9335
|
]), n = yield r(), { adapter: i } = this.options.storage, o = yield e.SessionStore.create(i), l = (
|
|
9336
9336
|
// eslint-disable-next-line no-negated-condition
|
|
9337
|
-
typeof window < "u" ? WebSocket : (yield import("./browser-
|
|
9337
|
+
typeof window < "u" ? WebSocket : (yield import("./browser-Da7U5b-F.js").then((h) => h.b)).WebSocket
|
|
9338
9338
|
), c = yield e.WebSocketTransport.create({
|
|
9339
9339
|
url: uh,
|
|
9340
9340
|
kvstore: i,
|
|
@@ -9399,7 +9399,7 @@ Ba = function(e, t, r, n) {
|
|
|
9399
9399
|
/* MWP */
|
|
9400
9400
|
);
|
|
9401
9401
|
})).catch((c) => S(this, null, function* () {
|
|
9402
|
-
const { ProtocolError: d, ErrorCode: h } = yield import("./index-
|
|
9402
|
+
const { ProtocolError: d, ErrorCode: h } = yield import("./index-DF2KOMki.js").then((y) => y.i);
|
|
9403
9403
|
if (c instanceof d)
|
|
9404
9404
|
c.code !== h.REQUEST_EXPIRED && (this.status = "disconnected", yield this.options.ui.factory.unload(c), i.reject(c));
|
|
9405
9405
|
else {
|
|
@@ -9456,7 +9456,7 @@ Pa = function(e, t, r) {
|
|
|
9456
9456
|
/* MWP */
|
|
9457
9457
|
);
|
|
9458
9458
|
} catch (i) {
|
|
9459
|
-
const { ProtocolError: o } = yield import("./index-
|
|
9459
|
+
const { ProtocolError: o } = yield import("./index-DF2KOMki.js").then((l) => l.i);
|
|
9460
9460
|
throw this.status = "disconnected", yield this.storage.removeTransportType(), i instanceof o || i instanceof Error ? i : new Error(String(i));
|
|
9461
9461
|
} finally {
|
|
9462
9462
|
this.dappClient.off("session_request", n);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var S = (e, t, n) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var h = (e, t, n) => S(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { d as s } from "./index-
|
|
5
|
-
import { v as w } from "./connect-multichain-
|
|
6
|
-
import { a as l } from "./mountEngine-
|
|
4
|
+
import { d as s } from "./index-DF2KOMki.js";
|
|
5
|
+
import { v as w } from "./connect-multichain-Di5u--8V.js";
|
|
6
|
+
import { a as l } from "./mountEngine-BlCoRuML.js";
|
|
7
7
|
function m(e) {
|
|
8
8
|
var t, n;
|
|
9
9
|
return typeof ((n = (t = e == null ? void 0 : e.prototype) == null ? void 0 : t.constructor) == null ? void 0 : n.name) == "string";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as Te, I as Xe, h as et, g as yn, b as vn, s as kn } from "./mountEngine-
|
|
1
|
+
import { i as Te, I as Xe, h as et, g as yn, b as vn, s as kn } from "./mountEngine-BlCoRuML.js";
|
|
2
2
|
import { r as En, a as In } from "./utils-Ca8X9WUu.js";
|
|
3
|
-
import { E as Cn } from "./index-
|
|
3
|
+
import { E as Cn } from "./index-dI__rqKb.js";
|
|
4
4
|
function Sn(t, e) {
|
|
5
5
|
if (!Te(t, { strict: !1 }))
|
|
6
6
|
throw new Xe({ address: t });
|
|
@@ -14,7 +14,7 @@ class U extends Error {
|
|
|
14
14
|
super(t, { cause: n }), this.name = "GatewayRequestError", this.errorCode = a;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
async function
|
|
17
|
+
async function f(e) {
|
|
18
18
|
const t = await e.clone().json().catch(() => null);
|
|
19
19
|
return new U({
|
|
20
20
|
statusText: e.statusText,
|
|
@@ -44,7 +44,7 @@ class y {
|
|
|
44
44
|
const n = `${this.baseUri}${t}`, o = this.headers({ "Content-Type": "application/json", ...a == null ? void 0 : a.headers }), r = Object.assign({}, a, { headers: o }), s = await fetch(n, r);
|
|
45
45
|
if (s.ok)
|
|
46
46
|
return await s.json();
|
|
47
|
-
throw await
|
|
47
|
+
throw await f(s);
|
|
48
48
|
}
|
|
49
49
|
// For endpoints that reply text/plain rather than JSON (e.g. PATCH
|
|
50
50
|
// /customer/otp -> "OTP sent"). Sends the same JSON request headers but does
|
|
@@ -53,13 +53,13 @@ class y {
|
|
|
53
53
|
const n = `${this.baseUri}${t}`, o = this.headers({ "Content-Type": "application/json" }), r = Object.assign({}, a, { headers: o }), s = await fetch(n, r);
|
|
54
54
|
if (s.ok)
|
|
55
55
|
return await s.text();
|
|
56
|
-
throw await
|
|
56
|
+
throw await f(s);
|
|
57
57
|
}
|
|
58
58
|
async requestWithFormData(t, a) {
|
|
59
59
|
const n = `${this.baseUri}${t}`, o = this.headers(), r = Object.assign({}, a, { headers: o }), s = await fetch(n, r);
|
|
60
60
|
if (s.ok)
|
|
61
61
|
return await s.json();
|
|
62
|
-
throw await
|
|
62
|
+
throw await f(s);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
const l = "transaction", W = [
|
|
@@ -144,18 +144,18 @@ function M(e, t) {
|
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const w = "customer";
|
|
148
148
|
class Y extends y {
|
|
149
149
|
// PATCH /customer/otp -> text/plain "OTP sent" (no JSON body).
|
|
150
150
|
async sendCustomerOTP(t) {
|
|
151
|
-
return await this.requestText(`/${
|
|
151
|
+
return await this.requestText(`/${w}/otp`, {
|
|
152
152
|
method: "PATCH",
|
|
153
153
|
body: JSON.stringify(t)
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
// PUT /customer/otp -> { customerUUID, kycValidated }.
|
|
157
157
|
async authenticateCustomerOTP(t) {
|
|
158
|
-
return await this.request(`/${
|
|
158
|
+
return await this.request(`/${w}/otp`, {
|
|
159
159
|
method: "PUT",
|
|
160
160
|
body: JSON.stringify(t)
|
|
161
161
|
});
|
|
@@ -163,7 +163,7 @@ class Y extends y {
|
|
|
163
163
|
// PUT /customer/pii -> the stored record, masked. Verifies the same code as
|
|
164
164
|
// PUT /customer/otp; a code serves both until it expires.
|
|
165
165
|
async getCustomerPII(t) {
|
|
166
|
-
return await this.request(`/${
|
|
166
|
+
return await this.request(`/${w}/pii`, {
|
|
167
167
|
method: "PUT",
|
|
168
168
|
body: JSON.stringify(t)
|
|
169
169
|
});
|
|
@@ -179,7 +179,7 @@ class _ extends y {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
const d = "session";
|
|
182
|
-
class
|
|
182
|
+
class G extends y {
|
|
183
183
|
async createSession(t) {
|
|
184
184
|
return await this.request(`/${d}`, {
|
|
185
185
|
method: "POST",
|
|
@@ -217,9 +217,10 @@ class q extends y {
|
|
|
217
217
|
}
|
|
218
218
|
class S extends y {
|
|
219
219
|
}
|
|
220
|
-
M(S, [$, Y, _,
|
|
221
|
-
const
|
|
222
|
-
var
|
|
220
|
+
M(S, [$, Y, _, G]);
|
|
221
|
+
const q = S;
|
|
222
|
+
var i = {
|
|
223
|
+
SINGLE_PAYMENT_REQUIRED: -11,
|
|
223
224
|
COMPLIANCE_PENDING: -10,
|
|
224
225
|
API_CANCELLED: -9,
|
|
225
226
|
PAYMENT_TIMEOUT: -8,
|
|
@@ -242,15 +243,15 @@ var c = {
|
|
|
242
243
|
}, K = {
|
|
243
244
|
PENDING: 0,
|
|
244
245
|
CONFIRMED: 1
|
|
245
|
-
},
|
|
246
|
+
}, g = {
|
|
246
247
|
dev: "https://api.lydian.dev",
|
|
247
248
|
sandbox: "https://api.sandbox.lydian.com",
|
|
248
249
|
prod: "https://api.lydian.com"
|
|
249
250
|
};
|
|
250
251
|
function j(e) {
|
|
251
|
-
return e.gatewayUrl ? new URL(e.gatewayUrl).origin : e.dev ?
|
|
252
|
+
return e.gatewayUrl ? new URL(e.gatewayUrl).origin : e.dev ? g.dev : e.sandbox ? g.sandbox : g.prod;
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
+
function D({
|
|
254
255
|
options: e,
|
|
255
256
|
unsupportedKeys: t,
|
|
256
257
|
entryPoint: a
|
|
@@ -258,7 +259,7 @@ function v({
|
|
|
258
259
|
const n = t.filter((o) => e[o] !== void 0);
|
|
259
260
|
return n.length === 0 ? null : `${n.join(" and ")} ${n.length > 1 ? "are" : "is"} not used by ${a}. Passing it has no effect, so this is almost always a mistake.`;
|
|
260
261
|
}
|
|
261
|
-
function
|
|
262
|
+
function v(e) {
|
|
262
263
|
var t;
|
|
263
264
|
return (t = e.flow) != null && t.walletConnect && !e.walletConnectProjectId ? "walletConnectProjectId is required when flow.walletConnect is on" : null;
|
|
264
265
|
}
|
|
@@ -294,7 +295,7 @@ function I(e, t, a) {
|
|
|
294
295
|
console.error(`onEvent("${t}") threw:`, n);
|
|
295
296
|
}
|
|
296
297
|
}
|
|
297
|
-
function
|
|
298
|
+
function h(e) {
|
|
298
299
|
if (!e)
|
|
299
300
|
return;
|
|
300
301
|
let t;
|
|
@@ -306,8 +307,8 @@ function p(e) {
|
|
|
306
307
|
return t.protocol === "https:" || t.protocol === "http:" ? e : void 0;
|
|
307
308
|
}
|
|
308
309
|
const J = [
|
|
309
|
-
|
|
310
|
-
|
|
310
|
+
i.KYC_VERIFICATION_PENDING,
|
|
311
|
+
i.COMPLIANCE_PENDING
|
|
311
312
|
];
|
|
312
313
|
async function Q({
|
|
313
314
|
api: e,
|
|
@@ -341,7 +342,7 @@ async function X(e) {
|
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
344
|
function C(e) {
|
|
344
|
-
return typeof e == "string" ?
|
|
345
|
+
return typeof e == "string" ? h(e) : void 0;
|
|
345
346
|
}
|
|
346
347
|
async function V({
|
|
347
348
|
api: e,
|
|
@@ -398,7 +399,7 @@ function P({
|
|
|
398
399
|
// Only a failure that ends the checkout carries a redirect. A retryable one
|
|
399
400
|
// leaves the customer mid-flow with something still to do, and a host that
|
|
400
401
|
// navigated on it would eject them on a hiccup.
|
|
401
|
-
redirectURL: a ?
|
|
402
|
+
redirectURL: a ? h(o == null ? void 0 : o.failureURL) : void 0
|
|
402
403
|
}
|
|
403
404
|
};
|
|
404
405
|
}
|
|
@@ -653,21 +654,21 @@ const ae = {
|
|
|
653
654
|
"validation.customerDetailsMissing": "Customer details are missing.",
|
|
654
655
|
"validation.invalidOtp": "Please enter a valid 6-digit code.",
|
|
655
656
|
"terms.notice": 'By continuing, you agree to Lydian <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Terms and Conditions</a> and understand your data will be processed according to the <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Notice</a>.'
|
|
656
|
-
}, T = { en: ae },
|
|
657
|
-
let
|
|
657
|
+
}, T = { en: ae }, R = "en";
|
|
658
|
+
let L = R;
|
|
658
659
|
function me() {
|
|
659
|
-
return
|
|
660
|
+
return L;
|
|
660
661
|
}
|
|
661
|
-
function
|
|
662
|
+
function m(e, t) {
|
|
662
663
|
var n;
|
|
663
|
-
const a = ((n = T[
|
|
664
|
+
const a = ((n = T[L]) == null ? void 0 : n[e]) ?? T[R][e] ?? e;
|
|
664
665
|
return t ? a.replace(
|
|
665
666
|
/\{(\w+)\}/g,
|
|
666
667
|
(o, r) => t[r] != null ? String(t[r]) : `{${r}}`
|
|
667
668
|
) : a;
|
|
668
669
|
}
|
|
669
670
|
function ne(e) {
|
|
670
|
-
return e ===
|
|
671
|
+
return e === i.SUCCESS ? "succeeded" : e < i.PENDING && e !== i.KYC_VERIFICATION_PENDING && e !== i.COMPLIANCE_PENDING ? "failed" : "active";
|
|
671
672
|
}
|
|
672
673
|
function oe({
|
|
673
674
|
transaction: e,
|
|
@@ -678,21 +679,21 @@ function oe({
|
|
|
678
679
|
if (a === "active")
|
|
679
680
|
return null;
|
|
680
681
|
if (a === "failed") {
|
|
681
|
-
const
|
|
682
|
+
const p = e.status === i.PAYMENT_TIMEOUT && e.paymentStatus === H.PARTIALLY_PAID || e.status === i.SINGLE_PAYMENT_REQUIRED;
|
|
682
683
|
return {
|
|
683
684
|
outcome: a,
|
|
684
|
-
message:
|
|
685
|
+
message: m(p ? "errors.paymentShortRefundRequested" : "errors.paymentCouldNotComplete"),
|
|
685
686
|
failure: {
|
|
686
687
|
shouldEndCheckout: !0,
|
|
687
688
|
// Negative (non-KYC) status — cancelled / fraud / timeout.
|
|
688
689
|
reason: "blocked",
|
|
689
690
|
transactionID: e.transactionID,
|
|
690
|
-
redirectURL:
|
|
691
|
+
redirectURL: h(t == null ? void 0 : t.failureURL)
|
|
691
692
|
}
|
|
692
693
|
};
|
|
693
694
|
}
|
|
694
695
|
const n = (o = e.payments) == null ? void 0 : o.find(
|
|
695
|
-
(
|
|
696
|
+
(c) => c.status === K.CONFIRMED
|
|
696
697
|
);
|
|
697
698
|
return {
|
|
698
699
|
outcome: a,
|
|
@@ -708,7 +709,7 @@ function oe({
|
|
|
708
709
|
asset: n == null ? void 0 : n.cryptoAsset,
|
|
709
710
|
network: n == null ? void 0 : n.cryptoNetwork,
|
|
710
711
|
completedAt: n == null ? void 0 : n.completedAt,
|
|
711
|
-
redirectURL:
|
|
712
|
+
redirectURL: h(t == null ? void 0 : t.successURL)
|
|
712
713
|
}
|
|
713
714
|
};
|
|
714
715
|
}
|
|
@@ -771,7 +772,7 @@ class se extends HTMLElement {
|
|
|
771
772
|
// Not started in the constructor: a page can carry the tag and never check out.
|
|
772
773
|
// Overlapping initialize() calls share one download.
|
|
773
774
|
getOrLoadEngine() {
|
|
774
|
-
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-
|
|
775
|
+
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-BlCoRuML.js").then((t) => t.m).then((t) => {
|
|
775
776
|
const a = t.mountCheckoutEngine({
|
|
776
777
|
host: this,
|
|
777
778
|
shadowRoot: this.shadow
|
|
@@ -827,22 +828,22 @@ class se extends HTMLElement {
|
|
|
827
828
|
return;
|
|
828
829
|
}
|
|
829
830
|
if (!n.ok && n.failureURL) {
|
|
830
|
-
const
|
|
831
|
-
message:
|
|
831
|
+
const p = m("errors.unableToCreateSession"), k = P({
|
|
832
|
+
message: p,
|
|
832
833
|
reason: "sessionExpired",
|
|
833
834
|
shouldEndCheckout: !0,
|
|
834
835
|
session: { failureURL: n.failureURL }
|
|
835
836
|
});
|
|
836
|
-
o.emit("payment.failed", k.event), o.paymentFailed(
|
|
837
|
+
o.emit("payment.failed", k.event), o.paymentFailed(p, k.failure);
|
|
837
838
|
return;
|
|
838
839
|
}
|
|
839
|
-
const s =
|
|
840
|
+
const s = m("errors.checkoutUnavailable"), c = P({
|
|
840
841
|
message: s,
|
|
841
842
|
reason: "error",
|
|
842
843
|
shouldEndCheckout: !0,
|
|
843
844
|
session: n.ok ? n.session : null
|
|
844
845
|
});
|
|
845
|
-
o.emit("payment.failed",
|
|
846
|
+
o.emit("payment.failed", c.event), o.paymentFailed(s, c.failure);
|
|
846
847
|
}
|
|
847
848
|
// Always teardown and unmount together to avoid leaking the React engine.
|
|
848
849
|
// Clear the cached load so a later initialize() creates a fresh engine.
|
|
@@ -851,7 +852,7 @@ class se extends HTMLElement {
|
|
|
851
852
|
}
|
|
852
853
|
}
|
|
853
854
|
function ie(e) {
|
|
854
|
-
return new
|
|
855
|
+
return new q(
|
|
855
856
|
j(e),
|
|
856
857
|
u(e) ? void 0 : e.publishableKey
|
|
857
858
|
);
|
|
@@ -867,13 +868,13 @@ function ce({
|
|
|
867
868
|
});
|
|
868
869
|
}
|
|
869
870
|
customElements.get("lydian-checkout") || customElements.define("lydian-checkout", se);
|
|
870
|
-
function
|
|
871
|
+
function b() {
|
|
871
872
|
return document.querySelector("lydian-checkout");
|
|
872
873
|
}
|
|
873
874
|
async function le(e) {
|
|
874
875
|
if (!e.publishableKey || !e.transaction.amount || !e.transaction.currency)
|
|
875
876
|
throw new Error("SDK initialization requires publishableKey and a transaction");
|
|
876
|
-
const t =
|
|
877
|
+
const t = v(e);
|
|
877
878
|
if (t)
|
|
878
879
|
throw new Error(t);
|
|
879
880
|
const a = A(e);
|
|
@@ -881,41 +882,41 @@ async function le(e) {
|
|
|
881
882
|
throw new Error(a);
|
|
882
883
|
if (!O(e.transaction.currency))
|
|
883
884
|
throw new Error("Invalid value for currency, valid values are: " + E.join(", "));
|
|
884
|
-
const n =
|
|
885
|
+
const n = D({
|
|
885
886
|
options: e,
|
|
886
887
|
unsupportedKeys: ["sessionID"],
|
|
887
888
|
entryPoint: "init"
|
|
888
889
|
});
|
|
889
890
|
if (n)
|
|
890
891
|
throw new Error(n);
|
|
891
|
-
await
|
|
892
|
+
await b().initialize(e);
|
|
892
893
|
}
|
|
893
894
|
async function de(e) {
|
|
894
895
|
if (!e.sessionID)
|
|
895
896
|
throw new Error("initExistingSession requires a sessionID");
|
|
896
|
-
const t =
|
|
897
|
+
const t = v(e);
|
|
897
898
|
if (t)
|
|
898
899
|
throw new Error(t);
|
|
899
900
|
const a = A(e);
|
|
900
901
|
if (a)
|
|
901
902
|
throw new Error(a);
|
|
902
|
-
const n =
|
|
903
|
+
const n = D({
|
|
903
904
|
options: e,
|
|
904
905
|
unsupportedKeys: ["publishableKey", "transaction"],
|
|
905
906
|
entryPoint: "initExistingSession"
|
|
906
907
|
});
|
|
907
908
|
if (n)
|
|
908
909
|
throw new Error(n);
|
|
909
|
-
await
|
|
910
|
+
await b().initialize(e);
|
|
910
911
|
}
|
|
911
912
|
async function ue(e) {
|
|
912
|
-
await
|
|
913
|
+
await b().updateTransaction(e);
|
|
913
914
|
}
|
|
914
915
|
window.Lydian = { init: le, initExistingSession: de, updateTransaction: ue };
|
|
915
916
|
export {
|
|
916
917
|
U as G,
|
|
917
918
|
H as P,
|
|
918
|
-
|
|
919
|
+
i as T,
|
|
919
920
|
K as a,
|
|
920
921
|
pe as b,
|
|
921
922
|
E as c,
|
|
@@ -933,6 +934,6 @@ export {
|
|
|
933
934
|
ye as o,
|
|
934
935
|
re as p,
|
|
935
936
|
V as r,
|
|
936
|
-
|
|
937
|
-
|
|
937
|
+
h as s,
|
|
938
|
+
m as t
|
|
938
939
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as Si, g as wi } from "./mountEngine-
|
|
2
|
-
import { r as Ti } from "./index-
|
|
1
|
+
import { d as Si, g as wi } from "./mountEngine-BlCoRuML.js";
|
|
2
|
+
import { r as Ti } from "./index-dI__rqKb.js";
|
|
3
3
|
function Pi(r, u) {
|
|
4
4
|
for (var f = 0; f < u.length; f++) {
|
|
5
5
|
const h = u[f];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var mA = Object.defineProperty;
|
|
2
2
|
var gA = (e, t, n) => t in e ? mA(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Ge = (e, t, n) => gA(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { t as Z, g as $g, i as Pg, G as yA, P as Fg, a as qg, s as a5, h as Fm, c as bA, T as ps, b as $2, r as wA, d as vA, f as o5, e as EA, j as SA, k as xA, l as l5, m as _A, n as AA, o as CA, p as TA } from "./index-
|
|
4
|
+
import { t as Z, g as $g, i as Pg, G as yA, P as Fg, a as qg, s as a5, h as Fm, c as bA, T as ps, b as $2, r as wA, d as vA, f as o5, e as EA, j as SA, k as xA, l as l5, m as _A, n as AA, o as CA, p as TA } from "./index-BGAgYaji.js";
|
|
5
5
|
function jg(e) {
|
|
6
6
|
return [...new Set(e)];
|
|
7
7
|
}
|
|
@@ -36063,7 +36063,7 @@ var Wc = "metamask", eK = /* @__PURE__ */ new Set(["eip155", "solana"]), tK = /^
|
|
|
36063
36063
|
}
|
|
36064
36064
|
async getClient() {
|
|
36065
36065
|
if (this.client) return this.client;
|
|
36066
|
-
const { createMultichainClient: e } = await import("./connect-multichain-
|
|
36066
|
+
const { createMultichainClient: e } = await import("./connect-multichain-Di5u--8V.js").then((i) => i.c), t = J6(), n = await e({
|
|
36067
36067
|
dapp: {
|
|
36068
36068
|
name: this.app.appName,
|
|
36069
36069
|
...t ? { url: t } : {},
|
|
@@ -36278,7 +36278,7 @@ var uK = class extends Eh {
|
|
|
36278
36278
|
}
|
|
36279
36279
|
async getProvider(e) {
|
|
36280
36280
|
if (this.provider) return this.provider;
|
|
36281
|
-
const { CoinbaseWalletSDK: t } = await import("./dist-
|
|
36281
|
+
const { CoinbaseWalletSDK: t } = await import("./dist-CWcQKmv5.js"), i = new t({
|
|
36282
36282
|
appName: this.app.appName,
|
|
36283
36283
|
appLogoUrl: this.app.icon,
|
|
36284
36284
|
appChainIds: e
|
package/dist/lydian.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunks/index-
|
|
1
|
+
import "./chunks/index-BGAgYaji.js";
|