@howone/sdk 0.1.21 → 0.1.23

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
@@ -388,7 +388,6 @@ var UnifiedAuthService = class {
388
388
  };
389
389
  popupCheckInterval = window.setInterval(checkPopupStatus, 1e3);
390
390
  const messageHandler = (event) => {
391
- console.log("messageHandler", event);
392
391
  const validOrigins = [window.location.origin, "https://create-x-backend-dev.fly.dev"];
393
392
  const isValidOrigin = validOrigins.some(
394
393
  (origin) => event.origin === origin || event.origin.includes("localhost") || event.origin.includes("127.0.0.1") || event.origin.includes("fly.dev")
@@ -2002,7 +2001,6 @@ var ToastContent = ({ type, title, message, component, closeToast }) => {
2002
2001
  const handleClose = (0, import_react8.useCallback)(() => {
2003
2002
  closeToast?.();
2004
2003
  }, [closeToast]);
2005
- console.log(iconConfig, "????????");
2006
2004
  if (component) {
2007
2005
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: `flex items-start gap-3 min-h-[80px] w-full backdrop-blur-md
2008
2006
  rounded-xl p-4 shadow-2xl relative overflow-hidden ${iconConfig.bgGradient}`, children: [
@@ -2071,7 +2069,7 @@ var ToastContent = ({ type, title, message, component, closeToast }) => {
2071
2069
  };
2072
2070
  var defaultToastOptions = {
2073
2071
  position: "bottom-right",
2074
- autoClose: 3e5,
2072
+ autoClose: 3e3,
2075
2073
  hideProgressBar: true,
2076
2074
  closeOnClick: false,
2077
2075
  pauseOnHover: true,
@@ -2204,13 +2202,12 @@ var ERROR_HANDLER_SCRIPT = `(function () {
2204
2202
  const file = fileElement ? fileElement.textContent : "";
2205
2203
  const frames = Array.from(frameElements)
2206
2204
  .map((el) => el.textContent)
2207
- .join("
2208
- ");
2205
+ .join("\\n");
2209
2206
  const stack = stackElement ? stackElement.textContent : "";
2210
2207
 
2211
2208
  let line, column;
2212
2209
  const fileStr = file || "";
2213
- const lineColMatch = fileStr.match(/(?:line|at|:)(?:.*?)(?::| )(d+)(?::| )(d+)/i);
2210
+ const lineColMatch = fileStr.match(/(?:line|at|:)(?:.*?)(?::| )(\\d+)(?::| )(\\d+)/i);
2214
2211
  if (lineColMatch) {
2215
2212
  line = parseInt(lineColMatch[1], 10);
2216
2213
  column = parseInt(lineColMatch[2], 10);
@@ -2359,7 +2356,7 @@ var ERROR_HANDLER_SCRIPT = `(function () {
2359
2356
  return originalFetch.apply(this, args)
2360
2357
  .then(response => {
2361
2358
  if (!response.ok) {
2362
- const networkError = new Error(\`HTTP \${response.status}: \${response.statusText}\`);
2359
+ const networkError = new Error('HTTP ' + response.status + ': ' + response.statusText);
2363
2360
  handleFetchError(networkError, url, response);
2364
2361
  }
2365
2362
  return response;
@@ -2407,7 +2404,7 @@ var ERROR_HANDLER_SCRIPT = `(function () {
2407
2404
  xhr.onreadystatechange = function() {
2408
2405
  if (xhr.readyState === 4) {
2409
2406
  if (xhr.status >= 400) {
2410
- const networkError = new Error(\`HTTP \${xhr.status}: \${xhr.statusText}\`);
2407
+ const networkError = new Error('HTTP ' + xhr.status + ': ' + xhr.statusText);
2411
2408
  handleXHRError(networkError, xhr, false);
2412
2409
  }
2413
2410
  }
@@ -2419,7 +2416,7 @@ var ERROR_HANDLER_SCRIPT = `(function () {
2419
2416
 
2420
2417
  const originalOnError = xhr.onerror;
2421
2418
  xhr.onerror = function() {
2422
- const networkError = new Error(\`Network error for \${xhr.__intercepted_method__} \${xhr.__intercepted_url__}\`);
2419
+ const networkError = new Error('Network error for ' + xhr.__intercepted_method__ + ' ' + xhr.__intercepted_url__);
2423
2420
  handleXHRError(networkError, xhr, true);
2424
2421
 
2425
2422
  if (originalOnError) {