@chrryai/chrry 1.4.79 → 1.4.80
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 +3 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1899,7 +1899,7 @@ var init_utils = __esm({
|
|
|
1899
1899
|
};
|
|
1900
1900
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
1901
1901
|
config = getSiteConfig(getClientHostname());
|
|
1902
|
-
VERSION = config.version || "1.4.
|
|
1902
|
+
VERSION = config.version || "1.4.80";
|
|
1903
1903
|
getSlugFromPathname = (path) => {
|
|
1904
1904
|
return getAppAndStoreSlugs(path, {
|
|
1905
1905
|
defaultAppSlug: config.slug,
|
|
@@ -22984,7 +22984,7 @@ function AuthProvider({
|
|
|
22984
22984
|
}
|
|
22985
22985
|
}, [deviceId, setDeviceId, isStorageReady]);
|
|
22986
22986
|
const [enableNotifications, setEnableNotifications] = useLocalStorage2("enableNotifications", true);
|
|
22987
|
-
const [shouldFetchSession, setShouldFetchSession] = (0, import_react19.useState)(
|
|
22987
|
+
const [shouldFetchSession, setShouldFetchSession] = (0, import_react19.useState)(!session2);
|
|
22988
22988
|
const [fingerprint, setFingerprint] = useCookieOrLocalStorage(
|
|
22989
22989
|
"fingerprint",
|
|
22990
22990
|
session2?.guest?.fingerprint || session2?.user?.fingerprint || fingerprintParam
|
|
@@ -22994,7 +22994,6 @@ function AuthProvider({
|
|
|
22994
22994
|
session2?.user?.token || session2?.guest?.fingerprint || apiKey,
|
|
22995
22995
|
isExtension2
|
|
22996
22996
|
);
|
|
22997
|
-
console.log(`\u{1F680} ~ DataProvider ~ token:`, token);
|
|
22998
22997
|
const [isCookieReady, setIsCookieReady] = (0, import_react19.useState)(false);
|
|
22999
22998
|
(0, import_react19.useEffect)(() => {
|
|
23000
22999
|
if (isExtension2) {
|
|
@@ -23021,7 +23020,6 @@ function AuthProvider({
|
|
|
23021
23020
|
}
|
|
23022
23021
|
}, [isExtension2]);
|
|
23023
23022
|
const setToken = (token2) => {
|
|
23024
|
-
console.log(`\u{1F680} ~ setToken ~ token:`, token2);
|
|
23025
23023
|
setTokenInternal(token2 || "");
|
|
23026
23024
|
};
|
|
23027
23025
|
(0, import_react19.useEffect)(() => {
|
|
@@ -23744,10 +23742,6 @@ function AuthProvider({
|
|
|
23744
23742
|
if (sessionData) {
|
|
23745
23743
|
setSession(sessionData);
|
|
23746
23744
|
if (sessionData.migratedFromGuest) {
|
|
23747
|
-
console.log(
|
|
23748
|
-
`\u{1F680} ~ AuthProvider ~ sessionData.migratedFromGuest):`,
|
|
23749
|
-
sessionData.migratedFromGuest
|
|
23750
|
-
);
|
|
23751
23745
|
migratedFromGuestRef.current = sessionData.migratedFromGuest;
|
|
23752
23746
|
}
|
|
23753
23747
|
if (sessionData.user) {
|
|
@@ -24067,7 +24061,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24067
24061
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24068
24062
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24069
24063
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24070
|
-
const VERSION4 = "1.4.
|
|
24064
|
+
const VERSION4 = "1.4.80";
|
|
24071
24065
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24072
24066
|
const {
|
|
24073
24067
|
API_URL: API_URL2,
|
|
@@ -37409,7 +37403,6 @@ Return ONLY ONE WORD: ${apps.map((a) => a.name).join(", ")}, or "none"`;
|
|
|
37409
37403
|
}
|
|
37410
37404
|
};
|
|
37411
37405
|
const clearFiles = () => setFiles([]);
|
|
37412
|
-
console.log(`\u{1F680} ~ file: hat.tsx:1047 ~ device:`, device);
|
|
37413
37406
|
const removeFile = (index) => {
|
|
37414
37407
|
setFilesInternal((prev2) => prev2.filter((_, i) => i !== index));
|
|
37415
37408
|
device === "desktop" && setShouldFocus(true);
|