commet 2.2.5 → 2.2.7
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/dist/index.js +6 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var import_commander11 = require("commander");
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
32
|
name: "commet",
|
|
33
|
-
version: "2.2.
|
|
33
|
+
version: "2.2.7",
|
|
34
34
|
description: "Commet CLI - Manage your billing platform from the command line",
|
|
35
35
|
bin: {
|
|
36
36
|
commet: "./bin/commet"
|
|
@@ -163,7 +163,7 @@ function clearProjectConfig() {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// src/utils/telemetry.ts
|
|
166
|
-
var CLI_VERSION = true ? "2.2.
|
|
166
|
+
var CLI_VERSION = true ? "2.2.7" : "0.0.0";
|
|
167
167
|
var TELEMETRY_URL = "https://commet.co/api/cli/telemetry";
|
|
168
168
|
function detectRuntime() {
|
|
169
169
|
if ("Bun" in globalThis) {
|
|
@@ -1304,9 +1304,11 @@ Examples:
|
|
|
1304
1304
|
}
|
|
1305
1305
|
);
|
|
1306
1306
|
if (startResult.error || !startResult.data) {
|
|
1307
|
+
const sessionExpired = startResult.error?.code === "http_401";
|
|
1307
1308
|
exitWithError({
|
|
1308
|
-
code: "listen_failed",
|
|
1309
|
-
message: "Failed to start listen session"
|
|
1309
|
+
code: startResult.error?.code ?? "listen_failed",
|
|
1310
|
+
message: sessionExpired ? "Your session expired" : startResult.error?.message ?? "Failed to start listen session",
|
|
1311
|
+
action: sessionExpired ? "commet login" : void 0
|
|
1310
1312
|
});
|
|
1311
1313
|
}
|
|
1312
1314
|
const { sessionId, channelName, signingSecret, tokenRequest } = startResult.data;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commet",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"description": "Commet CLI - Manage your billing platform from the command line",
|
|
5
5
|
"bin": {
|
|
6
6
|
"commet": "./bin/commet"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"open": "11.0.0",
|
|
29
29
|
"ora": "9.4.0",
|
|
30
30
|
"tar": "^7.5.13",
|
|
31
|
-
"@commet/node": "5.
|
|
31
|
+
"@commet/node": "5.5.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "24.12.4",
|