@lydianpay/sdk-web 3.15.2 → 3.15.3
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-DF_DKcVK.js → browser-Da8RW9JJ.js} +1 -1
- package/dist/chunks/{connect-multichain-YCjUNosy.js → connect-multichain-B0ZI6zsV.js} +9 -9
- package/dist/chunks/{index-odEhT4rR.js → index-B1Q5YiHk.js} +1 -1
- package/dist/chunks/{index-yi6xk8E8.js → index-CDn8q5f_.js} +1 -1
- package/dist/chunks/{index-pr0nrRQZ.js → index-DZrAwGbi.js} +3 -3
- package/dist/chunks/{index-CwGq7YO0.js → index-N4S6JClC.js} +1 -1
- package/dist/chunks/{index-BmaYHJhy.js → index-NrvJ3x7e.js} +2 -2
- package/dist/chunks/{index-BWTclqPv.js → index-YsACqo0K.js} +2 -2
- package/dist/chunks/{mountEngine-SwisFe5z.js → mountEngine-DElXQZeI.js} +7 -4
- package/dist/lydian.js +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-N4S6JClC.js";
|
|
5
|
+
import { g as ri, c as gr } from "./mountEngine-DElXQZeI.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-NrvJ3x7e.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-CDn8q5f_.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("./index-
|
|
9332
|
+
import("./index-NrvJ3x7e.js").then((h) => h.i),
|
|
9333
|
+
import("./index-DZrAwGbi.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-Da8RW9JJ.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-NrvJ3x7e.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-NrvJ3x7e.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);
|
|
@@ -655,7 +655,7 @@ class j extends HTMLElement {
|
|
|
655
655
|
// Not started in the constructor: a page can carry the tag and never check out.
|
|
656
656
|
// Overlapping initialize() calls share one download.
|
|
657
657
|
getOrLoadEngine() {
|
|
658
|
-
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-
|
|
658
|
+
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-DElXQZeI.js").then((e) => e.m).then((e) => {
|
|
659
659
|
const a = e.mountCheckoutEngine({
|
|
660
660
|
host: this,
|
|
661
661
|
shadowRoot: this.shadow
|
|
@@ -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-NrvJ3x7e.js";
|
|
5
|
+
import { v as w } from "./connect-multichain-B0ZI6zsV.js";
|
|
6
|
+
import { a as l } from "./mountEngine-DElXQZeI.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,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-DElXQZeI.js";
|
|
2
|
+
import { r as Ti } from "./index-N4S6JClC.js";
|
|
3
3
|
function Pi(r, u) {
|
|
4
4
|
for (var f = 0; f < u.length; f++) {
|
|
5
5
|
const h = u[f];
|
|
@@ -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-DElXQZeI.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-N4S6JClC.js";
|
|
4
4
|
function Sn(t, e) {
|
|
5
5
|
if (!Te(t, { strict: !1 }))
|
|
6
6
|
throw new Xe({ address: t });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __ = Object.defineProperty;
|
|
2
2
|
var A_ = (t, e, n) => e in t ? __(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Ge = (t, e, n) => A_(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { t as Z, g as C_, i as Eg, P as xg, a as Sg, s as BE, h as Cm, c as T_, T as Wa, b as y2, r as D_, d as O_, e as N_, f as UE, j as I_, k as k_, l as LE, m as R_, n as M_, o as B_, p as U_ } from "./index-
|
|
4
|
+
import { t as Z, g as C_, i as Eg, P as xg, a as Sg, s as BE, h as Cm, c as T_, T as Wa, b as y2, r as D_, d as O_, e as N_, f as UE, j as I_, k as k_, l as LE, m as R_, n as M_, o as B_, p as U_ } from "./index-B1Q5YiHk.js";
|
|
5
5
|
function _g(t) {
|
|
6
6
|
return [...new Set(t)];
|
|
7
7
|
}
|
|
@@ -34550,7 +34550,7 @@ var Uc = "metamask", uH = /* @__PURE__ */ new Set(["eip155", "solana"]), fH = /^
|
|
|
34550
34550
|
}
|
|
34551
34551
|
async getClient() {
|
|
34552
34552
|
if (this.client) return this.client;
|
|
34553
|
-
const { createMultichainClient: t } = await import("./connect-multichain-
|
|
34553
|
+
const { createMultichainClient: t } = await import("./connect-multichain-B0ZI6zsV.js").then((r) => r.c), e = o6(), n = await t({
|
|
34554
34554
|
dapp: {
|
|
34555
34555
|
name: this.app.appName,
|
|
34556
34556
|
...e ? { url: e } : {},
|
|
@@ -34667,7 +34667,10 @@ function pH(t, e, n) {
|
|
|
34667
34667
|
throw new Error(
|
|
34668
34668
|
`${n.method} names ${String(l)}, but the connection is ${e}`
|
|
34669
34669
|
);
|
|
34670
|
-
return {
|
|
34670
|
+
return {
|
|
34671
|
+
method: r,
|
|
34672
|
+
params: { account: { address: e }, transaction: a, scope: t }
|
|
34673
|
+
};
|
|
34671
34674
|
}
|
|
34672
34675
|
function mH(t) {
|
|
34673
34676
|
return [t.namespace, ...t.extraNamespaces ?? []].flatMap((e) => e.value.chains ?? []).filter((e) => fH.test(e));
|
|
@@ -34762,7 +34765,7 @@ var vH = class extends oh {
|
|
|
34762
34765
|
}
|
|
34763
34766
|
async getProvider(t) {
|
|
34764
34767
|
if (this.provider) return this.provider;
|
|
34765
|
-
const { CoinbaseWalletSDK: e } = await import("./index-
|
|
34768
|
+
const { CoinbaseWalletSDK: e } = await import("./index-YsACqo0K.js"), r = new e({
|
|
34766
34769
|
appName: this.app.appName,
|
|
34767
34770
|
appLogoUrl: this.app.icon,
|
|
34768
34771
|
appChainIds: t
|
package/dist/lydian.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunks/index-
|
|
1
|
+
import "./chunks/index-B1Q5YiHk.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lydianpay/sdk-web",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.3",
|
|
4
4
|
"description": "Drop-in crypto payment checkout for the web — a <lydian-checkout> web component and window.Lydian API across 20+ chains and major stablecoins.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@lydianpay/frontend-shared-helpers": "1.2.0",
|
|
91
|
-
"@lydianpay/lydianconnect": "^1.10.
|
|
91
|
+
"@lydianpay/lydianconnect": "^1.10.3",
|
|
92
92
|
"@lydianpay/lydianconnect-catalog": "^1.4.1",
|
|
93
93
|
"@solana/qr-code-styling": "^1.6.0",
|
|
94
94
|
"dompurify": "^3.4.12",
|