@effectify/node-better-auth 0.0.1

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.
@@ -0,0 +1,9 @@
1
+ declare const BetterAuthApiError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
2
+ readonly _tag: "BetterAuthApiError";
3
+ } & Readonly<A>;
4
+ export declare class BetterAuthApiError extends BetterAuthApiError_base<{
5
+ cause: unknown;
6
+ }> {
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=better-auth-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"better-auth-error.d.ts","sourceRoot":"","sources":["../../src/lib/better-auth-error.ts"],"names":[],"mappings":";;;AACA,qBAAa,kBAAmB,SAAQ,wBAAuC;IAC7E,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;CAAG"}
@@ -0,0 +1,10 @@
1
+ import * as HttpServerRequest from '@effect/platform/HttpServerRequest';
2
+ import * as HttpServerResponse from '@effect/platform/HttpServerResponse';
3
+ import * as T from 'effect/Effect';
4
+ import type { Auth } from 'better-auth';
5
+ import type { ConfigError } from 'effect/ConfigError';
6
+ import { BetterAuthApiError } from './better-auth-error.js';
7
+ export declare const toEffectHandler: (auth: {
8
+ handler: Auth['handler'];
9
+ } | Auth['handler']) => T.Effect<HttpServerResponse.HttpServerResponse, BetterAuthApiError | ConfigError, HttpServerRequest.HttpServerRequest>;
10
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/lib/handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,oCAAoC,CAAA;AACvE,OAAO,KAAK,kBAAkB,MAAM,qCAAqC,CAAA;AAEzE,OAAO,KAAK,CAAC,MAAM,eAAe,CAAA;AAElC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE3D,eAAO,MAAM,eAAe,EAAE,CAC5B,IAAI,EACA;IACE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;CACzB,GACD,IAAI,CAAC,SAAS,CAAC,KAChB,CAAC,CAAC,MAAM,CACX,kBAAkB,CAAC,kBAAkB,EACrC,kBAAkB,GAAG,WAAW,EAChC,iBAAiB,CAAC,iBAAiB,CAiCjC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@effectify/node-better-auth",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "exports": {
12
+ "./package.json": "./package.json",
13
+ ".": {
14
+ "development": "./src/index.ts",
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js",
17
+ "default": "./dist/index.js"
18
+ }
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "!**/*.tsbuildinfo"
23
+ ],
24
+ "dependencies": {
25
+ "@effect/platform": "catalog:",
26
+ "@effect/platform-node": "catalog:",
27
+ "better-auth": "catalog:",
28
+ "effect": "catalog:"
29
+ }
30
+ }