maverick-ai-cli 2.0.0 → 3.0.0

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.
package/README.md CHANGED
@@ -10,7 +10,7 @@ You can install Maverick globally using npm:
10
10
  npm install -g maverick-ai-cli
11
11
  ```
12
12
 
13
- ## Usage
13
+ ## Usage
14
14
 
15
15
  Once installed, you can use the `maverick` command to interact with the CLI.
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maverick-ai-cli",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -1,11 +1,9 @@
1
+ import "dotenv/config";
1
2
  import express from "express";
2
- import dotenv from "dotenv";
3
3
  import { toNodeHandler, fromNodeHeaders } from "better-auth/node";
4
4
  import cors from "cors";
5
5
  import { auth } from "./lib/auth.js"
6
6
 
7
- dotenv.config()
8
-
9
7
  const app = express()
10
8
 
11
9
  app.set('trust proxy', true);
@@ -19,7 +17,7 @@ app.use(
19
17
  })
20
18
  );
21
19
 
22
- app.options("*", cors()); // Handle preflight requests explicitly
20
+ app.options("/{*splat}", cors()); // Handle preflight requests explicitly
23
21
 
24
22
  app.all("/api/auth/*splat", toNodeHandler(auth))
25
23