@chrryai/chrry 1.2.19 → 1.2.21

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.d.mts CHANGED
@@ -1371,7 +1371,7 @@ declare const isFirefox: boolean;
1371
1371
  declare function getFlag({ code }: {
1372
1372
  code?: string;
1373
1373
  }): string;
1374
- declare const VERSION = "1.2.19";
1374
+ declare const VERSION = "1.2.21";
1375
1375
  type instructionBase = {
1376
1376
  id: string;
1377
1377
  title: string;
package/dist/index.d.ts CHANGED
@@ -1371,7 +1371,7 @@ declare const isFirefox: boolean;
1371
1371
  declare function getFlag({ code }: {
1372
1372
  code?: string;
1373
1373
  }): string;
1374
- declare const VERSION = "1.2.19";
1374
+ declare const VERSION = "1.2.21";
1375
1375
  type instructionBase = {
1376
1376
  id: string;
1377
1377
  title: string;
package/dist/index.js CHANGED
@@ -16560,7 +16560,7 @@ function AuthProvider({
16560
16560
  }
16561
16561
  }, [error]);
16562
16562
  const { isExtension: isExtension2, isStandalone: isStandalone2, isFirefox: isFirefox2, device, os, browser: browser2 } = usePlatform();
16563
- const isProduction3 = !process.env.NEXT_PUBLIC_CHRRY_URL || process.env.NODE_ENV === "production" || process.env.NEXT_PUBLIC_NODE_ENV === "production";
16563
+ const isProduction3 = process.env.NODE_ENV === "production" || process.env.NEXT_PUBLIC_NODE_ENV === "production";
16564
16564
  const extensionId2 = getExtensionId();
16565
16565
  const isDevelopment3 = isExtension2 ? ["ihkpepnfnhmdkmpgfdnfbllldbgabbad"].includes(extensionId2 || "") : !isProduction3;
16566
16566
  const env = isDevelopment3 ? "development" : "production";
@@ -17334,7 +17334,7 @@ function DataProvider({
17334
17334
  const [instructions, setInstructions] = (0, import_react14.useState)([]);
17335
17335
  const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
17336
17336
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
17337
- const VERSION3 = "1.2.19";
17337
+ const VERSION3 = "1.2.21";
17338
17338
  const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
17339
17339
  const {
17340
17340
  API_URL: API_URL2,
@@ -18126,7 +18126,7 @@ var init_utils = __esm({
18126
18126
  }
18127
18127
  return `${window.location.origin}/index.html`;
18128
18128
  };
18129
- isProduction2 = !process.env.NEXT_PUBLIC_CHRRY_URL || process.env.NODE_ENV === "production" || process.env.NEXT_PUBLIC_NODE_ENV === "production";
18129
+ isProduction2 = process.env.NODE_ENV === "production" || process.env.NEXT_PUBLIC_NODE_ENV === "production";
18130
18130
  CHRRY_URL = process.env.NEXT_PUBLIC_CHRRY_URL || "https://chrry.ai";
18131
18131
  FREE_DAYS = 5;
18132
18132
  PLUS_PRICE = 9.99;
@@ -18149,7 +18149,7 @@ var init_utils = __esm({
18149
18149
  API_PORT = process.env.API_PORT || "3001";
18150
18150
  FRONTEND_URL = isTestingDevice ? `http://192.168.2.27:${FE_PORT}` : isDevelopment2 ? `http://localhost:${FE_PORT}` : CHRRY_URL;
18151
18151
  PROD_FRONTEND_URL = CHRRY_URL;
18152
- API_URL = isTestingDevice ? `http://192.168.2.27:${API_PORT}/api` : isDevelopment2 ? `http://localhost:${API_PORT}/api` : process.env.NEXT_PUBLIC_API_URL ? process.env.NEXT_PUBLIC_API_URL : "https://chrry.dev/api";
18152
+ API_URL = isTestingDevice ? `http://192.168.2.27:${API_PORT}/api` : isDevelopment2 ? `http://localhost:${API_PORT}/api` : "https://chrry.dev/api";
18153
18153
  apiFetch = (url, options) => {
18154
18154
  return fetch(url, {
18155
18155
  ...options,
@@ -18309,7 +18309,7 @@ var init_utils = __esm({
18309
18309
  window.history.replaceState({}, "", newUrl);
18310
18310
  };
18311
18311
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
18312
- VERSION = "1.2.19";
18312
+ VERSION = "1.2.21";
18313
18313
  getSlugFromPathname = (path) => {
18314
18314
  const siteConfig = getSiteConfig();
18315
18315
  return getAppAndStoreSlugs(path, {