@chrryai/chrry 1.6.89 → 1.6.90
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1606,7 +1606,7 @@ declare function reorderApps({ token, apps, autoInstall, storeId, API_URL, }: {
|
|
|
1606
1606
|
storeId?: string;
|
|
1607
1607
|
API_URL?: string;
|
|
1608
1608
|
}): Promise<any>;
|
|
1609
|
-
declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, token, API_URL, VERSION, app, appSlug, agentName, chrryUrl, routeType, userAgent, pathname, screenWidth, screenHeight, translate, locale, source, }: {
|
|
1609
|
+
declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, token, API_URL, VERSION, app, appSlug, agentName, chrryUrl, routeType, userAgent, pathname, screenWidth, screenHeight, translate, locale, source, ip, }: {
|
|
1610
1610
|
appId?: string;
|
|
1611
1611
|
pathname?: string;
|
|
1612
1612
|
deviceId: string | undefined;
|
|
@@ -1627,6 +1627,7 @@ declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, t
|
|
|
1627
1627
|
translate?: boolean;
|
|
1628
1628
|
locale?: string;
|
|
1629
1629
|
source?: string;
|
|
1630
|
+
ip?: string;
|
|
1630
1631
|
}) => Promise<session | undefined>;
|
|
1631
1632
|
type ApiActions = ReturnType<typeof getActions>;
|
|
1632
1633
|
declare const getApps: ({ API_URL, token, chrryUrl, appId, }: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1606,7 +1606,7 @@ declare function reorderApps({ token, apps, autoInstall, storeId, API_URL, }: {
|
|
|
1606
1606
|
storeId?: string;
|
|
1607
1607
|
API_URL?: string;
|
|
1608
1608
|
}): Promise<any>;
|
|
1609
|
-
declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, token, API_URL, VERSION, app, appSlug, agentName, chrryUrl, routeType, userAgent, pathname, screenWidth, screenHeight, translate, locale, source, }: {
|
|
1609
|
+
declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, token, API_URL, VERSION, app, appSlug, agentName, chrryUrl, routeType, userAgent, pathname, screenWidth, screenHeight, translate, locale, source, ip, }: {
|
|
1610
1610
|
appId?: string;
|
|
1611
1611
|
pathname?: string;
|
|
1612
1612
|
deviceId: string | undefined;
|
|
@@ -1627,6 +1627,7 @@ declare const getSession: ({ deviceId, fingerprint, gift, isStandalone, appId, t
|
|
|
1627
1627
|
translate?: boolean;
|
|
1628
1628
|
locale?: string;
|
|
1629
1629
|
source?: string;
|
|
1630
|
+
ip?: string;
|
|
1630
1631
|
}) => Promise<session | undefined>;
|
|
1631
1632
|
type ApiActions = ReturnType<typeof getActions>;
|
|
1632
1633
|
declare const getApps: ({ API_URL, token, chrryUrl, appId, }: {
|
package/dist/index.js
CHANGED
|
@@ -2211,7 +2211,9 @@ var init_lib = __esm({
|
|
|
2211
2211
|
screenHeight,
|
|
2212
2212
|
translate,
|
|
2213
2213
|
locale: locale5,
|
|
2214
|
-
source = "client"
|
|
2214
|
+
source = "client",
|
|
2215
|
+
ip
|
|
2216
|
+
// Client IP address for Arcjet
|
|
2215
2217
|
}) => {
|
|
2216
2218
|
if (!deviceId) {
|
|
2217
2219
|
return;
|
|
@@ -2247,7 +2249,9 @@ var init_lib = __esm({
|
|
|
2247
2249
|
...pathname ? { "x-pathname": pathname } : {},
|
|
2248
2250
|
...locale5 ? { "x-locale": locale5 } : {},
|
|
2249
2251
|
...fingerprint ? { "x-fp": fingerprint } : {},
|
|
2250
|
-
...chrryUrl ? { "x-chrry-url": chrryUrl } : {}
|
|
2252
|
+
...chrryUrl ? { "x-chrry-url": chrryUrl } : {},
|
|
2253
|
+
...ip ? { "x-forwarded-for": ip } : {}
|
|
2254
|
+
// Pass client IP for Arcjet
|
|
2251
2255
|
}
|
|
2252
2256
|
});
|
|
2253
2257
|
if (!response.ok) {
|
|
@@ -3152,7 +3156,7 @@ var init_utils = __esm({
|
|
|
3152
3156
|
};
|
|
3153
3157
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent?.includes("Firefox");
|
|
3154
3158
|
config = getSiteConfig(getClientHostname());
|
|
3155
|
-
VERSION = config.version || "1.6.
|
|
3159
|
+
VERSION = config.version || "1.6.90";
|
|
3156
3160
|
getSlugFromPathname = (path) => {
|
|
3157
3161
|
return getAppAndStoreSlugs(path, {
|
|
3158
3162
|
defaultAppSlug: config.slug,
|
|
@@ -24736,7 +24740,7 @@ function DataProvider({ children, ...rest }) {
|
|
|
24736
24740
|
const [instructions, setInstructions] = (0, import_react21.useState)([]);
|
|
24737
24741
|
const [affiliateStats, setAffiliateStats] = (0, import_react21.useState)(null);
|
|
24738
24742
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react21.useState)(false);
|
|
24739
|
-
const VERSION4 = "1.6.
|
|
24743
|
+
const VERSION4 = "1.6.90";
|
|
24740
24744
|
const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
|
|
24741
24745
|
const {
|
|
24742
24746
|
API_URL: API_URL2,
|