Lines 1-32javascript
1"use strict";var Bd=Object.create;var vr=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var Hd=Object.getOwnPropertyNames;var jd=Object.getPrototypeOf,$d=Object.prototype.hasOwnProperty;var Wd=(e,t,r)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xn=(e,t)=>{for(var r in t)vr(e,r,{get:t[r],enumerable:!0})},nc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hd(t))!$d.call(e,o)&&o!==r&&vr(e,o,{get:()=>t[o],enumerable:!(n=Gd(t,o))||n.enumerable});return e};var $=(e,t,r) ...
2`)}function Jd(e,t,r){return{debug(...n){if(!t())return;let{callArgs:o,options:s}=lt(n);Cn(s.stderr?process.stderr:process.stdout,"DEBUG",r,o)},info(...n){if(e>dt.info)return;let{callArgs:o,options:s}=lt(n);s.debug&&!t()||Cn(s.stderr?process.stderr:process.stdout,"INFO",r,o)},warn(...n){if(e>dt.warn)return;let{callArgs:o,options:s}=lt(n);s.debug&&!t()||Cn(process.stderr,"WARNING",r,o)},error(...n){if(e>dt.error)return;let{callArgs:o,options:s}=lt(n);s.debug&&!t()||Cn(process.stderr,"ERROR",r,o)}}}function Yt(e){return e?`[${e}]`:""}function Zd(e,t,r){return{debug(...n){if(!t())return;let{callA ...
4`),t.destroy();this.connections.clear(),this.stopHealthMonitoring()}startHealthMonitoring(){this.healthCheckInterval||(this.healthCheckInterval=setInterval(()=>{this.performHealthCheck()},this.HEALTH_CHECK_INTERVAL_MS))}stopHealthMonitoring(){this.healthCheckInterval&&(clearInterval(this.healthCheckInterval),this.healthCheckInterval=null)}performHealthCheck
5`);for(let a=n;a<i.length;a++){let c=i[a];c.length>1024&&(c=c.slice(0,1024));let u=mc.test(c)?c.replace(mc,"$1"):c;if(!u.includes("Error: ")){for(let p of t){let f=p(u);if(f){s.push(f);break}}if(s.length>=50+o)break}}return _c(s.slice(o))}}function ls(e){return Array.isArray(e)?Mn(...e):e}function _c(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Ln(t).function||"")&&t.pop(),t.reverse(),gc.test(Ln(t).function||"")&&(t.pop(),gc.test(Ln(t).function||"")&&t.pop()),t.slice(0,50).map(r=>({...r,filename:r.filename||Ln(t).filename,function:r.function||"?"}))}function Ln(e){re ...
HighChild Process
Package source references child process execution.
node/index.cjsView on unpkg · L3 8Error:`,o)}}var Ec=Object.prototype.toString;function ne(e){switch(Ec.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Jt(e,Error)}}function Un(e,t){return Ec.
10`),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(P(a))}o(c)}}return typeof n=="string"?n:Lm(n)}function Lm(e){let t=e.reduce((o,s)=>o+s.length,0),r=new Uint8Array(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return r}function Qs(e){return[{type:"span"},e]}function ei(e){let t=typeof e.data=="string"?Ks(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var cu={sessions:"session",event:"error",client_report:"internal",user_report:"default",profil ...
12 `)}`)}function du(e){if(!g)return;let{description:t="< unknown name >",op:r="< unknown op >"}=k(e),{spanId:n}=e.spanContext(),s=V(e)===e,i=`[Tracing] Finishing "${r}" ${s?"root ":""}span "${
13Reason: ${d}`))})}_process(t,r){this._numProcessing++,this._promiseBuffer.add(t).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===en&&this.recordDroppedEvent("queue_overflow",r),n))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([r,n])=>{let[o,s]=r.split(":");return{reason:o,category:s,quantity:n}})}_flushOutcomes(){g&&l.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){g&&l.log("No outcomes to send");return}if(!this._dsn){g&&l.log("No dsn provided, will not send outcomes");return}g&&l.log("Sending outcomes:",t);let r ...
14`)}var Fg=1024*1024;function gp(e){return e==="small"?1e3:e==="medium"?1e4:Fg}function Vi(e){let t=Object.create(null);try{Object.entries(e).forEach(([r,
15Event: ${gt(e)}`),!0}else{if(Zg(e,t.ignoreErrors))return g&&l.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
node/index.cjsView on unpkg · L1 HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
node/index.cjsView on unpkg · L1 16Event: ${gt(e)}`),!0;if(e_(e))return g&&l.warn(`Event dropped due to not having an error message, error type or stacktrace.
17Event: ${gt(e)}`),!0;if(Kg(e,t.denyUrls))return g&&l.warn(`Event dropped due to being matched by \`denyUrls\` option.
19Url: ${lo(e)}`),!0;if(!Xg(e,t.allowUrls))return g&&l.warn(`Event dropped due to not being matched by \`allowUrls\` option.
21Url: ${lo(e)}`),!0}return!1}function Zg(e,t){return t?.length?io(e).some(r=>Be(r,t)):!1}function qg(e,t){if(!t?.length)return!1;
22${o.stack}`:"unknown"}}}}}var Q_=((e={})=>{let t=e.limit??Y_;return{name:z_,processEvent(r,n){return X_(t,e.saveZodIssuesAsAttachment,r,n)}}}),sa=Q_;var eh="Console",ia=(e={})=>{let t=new Set(e.levels||Ce);return{name:eh,setup(r){let n=gr(({args:o,level:s})=>{S()!==r||!t.has(s)||th(s,o)});if(r.registerCleanup(n),e.filter){let o=xp(e.filter);r.registerCleanup(o)}}}};function th(e,t){let r={category:"console",data:{arguments:t,logger:"console"},level:bt(e),message:Fp(t)};if(e==="assert")if(t[0]===!1){let n=t.slice(1);r.message=n.length>0?`Assertion failed: ${Fp(n)}`:"Assertion failed",r.data.arg ...
23`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(t,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(t,o)).then(s=>{
25`);if(m===-1){qo("have not received end of HTTP headers yet..."),s();return}let d=f.subarray(0,m).toString("ascii").split(`\r
26`),_=d.shift();if(!_)return e.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=_.split(" "),E=+(h[1]||0),I=h.slice(2).join(" "),b={};for(let x of d){if(!x)continue;let v=x.indexOf(":");if(v===-1)return e.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let T=x.slice(0,v).toLowerCase(),C=x.slice(v+1).trimStart(),M=b[T];typeof M=="string"?b[T]=[M,C]:Array.isArray(M)?M.push(C):b[T]=C}qo("got proxy server response: %o %o",_,b),i(),t({connect:{statusCode:E,statusText:I,headers:b},buffered:f})}e.on("error",c),e.on("end",a),s()})}function Tn(. ...
27`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}s.Host=`${i}:${r.port}`,s["Proxy-Connection"]
28`;let c=jl(o);o.write(`${a}\r
29`);let{connect:u,buffered:p}=await c;if(t.emit("proxyConnect",u),this.emit("proxyConnect",u,t),u.statusCode===200){if(t.once("socket",sE),r.secureEndpoint){Tn("Upgrading socket connection to TLS");let m=r.servername||r.host;return Ha.connect({...$l(r,"host","path","port"),socket:o,servername:pt.isIP
30`),r=[];for(let n of t)try{let o=n.indexOf(":");if(o===-1)continue;let s=n.slice(0,o).trim(),i=n.slice(o+1).trim();s&&r.push(s,i)}catch{l.warn(`Failed to convert string request header to array header: ${n}`)}return r}function SE(e){let t=[];for(let r=0;r<e.length;r+=2){let n=e[r],o=e[r+1];!n||o==null||t.push(`${n}: ${o}`)}return t.length?t.join(`\r
32`):""}function $a(e,t){let r=-1;for(let n=0;n<e.length;n+=2){if(e[n]!==t)continue;if(r===-1){r=n;continue}let o=e[r+1];if(t===rs&&o){let s=rr(e[n+1],o);s&&(e[r+1]=s)}e.splice(n,2),n-=2}}function Wa(e,t){return e.findIndex((r,n)=>n%2===0&&r===t)}function ql(e,t){let r=EE(e),n=t.statusCode,o=pn(n);pe({category:"http",data:{status_code:n,...r},type:"http",level:o},{event:"response",request:e,response:t})}function EE(e){try{let t=ns(e.origin,e.path),r=Dt(t),n={url:Ft(r),"http.method":e.method||"GET"};return r.search&&(n["http.query"]=r.search),r.hash&&(n["http.fragment"]=r.hash),n}catch{return{}}} ...
Long lines were clipped for display.