@renovatebot/osv-offline 1.1.0 → 1.1.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/README.md +1 -1
- package/dist/lib/download.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# osv-offline
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@renovatebot/osv-offline)
|
|
4
|
-
[](https://github.com/renovatebot/osv-offline/actions/workflows/build.yml)
|
|
5
5
|
[](./LICENSE)
|
|
6
6
|

|
|
7
7
|
|
package/dist/lib/download.js
CHANGED
|
@@ -35,7 +35,7 @@ async function tryDownloadDb() {
|
|
|
35
35
|
const latestRelease = (await new rest_1.Octokit().repos.listReleases({
|
|
36
36
|
...baseParameters,
|
|
37
37
|
})).data[0];
|
|
38
|
-
const asset = latestRelease
|
|
38
|
+
const asset = latestRelease?.assets.find((asset) => asset.name === 'osv-offline.zip');
|
|
39
39
|
// if local database is the same size as remote database, don't download again
|
|
40
40
|
if (asset?.size === stats?.size) {
|
|
41
41
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renovatebot/osv-offline",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
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.
|
|
11
|
+
"@renovatebot/osv-offline-db": "1.2.0",
|
|
12
12
|
"@octokit/rest": "^19.0.5",
|
|
13
13
|
"adm-zip": "~0.5.10",
|
|
14
14
|
"fs-extra": "^10.1.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@types/fs-extra": "9.0.13",
|
|
21
21
|
"@types/luxon": "3.2.0",
|
|
22
22
|
"@types/node": "18.11.18",
|
|
23
|
-
"prettier": "2.8.
|
|
23
|
+
"prettier": "2.8.3",
|
|
24
24
|
"ts-node": "10.9.1",
|
|
25
25
|
"typescript": "4.9.4"
|
|
26
26
|
}
|