Files
klz-cables.com/.pnpm-store/v10/files/66/9be9e81baa99a5b25f7778c7fa8be3e37a24488295ec5c2b34a567eec0e1353b1b3b4f7ba321b941b2152301415f870951884a1c1a05e5c42ac311445d4422
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

42 lines
822 B
Plaintext

import { getClient, getCurrentScope } from './currentScopes.js';
/**
* Send user feedback to Sentry.
*/
function captureFeedback(
params,
hint = {},
scope = getCurrentScope(),
) {
const { message, name, email, url, source, associatedEventId, tags } = params;
const feedbackEvent = {
contexts: {
feedback: {
contact_email: email,
name,
message,
url,
source,
associated_event_id: associatedEventId,
},
},
type: 'feedback',
level: 'info',
tags,
};
const client = scope?.getClient() || getClient();
if (client) {
client.emit('beforeSendFeedback', feedbackEvent, hint);
}
const eventId = scope.captureEvent(feedbackEvent, hint);
return eventId;
}
export { captureFeedback };
//# sourceMappingURL=feedback.js.map