Rocky_Mountain_Vending/.pnpm-store/v10/files/8a/2b8858faab05caec3ace0a2047e3b19fa1b49d6a755a1da8b5039d47b4ff216611ae9da6017c99642e06a235b198cd0e0b15eaefdbb4661bed9487182c4df7
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

39 lines
1 KiB
Text

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
// By default, we want to infer the IP address, unless this is explicitly set to `null`
// We do this after all other processing is done
// If `ip_address` is explicitly set to `null` or a value, we leave it as is
/**
* @internal
*/
function addAutoIpAddressToUser(objWithMaybeUser) {
if (objWithMaybeUser.user?.ip_address === undefined) {
objWithMaybeUser.user = {
...objWithMaybeUser.user,
ip_address: '{{auto}}',
};
}
}
/**
* @internal
*/
function addAutoIpAddressToSession(session) {
if ('aggregates' in session) {
if (session.attrs?.['ip_address'] === undefined) {
session.attrs = {
...session.attrs,
ip_address: '{{auto}}',
};
}
} else {
if (session.ipAddress === undefined) {
session.ipAddress = '{{auto}}';
}
}
}
exports.addAutoIpAddressToSession = addAutoIpAddressToSession;
exports.addAutoIpAddressToUser = addAutoIpAddressToUser;
//# sourceMappingURL=ipAddress.js.map