Rocky_Mountain_Vending/.pnpm-store/v10/files/c5/882c1efff3c062fd7b359a75238e0dc69750424f4b2104254f57ca55d1f264e59433e848c65e781bb998bcd6de116c287d2845b02ed9b8231d2802cc27042f
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

29 lines
No EOL
1.2 KiB
Text

export const UNDEFINED_MARKER = '__next_tagged_undefined';
// Based on https://github.com/facebook/react/blob/28dc0776be2e1370fe217549d32aee2519f0cf05/packages/react-server/src/ReactFlightServer.js#L248
export function patchConsoleMethod(methodName, wrapper) {
const descriptor = Object.getOwnPropertyDescriptor(console, methodName);
if (descriptor && (descriptor.configurable || descriptor.writable) && typeof descriptor.value === 'function') {
const originalMethod = descriptor.value;
const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name');
const wrapperMethod = function(...args) {
wrapper(methodName, ...args);
originalMethod.apply(this, args);
};
if (originalName) {
Object.defineProperty(wrapperMethod, 'name', originalName);
}
Object.defineProperty(console, methodName, {
value: wrapperMethod
});
return ()=>{
Object.defineProperty(console, methodName, {
value: originalMethod,
writable: descriptor.writable,
configurable: descriptor.configurable
});
};
}
return ()=>{};
}
//# sourceMappingURL=forward-logs-shared.js.map