Edit: /tmp/tsx-0/17887-ea016c2e8bc7b12fbbf93234ee557a29b33520f4 (5162B)
{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/env/logger.mjs\";(()=>{\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var logger_exports={};__export(logger_exports,{TTY_COLORS:()=>TTY_COLORS,createLogger:()=>createLogger,levels:()=>levels,logger:()=>logger,shouldPublishLog:()=>shouldPublishLog});module.exports=__toCommonJS(logger_exports);var import_color_depth=require(\"./color-depth.mjs\");const TTY_COLORS={reset:\"\\x1B[0m\",bright:\"\\x1B[1m\",dim:\"\\x1B[2m\",undim:\"\\x1B[22m\",underscore:\"\\x1B[4m\",blink:\"\\x1B[5m\",reverse:\"\\x1B[7m\",hidden:\"\\x1B[8m\",fg:{black:\"\\x1B[30m\",red:\"\\x1B[31m\",green:\"\\x1B[32m\",yellow:\"\\x1B[33m\",blue:\"\\x1B[34m\",magenta:\"\\x1B[35m\",cyan:\"\\x1B[36m\",white:\"\\x1B[37m\"},bg:{black:\"\\x1B[40m\",red:\"\\x1B[41m\",green:\"\\x1B[42m\",yellow:\"\\x1B[43m\",blue:\"\\x1B[44m\",magenta:\"\\x1B[45m\",cyan:\"\\x1B[46m\",white:\"\\x1B[47m\"}};const levels=[\"debug\",\"info\",\"success\",\"warn\",\"error\"];function shouldPublishLog(currentLogLevel,logLevel){return levels.indexOf(logLevel)>=levels.indexOf(currentLogLevel)}__name(shouldPublishLog,\"shouldPublishLog\");const levelColors={info:TTY_COLORS.fg.blue,success:TTY_COLORS.fg.green,warn:TTY_COLORS.fg.yellow,error:TTY_COLORS.fg.red,debug:TTY_COLORS.fg.magenta};const formatMessage=__name((level,message,colorsEnabled)=>{const timestamp=new Date().toISOString();if(colorsEnabled)return`${TTY_COLORS.dim}${timestamp}${TTY_COLORS.reset} ${levelColors[level]}${level.toUpperCase()}${TTY_COLORS.reset} ${TTY_COLORS.bright}[Better Auth]:${TTY_COLORS.reset} ${message}`;return`${timestamp} ${level.toUpperCase()} [Better Auth]: ${message}`},\"formatMessage\");const createLogger=__name(options=>{const enabled=options?.disabled!==true;const logLevel=options?.level??\"warn\";const colorsEnabled=options?.disableColors!==void 0?!options.disableColors:(0,import_color_depth.getColorDepth)()!==1;const LogFunc=__name((level,message,args=[])=>{if(!enabled||!shouldPublishLog(logLevel,level))return;const formattedMessage=formatMessage(level,message,colorsEnabled);if(!options||typeof options.log!==\"function\"){if(level===\"error\")console.error(formattedMessage,...args);else if(level===\"warn\")console.warn(formattedMessage,...args);else console.log(formattedMessage,...args);return}options.log(level===\"success\"?\"info\":level,message,...args)},\"LogFunc\");return{...Object.fromEntries(levels.map(level=>[level,(...[message,...args])=>LogFunc(level,message,args)])),get level(){return logLevel}}},\"createLogger\");const logger=createLogger();0&&(module.exports={TTY_COLORS,createLogger,levels,logger,shouldPublishLog});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,sPAA8B,6BAG9B,MAAM,WAAa,CAClB,MAAO,UACP,OAAQ,UACR,IAAK,UACL,MAAO,WACP,WAAY,UACZ,MAAO,UACP,QAAS,UACT,OAAQ,UACR,GAAI,CACH,MAAO,WACP,IAAK,WACL,MAAO,WACP,OAAQ,WACR,KAAM,WACN,QAAS,WACT,KAAM,WACN,MAAO,UACR,EACA,GAAI,CACH,MAAO,WACP,IAAK,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