@renovatebot/osv-offline-db 2.2.1 → 2.4.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/dist/lib/db.js CHANGED
@@ -147,7 +147,8 @@ class OsvOfflineDb {
147
147
  return [];
148
148
  const targetPurl = (0, purl_helper_1.packageToPurl)(ecosystem, packageName);
149
149
  return advisories.filter((vuln) => vuln.affected?.some((a) => a.package?.name === packageName &&
150
- a.package.ecosystem === ecosystem &&
150
+ (a.package.ecosystem === ecosystem ||
151
+ a.package.ecosystem.startsWith(`${ecosystem}:`)) &&
151
152
  a.package.purl === targetPurl));
152
153
  }
153
154
  [Symbol.dispose]() {
package/dist/lib/osv.d.ts CHANGED
@@ -11,6 +11,7 @@ export interface Vulnerability {
11
11
  withdrawn?: string;
12
12
  aliases?: string[];
13
13
  related?: string[];
14
+ upstream?: string[];
14
15
  summary?: string;
15
16
  details?: string;
16
17
  severity?: Severity[];
@@ -31,7 +32,7 @@ export interface Severity {
31
32
  type: SeverityType;
32
33
  score: string;
33
34
  }
34
- export type SeverityType = 'CVSS_V4' | 'CVSS_V3' | 'CVSS_V2';
35
+ export type SeverityType = 'CVSS_V4' | 'CVSS_V3' | 'CVSS_V2' | 'Ubuntu';
35
36
  export interface Package {
36
37
  ecosystem: string;
37
38
  name: string;
@@ -57,7 +58,7 @@ export interface Reference {
57
58
  export interface Credit {
58
59
  name: string;
59
60
  contact?: string[];
60
- type: CreditType;
61
+ type?: CreditType;
61
62
  }
62
63
  export type ReferenceType = 'ADVISORY' | 'ARTICLE' | 'DETECTION' | 'DISCUSSION' | 'REPORT' | 'FIX' | 'GIT' | 'INTRODUCED' | 'PACKAGE' | 'EVIDENCE' | 'WEB';
63
64
  export type CreditType = 'FINDER' | 'REPORTER' | 'ANALYST' | 'COORDINATOR' | 'REMEDIATION_DEVELOPER' | 'REMEDIATION_REVIEWER' | 'REMEDIATION_VERIFIER' | 'TOOL' | 'SPONSOR' | 'OTHER';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renovatebot/osv-offline-db",
3
- "version": "2.2.1",
3
+ "version": "2.4.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",
@@ -18,9 +18,9 @@
18
18
  "devDependencies": {
19
19
  "@tsconfig/node22": "22.0.5",
20
20
  "@tsconfig/strictest": "2.0.8",
21
- "@types/debug": "4.1.12",
21
+ "@types/debug": "4.1.13",
22
22
  "@types/fs-extra": "11.0.4",
23
- "@types/node": "22.19.13",
23
+ "@types/node": "22.19.15",
24
24
  "fs-extra": "11.3.4"
25
25
  },
26
26
  "engines": {