Edit: /tmp/tsx-0/17887-c1b903aed64201dd12e42f30c1ec499cd8089dd4 (3222B)
{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/api/index.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 api_exports={};__export(api_exports,{createAuthEndpoint:()=>createAuthEndpoint,createAuthMiddleware:()=>createAuthMiddleware,optionsMiddleware:()=>optionsMiddleware});module.exports=__toCommonJS(api_exports);var import_endpoint_context=require(\"../context/endpoint-context.mjs\");var import_context=require(\"../context/index.mjs\");var import_better_call=require(\"better-call\");const optionsMiddleware=(0,import_better_call.createMiddleware)(async()=>{return{}});const createAuthMiddleware=import_better_call.createMiddleware.create({use:[optionsMiddleware,(0,import_better_call.createMiddleware)(async()=>{return{}})]});const use=[optionsMiddleware];function createAuthEndpoint(pathOrOptions,handlerOrOptions,handlerOrNever){const path=typeof pathOrOptions===\"string\"?pathOrOptions:void 0;const options=typeof handlerOrOptions===\"object\"?handlerOrOptions:pathOrOptions;const handler=typeof handlerOrOptions===\"function\"?handlerOrOptions:handlerOrNever;if(path)return(0,import_better_call.createEndpoint)(path,{...options,use:[...options?.use||[],...use]},async ctx=>(0,import_endpoint_context.runWithEndpointContext)(ctx,()=>handler(ctx)));return(0,import_better_call.createEndpoint)({...options,use:[...options?.use||[],...use]},async ctx=>(0,import_endpoint_context.runWithEndpointContext)(ctx,()=>handler(ctx)))}__name(createAuthEndpoint,\"createAuthEndpoint\");0&&(module.exports={createAuthEndpoint,createAuthMiddleware,optionsMiddleware});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,gPAAuC,2CACvC,mBAAO,gCACP,uBAAiD,uBAGjD,MAAM,qBAAoB,qCAAiB,SAAY,CAMtD,MAAO,CAAC,CACT,CAAC,EACD,MAAM,qBAAuB,oCAAiB,OAAO,CAAE,IAAK,CAAC,qBAAmB,qCAAiB,SAAY,CAC5G,MAAO,CAAC,CACT,CAAC,CAAC,CAAE,CAAC,EACL,MAAM,IAAM,CAAC,iBAAiB,EAC9B,SAAS,mBAAmB,cAAe,iBAAkB,eAAgB,CAC5E,MAAM,KAAO,OAAO,gBAAkB,SAAW,cAAgB,OACjE,MAAM,QAAU,OAAO,mBAAqB,SAAW,iBAAmB,cAC1E,MAAM,QAAU,OAAO,mBAAqB,WAAa,iBAAmB,eAC5E,GAAI,KAAM,SAAO,mCAAe,KAAM,CACrC,GAAG,QACH,IAAK,CAAC,GAAG,SAAS,KAAO,CAAC,EAAG,GAAG,GAAG,CACpC,EAAG,MAAO,QAAQ,gDAAuB,IAAK,IAAM,QAAQ,GAAG,CAAC,CAAC,EACjE,SAAO,mCAAe,CACrB,GAAG,QACH,IAAK,CAAC,GAAG,SAAS,KAAO,CAAC,EAAG,GAAG,GAAG,CACpC,EAAG,MAAO,QAAQ,gDAAuB,IAAK,IAAM,QAAQ,GAAG,CAAC,CAAC,CAClE,CAZS","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/api/index.mjs"],"sourcesContent":[null]}}