@chrryai/chrry 1.5.38 → 1.5.40
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 +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1323,7 +1323,7 @@ function getAppAndStoreSlugs(path, {
|
|
|
1323
1323
|
defaultAppSlug,
|
|
1324
1324
|
defaultStoreSlug,
|
|
1325
1325
|
excludedRoutes = excludedSlugRoutes,
|
|
1326
|
-
locales: locales3 =
|
|
1326
|
+
locales: locales3 = locales
|
|
1327
1327
|
}) {
|
|
1328
1328
|
const normalizedLocales = Array.isArray(locales3) ? locales3 : [];
|
|
1329
1329
|
const reservedRoutes = /* @__PURE__ */ new Set([...excludedRoutes, ...protectedRoutes]);
|
|
@@ -2093,7 +2093,7 @@ var init_utils = __esm({
|
|
|
2093
2093
|
};
|
|
2094
2094
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
2095
2095
|
config = getSiteConfig(getClientHostname());
|
|
2096
|
-
VERSION = config.version || "1.5.
|
|
2096
|
+
VERSION = config.version || "1.5.40";
|
|
2097
2097
|
getSlugFromPathname = (path) => {
|
|
2098
2098
|
return getAppAndStoreSlugs(path, {
|
|
2099
2099
|
defaultAppSlug: config.slug,
|
|
@@ -23729,17 +23729,18 @@ function AuthProvider({
|
|
|
23729
23729
|
);
|
|
23730
23730
|
const getSlugFromPathname2 = (path) => {
|
|
23731
23731
|
if (path === "/") return void 0;
|
|
23732
|
-
const { appSlug } = getAppAndStoreSlugs(path, {
|
|
23732
|
+
const { appSlug, storeSlug } = getAppAndStoreSlugs(path, {
|
|
23733
23733
|
defaultAppSlug: baseApp?.slug || siteConfig.slug,
|
|
23734
23734
|
defaultStoreSlug: baseApp?.store?.slug || siteConfig.storeSlug,
|
|
23735
23735
|
excludedRoutes: excludedSlugRoutes,
|
|
23736
23736
|
locales
|
|
23737
23737
|
});
|
|
23738
|
+
console.log(`\u{1F680} ~ getSlugFromPathname ~ appSlug:`, appSlug, storeSlug);
|
|
23738
23739
|
if (!appSlug) {
|
|
23739
23740
|
return void 0;
|
|
23740
23741
|
}
|
|
23741
23742
|
const matchedApp = storeApps?.find(
|
|
23742
|
-
(
|
|
23743
|
+
(item) => item.slug === appSlug && (!baseApp ? true : !baseApp?.store?.apps?.some((a) => a.id === item.id) ? item.store?.slug === storeSlug : true)
|
|
23743
23744
|
);
|
|
23744
23745
|
return matchedApp?.slug;
|
|
23745
23746
|
};
|
|
@@ -24428,7 +24429,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24428
24429
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24429
24430
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24430
24431
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24431
|
-
const VERSION4 = "1.5.
|
|
24432
|
+
const VERSION4 = "1.5.40";
|
|
24432
24433
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24433
24434
|
const {
|
|
24434
24435
|
API_URL: API_URL2,
|