/opt/canhelp/node_modules/better-auth/dist/client/vue
NameSizeModeActions
index.d.mts66720644editdlrm
index.mjs11990644editdlrm
index.mjs.map48920644editdlrm
vue-store.mjs7290644editdlrm
vue-store.mjs.map15030644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/client/vue/vue-store.mjs (729B)
import { getCurrentInstance, getCurrentScope, onScopeDispose, readonly, shallowRef } from "vue"; //#region src/client/vue/vue-store.ts function registerStore(store) { const instance = getCurrentInstance(); if (instance && instance.proxy) { const vm = instance.proxy; ("_nanostores" in vm ? vm._nanostores : vm._nanostores = []).push(store); } } function useStore(store) { const state = shallowRef(); const unsubscribe = store.subscribe((value) => { state.value = value; }); if (getCurrentScope()) onScopeDispose(unsubscribe); if (process.env.NODE_ENV !== "production") { registerStore(store); return readonly(state); } return state; } //#endregion export { useStore }; //# sourceMappingURL=vue-store.mjs.map