@renovatebot/osv-offline 1.3.12 → 1.4.1
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 +3 -0
- package/package.json +3 -3
package/dist/lib/download.js
CHANGED
|
@@ -22,6 +22,9 @@ const baseParameters = {
|
|
|
22
22
|
};
|
|
23
23
|
async function tryDownloadDb() {
|
|
24
24
|
await fs_extra_1.default.ensureDir(osv_offline_db_1.OsvOfflineDb.rootDirectory);
|
|
25
|
+
if (process.env['OSV_OFFLINE_DISABLE_DOWNLOAD']?.toLowerCase() === 'true') {
|
|
26
|
+
return (0, types_1.success)();
|
|
27
|
+
}
|
|
25
28
|
// if local database exists and is less than a day old, don't do any network requests
|
|
26
29
|
let stats;
|
|
27
30
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renovatebot/osv-offline",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"url": "https://github.com/renovatebot/osv-offline.git"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@renovatebot/osv-offline-db": "1.5.
|
|
15
|
+
"@renovatebot/osv-offline-db": "1.5.1",
|
|
16
16
|
"@octokit/rest": "^20.0.2",
|
|
17
17
|
"adm-zip": "~0.5.10",
|
|
18
18
|
"fs-extra": "^11.2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@types/adm-zip": "0.5.5",
|
|
25
25
|
"@types/fs-extra": "11.0.4",
|
|
26
26
|
"@types/luxon": "3.4.0",
|
|
27
|
-
"@types/node": "20.10.
|
|
27
|
+
"@types/node": "20.10.8",
|
|
28
28
|
"@types/node-fetch": "2.6.10",
|
|
29
29
|
"prettier": "2.8.8",
|
|
30
30
|
"ts-node": "10.9.2",
|