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>
27 lines
737 B
Text
27 lines
737 B
Text
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const envelope = require('./envelope.js');
|
|
const time = require('./time.js');
|
|
|
|
/**
|
|
* Creates client report envelope
|
|
* @param discarded_events An array of discard events
|
|
* @param dsn A DSN that can be set on the header. Optional.
|
|
*/
|
|
function createClientReportEnvelope(
|
|
discarded_events,
|
|
dsn,
|
|
timestamp,
|
|
) {
|
|
const clientReportItem = [
|
|
{ type: 'client_report' },
|
|
{
|
|
timestamp: timestamp || time.dateTimestampInSeconds(),
|
|
discarded_events,
|
|
},
|
|
];
|
|
return envelope.createEnvelope(dsn ? { dsn } : {}, [clientReportItem]);
|
|
}
|
|
|
|
exports.createClientReportEnvelope = createClientReportEnvelope;
|
|
//# sourceMappingURL=clientreport.js.map
|