MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / sD

Function sD

out/cli.cjs:64821–64838  ·  view source on GitHub ↗
(D5, F5)

Source from the content-addressed store, hash-verified

64819 e3 > F5[E4] && (F5[E4] = e3);
64820 }
64821 }
64822 return F5;
64823};
64824i();
64825var _2 = /^\d+%$/;
64826var z = { width: "auto", align: "left", contentWidth: 0, paddingLeft: 0, paddingRight: 0, paddingTop: 0, paddingBottom: 0, horizontalPadding: 0, paddingLeftString: "", paddingRightString: "" };
64827var sD = (D5, F5) => {
64828 var C5;
64829 let u3 = [];
64830 for (let t2 = 0; t2 < D5.length; t2 += 1) {
64831 let E4 = (C5 = F5[t2]) != null ? C5 : "auto";
64832 if (typeof E4 == "number" || E4 === "auto" || E4 === "content-width" || typeof E4 == "string" && _2.test(E4)) {
64833 u3.push(c(p({}, z), { width: E4, contentWidth: D5[t2] }));
64834 continue;
64835 }
64836 if (E4 && typeof E4 == "object") {
64837 let e3 = c(p(p({}, z), E4), { contentWidth: D5[t2] });
64838 e3.horizontalPadding = e3.paddingLeft + e3.paddingRight, u3.push(e3);
64839 continue;
64840 }
64841 throw new Error(`Invalid column width: ${JSON.stringify(E4)}`);

Callers 1

ZFunction · 0.85

Calls 4

cFunction · 0.85
pFunction · 0.85
testMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected