Rocky_Mountain_Vending/.pnpm-store/v10/files/e5/b6e0e45c6c5be56ad86af4bf9b91ea825fd663d410727febfcc5b36676e97cd960096c8baef96691a510e39b29e3ca5843b783cec1967e53f34adddeda0a18
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

62 lines
No EOL
1.7 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
interceptTestApis: null,
wrapRequestHandlerNode: null,
wrapRequestHandlerWorker: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
interceptTestApis: function() {
return interceptTestApis;
},
wrapRequestHandlerNode: function() {
return wrapRequestHandlerNode;
},
wrapRequestHandlerWorker: function() {
return wrapRequestHandlerWorker;
}
});
const _context = require("./context");
const _fetch = require("./fetch");
const _httpget = require("./httpget");
const reader = {
url (req) {
return req.url ?? '';
},
header (req, name) {
const h = req.headers[name];
if (h === undefined || h === null) {
return null;
}
if (typeof h === 'string') {
return h;
}
return h[0] ?? null;
}
};
function interceptTestApis() {
const originalFetch = global.fetch;
const restoreFetch = (0, _fetch.interceptFetch)(originalFetch);
const restoreHttpGet = (0, _httpget.interceptHttpGet)(originalFetch);
// Cleanup.
return ()=>{
restoreFetch();
restoreHttpGet();
};
}
function wrapRequestHandlerWorker(handler) {
return (req, res)=>(0, _context.withRequest)(req, reader, ()=>handler(req, res));
}
function wrapRequestHandlerNode(handler) {
return (req, res, parsedUrl)=>(0, _context.withRequest)(req, reader, ()=>handler(req, res, parsedUrl));
}
//# sourceMappingURL=server.js.map