@capraconsulting/cals-cli 3.12.0 → 3.12.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/lib/cals-cli.mjs +2 -16
- package/lib/cals-cli.mjs.map +1 -1
- package/lib/index.es.js +1 -10
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1 -10
- package/lib/index.js.map +1 -1
- package/package.json +9 -9
package/lib/cals-cli.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import { read } from 'read';
|
|
|
26
26
|
import { findUp } from 'find-up';
|
|
27
27
|
import { execa } from 'execa';
|
|
28
28
|
|
|
29
|
-
var version = "3.12.
|
|
29
|
+
var version = "3.12.1";
|
|
30
30
|
var engines = {
|
|
31
31
|
node: ">=12.0.0"
|
|
32
32
|
};
|
|
@@ -532,7 +532,6 @@ async function undefinedForNotFound(value) {
|
|
|
532
532
|
return await value;
|
|
533
533
|
}
|
|
534
534
|
catch (e) {
|
|
535
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
536
535
|
if (e.name === "HttpError" && e.status === 404) {
|
|
537
536
|
return undefined;
|
|
538
537
|
}
|
|
@@ -555,17 +554,14 @@ class GitHubService {
|
|
|
555
554
|
// can maximize concurrency all other places.
|
|
556
555
|
this.semaphore = pLimit(6);
|
|
557
556
|
this.octokit.hook.wrap("request", async (request, options) => {
|
|
558
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
559
557
|
this._requestCount++;
|
|
560
558
|
if (options.method !== "GET") {
|
|
561
559
|
return this.semaphore(() => request(options));
|
|
562
560
|
}
|
|
563
561
|
// Try to cache ETag for GET requests to save on rate limiting.
|
|
564
562
|
// Hits on ETag does not count towards rate limiting.
|
|
565
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
566
563
|
const rest = {
|
|
567
564
|
...options,
|
|
568
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
569
565
|
};
|
|
570
566
|
delete rest.method;
|
|
571
567
|
delete rest.baseUrl;
|
|
@@ -616,7 +612,6 @@ class GitHubService {
|
|
|
616
612
|
});
|
|
617
613
|
}
|
|
618
614
|
return response;
|
|
619
|
-
/* eslint-enable @typescript-eslint/no-unsafe-member-access */
|
|
620
615
|
});
|
|
621
616
|
}
|
|
622
617
|
_requestCount = 0;
|
|
@@ -893,7 +888,6 @@ class GitHubService {
|
|
|
893
888
|
return true;
|
|
894
889
|
}
|
|
895
890
|
catch (e) {
|
|
896
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
897
891
|
if (e.status === 404) {
|
|
898
892
|
return false;
|
|
899
893
|
}
|
|
@@ -1254,7 +1248,6 @@ class Config {
|
|
|
1254
1248
|
return {};
|
|
1255
1249
|
}
|
|
1256
1250
|
try {
|
|
1257
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
1258
1251
|
return JSON.parse(fs.readFileSync(this.configFile, "utf-8"));
|
|
1259
1252
|
}
|
|
1260
1253
|
catch (e) {
|
|
@@ -1583,13 +1576,9 @@ async function dumpSetup(_config, reporter, github, snyk, outfile, definitionFil
|
|
|
1583
1576
|
// TODO: An earlier version we had preserved comments by using yawn-yaml
|
|
1584
1577
|
// package. However it often produced invalid yaml, so we have removed
|
|
1585
1578
|
// it. We might want to revisit it to preserve comments.
|
|
1586
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-explicit-any
|
|
1587
1579
|
const doc = yaml.load(await definitionFile.getContents());
|
|
1588
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1589
1580
|
doc.snyk = generatedDefinition.snyk;
|
|
1590
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1591
1581
|
doc.projects = generatedDefinition.projects;
|
|
1592
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1593
1582
|
doc.github = generatedDefinition.github;
|
|
1594
1583
|
// Convert to/from plain JSON so that undefined elements are removed.
|
|
1595
1584
|
fs.writeFileSync(outfile, yaml.dump(JSON.parse(JSON.stringify(doc))));
|
|
@@ -2625,7 +2614,6 @@ class GitRepo {
|
|
|
2625
2614
|
await this.logCommand(result);
|
|
2626
2615
|
}
|
|
2627
2616
|
catch (e) {
|
|
2628
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
2629
2617
|
await this.logCommand(e);
|
|
2630
2618
|
throw e;
|
|
2631
2619
|
}
|
|
@@ -2639,7 +2627,6 @@ class GitRepo {
|
|
|
2639
2627
|
return result;
|
|
2640
2628
|
}
|
|
2641
2629
|
catch (e) {
|
|
2642
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
2643
2630
|
await this.logCommand(e);
|
|
2644
2631
|
throw e;
|
|
2645
2632
|
}
|
|
@@ -3054,7 +3041,6 @@ async function loadCalsManifest(config, reporter) {
|
|
|
3054
3041
|
}
|
|
3055
3042
|
// TODO: Verify file has expected contents.
|
|
3056
3043
|
// (Can we easily generate schema for type and verify?)
|
|
3057
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-explicit-any
|
|
3058
3044
|
const cals = yaml.load(fs.readFileSync(p, "utf-8"));
|
|
3059
3045
|
if (cals.version !== 2) {
|
|
3060
3046
|
throw new Error(`Unexpected version in ${p}`);
|
|
@@ -3323,7 +3309,7 @@ async function main() {
|
|
|
3323
3309
|
process$2.exit(1);
|
|
3324
3310
|
}
|
|
3325
3311
|
await yargs(hideBin(process$2.argv))
|
|
3326
|
-
.usage(`cals-cli v${version} (build: ${"2025-
|
|
3312
|
+
.usage(`cals-cli v${version} (build: ${"2025-08-07T05:46:58+0000"})`)
|
|
3327
3313
|
.scriptName("cals")
|
|
3328
3314
|
.locale("en")
|
|
3329
3315
|
.help("help")
|
package/lib/cals-cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cals-cli.mjs","sources":[],"sourcesCont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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.es.js
CHANGED
|
@@ -21,7 +21,7 @@ import { Transform } from 'node:stream';
|
|
|
21
21
|
import { execa } from 'execa';
|
|
22
22
|
import { read } from 'read';
|
|
23
23
|
|
|
24
|
-
var version = "3.12.
|
|
24
|
+
var version = "3.12.1";
|
|
25
25
|
|
|
26
26
|
class CacheProvider {
|
|
27
27
|
constructor(config) {
|
|
@@ -131,7 +131,6 @@ class Config {
|
|
|
131
131
|
return {};
|
|
132
132
|
}
|
|
133
133
|
try {
|
|
134
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
135
134
|
return JSON.parse(fs.readFileSync(this.configFile, "utf-8"));
|
|
136
135
|
}
|
|
137
136
|
catch (e) {
|
|
@@ -615,7 +614,6 @@ async function undefinedForNotFound(value) {
|
|
|
615
614
|
return await value;
|
|
616
615
|
}
|
|
617
616
|
catch (e) {
|
|
618
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
619
617
|
if (e.name === "HttpError" && e.status === 404) {
|
|
620
618
|
return undefined;
|
|
621
619
|
}
|
|
@@ -638,17 +636,14 @@ class GitHubService {
|
|
|
638
636
|
// can maximize concurrency all other places.
|
|
639
637
|
this.semaphore = pLimit(6);
|
|
640
638
|
this.octokit.hook.wrap("request", async (request, options) => {
|
|
641
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
642
639
|
this._requestCount++;
|
|
643
640
|
if (options.method !== "GET") {
|
|
644
641
|
return this.semaphore(() => request(options));
|
|
645
642
|
}
|
|
646
643
|
// Try to cache ETag for GET requests to save on rate limiting.
|
|
647
644
|
// Hits on ETag does not count towards rate limiting.
|
|
648
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
649
645
|
const rest = {
|
|
650
646
|
...options,
|
|
651
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
652
647
|
};
|
|
653
648
|
delete rest.method;
|
|
654
649
|
delete rest.baseUrl;
|
|
@@ -699,7 +694,6 @@ class GitHubService {
|
|
|
699
694
|
});
|
|
700
695
|
}
|
|
701
696
|
return response;
|
|
702
|
-
/* eslint-enable @typescript-eslint/no-unsafe-member-access */
|
|
703
697
|
});
|
|
704
698
|
}
|
|
705
699
|
_requestCount = 0;
|
|
@@ -976,7 +970,6 @@ class GitHubService {
|
|
|
976
970
|
return true;
|
|
977
971
|
}
|
|
978
972
|
catch (e) {
|
|
979
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
980
973
|
if (e.status === 404) {
|
|
981
974
|
return false;
|
|
982
975
|
}
|
|
@@ -1414,7 +1407,6 @@ class TestExecutor {
|
|
|
1414
1407
|
await body(this);
|
|
1415
1408
|
}
|
|
1416
1409
|
catch (error) {
|
|
1417
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1418
1410
|
console.error(error.stack || error.message || error);
|
|
1419
1411
|
process$1.exitCode = 1;
|
|
1420
1412
|
}
|
|
@@ -1734,7 +1726,6 @@ async function startContainer({ executor, network, imageId, alias, env, dockerAr
|
|
|
1734
1726
|
await r;
|
|
1735
1727
|
}
|
|
1736
1728
|
catch (e) {
|
|
1737
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
1738
1729
|
if (!(e.stderr || "").includes("No such container")) {
|
|
1739
1730
|
throw e;
|
|
1740
1731
|
}
|
package/lib/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
|
23
23
|
|
|
24
|
-
var version = "3.12.
|
|
24
|
+
var version = "3.12.1";
|
|
25
25
|
|
|
26
26
|
class CacheProvider {
|
|
27
27
|
constructor(config) {
|
|
@@ -131,7 +131,6 @@ class Config {
|
|
|
131
131
|
return {};
|
|
132
132
|
}
|
|
133
133
|
try {
|
|
134
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
135
134
|
return JSON.parse(fs.readFileSync(this.configFile, "utf-8"));
|
|
136
135
|
}
|
|
137
136
|
catch (e) {
|
|
@@ -615,7 +614,6 @@ async function undefinedForNotFound(value) {
|
|
|
615
614
|
return await value;
|
|
616
615
|
}
|
|
617
616
|
catch (e) {
|
|
618
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
619
617
|
if (e.name === "HttpError" && e.status === 404) {
|
|
620
618
|
return undefined;
|
|
621
619
|
}
|
|
@@ -638,17 +636,14 @@ class GitHubService {
|
|
|
638
636
|
// can maximize concurrency all other places.
|
|
639
637
|
this.semaphore = pLimit(6);
|
|
640
638
|
this.octokit.hook.wrap("request", async (request, options) => {
|
|
641
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
642
639
|
this._requestCount++;
|
|
643
640
|
if (options.method !== "GET") {
|
|
644
641
|
return this.semaphore(() => request(options));
|
|
645
642
|
}
|
|
646
643
|
// Try to cache ETag for GET requests to save on rate limiting.
|
|
647
644
|
// Hits on ETag does not count towards rate limiting.
|
|
648
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
649
645
|
const rest = {
|
|
650
646
|
...options,
|
|
651
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
652
647
|
};
|
|
653
648
|
delete rest.method;
|
|
654
649
|
delete rest.baseUrl;
|
|
@@ -699,7 +694,6 @@ class GitHubService {
|
|
|
699
694
|
});
|
|
700
695
|
}
|
|
701
696
|
return response;
|
|
702
|
-
/* eslint-enable @typescript-eslint/no-unsafe-member-access */
|
|
703
697
|
});
|
|
704
698
|
}
|
|
705
699
|
_requestCount = 0;
|
|
@@ -976,7 +970,6 @@ class GitHubService {
|
|
|
976
970
|
return true;
|
|
977
971
|
}
|
|
978
972
|
catch (e) {
|
|
979
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
980
973
|
if (e.status === 404) {
|
|
981
974
|
return false;
|
|
982
975
|
}
|
|
@@ -1414,7 +1407,6 @@ class TestExecutor {
|
|
|
1414
1407
|
await body(this);
|
|
1415
1408
|
}
|
|
1416
1409
|
catch (error) {
|
|
1417
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1418
1410
|
console.error(error.stack || error.message || error);
|
|
1419
1411
|
process$1.exitCode = 1;
|
|
1420
1412
|
}
|
|
@@ -1734,7 +1726,6 @@ async function startContainer({ executor, network, imageId, alias, env, dockerAr
|
|
|
1734
1726
|
await r;
|
|
1735
1727
|
}
|
|
1736
1728
|
catch (e) {
|
|
1737
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
1738
1729
|
if (!(e.stderr || "").includes("No such container")) {
|
|
1739
1730
|
throw e;
|
|
1740
1731
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capraconsulting/cals-cli",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"description": "CLI for repeatable tasks in CALS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/dateformat": "5.0.3",
|
|
28
28
|
"ajv": "^8.11.0",
|
|
29
29
|
"cachedir": "^2.4.0",
|
|
30
|
-
"chalk": "5.
|
|
30
|
+
"chalk": "5.5.0",
|
|
31
31
|
"execa": "^9.0.0",
|
|
32
32
|
"find-up": "^7.0.0",
|
|
33
33
|
"js-yaml": "^4.1.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@biomejs/biome": "2.
|
|
50
|
+
"@biomejs/biome": "2.1.3",
|
|
51
51
|
"@commitlint/cli": "19.8.1",
|
|
52
52
|
"@commitlint/config-conventional": "19.8.1",
|
|
53
53
|
"@octokit/types": "14.1.0",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"@rollup/plugin-replace": "6.0.2",
|
|
57
57
|
"@types/js-yaml": "4.0.9",
|
|
58
58
|
"@types/lodash-es": "4.17.12",
|
|
59
|
-
"@types/node": "24.0
|
|
60
|
-
"@types/node-fetch": "2.6.
|
|
61
|
-
"@types/read": "0.0
|
|
59
|
+
"@types/node": "24.1.0",
|
|
60
|
+
"@types/node-fetch": "2.6.13",
|
|
61
|
+
"@types/read": "3.0.0",
|
|
62
62
|
"@types/semver": "7.7.0",
|
|
63
63
|
"@types/sprintf-js": "1.1.4",
|
|
64
64
|
"@types/yargs": "17.0.33",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"@vitest/ui": "3.2.4",
|
|
67
67
|
"dateformat": "5.0.3",
|
|
68
68
|
"husky": "9.1.7",
|
|
69
|
-
"rollup": "4.
|
|
69
|
+
"rollup": "4.46.2",
|
|
70
70
|
"rollup-plugin-typescript2": "0.36.0",
|
|
71
|
-
"semantic-release": "24.2.
|
|
71
|
+
"semantic-release": "24.2.7",
|
|
72
72
|
"tsx": "4.20.3",
|
|
73
|
-
"typescript": "5.
|
|
73
|
+
"typescript": "5.9.2",
|
|
74
74
|
"typescript-json-schema": "0.65.1",
|
|
75
75
|
"vitest": "3.2.4"
|
|
76
76
|
},
|