Files
klz-cables.com/.pnpm-store/v10/files/c0/73ac23157c8cf910fc9f421b089a9c4f06bd228831dacf9370fccf36986c0d54f5384437d00615c9d875c7298ac0b97b90a978fa84154733c3fa603217ec46
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

53 lines
1.1 KiB
Plaintext

import { defineIntegration, isBrowser, consoleSandbox } from '@sentry/core';
/**
* This is a shim for the OpenFeature 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 openFeatureIntegrationShim = defineIntegration((_options) => {
if (!isBrowser()) {
consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('The openFeatureIntegration() can only be used in the browser.');
});
}
return {
name: 'OpenFeature',
};
});
/**
* This is a shim for the OpenFeature integration hook.
*/
class OpenFeatureIntegrationHookShim {
/**
*
*/
constructor() {
if (!isBrowser()) {
consoleSandbox(() => {
// eslint-disable-next-line no-console
console.warn('The OpenFeatureIntegrationHook can only be used in the browser.');
});
}
}
/**
*
*/
after() {
// No-op
}
/**
*
*/
error() {
// No-op
}
}
export { OpenFeatureIntegrationHookShim, openFeatureIntegrationShim };
//# sourceMappingURL=openFeature.js.map