@renovatebot/osv-offline-db 1.3.2 → 1.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.d.ts +1 -1
- package/dist/lib/db.js +3 -4
- package/dist/lib/ecosystem.d.ts +1 -1
- package/dist/lib/ecosystem.js +1 -0
- package/dist/lib/osv.d.ts +3 -1
- package/dist/lib/purl-helper.js +1 -0
- package/package.json +7 -6
package/dist/lib/db.d.ts
CHANGED
package/dist/lib/db.js
CHANGED
|
@@ -10,10 +10,10 @@ 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 = path_1.default.join((0, os_1.tmpdir)(), 'osv-offline');
|
|
14
|
+
db = {};
|
|
13
15
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
14
|
-
constructor() {
|
|
15
|
-
this.db = {};
|
|
16
|
-
}
|
|
16
|
+
constructor() { }
|
|
17
17
|
async initialize() {
|
|
18
18
|
for (const ecosystem of ecosystem_1.ecosystems) {
|
|
19
19
|
this.db[ecosystem] = new nedb_1.default({
|
|
@@ -42,4 +42,3 @@ class OsvOfflineDb {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
exports.OsvOfflineDb = OsvOfflineDb;
|
|
45
|
-
OsvOfflineDb.rootDirectory = path_1.default.join((0, os_1.tmpdir)(), 'osv-offline');
|
package/dist/lib/ecosystem.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ecosystems: readonly ["crates.io", "Go", "Hex", "Maven", "npm", "NuGet", "Packagist", "PyPI", "RubyGems"];
|
|
1
|
+
export declare const ecosystems: readonly ["crates.io", "Go", "Hex", "Maven", "npm", "NuGet", "Packagist", "Pub", "PyPI", "RubyGems"];
|
|
2
2
|
export type Ecosystem = typeof ecosystems[number];
|
package/dist/lib/ecosystem.js
CHANGED
package/dist/lib/osv.d.ts
CHANGED
|
@@ -65,5 +65,7 @@ export interface Reference {
|
|
|
65
65
|
export interface Credit {
|
|
66
66
|
name: string;
|
|
67
67
|
contact?: string[];
|
|
68
|
+
type: CreditType;
|
|
68
69
|
}
|
|
69
|
-
export type ReferenceType = 'ADVISORY' | 'ARTICLE' | 'REPORT' | 'FIX' | 'GIT' | 'PACKAGE' | 'EVIDENCE' | 'WEB';
|
|
70
|
+
export type ReferenceType = 'ADVISORY' | 'ARTICLE' | 'DETECTION' | 'DISCUSSION' | 'REPORT' | 'FIX' | 'GIT' | 'INTRODUCED' | 'PACKAGE' | 'EVIDENCE' | 'WEB';
|
|
71
|
+
export type CreditType = 'FINDER' | 'REPORTER' | 'ANALYST' | 'COORDINATOR' | 'REMEDIATION_DEVELOPER' | 'REMEDIATION_REVIEWER' | 'REMEDIATION_VERIFIER' | 'TOOL' | 'SPONSOR' | 'OTHER';
|
package/dist/lib/purl-helper.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renovatebot/osv-offline-db",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@seald-io/nedb": "^4.0.
|
|
11
|
+
"@seald-io/nedb": "^4.0.2"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@tsconfig/
|
|
15
|
-
"@
|
|
16
|
-
"
|
|
14
|
+
"@tsconfig/node18": "2.0.0",
|
|
15
|
+
"@tsconfig/strictest": "1.0.2",
|
|
16
|
+
"@types/node": "18.16.6",
|
|
17
|
+
"prettier": "2.8.8",
|
|
17
18
|
"ts-node": "10.9.1",
|
|
18
|
-
"typescript": "
|
|
19
|
+
"typescript": "5.0.4"
|
|
19
20
|
}
|
|
20
21
|
}
|