@nexus-cross/crossx-sdk-core 1.3.5 → 1.3.6
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/__tests__/utils/parseOAuthDeeplink.test.d.ts +4 -1
- package/dist/__tests__/utils/parseOAuthDeeplink.test.d.ts.map +1 -1
- package/dist/core/utils/parseOAuthDeeplink.d.ts +12 -5
- package/dist/core/utils/parseOAuthDeeplink.d.ts.map +1 -1
- package/dist/crossx.global +2 -2
- package/dist/index.cjs +9 -9
- package/dist/index.js +12 -7
- package/dist/sdk/factory.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -885,7 +885,7 @@ const Xs = 2e3, Tt = 6e4, Zs = 1e3, Qs = 1e4, er = "0x77359400", Rt = "0x3B9ACA0
|
|
|
885
885
|
}
|
|
886
886
|
async _doInitialize(e) {
|
|
887
887
|
var s, t;
|
|
888
|
-
d.log("[CROSSx SDK] v1.3.
|
|
888
|
+
d.log("[CROSSx SDK] v1.3.6 초기화 중..."), this.confirmation.setMessages(St(this._config.locale));
|
|
889
889
|
try {
|
|
890
890
|
const n = Js();
|
|
891
891
|
this.internalConfig.oauthServiceUrl = n.oauthServiceUrl, this.internalConfig.authApiUrl = n.authApiUrl, this.internalConfig.walletGatewayUrl = n.walletGatewayUrl, this.adapterConfig.gatewayUrl = n.walletGatewayUrl, (t = (s = this.crypto).setJWKSEndpoint) == null || t.call(s, `${n.authApiUrl}/.well-known/jwks.json`);
|
|
@@ -8245,8 +8245,7 @@ function io(r, e) {
|
|
|
8245
8245
|
u,
|
|
8246
8246
|
h
|
|
8247
8247
|
));
|
|
8248
|
-
const f = new De(n, c), w = new Xn(r.theme ?? "light", r.themeTokens), b = e != null && e.wrapConfirmation ? e.wrapConfirmation(w) : w
|
|
8249
|
-
return new it(
|
|
8248
|
+
const f = new De(n, c), w = new Xn(r.theme ?? "light", r.themeTokens), b = e != null && e.wrapConfirmation ? e.wrapConfirmation(w) : w, y = new it(
|
|
8250
8249
|
t,
|
|
8251
8250
|
n,
|
|
8252
8251
|
i,
|
|
@@ -8259,6 +8258,7 @@ function io(r, e) {
|
|
|
8259
8258
|
f,
|
|
8260
8259
|
h
|
|
8261
8260
|
);
|
|
8261
|
+
return typeof window < "u" && (window.__crossxSDK = y), y;
|
|
8262
8262
|
}
|
|
8263
8263
|
function ao(r) {
|
|
8264
8264
|
const e = Qn(r), s = eo(e), t = JSON.parse(s);
|
|
@@ -8278,14 +8278,19 @@ function ao(r) {
|
|
|
8278
8278
|
}
|
|
8279
8279
|
function Qn(r) {
|
|
8280
8280
|
if (r.includes("://") && r.includes("?")) {
|
|
8281
|
-
const
|
|
8282
|
-
if (
|
|
8283
|
-
|
|
8284
|
-
return
|
|
8281
|
+
const e = new URL(r), s = e.searchParams.get("crossx_oauth_result");
|
|
8282
|
+
if (s) return s;
|
|
8283
|
+
const t = e.searchParams.get("data");
|
|
8284
|
+
if (t) return t;
|
|
8285
|
+
throw new Error("Deeplink URL에 crossx_oauth_result 또는 data 파라미터가 없습니다");
|
|
8285
8286
|
}
|
|
8286
8287
|
return r;
|
|
8287
8288
|
}
|
|
8288
8289
|
function eo(r) {
|
|
8290
|
+
if (r.startsWith("{"))
|
|
8291
|
+
return r;
|
|
8292
|
+
if (r.startsWith("%7B") || r.startsWith("%7b"))
|
|
8293
|
+
return decodeURIComponent(r);
|
|
8289
8294
|
const e = to(r);
|
|
8290
8295
|
return decodeURIComponent(e);
|
|
8291
8296
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/sdk/factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAiB/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,uDAAuD;AACvD,UAAU,gBAAgB;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,KAAK,gBAAgB,CAAC;CAChF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,gBAAgB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/sdk/factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAiB/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,uDAAuD;AACvD,UAAU,gBAAgB;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,KAAK,gBAAgB,CAAC;CAChF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAsF3F"}
|