@renovatebot/osv-offline-db 1.7.1 → 1.7.3
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 +1 -1
- package/dist/lib/osv.d.ts +4 -12
- package/package.json +4 -3
package/dist/lib/db.js
CHANGED
|
@@ -10,7 +10,7 @@ const nedb_1 = __importDefault(require("@seald-io/nedb"));
|
|
|
10
10
|
const ecosystem_1 = require("./ecosystem");
|
|
11
11
|
const purl_helper_1 = require("./purl-helper");
|
|
12
12
|
class OsvOfflineDb {
|
|
13
|
-
static rootDirectory = process.env
|
|
13
|
+
static rootDirectory = process.env.OSV_OFFLINE_ROOT_DIR ?? path_1.default.join((0, os_1.tmpdir)(), 'osv-offline');
|
|
14
14
|
db = {};
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
16
16
|
constructor() { }
|
package/dist/lib/osv.d.ts
CHANGED
|
@@ -17,21 +17,15 @@ export interface Vulnerability {
|
|
|
17
17
|
affected?: Affected[];
|
|
18
18
|
references?: Reference[];
|
|
19
19
|
credits?: Credit[];
|
|
20
|
-
database_specific?:
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
};
|
|
20
|
+
database_specific?: Record<string, unknown>;
|
|
23
21
|
}
|
|
24
22
|
export interface Affected {
|
|
25
23
|
package?: Package;
|
|
26
24
|
severity?: Severity[];
|
|
27
25
|
ranges?: Range[];
|
|
28
26
|
versions?: string[];
|
|
29
|
-
ecosystem_specific?:
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
database_specific?: {
|
|
33
|
-
[key: string]: unknown;
|
|
34
|
-
};
|
|
27
|
+
ecosystem_specific?: Record<string, unknown>;
|
|
28
|
+
database_specific?: Record<string, unknown>;
|
|
35
29
|
}
|
|
36
30
|
export interface Severity {
|
|
37
31
|
type: SeverityType;
|
|
@@ -47,9 +41,7 @@ export interface Range {
|
|
|
47
41
|
type: RangeType;
|
|
48
42
|
repo?: string;
|
|
49
43
|
events: Event[];
|
|
50
|
-
database_specific?:
|
|
51
|
-
[key: string]: unknown;
|
|
52
|
-
};
|
|
44
|
+
database_specific?: Record<string, unknown>;
|
|
53
45
|
}
|
|
54
46
|
export type RangeType = 'ECOSYSTEM' | 'GIT' | 'SEMVER';
|
|
55
47
|
export interface Event {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renovatebot/osv-offline-db",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
"url": "https://github.com/renovatebot/osv-offline.git"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@seald-io/nedb": "^4.
|
|
16
|
+
"@seald-io/nedb": "^4.1.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@tsconfig/node18": "18.2.4",
|
|
20
|
-
"@tsconfig/strictest": "
|
|
20
|
+
"@tsconfig/strictest": "2.0.5",
|
|
21
21
|
"@types/fs-extra": "11.0.4",
|
|
22
|
+
"@types/node": "18.19.81",
|
|
22
23
|
"fs-extra": "11.3.0"
|
|
23
24
|
},
|
|
24
25
|
"engines": {
|