Files
klz-cables.com/.pnpm-store/v10/files/ac/c63fcd4ecb3a1859739a98fa6615442a75919e24b9915c3f9aed7be3e25647c8935cb05b4b2c369c683c684167fca418c61693dec4d3256a39bf03e7d55b55
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.5 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/**
* Replaces constructor functions in module exports, handling read-only properties,
* and both default and named exports by wrapping them with the constructor.
*
* @param exports The module exports object to modify
* @param exportName The name of the export to replace (e.g., 'GoogleGenAI', 'Anthropic', 'OpenAI')
* @param wrappedConstructor The wrapped constructor function to replace the original with
* @returns void
*/
function replaceExports(
exports$1,
exportName,
wrappedConstructor,
) {
const original = exports$1[exportName];
if (typeof original !== 'function') {
return;
}
// Replace the named export - handle read-only properties
try {
exports$1[exportName] = wrappedConstructor;
} catch (error) {
// If direct assignment fails, override the property descriptor
Object.defineProperty(exports$1, exportName, {
value: wrappedConstructor,
writable: true,
configurable: true,
enumerable: true,
});
}
// Replace the default export if it points to the original constructor
if (exports$1.default === original) {
try {
exports$1.default = wrappedConstructor;
} catch (error) {
Object.defineProperty(exports$1, 'default', {
value: wrappedConstructor,
writable: true,
configurable: true,
enumerable: true,
});
}
}
}
exports.replaceExports = replaceExports;
//# sourceMappingURL=exports.js.map