Edit: /tmp/tsx-0/17887-cd2990d6e24f5cf7b9eb300cc33c9416a9610214 (3139B)
{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/context/endpoint-context.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 endpoint_context_exports={};__export(endpoint_context_exports,{getCurrentAuthContext:()=>getCurrentAuthContext,getCurrentAuthContextAsyncLocalStorage:()=>getCurrentAuthContextAsyncLocalStorage,runWithEndpointContext:()=>runWithEndpointContext});module.exports=__toCommonJS(endpoint_context_exports);var import_global=require(\"./global.mjs\");var import_async_hooks=require(\"@better-auth/core/async_hooks\");const ensureAsyncStorage=__name(async()=>{const betterAuthGlobal=(0,import_global.__getBetterAuthGlobal)();if(!betterAuthGlobal.context.endpointContextAsyncStorage){const AsyncLocalStorage=await(0,import_async_hooks.getAsyncLocalStorage)();betterAuthGlobal.context.endpointContextAsyncStorage=new AsyncLocalStorage}return betterAuthGlobal.context.endpointContextAsyncStorage},\"ensureAsyncStorage\");async function getCurrentAuthContextAsyncLocalStorage(){return ensureAsyncStorage()}__name(getCurrentAuthContextAsyncLocalStorage,\"getCurrentAuthContextAsyncLocalStorage\");async function getCurrentAuthContext(){const context=(await ensureAsyncStorage()).getStore();if(!context)throw new Error(\"No auth context found. Please make sure you are calling this function within a `runWithEndpointContext` callback.\");return context}__name(getCurrentAuthContext,\"getCurrentAuthContext\");async function runWithEndpointContext(context,fn){return(await ensureAsyncStorage()).run(context,fn)}__name(runWithEndpointContext,\"runWithEndpointContext\");0&&(module.exports={getCurrentAuthContext,getCurrentAuthContextAsyncLocalStorage,runWithEndpointContext});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,iUAAsC,wBACtC,uBAAqC,yCAGrC,MAAM,mBAAqB,gBAAY,CACtC,MAAM,oBAAmB,qCAAsB,EAC/C,GAAI,CAAC,iBAAiB,QAAQ,4BAA6B,CAC1D,MAAM,kBAAoB,QAAM,yCAAqB,EACrD,iBAAiB,QAAQ,4BAA8B,IAAI,iBAC5D,CACA,OAAO,iBAAiB,QAAQ,2BACjC,EAP2B,sBAa3B,eAAe,wCAAyC,CACvD,OAAO,mBAAmB,CAC3B,CAFe,wFAGf,eAAe,uBAAwB,CACtC,MAAM,SAAW,MAAM,mBAAmB,GAAG,SAAS,EACtD,GAAI,CAAC,QAAS,MAAM,IAAI,MAAM,mHAAmH,EACjJ,OAAO,OACR,CAJe,sDAKf,eAAe,uBAAuB,QAAS,GAAI,CAClD,OAAQ,MAAM,mBAAmB,GAAG,IAAI,QAAS,EAAE,CACpD,CAFe","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/context/endpoint-context.mjs"],"sourcesContent":[null]}}