@bigio/better-auth-electron 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js":{"bytes":582,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytes":433,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js","kind":"import-statement","original":"../task/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytes":2191,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js":{"bytes":4172,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js":{"bytes":1429,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"../lifecycle/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js":{"bytes":1413,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/index.js":{"bytes":1034,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js","kind":"import-statement","original":"./path.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js","kind":"import-statement","original":"./path.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/effect/index.js":{"bytes":446,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/keep-mount/index.js":{"bytes":63,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js":{"bytes":389,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js":{"bytes":536,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map-creator/index.js":{"bytes":846,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"../lifecycle/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js","kind":"import-statement","original":"../map/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytes":697,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"./atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"./clean-stores/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js","kind":"import-statement","original":"./computed/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/index.js","kind":"import-statement","original":"./deep-map/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/effect/index.js","kind":"import-statement","original":"./effect/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/keep-mount/index.js","kind":"import-statement","original":"./keep-mount/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"./lifecycle/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js","kind":"import-statement","original":"./listen-keys/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map-creator/index.js","kind":"import-statement","original":"./map-creator/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js","kind":"import-statement","original":"./map/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js","kind":"import-statement","original":"./task/index.js"}],"format":"esm"},"src/options/electron-plugin-options.ts":{"bytes":10391,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/hex.js":{"bytes":1391,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytes":5461,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytes":5642,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytes":494,"imports":[{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/hex.js","kind":"import-statement","original":"./hex.js"},{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js","kind":"import-statement","original":"./base32.js"},{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js","kind":"import-statement","original":"./base64.js"}],"format":"esm"},"src/utils/electron-plugin-env.ts":{"bytes":4562,"imports":[{"path":"electron","kind":"require-call","external":true}],"format":"esm"},"src/utils/electron-plugin-utils.ts":{"bytes":24968,"imports":[{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js","kind":"import-statement","original":"@oslojs/encoding"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/utils/electron-plugin-env.ts","kind":"import-statement","original":"./electron-plugin-env"}],"format":"esm"},"src/main/electron-main-plugin.ts":{"bytes":18316,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"process","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"electron","kind":"import-statement","external":true},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"src/renderer/electron-renderer-plugin.ts":{"bytes":18063,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-env.ts","kind":"import-statement","original":"../utils/electron-plugin-env"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"src/server/electron-server-plugin.ts":{"bytes":21106,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"better-auth/api","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js":{"bytes":715,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/web/electron-web-clientHelper.ts":{"bytes":262,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"}],"format":"esm"},"src/web/electron-web-plugin.ts":{"bytes":11169,"imports":[{"path":"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js","kind":"import-statement","original":"@nanostores/react"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"},{"path":"src/web/electron-web-clientHelper.ts","kind":"import-statement","original":"./electron-web-clientHelper"}],"format":"esm"}},"outputs":{"dist/main.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":95764},"dist/main.js":{"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"process","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"electron","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["mainInjection"],"entryPoint":"src/main/electron-main-plugin.ts","inputs":{"src/main/electron-main-plugin.ts":{"bytesInOutput":14212},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"src/options/electron-plugin-options.ts":{"bytesInOutput":1741},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":1386},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":10941},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104}},"bytes":32938},"dist/renderer.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":91784},"dist/renderer.js":{"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["electronRendererPlugin"],"entryPoint":"src/renderer/electron-renderer-plugin.ts","inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"src/renderer/electron-renderer-plugin.ts":{"bytesInOutput":11238},"src/options/electron-plugin-options.ts":{"bytesInOutput":1255},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1461},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":1386},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":10299}},"bytes":29142},"dist/server.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":99471},"dist/server.js":{"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"better-auth/api","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["electronServerPlugin"],"entryPoint":"src/server/electron-server-plugin.ts","inputs":{"src/server/electron-server-plugin.ts":{"bytesInOutput":14777},"src/options/electron-plugin-options.ts":{"bytesInOutput":813},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":3472},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":17435},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104}},"bytes":38873},"dist/web.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":89855},"dist/web.js":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["electronWebHandoffPlugin","setLazyClient"],"entryPoint":"src/web/electron-web-plugin.ts","inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js":{"bytesInOutput":2109},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js":{"bytesInOutput":232},"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js":{"bytesInOutput":667},"src/options/electron-plugin-options.ts":{"bytesInOutput":1128},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":456},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":9834},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104},"src/web/electron-web-clientHelper.ts":{"bytesInOutput":25},"src/web/electron-web-plugin.ts":{"bytesInOutput":6617}},"bytes":26004},"dist/options.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":12061},"dist/options.js":{"imports":[],"exports":["defatultWebOptions","defaultButtonOptions","defaultMainPluginOptions","defaultRendererPluginOptions","defaultServerPluginOptions"],"entryPoint":"src/options/electron-plugin-options.ts","inputs":{"src/options/electron-plugin-options.ts":{"bytesInOutput":2612}},"bytes":2801}}}
1
+ {"inputs":{"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js":{"bytes":2349,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js":{"bytes":4951,"imports":[{"path":"child_process","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js","kind":"require-call","original":"./packageJson"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js":{"bytes":4692,"imports":[{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js","kind":"require-call","original":"../node/NodeExternalApi"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js":{"bytes":2054,"imports":[{"path":"electron","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js":{"bytes":2459,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js","kind":"require-call","original":"../renderer/electron-log-preload"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js":{"bytes":854,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js":{"bytes":613,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js":{"bytes":5471,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js","kind":"require-call","original":"./scope"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js","kind":"require-call","original":"./Buffering"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js":{"bytes":3311,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js":{"bytes":5836,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js":{"bytes":372,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js":{"bytes":4094,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"./transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js":{"bytes":2906,"imports":[{"path":"util","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js":{"bytes":1520,"imports":[],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js":{"bytes":2517,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js","kind":"require-call","original":"../../core/transforms/format"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js":{"bytes":3299,"imports":[{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js":{"bytes":232,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js","kind":"require-call","original":"./File"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js":{"bytes":1789,"imports":[{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js","kind":"require-call","original":"./File"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js","kind":"require-call","original":"./NullFile"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js":{"bytes":4417,"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js","kind":"require-call","original":"./FileRegistry"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../../core/transforms/transform"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js","kind":"require-call","original":"../../../core/transforms/format"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../../transforms/object"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js":{"bytes":808,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js":{"bytes":2114,"imports":[{"path":"http","kind":"require-call","external":true},{"path":"https","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js","kind":"require-call","original":"../../core/transforms/transform"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js","kind":"require-call","original":"../../core/transforms/style"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js","kind":"require-call","original":"../transforms/object"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js":{"bytes":1205,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js","kind":"require-call","original":"../core/Logger"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js","kind":"require-call","original":"./ErrorHandler"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js","kind":"require-call","original":"./EventLogger"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js","kind":"require-call","original":"./transports/console"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js","kind":"require-call","original":"./transports/file"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js","kind":"require-call","original":"./transports/ipc"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js","kind":"require-call","original":"./transports/remote"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js":{"bytes":1204,"imports":[{"path":"electron","kind":"require-call","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js","kind":"require-call","original":"./ElectronExternalApi"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js","kind":"require-call","original":"./initialize"},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js","kind":"require-call","original":"../node/createDefaultLogger"}],"format":"cjs"},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js":{"bytes":75,"imports":[{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js","kind":"require-call","original":"./src/main"}],"format":"cjs"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js":{"bytes":582,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytes":433,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js","kind":"import-statement","original":"../task/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytes":2191,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js":{"bytes":4172,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js":{"bytes":1429,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"../lifecycle/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js":{"bytes":1413,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/index.js":{"bytes":1034,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js","kind":"import-statement","original":"./path.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/path.js","kind":"import-statement","original":"./path.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/effect/index.js":{"bytes":446,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/keep-mount/index.js":{"bytes":63,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js":{"bytes":389,"imports":[],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js":{"bytes":536,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"../atom/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map-creator/index.js":{"bytes":846,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"../clean-stores/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"../lifecycle/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js","kind":"import-statement","original":"../map/index.js"}],"format":"esm"},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytes":697,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js","kind":"import-statement","original":"./atom/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js","kind":"import-statement","original":"./clean-stores/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js","kind":"import-statement","original":"./computed/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/deep-map/index.js","kind":"import-statement","original":"./deep-map/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/effect/index.js","kind":"import-statement","original":"./effect/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/keep-mount/index.js","kind":"import-statement","original":"./keep-mount/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js","kind":"import-statement","original":"./lifecycle/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js","kind":"import-statement","original":"./listen-keys/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map-creator/index.js","kind":"import-statement","original":"./map-creator/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js","kind":"import-statement","original":"./map/index.js"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.js","kind":"import-statement","original":"./task/index.js"}],"format":"esm"},"src/options/electron-plugin-options.ts":{"bytes":10428,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/hex.js":{"bytes":1391,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytes":5461,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytes":5642,"imports":[],"format":"esm"},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytes":494,"imports":[{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/hex.js","kind":"import-statement","original":"./hex.js"},{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js","kind":"import-statement","original":"./base32.js"},{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js","kind":"import-statement","original":"./base64.js"}],"format":"esm"},"src/utils/electron-plugin-env.ts":{"bytes":4562,"imports":[{"path":"electron","kind":"require-call","external":true}],"format":"esm"},"src/utils/electron-plugin-utils.ts":{"bytes":24968,"imports":[{"path":"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js","kind":"import-statement","original":"@oslojs/encoding"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/utils/electron-plugin-env.ts","kind":"import-statement","original":"./electron-plugin-env"}],"format":"esm"},"src/main/electron-main-plugin.ts":{"bytes":19778,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"process","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"electron","kind":"import-statement","external":true},{"path":"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js","kind":"import-statement","original":"electron-log/main"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"src/renderer/electron-renderer-plugin.ts":{"bytes":18063,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-env.ts","kind":"import-statement","original":"../utils/electron-plugin-env"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"src/server/electron-server-plugin.ts":{"bytes":21106,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"better-auth/api","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"}],"format":"esm"},"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js":{"bytes":715,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/web/electron-web-clientHelper.ts":{"bytes":262,"imports":[{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"}],"format":"esm"},"src/web/electron-web-plugin.ts":{"bytes":11169,"imports":[{"path":"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js","kind":"import-statement","original":"@nanostores/react"},{"path":"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js","kind":"import-statement","original":"nanostores"},{"path":"src/options/electron-plugin-options.ts","kind":"import-statement","original":"../options/electron-plugin-options"},{"path":"src/utils/electron-plugin-utils.ts","kind":"import-statement","original":"../utils/electron-plugin-utils"},{"path":"src/web/electron-web-clientHelper.ts","kind":"import-statement","original":"./electron-web-clientHelper"}],"format":"esm"}},"outputs":{"dist/main.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":203266},"dist/main.js":{"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"child_process","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"util","kind":"require-call","external":true},{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"events","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"os","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"http","kind":"require-call","external":true},{"path":"https","kind":"require-call","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"process","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"electron","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["mainInjection"],"entryPoint":"src/main/electron-main-plugin.ts","inputs":{"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/packageJson.js":{"bytesInOutput":2268},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/NodeExternalApi.js":{"bytesInOutput":5461},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/ElectronExternalApi.js":{"bytesInOutput":5267},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/renderer/electron-log-preload.js":{"bytesInOutput":1999},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/initialize.js":{"bytesInOutput":2887},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/scope.js":{"bytesInOutput":1150},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Buffering.js":{"bytesInOutput":875},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/Logger.js":{"bytesInOutput":5977},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/ErrorHandler.js":{"bytesInOutput":3837},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/EventLogger.js":{"bytesInOutput":6650},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/transform.js":{"bytesInOutput":596},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/format.js":{"bytesInOutput":4443},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transforms/object.js":{"bytesInOutput":3014},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/core/transforms/style.js":{"bytesInOutput":1894},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/console.js":{"bytesInOutput":2863},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/File.js":{"bytesInOutput":3950},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/NullFile.js":{"bytesInOutput":460},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/FileRegistry.js":{"bytesInOutput":2214},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/file/index.js":{"bytesInOutput":4786},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/ipc.js":{"bytesInOutput":898},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/transports/remote.js":{"bytesInOutput":2472},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/node/createDefaultLogger.js":{"bytesInOutput":1439},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/src/main/index.js":{"bytesInOutput":1485},"node_modules/.pnpm/electron-log@5.4.3/node_modules/electron-log/main.js":{"bytesInOutput":212},"src/main/electron-main-plugin.ts":{"bytesInOutput":15365},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"src/options/electron-plugin-options.ts":{"bytesInOutput":1741},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":1386},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":10941},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104}},"bytes":104806},"dist/renderer.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":91822},"dist/renderer.js":{"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["electronRendererPlugin"],"entryPoint":"src/renderer/electron-renderer-plugin.ts","inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"src/renderer/electron-renderer-plugin.ts":{"bytesInOutput":11238},"src/options/electron-plugin-options.ts":{"bytesInOutput":1255},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1461},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":1386},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":10299}},"bytes":29142},"dist/server.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":99509},"dist/server.js":{"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"better-auth/api","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["electronServerPlugin"],"entryPoint":"src/server/electron-server-plugin.ts","inputs":{"src/server/electron-server-plugin.ts":{"bytesInOutput":14777},"src/options/electron-plugin-options.ts":{"bytesInOutput":813},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":3472},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":17435},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104}},"bytes":38873},"dist/web.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":89893},"dist/web.js":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true},{"path":"electron","kind":"require-call","external":true}],"exports":["electronWebHandoffPlugin","setLazyClient"],"entryPoint":"src/web/electron-web-plugin.ts","inputs":{"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js":{"bytesInOutput":45},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/index.js":{"bytesInOutput":0},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js":{"bytesInOutput":2109},"node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/listen-keys/index.js":{"bytesInOutput":232},"node_modules/.pnpm/@nanostores+react@1.0.0_nanostores@1.1.0_react@19.2.4/node_modules/@nanostores/react/index.js":{"bytesInOutput":667},"src/options/electron-plugin-options.ts":{"bytesInOutput":1128},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/index.js":{"bytesInOutput":0},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base32.js":{"bytesInOutput":450},"node_modules/.pnpm/@oslojs+encoding@1.1.0/node_modules/@oslojs/encoding/dist/base64.js":{"bytesInOutput":456},"src/utils/electron-plugin-utils.ts":{"bytesInOutput":9834},"src/utils/electron-plugin-env.ts":{"bytesInOutput":1104},"src/web/electron-web-clientHelper.ts":{"bytesInOutput":25},"src/web/electron-web-plugin.ts":{"bytesInOutput":6617}},"bytes":26004},"dist/options.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":12099},"dist/options.js":{"imports":[],"exports":["defatultWebOptions","defaultButtonOptions","defaultMainPluginOptions","defaultRendererPluginOptions","defaultServerPluginOptions"],"entryPoint":"src/options/electron-plugin-options.ts","inputs":{"src/options/electron-plugin-options.ts":{"bytesInOutput":2612}},"bytes":2801}}}
package/dist/options.d.ts CHANGED
@@ -108,6 +108,7 @@ type ElectronMainPluginOptions = {
108
108
  PROVIDERS: string[];
109
109
  FRONTEND_URL: string;
110
110
  ELECTRON_APP_NAME: string;
111
+ CONTENT_SECURITY_POLICY?: string;
111
112
  /**
112
113
  * The specific action path or host used to identify the auth callback.
113
114
  * This will be combined with the scheme to form the full callback URL.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/options/electron-plugin-options.ts"],"names":[],"mappings":";AA8MO,IAAM,0BAAA,GAA6B;AAAA,EACtC,eAAA,EAAiB,OAAA;AAAA,EACjB,iBAAA,EAAmB,cAAA;AAAA,EACnB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,oBAAA,EAAsB,mBAAA;AAAA,EACtB,uBAAA,EAAyB,qBAAA;AAAA,EACzB,kBAAA,EAAoB,mCAAA;AAAA,EACpB,kCAAA,EAAoC,kBAAA;AAAA,EACpC,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,6BAAA,EAA+B,+BAAA;AAAA,EAC/B,iBAAA,EAAmB,gBAAA;AAAA;AAAA,EAEnB,kBAAA,EAAoB,QAAA;AAAA,EACpB,kBAAA,EAAoB,QAAA;AAAA,EACpB,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,gBAAgB,EAAA,GAAK,CAAA;AAAA,EACrB,yBAAA,EAA2B,CAAA,GAAI,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK;AAAA;AAElD;AAEO,IAAM,4BAAA,GAA+B;AAAA,EACxC,eAAA,EAAiB,OAAA;AAAA,EACjB,iBAAA,EAAmB,cAAA;AAAA,EACnB,oBAAA,EAAsB,mBAAA;AAAA,EACtB,qBAAA,EAAuB,IAAA;AAAA,EACvB,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,mBAAA,EAAqB,oBAAA;AAAA,EACrB,sBAAA,EAAwB,sBAAA;AAAA,EACxB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,kBAAA,EAAoB,QAAA;AAAA,EACpB,sBAAA,EAAwB;AAC5B;AAEO,IAAM,wBAAA,GAA2B;AAAA,EACpC,SAAA,EAAW,KAAA;AAAA,EACX,OAAA,EAAS,IAAA;AAAA,EACT,mBAAA,EAAqB,uBAAA;AAAA,EACrB,iBAAA,EAAmB,qBAAA;AAAA,EACnB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,iBAAA,EAAmB,cAAA;AAAA,EACnB,eAAA,EAAiB,OAAA;AAAA,EACjB,sBAAA,EAAwB,cAAA;AAAA,EACxB,mBAAA,EAAqB,oBAAA;AAAA,EACrB,sBAAA,EAAwB,sBAAA;AAAA,EACxB,wBAAA,EAA0B,eAAA;AAAA,EAC1B,sBAAA,EAAwB,aAAA;AAAA,EACxB,wBAAA,EAA0B,EAAA;AAAA,EAC1B,YAAA,EAAc,6BAAA;AAAA,EACd,kCAAA,EAAoC,kBAAA;AAAA,EACpC,kBAAA,EAAoB,QAAA;AAAA,EACpB,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,wBAAA,EAA0B,cAAA;AAAA,EAC1B,uBAAA,EAAyB,KAAA;AAAA,EACzB,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,2BAAA,EAA6B;AACjC;AAEO,IAAM,oBAAA,GAAuB;AAAA,EAChC,YAAA,EAAc,6BAAA;AAAA,EACd,oBAAA,EAAsB;AAC1B;AAEO,IAAM,kBAAA,GAAqB;AAAA,EAC9B,eAAA,EAAiB,OAAA;AAAA,EACjB,kBAAA,EAAoB,QAAA;AAAA,EACpB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,kCAAA,EAAoC,kBAAA;AAAA,EACpC,uBAAA,EAAyB;AAC7B","file":"options.js","sourcesContent":["// root/src/utils/electron-plugin-options.ts\n\nimport type { BetterAuthClientOptions, Session, User } from 'better-auth'\nimport type { AuthClient } from 'better-auth/client'\nimport type { BrowserWindow } from 'electron'\n// import { renderOAuthPage } from '../preact/electron-login'\n// import type { BigIOError } from '../utils/electron-plugin-env'\n\nexport type ElectronServerPluginOptions = {\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n PROVIDERS: string[]\n // baseURL?: string\n // cookiePrefix?: string\n // logger?: typeof bigIOLogger | typeof logsgh\n debugMode?: boolean\n WEB_ERROR_PAGE_URL?: string\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string\n ELECTRON_TO_BACKEND_HOST_PATH?: string\n ELECTRON_APP_HOST?: string\n\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n BACKEND_FAST_TICKET_URL?: string\n BACKEND_LOGIN_URL?: string\n PREACT_LOGIN_PAGE?: (\n baseURL?: string | undefined,\n scheme?: string | undefined,\n provider?: string | undefined,\n ) => string\n customPreactJS?: string\n TICKET_NAME_IN_URL?: string\n SCHEME_NAME_IN_URL?: string\n PROVIDER_NAME_IN_URL?: string\n CHALLENGE_NAME_IN_URL?: string\n TICKET_TTL_SEC?: number\n ELECTRON_SESSION_DURATION?: number\n}\n\nexport type ElectronRendererPluginOptions = {\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n // baseURL?: string\n // cookiePrefix?: string\n // logger?: typeof bigIOLogger | typeof log\n // betterAuthClient: AuthClient<BetterAuthClientOptions>\n debug?: boolean\n refetchSessionOnFocus?: boolean\n CHALLENGE_NAME_IN_URL?: string\n ELECTRON_APP_HOST?: string\n TICKET_NAME_IN_URL?: string\n onDeepLinkFailedFn?: (error: unknown) => Promise<void>\n onDeepLinkSuccessFn?: (data: {\n session: Pick<Session, 'createdAt' | 'updatedAt' | 'expiresAt'>\n user: User\n }) => Promise<void>\n lazySignalUIReadyForFn?: boolean\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n}\nexport type ElectronMainPluginOptions = {\n isOAuth: boolean\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n BETTER_AUTH_BASEURL: string\n PROVIDERS: string[]\n FRONTEND_URL: string\n ELECTRON_APP_NAME: string\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n // logger?: typeof bigIOLogger | typeof log\n debugMode?: boolean\n ELECTRON_VERIFIER_LENGTH?: number\n CHALLENGE_NAME_IN_URL?: string\n SCHEME_NAME_IN_URL?: string\n PROVIDER_NAME_IN_URL?: string\n CALLBACK_PATHNAME_IN_URL?: string\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string\n ELECTRON_APP_HOST?: string\n ELECTRON_RENDERER_PATH?: string\n OLD_SCHOOL_ONBEFORE_WAY?: boolean\n GET_COOKIES_EVENT_NAME?: string\n ELECTRON_VERIFIER_FILE_NAME?: string\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to clear cookies from the main process.\n * @example \"clear-Cookies\"\n */\n CLEAR_COOKIES_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n openHandlerHelper?: (details: Electron.HandlerDetails) => Electron.WindowOpenHandlerResponse\n\n beforeSendHelper?: (details: Electron.OnBeforeSendHeadersListenerDetails) => {\n callback: {\n requestHeaders: Record<string, string | string[]>\n cancel?: boolean\n }\n }\n customProtocolServingHelper?: {\n scheme?: string\n privileges?: {\n standard: boolean\n secure: boolean\n supportFetchAPI: boolean\n corsEnabled: boolean\n bypassCSP: boolean\n allowServiceWorkers?: boolean\n codeCache?: boolean\n stream?: boolean\n }\n protocolHandleOnCreateWindow?: (mainWindow: BrowserWindow) => Promise<void>\n protocolHandleOnAppReady?: (request: Request) => Response | Promise<Response>\n }\n}\nexport type ElectronButtonOptions = {\n FRONTEND_URL: string\n PROVIDER_NAME_IN_URL: string\n}\nexport type ElectronWebOptions = typeof defatultWebOptions\n\nexport const defaultServerPluginOptions = {\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_APP_HOST: 'app-renderer',\n PROVIDERS: ['github', 'google'],\n BACKEND_EXCHANGE_URL: 'electron/exchange',\n BACKEND_FAST_TICKET_URL: 'electron/fastTicket',\n WEB_ERROR_PAGE_URL: 'http://localhost:3001/better-auth',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n ELECTRON_TO_BACKEND_HOST_PATH: 'from-electron-to-auth-backend',\n BACKEND_LOGIN_URL: 'electron/login',\n // PREACT_LOGIN_PAGE: renderOAuthPage,\n TICKET_NAME_IN_URL: 'ticket',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n TICKET_TTL_SEC: 60 * 5,\n ELECTRON_SESSION_DURATION: 7 * 24 * 60 * 60 * 1000,\n // customPreactJS: customPreactJS,\n} satisfies Partial<ElectronServerPluginOptions>\n\nexport const defaultRendererPluginOptions = {\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_APP_HOST: 'app-renderer',\n BACKEND_EXCHANGE_URL: 'electron/exchange',\n refetchSessionOnFocus: true,\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n DEEPLINK_EVENT_NAME: 'deep-link-received',\n APP_MOUNTED_EVENT_NAME: 'renderer-app-mounted',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n TICKET_NAME_IN_URL: 'ticket',\n lazySignalUIReadyForFn: false,\n} satisfies Partial<ElectronRendererPluginOptions>\n\nexport const defaultMainPluginOptions = {\n debugMode: false,\n isOAuth: true,\n BETTER_AUTH_BASEURL: 'http://localhost:3002',\n ELECTRON_APP_NAME: 'bigio-electron-demo',\n PROVIDERS: ['github', 'google'],\n ELECTRON_APP_HOST: 'app-renderer',\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_RENDERER_PATH: 'out/renderer',\n DEEPLINK_EVENT_NAME: 'deep-link-received',\n APP_MOUNTED_EVENT_NAME: 'renderer-app-mounted',\n CLEAR_COOKIES_EVENT_NAME: 'clear-Cookies',\n GET_COOKIES_EVENT_NAME: 'get-Cookies',\n ELECTRON_VERIFIER_LENGTH: 32,\n FRONTEND_URL: 'http://localhost:3002/oauth',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n CALLBACK_PATHNAME_IN_URL: 'callbackpath',\n OLD_SCHOOL_ONBEFORE_WAY: false,\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n ELECTRON_VERIFIER_FILE_NAME: 'bigio-auth-state.json',\n} satisfies Partial<ElectronMainPluginOptions>\n\nexport const defaultButtonOptions = {\n FRONTEND_URL: 'http://localhost:3001/oauth',\n PROVIDER_NAME_IN_URL: 'provider',\n} satisfies Partial<ElectronButtonOptions>\n\nexport const defatultWebOptions = {\n ELECTRON_SCHEME: 'bigio',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDERS: ['github', 'google'],\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n BACKEND_FAST_TICKET_URL: 'electron/fastTicket',\n} as const\n"]}
1
+ {"version":3,"sources":["../src/options/electron-plugin-options.ts"],"names":[],"mappings":";AA+MO,IAAM,0BAAA,GAA6B;AAAA,EACtC,eAAA,EAAiB,OAAA;AAAA,EACjB,iBAAA,EAAmB,cAAA;AAAA,EACnB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,oBAAA,EAAsB,mBAAA;AAAA,EACtB,uBAAA,EAAyB,qBAAA;AAAA,EACzB,kBAAA,EAAoB,mCAAA;AAAA,EACpB,kCAAA,EAAoC,kBAAA;AAAA,EACpC,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,6BAAA,EAA+B,+BAAA;AAAA,EAC/B,iBAAA,EAAmB,gBAAA;AAAA;AAAA,EAEnB,kBAAA,EAAoB,QAAA;AAAA,EACpB,kBAAA,EAAoB,QAAA;AAAA,EACpB,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,gBAAgB,EAAA,GAAK,CAAA;AAAA,EACrB,yBAAA,EAA2B,CAAA,GAAI,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK;AAAA;AAElD;AAEO,IAAM,4BAAA,GAA+B;AAAA,EACxC,eAAA,EAAiB,OAAA;AAAA,EACjB,iBAAA,EAAmB,cAAA;AAAA,EACnB,oBAAA,EAAsB,mBAAA;AAAA,EACtB,qBAAA,EAAuB,IAAA;AAAA,EACvB,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,mBAAA,EAAqB,oBAAA;AAAA,EACrB,sBAAA,EAAwB,sBAAA;AAAA,EACxB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,kBAAA,EAAoB,QAAA;AAAA,EACpB,sBAAA,EAAwB;AAC5B;AAEO,IAAM,wBAAA,GAA2B;AAAA,EACpC,SAAA,EAAW,KAAA;AAAA,EACX,OAAA,EAAS,IAAA;AAAA,EACT,mBAAA,EAAqB,uBAAA;AAAA,EACrB,iBAAA,EAAmB,qBAAA;AAAA,EACnB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,iBAAA,EAAmB,cAAA;AAAA,EACnB,eAAA,EAAiB,OAAA;AAAA,EACjB,sBAAA,EAAwB,cAAA;AAAA,EACxB,mBAAA,EAAqB,oBAAA;AAAA,EACrB,sBAAA,EAAwB,sBAAA;AAAA,EACxB,wBAAA,EAA0B,eAAA;AAAA,EAC1B,sBAAA,EAAwB,aAAA;AAAA,EACxB,wBAAA,EAA0B,EAAA;AAAA,EAC1B,YAAA,EAAc,6BAAA;AAAA,EACd,kCAAA,EAAoC,kBAAA;AAAA,EACpC,kBAAA,EAAoB,QAAA;AAAA,EACpB,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,wBAAA,EAA0B,cAAA;AAAA,EAC1B,uBAAA,EAAyB,KAAA;AAAA,EACzB,2BAAA,EAA6B,sBAAA;AAAA,EAC7B,2BAAA,EAA6B;AACjC;AAEO,IAAM,oBAAA,GAAuB;AAAA,EAChC,YAAA,EAAc,6BAAA;AAAA,EACd,oBAAA,EAAsB;AAC1B;AAEO,IAAM,kBAAA,GAAqB;AAAA,EAC9B,eAAA,EAAiB,OAAA;AAAA,EACjB,kBAAA,EAAoB,QAAA;AAAA,EACpB,SAAA,EAAW,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,EAC9B,oBAAA,EAAsB,UAAA;AAAA,EACtB,qBAAA,EAAuB,oBAAA;AAAA,EACvB,kCAAA,EAAoC,kBAAA;AAAA,EACpC,uBAAA,EAAyB;AAC7B","file":"options.js","sourcesContent":["// root/src/utils/electron-plugin-options.ts\n\nimport type { BetterAuthClientOptions, Session, User } from 'better-auth'\nimport type { AuthClient } from 'better-auth/client'\nimport type { BrowserWindow } from 'electron'\n// import { renderOAuthPage } from '../preact/electron-login'\n// import type { BigIOError } from '../utils/electron-plugin-env'\n\nexport type ElectronServerPluginOptions = {\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n PROVIDERS: string[]\n // baseURL?: string\n // cookiePrefix?: string\n // logger?: typeof bigIOLogger | typeof logsgh\n debugMode?: boolean\n WEB_ERROR_PAGE_URL?: string\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string\n ELECTRON_TO_BACKEND_HOST_PATH?: string\n ELECTRON_APP_HOST?: string\n\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n BACKEND_FAST_TICKET_URL?: string\n BACKEND_LOGIN_URL?: string\n PREACT_LOGIN_PAGE?: (\n baseURL?: string | undefined,\n scheme?: string | undefined,\n provider?: string | undefined,\n ) => string\n customPreactJS?: string\n TICKET_NAME_IN_URL?: string\n SCHEME_NAME_IN_URL?: string\n PROVIDER_NAME_IN_URL?: string\n CHALLENGE_NAME_IN_URL?: string\n TICKET_TTL_SEC?: number\n ELECTRON_SESSION_DURATION?: number\n}\n\nexport type ElectronRendererPluginOptions = {\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n // baseURL?: string\n // cookiePrefix?: string\n // logger?: typeof bigIOLogger | typeof log\n // betterAuthClient: AuthClient<BetterAuthClientOptions>\n debug?: boolean\n refetchSessionOnFocus?: boolean\n CHALLENGE_NAME_IN_URL?: string\n ELECTRON_APP_HOST?: string\n TICKET_NAME_IN_URL?: string\n onDeepLinkFailedFn?: (error: unknown) => Promise<void>\n onDeepLinkSuccessFn?: (data: {\n session: Pick<Session, 'createdAt' | 'updatedAt' | 'expiresAt'>\n user: User\n }) => Promise<void>\n lazySignalUIReadyForFn?: boolean\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n}\nexport type ElectronMainPluginOptions = {\n isOAuth: boolean\n /**\n * The custom protocol scheme used for deep linking authentication.\n * @remarks\n * This should match the protocol registered in your Electron Main Process.\n * Do not include the `://` suffix.\n * @example \"bigio\" to be like \"bigio://better-auth-callback\"\n */\n ELECTRON_SCHEME: string\n BETTER_AUTH_BASEURL: string\n PROVIDERS: string[]\n FRONTEND_URL: string\n ELECTRON_APP_NAME: string\n CONTENT_SECURITY_POLICY?: string\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n // logger?: typeof bigIOLogger | typeof log\n debugMode?: boolean\n ELECTRON_VERIFIER_LENGTH?: number\n CHALLENGE_NAME_IN_URL?: string\n SCHEME_NAME_IN_URL?: string\n PROVIDER_NAME_IN_URL?: string\n CALLBACK_PATHNAME_IN_URL?: string\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME?: string\n ELECTRON_APP_HOST?: string\n ELECTRON_RENDERER_PATH?: string\n OLD_SCHOOL_ONBEFORE_WAY?: boolean\n GET_COOKIES_EVENT_NAME?: string\n ELECTRON_VERIFIER_FILE_NAME?: string\n /**\n * The specific action path or host used to identify the auth callback.\n * This will be combined with the scheme to form the full callback URL.\n * Format: `${scheme}://${hostname}`\n * @example \"better-auth-callback\"\n * // Resulting URL: \"bigio://better-auth-callback\"\n */\n ELECTRON_CALLBACK_HOST_PATH?: string\n /**\n * The IPC event name used to receive deep link URLs from the main process.\n * @example \"deep-link-received\"\n */\n DEEPLINK_EVENT_NAME?: string\n /**\n * The IPC event name used to clear cookies from the main process.\n * @example \"clear-Cookies\"\n */\n CLEAR_COOKIES_EVENT_NAME?: string\n /**\n * The IPC event name used to notify the main process that the renderer app is mounted.\n * @example \"renderer-app-mounted\"\n */\n APP_MOUNTED_EVENT_NAME?: string\n /**\n * The URL path for the backend exchange endpoint to exchange the JWT ticket.\n * @example \"/electron/exchange\"\n */\n BACKEND_EXCHANGE_URL?: string\n openHandlerHelper?: (details: Electron.HandlerDetails) => Electron.WindowOpenHandlerResponse\n\n beforeSendHelper?: (details: Electron.OnBeforeSendHeadersListenerDetails) => {\n callback: {\n requestHeaders: Record<string, string | string[]>\n cancel?: boolean\n }\n }\n customProtocolServingHelper?: {\n scheme?: string\n privileges?: {\n standard: boolean\n secure: boolean\n supportFetchAPI: boolean\n corsEnabled: boolean\n bypassCSP: boolean\n allowServiceWorkers?: boolean\n codeCache?: boolean\n stream?: boolean\n }\n protocolHandleOnCreateWindow?: (mainWindow: BrowserWindow) => Promise<void>\n protocolHandleOnAppReady?: (request: Request) => Response | Promise<Response>\n }\n}\nexport type ElectronButtonOptions = {\n FRONTEND_URL: string\n PROVIDER_NAME_IN_URL: string\n}\nexport type ElectronWebOptions = typeof defatultWebOptions\n\nexport const defaultServerPluginOptions = {\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_APP_HOST: 'app-renderer',\n PROVIDERS: ['github', 'google'],\n BACKEND_EXCHANGE_URL: 'electron/exchange',\n BACKEND_FAST_TICKET_URL: 'electron/fastTicket',\n WEB_ERROR_PAGE_URL: 'http://localhost:3001/better-auth',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n ELECTRON_TO_BACKEND_HOST_PATH: 'from-electron-to-auth-backend',\n BACKEND_LOGIN_URL: 'electron/login',\n // PREACT_LOGIN_PAGE: renderOAuthPage,\n TICKET_NAME_IN_URL: 'ticket',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n TICKET_TTL_SEC: 60 * 5,\n ELECTRON_SESSION_DURATION: 7 * 24 * 60 * 60 * 1000,\n // customPreactJS: customPreactJS,\n} satisfies Partial<ElectronServerPluginOptions>\n\nexport const defaultRendererPluginOptions = {\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_APP_HOST: 'app-renderer',\n BACKEND_EXCHANGE_URL: 'electron/exchange',\n refetchSessionOnFocus: true,\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n DEEPLINK_EVENT_NAME: 'deep-link-received',\n APP_MOUNTED_EVENT_NAME: 'renderer-app-mounted',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n TICKET_NAME_IN_URL: 'ticket',\n lazySignalUIReadyForFn: false,\n} satisfies Partial<ElectronRendererPluginOptions>\n\nexport const defaultMainPluginOptions = {\n debugMode: false,\n isOAuth: true,\n BETTER_AUTH_BASEURL: 'http://localhost:3002',\n ELECTRON_APP_NAME: 'bigio-electron-demo',\n PROVIDERS: ['github', 'google'],\n ELECTRON_APP_HOST: 'app-renderer',\n ELECTRON_SCHEME: 'bigio',\n ELECTRON_RENDERER_PATH: 'out/renderer',\n DEEPLINK_EVENT_NAME: 'deep-link-received',\n APP_MOUNTED_EVENT_NAME: 'renderer-app-mounted',\n CLEAR_COOKIES_EVENT_NAME: 'clear-Cookies',\n GET_COOKIES_EVENT_NAME: 'get-Cookies',\n ELECTRON_VERIFIER_LENGTH: 32,\n FRONTEND_URL: 'http://localhost:3002/oauth',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n CALLBACK_PATHNAME_IN_URL: 'callbackpath',\n OLD_SCHOOL_ONBEFORE_WAY: false,\n ELECTRON_CALLBACK_HOST_PATH: 'better-auth-callback',\n ELECTRON_VERIFIER_FILE_NAME: 'bigio-auth-state.json',\n} satisfies Partial<ElectronMainPluginOptions>\n\nexport const defaultButtonOptions = {\n FRONTEND_URL: 'http://localhost:3001/oauth',\n PROVIDER_NAME_IN_URL: 'provider',\n} satisfies Partial<ElectronButtonOptions>\n\nexport const defatultWebOptions = {\n ELECTRON_SCHEME: 'bigio',\n SCHEME_NAME_IN_URL: 'scheme',\n PROVIDERS: ['github', 'google'],\n PROVIDER_NAME_IN_URL: 'provider',\n CHALLENGE_NAME_IN_URL: 'electron_challenge',\n WEB_OAUTH_SIGNIN_CALLBACK_PATHNAME: 'electron-handoff',\n BACKEND_FAST_TICKET_URL: 'electron/fastTicket',\n} as const\n"]}