@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/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.5 초기화 중..."), this.confirmation.setMessages(St(this._config.locale));
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 s = new URL(r).searchParams.get("data");
8282
- if (!s)
8283
- throw new Error("Deeplink URL에 data 파라미터가 없습니다");
8284
- return s;
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,CA+E3F"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cross/crossx-sdk-core",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "CROSSx Core SDK - Vanilla JavaScript Embedded Wallet SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",