@capraconsulting/cals-cli 3.10.6 → 3.10.8

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 CHANGED
@@ -22,11 +22,11 @@ import os from 'os';
22
22
  import chalk from 'chalk';
23
23
  import readline from 'readline';
24
24
  import { sprintf } from 'sprintf-js';
25
- import read from 'read';
25
+ import { read } from 'read';
26
26
  import { findUp } from 'find-up';
27
27
  import { execa } from 'execa';
28
28
 
29
- var version = "3.10.6";
29
+ var version = "3.10.8";
30
30
  var engines = {
31
31
  node: ">=12.0.0"
32
32
  };
@@ -2204,19 +2204,11 @@ async function process(reporter, github, definition, getOrg, execute, limitToOrg
2204
2204
  }
2205
2205
  }
2206
2206
  if (execute && changes.length > 0) {
2207
- const cont = await new Promise((resolve, reject) => {
2208
- read({
2209
- prompt: "Confirm you want to execute the changes [y/N]: ",
2210
- timeout: 60000,
2211
- }, (err, answer) => {
2212
- if (err) {
2213
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
2214
- reject(err);
2215
- }
2216
- resolve(answer);
2217
- });
2207
+ const answer = await read({
2208
+ prompt: "Confirm you want to execute the changes [y/N]: ",
2209
+ timeout: 60000,
2218
2210
  });
2219
- if (cont === "y" || cont === "Y") {
2211
+ if (answer.toLowerCase() === "y") {
2220
2212
  reporter.info("Executing changes");
2221
2213
  await executeChangeSet(github, changes, reporter);
2222
2214
  }
@@ -2582,18 +2574,11 @@ async function setToken$1({ reporter, token, tokenProvider, }) {
2582
2574
  if (token === undefined) {
2583
2575
  reporter.info("Need API token to talk to GitHub");
2584
2576
  reporter.info("https://github.com/settings/tokens/new?scopes=repo:status,read:repo_hook");
2585
- token = await new Promise((resolve, reject) => {
2586
- read({
2587
- prompt: "Enter new GitHub API token: ",
2588
- silent: true,
2589
- }, (err, answer) => {
2590
- if (err) {
2591
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
2592
- reject(err);
2593
- }
2594
- resolve(answer);
2595
- });
2577
+ const inputToken = await read({
2578
+ prompt: "Enter new GitHub API token: ",
2579
+ silent: true,
2596
2580
  });
2581
+ token = inputToken;
2597
2582
  }
2598
2583
  await tokenProvider.setToken(token);
2599
2584
  reporter.info("Token saved");
@@ -2945,17 +2930,9 @@ async function getExpectedRepos(reporter, github, cals, rootdir) {
2945
2930
  };
2946
2931
  }
2947
2932
  async function getInput(prompt) {
2948
- return new Promise((resolve, reject) => {
2949
- read({
2950
- prompt,
2951
- timeout: 60000,
2952
- }, (err, answer) => {
2953
- if (err) {
2954
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
2955
- reject(err);
2956
- }
2957
- resolve(answer);
2958
- });
2933
+ return read({
2934
+ prompt,
2935
+ timeout: 60000,
2959
2936
  });
2960
2937
  }
2961
2938
  async function askCloneType() {
@@ -3293,18 +3270,12 @@ async function setToken({ reporter, token, tokenProvider, }) {
3293
3270
  if (token === undefined) {
3294
3271
  reporter.info("Need API token to talk to Snyk");
3295
3272
  reporter.info("See https://app.snyk.io/account");
3296
- token = await new Promise((resolve, reject) => {
3297
- read({
3298
- prompt: "Enter new Snyk API token: ",
3299
- silent: true,
3300
- }, (err, answer) => {
3301
- if (err) {
3302
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
3303
- reject(err);
3304
- }
3305
- resolve(answer);
3306
- });
3273
+ // noinspection UnnecessaryLocalVariableJS
3274
+ const inputToken = await read({
3275
+ prompt: "Enter new Snyk API token: ",
3276
+ silent: true,
3307
3277
  });
3278
+ token = inputToken;
3308
3279
  }
3309
3280
  await tokenProvider.setToken(token);
3310
3281
  reporter.info("Token saved");
@@ -3376,7 +3347,7 @@ async function main() {
3376
3347
  process$2.exit(1);
3377
3348
  }
3378
3349
  await yargs(hideBin(process$2.argv))
3379
- .usage(`cals-cli v${version} (build: ${"2025-01-10T12:05:13+0000"})`)
3350
+ .usage(`cals-cli v${version} (build: ${"2025-01-10T12:31:09+0000"})`)
3380
3351
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.es.js CHANGED
@@ -18,10 +18,10 @@ import { performance } from 'perf_hooks';
18
18
  import { Buffer } from 'node:buffer';
19
19
  import { strict } from 'assert';
20
20
  import { execa } from 'execa';
21
- import read from 'read';
21
+ import { read } from 'read';
22
22
  import { Transform } from 'stream';
23
23
 
24
- var version = "3.10.6";
24
+ var version = "3.10.8";
25
25
 
26
26
  class CacheProvider {
27
27
  constructor(config) {
@@ -1789,17 +1789,9 @@ async function getDockerHostAddress() {
1789
1789
  return "localhost";
1790
1790
  }
1791
1791
  async function waitForEnterToContinue(prompt = "Press enter to continue") {
1792
- return new Promise((resolve, reject) => {
1793
- read({
1794
- prompt,
1795
- silent: true,
1796
- }, (err) => {
1797
- if (err) {
1798
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
1799
- reject(err);
1800
- }
1801
- resolve();
1802
- });
1792
+ await read({
1793
+ prompt,
1794
+ silent: true,
1803
1795
  });
1804
1796
  }
1805
1797
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.js CHANGED
@@ -18,10 +18,10 @@ import { performance } from 'perf_hooks';
18
18
  import { Buffer } from 'node:buffer';
19
19
  import { strict } from 'assert';
20
20
  import { execa } from 'execa';
21
- import read from 'read';
21
+ import { read } from 'read';
22
22
  import { Transform } from 'stream';
23
23
 
24
- var version = "3.10.6";
24
+ var version = "3.10.8";
25
25
 
26
26
  class CacheProvider {
27
27
  constructor(config) {
@@ -1789,17 +1789,9 @@ async function getDockerHostAddress() {
1789
1789
  return "localhost";
1790
1790
  }
1791
1791
  async function waitForEnterToContinue(prompt = "Press enter to continue") {
1792
- return new Promise((resolve, reject) => {
1793
- read({
1794
- prompt,
1795
- silent: true,
1796
- }, (err) => {
1797
- if (err) {
1798
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
1799
- reject(err);
1800
- }
1801
- resolve();
1802
- });
1792
+ await read({
1793
+ prompt,
1794
+ silent: true,
1803
1795
  });
1804
1796
  }
1805
1797
 
package/lib/index.js.map CHANGED
@@ -1 +1 @@
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.10.6",
3
+ "version": "3.10.8",
4
4
  "description": "CLI for repeatable tasks in CALS",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -23,7 +23,7 @@
23
23
  "cals": "lib/cals-cli.mjs"
24
24
  },
25
25
  "dependencies": {
26
- "@octokit/rest": "^19.0.0",
26
+ "@octokit/rest": "^21.0.0",
27
27
  "@types/dateformat": "5.0.3",
28
28
  "ajv": "^8.11.0",
29
29
  "cachedir": "^2.4.0",
@@ -36,7 +36,7 @@
36
36
  "p-limit": "^6.0.0",
37
37
  "p-map": "^7.0.0",
38
38
  "process": "0.11.10",
39
- "read": "^1.0.7",
39
+ "read": "^4.0.0",
40
40
  "semver": "^7.6.2",
41
41
  "sprintf-js": "^1.1.2",
42
42
  "yargs": "17.7.2"
@@ -51,7 +51,7 @@
51
51
  "@commitlint/config-conventional": "19.6.0",
52
52
  "@eslint/eslintrc": "^3.2.0",
53
53
  "@eslint/js": "^9.16.0",
54
- "@octokit/types": "10.0.0",
54
+ "@octokit/types": "13.6.2",
55
55
  "@rollup/plugin-alias": "5.1.1",
56
56
  "@rollup/plugin-json": "6.1.0",
57
57
  "@rollup/plugin-replace": "6.0.2",
@@ -63,8 +63,8 @@
63
63
  "@types/semver": "7.5.8",
64
64
  "@types/sprintf-js": "1.1.4",
65
65
  "@types/yargs": "17.0.33",
66
- "@typescript-eslint/eslint-plugin": "8.18.0",
67
- "@typescript-eslint/parser": "8.18.0",
66
+ "@typescript-eslint/eslint-plugin": "8.19.1",
67
+ "@typescript-eslint/parser": "8.19.1",
68
68
  "@vitest/coverage-v8": "2.1.8",
69
69
  "@vitest/ui": "2.1.8",
70
70
  "dateformat": "5.0.3",