6|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,A._)`+${o}`);return;case"boolean":n.elseIf((0,A._)`${o} === "false" || ${o} === 0 || ${o} === null`).as...
L7: || ${s} === "boolean" || ${o} === null`).assign(a,(0,A._)`[${o}]`)}}}function _w({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,A._)`${t} !== undefined`,()=>e.assign((0,A._)`...
L8: missingProperty: ${n},
L9: depsCount: ${t},
L10: deps: ${r}}`};var Qx={keyword:"dependencies",type:"object",schemaType:"object",error:Qe.error,code(e){let[t,r]=Yx(e);Em(e,t),zm(e,r)}};function Yx({schema:e}){let t={},r={};for(let...
L11: `).filter(s=>s),o=Math.min(...n.map(s=>s.length-s.trimStart().length)),i=n.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let ...
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/brain.bundle.min.mjsView on unpkg · L6 30}
L31: `)}else{let $=g[w];p.write(`const ${$} = ${h(w)};`),p.write(`
L32: if (${$}.issues.length) payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
...
L36: `);if(t===-1)return null;let r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),QS(r)}clear(){this._buffer=void 0}};function QS(e)...
L37: `}var XS=Nc.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMF...
L38: `).trim();if(!i)return{};try{return JSON.parse(i)}catch{return{text:i}}}};function rE(){let e={};for(let[t,r]of Object.entries(process.env))typeof r=="string"&&(e[t]=r);return e}fu...
L39: `)){let i=o.replace(/\r$/,"");if(!/".*"/.test(i)&&!/'.*'/.test(i)){let p=i.indexOf("#");p>=0&&(i=i.slice(0,p))}if(i.replace(/\s/g,"")==="")continue;let s=i.match(/^ */)?.[0].length...
L40: `,"utf8")),t}async function bE(e){let t=pg(e);try{let r=await Ac(t,"utf8");return wE(r)}catch(r){if(r.code==="ENOENT")return null;throw r}}function wE(e){let t=e.split(/\r?\n/).map...
L41: expected at: ${i}
...
L44: or check the postinstall log for a download error.`
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/brain.bundle.min.mjsView on unpkg · L30 6|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,A._)`+${o}`);return;case"boolean":n.elseIf((0,A._)`${o} === "false" || ${o} === 0 || ${o} === null`).as...
L7: || ${s} === "boolean" || ${o} === null`).assign(a,(0,A._)`[${o}]`)}}}function _w({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,A._)`${t} !== undefined`,()=>e.assign((0,A._)`...
L8: missingProperty: ${n},
LowEval
Package source references a known benign dynamic code generation pattern.
dist/brain.bundle.min.mjsView on unpkg · L6