@nexus-cross/crossx-sdk-core 3.0.0-beta.1 → 3.0.0-beta.2

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.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./factory-DKz-M7y8.cjs");function s(r){const t=i(r),a=S(t),o=JSON.parse(a);l(o);const{data:n}=o;return{status:o.status,state:o.state,firebaseToken:n.accessToken,provider:n.provider,email:n.email,providerSub:n.sub,tokenType:n.tokenType,expiresIn:n.expiresIn,raw:o}}function i(r){if(r.includes("://")&&r.includes("?")){const t=new URL(r),a=t.searchParams.get("crossx_oauth_result");if(a)return a;const o=t.searchParams.get("data");if(o)return o;throw new Error("Deeplink URL에 crossx_oauth_result 또는 data 파라미터가 없습니다")}return r}function S(r){if(r.startsWith("{"))return r;if(r.startsWith("%7B")||r.startsWith("%7b"))return decodeURIComponent(r);const t=E(r);return decodeURIComponent(t)}function E(r){if(typeof atob=="function")return atob(r);if(typeof Buffer<"u")return Buffer.from(r,"base64").toString("utf-8");throw new Error("Base64 디코딩을 지원하는 환경이 아닙니다")}function l(r){if(typeof r!="object"||r===null)throw new Error("Deeplink payload가 유효한 객체가 아닙니다");const t=r;if(typeof t.status!="string")throw new Error("Deeplink payload에 status 필드가 없습니다");if(typeof t.state!="string")throw new Error("Deeplink payload에 state 필드가 없습니다");if(typeof t.data!="object"||t.data===null)throw new Error("Deeplink payload에 data 필드가 없습니다");const a=t.data;if(typeof a.provider!="string")throw new Error("Deeplink data에 provider 필드가 없습니다");if(typeof a.accessToken!="string")throw new Error("Deeplink data에 accessToken 필드가 없습니다")}exports.CONNECT_OTHER_WALLET_DISPLAY_ORDER=e.CONNECT_OTHER_WALLET_DISPLAY_ORDER;exports.CROSSxError=e.CROSSxError;exports.CROSSxEthereumProvider=e.CROSSxEthereumProvider;exports.CROSSxSDK=e.CROSSxSDK;exports.ChainId=e.ChainId;exports.ConnectOtherWalletItem=e.ConnectOtherWalletItem;exports.ErrorCode=e.ErrorCode;exports.MESSAGES_EN=e.MESSAGES_EN;exports.MESSAGES_KO=e.MESSAGES_KO;exports.MNEMONIC_ADDRESS_LIMIT=e.MNEMONIC_ADDRESS_LIMIT;exports.ONEpocketError=e.CROSSxError;exports.ONEpocketEthereumProvider=e.CROSSxEthereumProvider;exports.ONEpocketSDK=e.CROSSxSDK;exports.PinMemoryStore=e.PinMemoryStore;exports.TokenMemoryStore=e.TokenMemoryStore;exports.WALLET_BRAND_NAME=e.WALLET_BRAND_NAME;exports.WEI_DISPLAY_DECIMALS=e.WEI_DISPLAY_DECIMALS;exports.createCROSSxSDK=e.createCROSSxSDK;exports.createONEpocketSDK=e.createONEpocketSDK;exports.getConnectOtherWalletLabel=e.getConnectOtherWalletLabel;exports.getWalletBrowserInfo=e.getWalletBrowserInfo;exports.isWalletInAppBrowser=e.isWalletInAppBrowser;exports.waitForWalletBrowser=e.waitForWalletBrowser;exports.parseOAuthDeeplink=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./factory-CzX-ZcrQ.cjs");function s(r){const t=i(r),a=S(t),o=JSON.parse(a);l(o);const{data:n}=o;return{status:o.status,state:o.state,firebaseToken:n.accessToken,provider:n.provider,email:n.email,providerSub:n.sub,tokenType:n.tokenType,expiresIn:n.expiresIn,raw:o}}function i(r){if(r.includes("://")&&r.includes("?")){const t=new URL(r),a=t.searchParams.get("crossx_oauth_result");if(a)return a;const o=t.searchParams.get("data");if(o)return o;throw new Error("Deeplink URL에 crossx_oauth_result 또는 data 파라미터가 없습니다")}return r}function S(r){if(r.startsWith("{"))return r;if(r.startsWith("%7B")||r.startsWith("%7b"))return decodeURIComponent(r);const t=E(r);return decodeURIComponent(t)}function E(r){if(typeof atob=="function")return atob(r);if(typeof Buffer<"u")return Buffer.from(r,"base64").toString("utf-8");throw new Error("Base64 디코딩을 지원하는 환경이 아닙니다")}function l(r){if(typeof r!="object"||r===null)throw new Error("Deeplink payload가 유효한 객체가 아닙니다");const t=r;if(typeof t.status!="string")throw new Error("Deeplink payload에 status 필드가 없습니다");if(typeof t.state!="string")throw new Error("Deeplink payload에 state 필드가 없습니다");if(typeof t.data!="object"||t.data===null)throw new Error("Deeplink payload에 data 필드가 없습니다");const a=t.data;if(typeof a.provider!="string")throw new Error("Deeplink data에 provider 필드가 없습니다");if(typeof a.accessToken!="string")throw new Error("Deeplink data에 accessToken 필드가 없습니다")}exports.CONNECT_OTHER_WALLET_DISPLAY_ORDER=e.CONNECT_OTHER_WALLET_DISPLAY_ORDER;exports.CROSSxError=e.CROSSxError;exports.CROSSxEthereumProvider=e.CROSSxEthereumProvider;exports.CROSSxSDK=e.CROSSxSDK;exports.ChainId=e.ChainId;exports.ConnectOtherWalletItem=e.ConnectOtherWalletItem;exports.ErrorCode=e.ErrorCode;exports.MESSAGES_EN=e.MESSAGES_EN;exports.MESSAGES_KO=e.MESSAGES_KO;exports.MNEMONIC_ADDRESS_LIMIT=e.MNEMONIC_ADDRESS_LIMIT;exports.ONEpocketError=e.CROSSxError;exports.ONEpocketEthereumProvider=e.CROSSxEthereumProvider;exports.ONEpocketSDK=e.CROSSxSDK;exports.PinMemoryStore=e.PinMemoryStore;exports.TokenMemoryStore=e.TokenMemoryStore;exports.WALLET_BRAND_NAME=e.WALLET_BRAND_NAME;exports.WEI_DISPLAY_DECIMALS=e.WEI_DISPLAY_DECIMALS;exports.createCROSSxSDK=e.createCROSSxSDK;exports.createONEpocketSDK=e.createONEpocketSDK;exports.getConnectOtherWalletLabel=e.getConnectOtherWalletLabel;exports.getWalletBrowserInfo=e.getWalletBrowserInfo;exports.isWalletInAppBrowser=e.isWalletInAppBrowser;exports.waitForWalletBrowser=e.waitForWalletBrowser;exports.parseOAuthDeeplink=s;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as u, a as d, b as E, d as S, e as h, f as w, E as D, M as k, h as O, i as m, a as y, b as _, d as C, P as I, T as b, W as R, j as T, k as x, l as A, m as N, n as W, o as L, w as P } from "./factory--q6B2KiB.js";
1
+ import { C as u, a as d, b as E, d as S, e as h, f as w, E as D, M as k, h as O, i as m, a as y, b as _, d as C, P as I, T as b, W as R, j as T, k as x, l as A, m as N, n as W, o as L, w as P } from "./factory-CB7q7IqU.js";
2
2
  function f(e) {
3
3
  const t = s(e), a = n(t), r = JSON.parse(a);
4
4
  c(r);
package/dist/internal.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./factory-DKz-M7y8.cjs");exports.DEFAULT_PIN_REUSE_TTL_MS=e.DEFAULT_PIN_REUSE_TTL_MS;exports.createCROSSxSDKWithOverrides=e.createCROSSxSDKWithOverrides;exports.getInternalContext=e.getInternalContext;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./factory-CzX-ZcrQ.cjs");exports.DEFAULT_PIN_REUSE_TTL_MS=e.DEFAULT_PIN_REUSE_TTL_MS;exports.createCROSSxSDKWithOverrides=e.createCROSSxSDKWithOverrides;exports.getInternalContext=e.getInternalContext;
package/dist/internal.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as r, c as a, g as S } from "./factory--q6B2KiB.js";
1
+ import { D as r, c as a, g as S } from "./factory-CB7q7IqU.js";
2
2
  export {
3
3
  r as DEFAULT_PIN_REUSE_TTL_MS,
4
4
  a as createCROSSxSDKWithOverrides,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cross/crossx-sdk-core",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "CROSSx Core SDK - Vanilla JavaScript Embedded Wallet SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",