@capraconsulting/cals-cli 3.12.9 → 3.13.0

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
@@ -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.9";
29
+ var version = "3.13.0";
30
30
  var engines = {
31
31
  node: ">=22.14.0"
32
32
  };
@@ -1082,14 +1082,14 @@ class SnykService {
1082
1082
  throw new Error("Missing token for Snyk");
1083
1083
  }
1084
1084
  let backportedProjects = [];
1085
- const snykRestApiVersion = "2023-08-04";
1086
- let nextUrl = `/orgs/${encodeURIComponent(snykAccountId)}/projects?version=${snykRestApiVersion}&meta.latest_dependency_total=true&meta.latest_issue_counts=true&limit=100`;
1085
+ const snykRestApiVersion = "2025-11-05";
1086
+ let nextUrl = `/rest/orgs/${encodeURIComponent(snykAccountId)}/projects?version=${snykRestApiVersion}&meta.latest_dependency_total=true&meta.latest_issue_counts=true&limit=100`;
1087
1087
  /* The Snyk REST API only allows us to retrieve 100 projects at a time.
1088
1088
  * The "links.next" value in the response gives us a pointer to the next 100 results.
1089
1089
  * We continue calling the Snyk API and retrieving more projects until links.next is null
1090
1090
  * */
1091
1091
  while (nextUrl) {
1092
- const response = await fetch(`https://api.snyk.io/rest${nextUrl}`, {
1092
+ const response = await fetch(`https://api.snyk.io${nextUrl}`, {
1093
1093
  method: "GET",
1094
1094
  headers: {
1095
1095
  Accept: "application/json",
@@ -3309,7 +3309,7 @@ async function main() {
3309
3309
  process$2.exit(1);
3310
3310
  }
3311
3311
  await yargs(hideBin(process$2.argv))
3312
- .usage(`cals-cli v${version} (build: ${"2025-11-17T09:04:41+0000"})`)
3312
+ .usage(`cals-cli v${version} (build: ${"2026-01-12T15:34:12+0000"})`)
3313
3313
  .scriptName("cals")
3314
3314
  .locale("en")
3315
3315
  .help("help")
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.9";
24
+ var version = "3.13.0";
25
25
 
26
26
  class CacheProvider {
27
27
  constructor(config) {
@@ -1170,14 +1170,14 @@ class SnykService {
1170
1170
  throw new Error("Missing token for Snyk");
1171
1171
  }
1172
1172
  let backportedProjects = [];
1173
- const snykRestApiVersion = "2023-08-04";
1174
- let nextUrl = `/orgs/${encodeURIComponent(snykAccountId)}/projects?version=${snykRestApiVersion}&meta.latest_dependency_total=true&meta.latest_issue_counts=true&limit=100`;
1173
+ const snykRestApiVersion = "2025-11-05";
1174
+ let nextUrl = `/rest/orgs/${encodeURIComponent(snykAccountId)}/projects?version=${snykRestApiVersion}&meta.latest_dependency_total=true&meta.latest_issue_counts=true&limit=100`;
1175
1175
  /* The Snyk REST API only allows us to retrieve 100 projects at a time.
1176
1176
  * The "links.next" value in the response gives us a pointer to the next 100 results.
1177
1177
  * We continue calling the Snyk API and retrieving more projects until links.next is null
1178
1178
  * */
1179
1179
  while (nextUrl) {
1180
- const response = await fetch(`https://api.snyk.io/rest${nextUrl}`, {
1180
+ const response = await fetch(`https://api.snyk.io${nextUrl}`, {
1181
1181
  method: "GET",
1182
1182
  headers: {
1183
1183
  Accept: "application/json",
package/lib/index.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.9";
24
+ var version = "3.13.0";
25
25
 
26
26
  class CacheProvider {
27
27
  constructor(config) {
@@ -1170,14 +1170,14 @@ class SnykService {
1170
1170
  throw new Error("Missing token for Snyk");
1171
1171
  }
1172
1172
  let backportedProjects = [];
1173
- const snykRestApiVersion = "2023-08-04";
1174
- let nextUrl = `/orgs/${encodeURIComponent(snykAccountId)}/projects?version=${snykRestApiVersion}&meta.latest_dependency_total=true&meta.latest_issue_counts=true&limit=100`;
1173
+ const snykRestApiVersion = "2025-11-05";
1174
+ let nextUrl = `/rest/orgs/${encodeURIComponent(snykAccountId)}/projects?version=${snykRestApiVersion}&meta.latest_dependency_total=true&meta.latest_issue_counts=true&limit=100`;
1175
1175
  /* The Snyk REST API only allows us to retrieve 100 projects at a time.
1176
1176
  * The "links.next" value in the response gives us a pointer to the next 100 results.
1177
1177
  * We continue calling the Snyk API and retrieving more projects until links.next is null
1178
1178
  * */
1179
1179
  while (nextUrl) {
1180
- const response = await fetch(`https://api.snyk.io/rest${nextUrl}`, {
1180
+ const response = await fetch(`https://api.snyk.io${nextUrl}`, {
1181
1181
  method: "GET",
1182
1182
  headers: {
1183
1183
  Accept: "application/json",
@@ -18,7 +18,6 @@ export interface RestAPIProject {
18
18
  };
19
19
  };
20
20
  };
21
- status: boolean;
22
21
  meta: {
23
22
  latest_dependency_total: {
24
23
  updated_at: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capraconsulting/cals-cli",
3
- "version": "3.12.9",
3
+ "version": "3.13.0",
4
4
  "description": "CLI for repeatable tasks in CALS",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -24,7 +24,7 @@
24
24
  "cals": "lib/cals-cli.mjs"
25
25
  },
26
26
  "dependencies": {
27
- "@octokit/rest": "^22.0.0",
27
+ "@octokit/rest": "^22.0.1",
28
28
  "@types/dateformat": "5.0.3",
29
29
  "ajv": "^8.17.1",
30
30
  "cachedir": "^2.4.0",
@@ -34,42 +34,41 @@
34
34
  "js-yaml": "^4.1.1",
35
35
  "keytar": "^7.9.0",
36
36
  "node-fetch": "^3.3.2",
37
- "p-limit": "^7.1.1",
38
- "p-map": "^7.0.3",
37
+ "p-limit": "^7.2.0",
38
+ "p-map": "^7.0.4",
39
39
  "process": "0.11.10",
40
- "read": "^4.1.0",
41
- "semver": "^7.7.2",
40
+ "read": "^5.0.1",
41
+ "semver": "^7.7.3",
42
42
  "sprintf-js": "^1.1.3",
43
43
  "yargs": "18.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@biomejs/biome": "2.3.5",
47
- "@commitlint/cli": "20.1.0",
48
- "@commitlint/config-conventional": "20.0.0",
49
- "@octokit/types": "15.0.2",
50
- "@rollup/plugin-alias": "5.1.1",
46
+ "@biomejs/biome": "2.3.11",
47
+ "@commitlint/cli": "20.3.1",
48
+ "@commitlint/config-conventional": "20.3.1",
49
+ "@octokit/types": "16.0.0",
50
+ "@rollup/plugin-alias": "6.0.0",
51
51
  "@rollup/plugin-json": "6.1.0",
52
52
  "@rollup/plugin-replace": "6.0.3",
53
53
  "@types/js-yaml": "4.0.9",
54
54
  "@types/lodash-es": "4.17.12",
55
- "@types/node": "24.10.1",
55
+ "@types/node": "24.10.4",
56
56
  "@types/node-fetch": "2.6.13",
57
- "@types/read": "3.0.0",
58
57
  "@types/semver": "7.7.1",
59
58
  "@types/sprintf-js": "1.1.4",
60
- "@types/yargs": "17.0.34",
61
- "@vitest/coverage-v8": "3.2.4",
62
- "@vitest/ui": "3.2.4",
59
+ "@types/yargs": "17.0.35",
60
+ "@vitest/coverage-v8": "4.0.16",
61
+ "@vitest/ui": "4.0.16",
63
62
  "dateformat": "5.0.3",
64
63
  "husky": "9.1.7",
65
- "npm-check-updates": "19.1.2",
66
- "rollup": "4.53.2",
64
+ "npm-check-updates": "19.3.1",
65
+ "rollup": "4.55.1",
67
66
  "rollup-plugin-typescript2": "0.36.0",
68
67
  "semantic-release": "25.0.2",
69
- "tsx": "4.20.6",
68
+ "tsx": "4.21.0",
70
69
  "typescript": "5.9.3",
71
- "typescript-json-schema": "0.65.1",
72
- "vitest": "3.2.4"
70
+ "typescript-json-schema": "0.67.1",
71
+ "vitest": "4.0.16"
73
72
  },
74
73
  "files": [
75
74
  "lib"