@renovatebot/osv-offline-db 2.3.0 → 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.
Files changed (2) hide show
  1. package/dist/lib/db.js +2 -1
  2. package/package.json +1 -1
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renovatebot/osv-offline-db",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",