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>
47 lines
995 B
Text
47 lines
995 B
Text
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const dsn = require('./utils/dsn.js');
|
|
const envelope = require('./utils/envelope.js');
|
|
|
|
/**
|
|
* Create envelope from check in item.
|
|
*/
|
|
function createCheckInEnvelope(
|
|
checkIn,
|
|
dynamicSamplingContext,
|
|
metadata,
|
|
tunnel,
|
|
dsn$1,
|
|
) {
|
|
const headers = {
|
|
sent_at: new Date().toISOString(),
|
|
};
|
|
|
|
if (metadata?.sdk) {
|
|
headers.sdk = {
|
|
name: metadata.sdk.name,
|
|
version: metadata.sdk.version,
|
|
};
|
|
}
|
|
|
|
if (!!tunnel && !!dsn$1) {
|
|
headers.dsn = dsn.dsnToString(dsn$1);
|
|
}
|
|
|
|
if (dynamicSamplingContext) {
|
|
headers.trace = dynamicSamplingContext ;
|
|
}
|
|
|
|
const item = createCheckInEnvelopeItem(checkIn);
|
|
return envelope.createEnvelope(headers, [item]);
|
|
}
|
|
|
|
function createCheckInEnvelopeItem(checkIn) {
|
|
const checkInHeaders = {
|
|
type: 'check_in',
|
|
};
|
|
return [checkInHeaders, checkIn];
|
|
}
|
|
|
|
exports.createCheckInEnvelope = createCheckInEnvelope;
|
|
//# sourceMappingURL=checkin.js.map
|