@argos-ci/cli 6.6.0 → 6.6.1
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.mjs +5 -4
- package/package.json +4 -5
package/dist/index.mjs
CHANGED
|
@@ -427,7 +427,7 @@ const OAUTH_SCOPES = [
|
|
|
427
427
|
"comments:write"
|
|
428
428
|
];
|
|
429
429
|
/** Refresh a bit early so a token never expires mid-request. */
|
|
430
|
-
const EXPIRY_SKEW_MS =
|
|
430
|
+
const EXPIRY_SKEW_MS = 6e4;
|
|
431
431
|
function getAppBaseUrl() {
|
|
432
432
|
return process.env["ARGOS_APP_BASE_URL"] ?? "https://app.argos-ci.com/";
|
|
433
433
|
}
|
|
@@ -1204,7 +1204,7 @@ function commentCommand(program) {
|
|
|
1204
1204
|
//#endregion
|
|
1205
1205
|
//#region src/commands/login.ts
|
|
1206
1206
|
const LOGIN_CLI_SUCCESS_ROUTE = `/auth/cli/success`;
|
|
1207
|
-
const LOGIN_TIMEOUT_MS =
|
|
1207
|
+
const LOGIN_TIMEOUT_MS = 3e5;
|
|
1208
1208
|
const CALLBACK_ERROR_HTML = `<!DOCTYPE html><html lang="en">
|
|
1209
1209
|
<head>
|
|
1210
1210
|
<meta charset="UTF-8">
|
|
@@ -1410,7 +1410,7 @@ function createProjectCommand(program) {
|
|
|
1410
1410
|
//#endregion
|
|
1411
1411
|
//#region src/commands/analytics.ts
|
|
1412
1412
|
const DEFAULT_PERIOD_DAYS = 30;
|
|
1413
|
-
const DAY_MS =
|
|
1413
|
+
const DAY_MS = 864e5;
|
|
1414
1414
|
/** Coerce a user-supplied date into an ISO 8601 datetime, or fail cleanly. */
|
|
1415
1415
|
function toIsoOrFail(value, option) {
|
|
1416
1416
|
const date = new Date(value);
|
|
@@ -1795,7 +1795,8 @@ function testCommand(program) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
//#endregion
|
|
1797
1797
|
//#region src/index.ts
|
|
1798
|
-
const
|
|
1798
|
+
const __dirname = fileURLToPath(new URL(".", import.meta.url));
|
|
1799
|
+
const rawPkg = await readFile(resolve(__dirname, "..", "package.json"), "utf8");
|
|
1799
1800
|
const pkg = JSON.parse(rawPkg);
|
|
1800
1801
|
program.name(pkg.name).description("Interact with and upload screenshots to Argos via command line.").version(pkg.version);
|
|
1801
1802
|
uploadCommand(program);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/cli",
|
|
3
3
|
"description": "Command-line (CLI) for visual testing with Argos.",
|
|
4
|
-
"version": "6.6.
|
|
4
|
+
"version": "6.6.1",
|
|
5
5
|
"bin": {
|
|
6
6
|
"argos": "./bin/argos-cli.js"
|
|
7
7
|
},
|
|
@@ -35,11 +35,10 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@argos-ci/api-client": "0.28.0",
|
|
38
|
-
"@argos-ci/core": "6.7.
|
|
38
|
+
"@argos-ci/core": "6.7.2",
|
|
39
39
|
"commander": "^15.0.0",
|
|
40
40
|
"open": "^11.0.0",
|
|
41
|
-
"ora": "^9.4.
|
|
42
|
-
"update-notifier": "^7.3.1"
|
|
41
|
+
"ora": "^9.4.1"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"vitest": "catalog:"
|
|
@@ -54,5 +53,5 @@
|
|
|
54
53
|
"check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
|
|
55
54
|
"lint": "eslint ."
|
|
56
55
|
},
|
|
57
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "3268a9ff953f019494367e3bf87ea520268b6ed2"
|
|
58
57
|
}
|