deesse 0.1.1 → 0.1.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.
@@ -0,0 +1 @@
1
+ export declare const auth: import("better-auth/*").Auth<import("better-auth/*").BetterAuthOptions>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.auth = void 0;
4
+ const _1 = require("better-auth/*");
5
+ const config_1 = require("../config");
6
+ exports.auth = (0, _1.betterAuth)((0, config_1.getConfig)().auth);
@@ -1 +1,3 @@
1
- export declare const defineConfig: () => void;
1
+ import type { Config } from "./types";
2
+ export declare const defineConfig: (config: Config) => Config;
3
+ export declare const getConfig: () => Config;
@@ -1,5 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defineConfig = void 0;
4
- const defineConfig = () => { };
3
+ exports.getConfig = exports.defineConfig = void 0;
4
+ let _config = null;
5
+ const defineConfig = (config) => {
6
+ _config = config;
7
+ return config;
8
+ };
5
9
  exports.defineConfig = defineConfig;
10
+ const getConfig = () => {
11
+ if (!_config) {
12
+ throw new Error("Config not defined. Call defineConfig() first.");
13
+ }
14
+ return _config;
15
+ };
16
+ exports.getConfig = getConfig;
@@ -0,0 +1,4 @@
1
+ import { BetterAuthOptions } from "better-auth/*";
2
+ export type Config = {
3
+ auth: BetterAuthOptions;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./config";
2
+ export * from "./auth";
package/dist/index.js CHANGED
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./config"), exports);
18
+ __exportStar(require("./auth"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deesse",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "The fullstack web framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,5 +17,8 @@
17
17
  "prepublishOnly": "npm run build"
18
18
  },
19
19
  "author": "",
20
- "license": "ISC"
20
+ "license": "ISC",
21
+ "dependencies": {
22
+ "better-auth": "^1.4.3"
23
+ }
21
24
  }