Rocky_Mountain_Vending/.pnpm-store/v10/files/be/4ca1dadb7ad264ae029e7c1d61b1b344ecada661eb8195b5060958cd9a7d15293e67df46aa6ed853cbcda0b37ab9e8c8304756679f857f82866706bc315e11
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

36 lines
1 KiB
Text

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
/**
* Merge two baggage headers into one, where the existing one takes precedence.
* The order of the existing baggage will be preserved, and new entries will be added to the end.
*/
function mergeBaggageHeaders(
existing,
baggage,
) {
if (!existing) {
return baggage;
}
const existingBaggageEntries = core.parseBaggageHeader(existing);
const newBaggageEntries = core.parseBaggageHeader(baggage);
if (!newBaggageEntries) {
return existing;
}
// Existing entries take precedence, ensuring order remains stable for minimal changes
const mergedBaggageEntries = { ...existingBaggageEntries };
Object.entries(newBaggageEntries).forEach(([key, value]) => {
if (!mergedBaggageEntries[key]) {
mergedBaggageEntries[key] = value;
}
});
return core.objectToBaggageHeader(mergedBaggageEntries);
}
exports.mergeBaggageHeaders = mergeBaggageHeaders;
//# sourceMappingURL=baggage.js.map