Files
klz-cables.com/.pnpm-store/v10/files/63/040e36dc4b51f666fbd56449331b8241fa4179a89f4f31f6d195c36c895faa746760acdb2990364fdd6faa9360d5b87a9060d82dac25b56382afd096365119
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

41 lines
1.1 KiB
Plaintext

import { defineIntegration, isBrowser, consoleSandbox } from '@sentry/core';
/**
* This is a shim for the LaunchDarkly integration.
* We need this in order to not throw runtime errors when accidentally importing this on the server through a meta framework like Next.js.
*/
const launchDarklyIntegrationShim = defineIntegration((_options) => {
if (!isBrowser()) {
consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('The launchDarklyIntegration() can only be used in the browser.');
});
}
return {
name: 'LaunchDarkly',
};
});
/**
* This is a shim for the LaunchDarkly flag used handler.
*/
function buildLaunchDarklyFlagUsedHandlerShim() {
if (!isBrowser()) {
consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('The buildLaunchDarklyFlagUsedHandler() can only be used in the browser.');
});
}
return {
name: 'sentry-flag-auditor',
type: 'flag-used',
synchronous: true,
method: () => null,
};
}
export { buildLaunchDarklyFlagUsedHandlerShim, launchDarklyIntegrationShim };
//# sourceMappingURL=launchDarkly.js.map