Clean Code include src folder
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s

This commit is contained in:
2026-05-04 12:06:09 +02:00
parent 39a67b94fc
commit ab0e6e0697
13 changed files with 105 additions and 68 deletions

8
dist/sigpro.esm.js vendored
View File

@@ -1,4 +1,4 @@
// sigpro.js
// src/sigpro.js
var isFunc = (f) => typeof f === "function";
var isObj = (o) => o && typeof o === "object";
var isArr = Array.isArray;
@@ -224,7 +224,7 @@ var watch = (sources, cb) => {
return () => dispose(effect2);
}
const effect = createEffect(() => {
const vals = Array.isArray(sources) ? sources.map((s) => s()) : sources();
const vals = isArr(sources) ? sources.map((s) => s()) : sources();
untrack(() => cb(vals));
});
effect();
@@ -250,10 +250,8 @@ var validateAttr = (key, val) => {
return null;
if (isDangerousAttr(key)) {
const sVal = String(val);
if (DANGEROUS_PROTOCOL.test(sVal)) {
console.warn(`[SigPro] Bloqueado protocolo peligroso en ${key}`);
if (DANGEROUS_PROTOCOL.test(sVal))
return "#";
}
}
return val;
};