UNPKG

@visulima/cerebro

Version:

A delightful toolkit for building cross-runtime CLIs for Node.js, Deno, and Bun.

2 lines (1 loc) 843 B
var m=Object.defineProperty;var s=(e,t)=>m(e,"name",{value:t,configurable:!0});var p=Object.defineProperty,i=s((e,t)=>p(e,"name",{value:t,configurable:!0}),"s"),E=Object.defineProperty,r=i((e,t)=>E(e,"name",{value:t,configurable:!0}),"i"),f=Object.defineProperty,a=r((e,t)=>f(e,"name",{value:t,configurable:!0}),"t");const b=a(e=>e instanceof Error&&e.type==="VisulimaError","isVisulimaError");class g extends Error{static{s(this,"p")}static{i(this,"V")}static{r(this,"VisulimaError")}static{a(this,"VisulimaError")}loc;title;hint;type="VisulimaError";constructor({cause:t,hint:o,location:c,message:n,name:l,stack:u,title:h}){super(n,{cause:t}),this.title=h,this.name=l,this.stack=u??this.stack,this.loc=c,this.hint=o}setLocation(t){this.loc=t}setName(t){this.name=t}setMessage(t){this.message=t}setHint(t){this.hint=t}}export{b as V,g as p};