@capraconsulting/cals-cli 3.10.4 → 3.10.6
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 +22 -6
- package/lib/cals-cli.mjs.map +1 -1
- package/lib/git/GitRepo.d.ts +2 -2
- package/lib/index.es.js +3 -4
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +3 -4
- package/lib/index.js.map +1 -1
- package/lib/testing/lib.d.ts +2 -2
- package/package.json +3 -6
package/lib/cals-cli.mjs
CHANGED
|
@@ -16,7 +16,6 @@ import { performance } from 'perf_hooks';
|
|
|
16
16
|
import { Buffer } from 'node:buffer';
|
|
17
17
|
import { deprecate } from 'util';
|
|
18
18
|
import path from 'path';
|
|
19
|
-
import rimraf from 'rimraf';
|
|
20
19
|
import cachedir from 'cachedir';
|
|
21
20
|
import https from 'https';
|
|
22
21
|
import os from 'os';
|
|
@@ -25,9 +24,9 @@ import readline from 'readline';
|
|
|
25
24
|
import { sprintf } from 'sprintf-js';
|
|
26
25
|
import read from 'read';
|
|
27
26
|
import { findUp } from 'find-up';
|
|
28
|
-
import execa from 'execa';
|
|
27
|
+
import { execa } from 'execa';
|
|
29
28
|
|
|
30
|
-
var version = "3.10.
|
|
29
|
+
var version = "3.10.6";
|
|
31
30
|
var engines = {
|
|
32
31
|
node: ">=12.0.0"
|
|
33
32
|
};
|
|
@@ -1239,7 +1238,7 @@ class CacheProvider {
|
|
|
1239
1238
|
* Delete all cached data.
|
|
1240
1239
|
*/
|
|
1241
1240
|
cleanup() {
|
|
1242
|
-
|
|
1241
|
+
fs.rmSync(this.config.cacheDir, { recursive: true, force: true });
|
|
1243
1242
|
}
|
|
1244
1243
|
}
|
|
1245
1244
|
|
|
@@ -2689,15 +2688,26 @@ class GitRepo {
|
|
|
2689
2688
|
}
|
|
2690
2689
|
}
|
|
2691
2690
|
async getCurrentBranch() {
|
|
2692
|
-
|
|
2691
|
+
const result = await this.git(["rev-parse", "--abbrev-ref", "HEAD"]);
|
|
2692
|
+
// check if stdout is a string
|
|
2693
|
+
if (typeof result.stdout !== "string") {
|
|
2694
|
+
throw new Error("stdout is not a string");
|
|
2695
|
+
}
|
|
2696
|
+
return result.stdout;
|
|
2693
2697
|
}
|
|
2694
2698
|
async hasChangesInProgress() {
|
|
2695
2699
|
const result = await this.git(["status", "--short"]);
|
|
2700
|
+
if (typeof result.stdout !== "string") {
|
|
2701
|
+
throw new Error("stdout is not a string");
|
|
2702
|
+
}
|
|
2696
2703
|
// Ignore untracked files.
|
|
2697
2704
|
return result.stdout.replace(/^\?\?.+$/gm, "").length > 0;
|
|
2698
2705
|
}
|
|
2699
2706
|
async hasUnpushedCommits() {
|
|
2700
2707
|
const result = await this.git(["status", "-sb"]);
|
|
2708
|
+
if (typeof result.stdout !== "string") {
|
|
2709
|
+
throw new Error("stdout is not a string");
|
|
2710
|
+
}
|
|
2701
2711
|
return result.stdout.includes("[ahead");
|
|
2702
2712
|
}
|
|
2703
2713
|
async getAuthorsForRange(range) {
|
|
@@ -2706,6 +2716,9 @@ class GitRepo {
|
|
|
2706
2716
|
"-s",
|
|
2707
2717
|
`${range.from}..${range.to}`,
|
|
2708
2718
|
]);
|
|
2719
|
+
if (typeof result.stdout !== "string") {
|
|
2720
|
+
throw new Error("stdout is not a string");
|
|
2721
|
+
}
|
|
2709
2722
|
return parseShortlogSummary(result.stdout);
|
|
2710
2723
|
}
|
|
2711
2724
|
async update() {
|
|
@@ -2728,6 +2741,9 @@ class GitRepo {
|
|
|
2728
2741
|
// cwd: path,
|
|
2729
2742
|
// })
|
|
2730
2743
|
const result = await this.git(["pull", "--rebase"]);
|
|
2744
|
+
if (typeof result.stdout !== "string") {
|
|
2745
|
+
throw new Error("stdout is not a string");
|
|
2746
|
+
}
|
|
2731
2747
|
return {
|
|
2732
2748
|
dirty: false,
|
|
2733
2749
|
updated: wasUpdated(result.stdout),
|
|
@@ -3360,7 +3376,7 @@ async function main() {
|
|
|
3360
3376
|
process$2.exit(1);
|
|
3361
3377
|
}
|
|
3362
3378
|
await yargs(hideBin(process$2.argv))
|
|
3363
|
-
.usage(`cals-cli v${version} (build: ${"2025-01-
|
|
3379
|
+
.usage(`cals-cli v${version} (build: ${"2025-01-10T12:05:13+0000"})`)
|
|
3364
3380
|
.scriptName("cals")
|
|
3365
3381
|
.locale("en")
|
|
3366
3382
|
.help("help")
|
package/lib/cals-cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cals-cli.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cals-cli.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/git/GitRepo.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type Result } from "execa";
|
|
2
2
|
export declare enum CloneType {
|
|
3
3
|
HTTPS = 0,
|
|
4
4
|
SSH = 1
|
|
@@ -14,7 +14,7 @@ export interface UpdateResult {
|
|
|
14
14
|
export declare class GitRepo {
|
|
15
15
|
private readonly path;
|
|
16
16
|
private readonly logCommand;
|
|
17
|
-
constructor(path: string, logCommand: (result:
|
|
17
|
+
constructor(path: string, logCommand: (result: Result) => Promise<void>);
|
|
18
18
|
cloneGitHubRepo(org: string, name: string, cloneType: CloneType): Promise<void>;
|
|
19
19
|
private git;
|
|
20
20
|
getCurrentBranch(): Promise<string>;
|
package/lib/index.es.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import rimraf from 'rimraf';
|
|
4
3
|
import chalk from 'chalk';
|
|
5
4
|
import readline from 'readline';
|
|
6
5
|
import process$1 from 'node:process';
|
|
@@ -18,11 +17,11 @@ import * as process from 'process';
|
|
|
18
17
|
import { performance } from 'perf_hooks';
|
|
19
18
|
import { Buffer } from 'node:buffer';
|
|
20
19
|
import { strict } from 'assert';
|
|
21
|
-
import execa from 'execa';
|
|
20
|
+
import { execa } from 'execa';
|
|
22
21
|
import read from 'read';
|
|
23
22
|
import { Transform } from 'stream';
|
|
24
23
|
|
|
25
|
-
var version = "3.10.
|
|
24
|
+
var version = "3.10.6";
|
|
26
25
|
|
|
27
26
|
class CacheProvider {
|
|
28
27
|
constructor(config) {
|
|
@@ -73,7 +72,7 @@ class CacheProvider {
|
|
|
73
72
|
* Delete all cached data.
|
|
74
73
|
*/
|
|
75
74
|
cleanup() {
|
|
76
|
-
|
|
75
|
+
fs.rmSync(this.config.cacheDir, { recursive: true, force: true });
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import rimraf from 'rimraf';
|
|
4
3
|
import chalk from 'chalk';
|
|
5
4
|
import readline from 'readline';
|
|
6
5
|
import process$1 from 'node:process';
|
|
@@ -18,11 +17,11 @@ import * as process from 'process';
|
|
|
18
17
|
import { performance } from 'perf_hooks';
|
|
19
18
|
import { Buffer } from 'node:buffer';
|
|
20
19
|
import { strict } from 'assert';
|
|
21
|
-
import execa from 'execa';
|
|
20
|
+
import { execa } from 'execa';
|
|
22
21
|
import read from 'read';
|
|
23
22
|
import { Transform } from 'stream';
|
|
24
23
|
|
|
25
|
-
var version = "3.10.
|
|
24
|
+
var version = "3.10.6";
|
|
26
25
|
|
|
27
26
|
class CacheProvider {
|
|
28
27
|
constructor(config) {
|
|
@@ -73,7 +72,7 @@ class CacheProvider {
|
|
|
73
72
|
* Delete all cached data.
|
|
74
73
|
*/
|
|
75
74
|
cleanup() {
|
|
76
|
-
|
|
75
|
+
fs.rmSync(this.config.cacheDir, { recursive: true, force: true });
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
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/lib/testing/lib.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type Subprocess } from "execa";
|
|
2
2
|
import { TestExecutor } from "./executor";
|
|
3
3
|
export interface Container {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
network: Network;
|
|
7
|
-
process:
|
|
7
|
+
process: Subprocess;
|
|
8
8
|
executor: TestExecutor;
|
|
9
9
|
}
|
|
10
10
|
export interface Network {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capraconsulting/cals-cli",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.6",
|
|
4
4
|
"description": "CLI for repeatable tasks in CALS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"ajv": "^8.11.0",
|
|
29
29
|
"cachedir": "^2.4.0",
|
|
30
30
|
"chalk": "5.4.1",
|
|
31
|
-
"execa": "^
|
|
31
|
+
"execa": "^9.0.0",
|
|
32
32
|
"find-up": "^7.0.0",
|
|
33
33
|
"js-yaml": "^4.1.0",
|
|
34
34
|
"keytar": "^7.9.0",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"p-map": "^7.0.0",
|
|
38
38
|
"process": "0.11.10",
|
|
39
39
|
"read": "^1.0.7",
|
|
40
|
-
"rimraf": "^4.0.0",
|
|
41
40
|
"semver": "^7.6.2",
|
|
42
41
|
"sprintf-js": "^1.1.2",
|
|
43
42
|
"yargs": "17.7.2"
|
|
@@ -61,7 +60,6 @@
|
|
|
61
60
|
"@types/node": "22.10.5",
|
|
62
61
|
"@types/node-fetch": "2.6.12",
|
|
63
62
|
"@types/read": "0.0.32",
|
|
64
|
-
"@types/rimraf": "3.0.2",
|
|
65
63
|
"@types/semver": "7.5.8",
|
|
66
64
|
"@types/sprintf-js": "1.1.4",
|
|
67
65
|
"@types/yargs": "17.0.33",
|
|
@@ -70,7 +68,7 @@
|
|
|
70
68
|
"@vitest/coverage-v8": "2.1.8",
|
|
71
69
|
"@vitest/ui": "2.1.8",
|
|
72
70
|
"dateformat": "5.0.3",
|
|
73
|
-
"eslint": "9.
|
|
71
|
+
"eslint": "9.17.0",
|
|
74
72
|
"eslint-config-prettier": "9.1.0",
|
|
75
73
|
"eslint-plugin-prettier": "5.2.1",
|
|
76
74
|
"husky": "9.1.7",
|
|
@@ -78,7 +76,6 @@
|
|
|
78
76
|
"rollup": "2.79.2",
|
|
79
77
|
"rollup-plugin-typescript2": "0.36.0",
|
|
80
78
|
"semantic-release": "24.2.1",
|
|
81
|
-
"tempy": "1.0.1",
|
|
82
79
|
"tsx": "4.19.2",
|
|
83
80
|
"typescript": "5.7.2",
|
|
84
81
|
"typescript-json-schema": "0.65.1",
|