@renovatebot/osv-offline 1.2.4 → 1.2.5
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/download.js +1 -1
- package/dist/lib/osv-offline.js +1 -0
- package/package.json +6 -6
package/dist/lib/download.js
CHANGED
|
@@ -33,7 +33,7 @@ async function tryDownloadDb() {
|
|
|
33
33
|
luxon_1.DateTime.utc().diff(luxon_1.DateTime.fromJSDate(stats.mtime)).as('days') < 1) {
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
36
|
-
const octokitOptions = { auth: process.env
|
|
36
|
+
const octokitOptions = { auth: process.env['GITHUB_COM_TOKEN'], request: { fetch: node_fetch_1.default } };
|
|
37
37
|
let latestRelease = null;
|
|
38
38
|
try {
|
|
39
39
|
latestRelease = (await new rest_1.Octokit(octokitOptions).repos.listReleases({
|
package/dist/lib/osv-offline.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.OsvOffline = void 0;
|
|
|
4
4
|
const osv_offline_db_1 = require("@renovatebot/osv-offline-db");
|
|
5
5
|
const download_1 = require("./download");
|
|
6
6
|
class OsvOffline {
|
|
7
|
+
osvOfflineDb;
|
|
7
8
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
8
9
|
constructor() { }
|
|
9
10
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renovatebot/osv-offline",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@renovatebot/osv-offline-db": "1.3.
|
|
11
|
+
"@renovatebot/osv-offline-db": "1.3.3",
|
|
12
12
|
"@octokit/rest": "^19.0.7",
|
|
13
13
|
"adm-zip": "~0.5.10",
|
|
14
14
|
"fs-extra": "^11.1.1",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/adm-zip": "0.5.0",
|
|
21
21
|
"@types/fs-extra": "11.0.1",
|
|
22
|
-
"@types/luxon": "3.
|
|
23
|
-
"@types/node": "18.
|
|
22
|
+
"@types/luxon": "3.3.0",
|
|
23
|
+
"@types/node": "18.16.4",
|
|
24
24
|
"@types/node-fetch": "2.6.3",
|
|
25
|
-
"prettier": "2.8.
|
|
25
|
+
"prettier": "2.8.8",
|
|
26
26
|
"ts-node": "10.9.1",
|
|
27
|
-
"typescript": "5.0.
|
|
27
|
+
"typescript": "5.0.4"
|
|
28
28
|
}
|
|
29
29
|
}
|