commet 0.5.2 → 0.6.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 +4 -4
- package/dist/index.js +2 -2
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -43,8 +43,8 @@ commet login
|
|
|
43
43
|
Prompts you to select an environment (Sandbox or Production), then opens your browser to authenticate. Creates `~/.commet/auth.json` with your credentials.
|
|
44
44
|
|
|
45
45
|
**Important:** Sandbox and Production are completely isolated platforms with separate accounts:
|
|
46
|
-
- **Sandbox**: `sandbox.commet.co` - Development and testing
|
|
47
|
-
- **Production**: `
|
|
46
|
+
- **Sandbox**: `api.sandbox.commet.co` - Development and testing
|
|
47
|
+
- **Production**: `api.commet.co` - Live billing operations
|
|
48
48
|
|
|
49
49
|
Make sure to login to the correct environment for your needs.
|
|
50
50
|
|
|
@@ -210,8 +210,8 @@ Add `.commet/` to `.gitignore` if different developers use different organizatio
|
|
|
210
210
|
|
|
211
211
|
Commet supports two completely isolated environments:
|
|
212
212
|
|
|
213
|
-
- **Sandbox** (`sandbox.commet.co`): Development and testing with separate data
|
|
214
|
-
- **Production** (`
|
|
213
|
+
- **Sandbox** (`api.sandbox.commet.co`): Development and testing with separate data
|
|
214
|
+
- **Production** (`api.commet.co`): Live billing operations with real customers
|
|
215
215
|
|
|
216
216
|
**Important:** Each environment requires separate authentication because they are independent platforms. To work with both:
|
|
217
217
|
|
package/dist/index.js
CHANGED
|
@@ -137,9 +137,9 @@ var import_ora = __toESM(require("ora"));
|
|
|
137
137
|
// src/utils/api.ts
|
|
138
138
|
function getBaseURL(environment) {
|
|
139
139
|
if (environment === "production") {
|
|
140
|
-
return "https://
|
|
140
|
+
return "https://api.commet.co";
|
|
141
141
|
}
|
|
142
|
-
return "https://sandbox.commet.co";
|
|
142
|
+
return "https://api.sandbox.commet.co";
|
|
143
143
|
}
|
|
144
144
|
async function apiRequest(endpoint, options = {}) {
|
|
145
145
|
const auth = loadAuth();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Commet CLI - Manage your billing platform from the command line",
|
|
5
5
|
"bin": {
|
|
6
6
|
"commet": "./bin/commet"
|
|
@@ -25,10 +25,9 @@
|
|
|
25
25
|
"jsonc-parser": "^3.3.1",
|
|
26
26
|
"open": "^10.0.0",
|
|
27
27
|
"ora": "^7.0.1",
|
|
28
|
-
"@commet/node": "0.
|
|
28
|
+
"@commet/node": "0.7.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@biomejs/biome": "^1.9.4",
|
|
32
31
|
"@types/node": "^20.10.0",
|
|
33
32
|
"tsup": "^8.0.1",
|
|
34
33
|
"typescript": "^5.3.3"
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"build": "tsup",
|
|
50
49
|
"dev": "tsup --watch",
|
|
51
50
|
"lint": "biome lint src/",
|
|
52
|
-
"lint:fix": "biome lint --
|
|
51
|
+
"lint:fix": "biome lint --write src/",
|
|
53
52
|
"typecheck": "tsc --noEmit"
|
|
54
53
|
}
|
|
55
54
|
}
|