Files
klz-cables.com/.pnpm-store/v10/files/52/a060ba3821df5f54a572eee1f4ffe43e992f0f7971714734dd1622e637d5c142a86a4c8f7531e6e7fd2ffb58acdf673c9cd5c4a7084d86f56b53312b0f7c82
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

35 lines
1.0 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.indexFs = exports.splitTwoLevels = void 0;
function splitTwoLevels(functionName) {
const memberParts = functionName.split('.');
if (memberParts.length > 1) {
if (memberParts.length !== 2)
throw Error(`Invalid member function name ${functionName}`);
return memberParts;
}
else {
return [functionName];
}
}
exports.splitTwoLevels = splitTwoLevels;
function indexFs(fs, member) {
if (!member)
throw new Error(JSON.stringify({ member }));
const splitResult = splitTwoLevels(member);
const [functionName1, functionName2] = splitResult;
if (functionName2) {
return {
objectToPatch: fs[functionName1],
functionNameToPatch: functionName2,
};
}
else {
return {
objectToPatch: fs,
functionNameToPatch: functionName1,
};
}
}
exports.indexFs = indexFs;
//# sourceMappingURL=utils.js.map