composter-cli 1.0.15 → 1.0.16
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/package.json +1 -1
- package/src/commands/login.js +1 -1
- package/src/utils/request.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "composter-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Your personal vault for React components. Push, pull, and sync reusable components across projects — like shadcn/ui but for YOUR code.",
|
package/src/commands/login.js
CHANGED
|
@@ -11,7 +11,7 @@ import { composterLoginArtv2 } from "../constants/asciiArts.js";
|
|
|
11
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
12
12
|
const __dirname = dirname(__filename);
|
|
13
13
|
|
|
14
|
-
const BASE_URL = `${process.env.BASE_URL}/auth`;
|
|
14
|
+
const BASE_URL = `${process.env.BASE_URL || "https://composter.vercel.app/api"}/auth`;
|
|
15
15
|
|
|
16
16
|
export async function login() {
|
|
17
17
|
console.log(chalk.bold.blue(composterLoginArtv2));
|
package/src/utils/request.js
CHANGED
|
@@ -4,7 +4,7 @@ import { handleSessionError } from "./errorHandlers/sessionErrorHandler.js";
|
|
|
4
4
|
import { handleFetchError } from "./errorHandlers/fetchErrorHandler.js";
|
|
5
5
|
import { log } from "./log.js";
|
|
6
6
|
|
|
7
|
-
const BASE_URL = process.env.BASE_URL;
|
|
7
|
+
const BASE_URL = process.env.BASE_URL || "https://composter.vercel.app/api";
|
|
8
8
|
|
|
9
9
|
export async function apiRequest(path, options = {}) {
|
|
10
10
|
|