@renovatebot/osv-offline 1.0.11 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # osv-offline
2
2
 
3
3
  [![Package version](https://img.shields.io/npm/v/@renovatebot/osv-offline?style=for-the-badge)](https://www.npmjs.com/package/@renovatebot/osv-offline)
4
- [![Build status](https://img.shields.io/github/workflow/status/jamiemagee/osv-offline/Build?style=for-the-badge)](https://github.com/jamiemagee/osv-offline/actions/workflows/build.yml)
4
+ [![Build status](https://img.shields.io/github/actions/workflow/status/renovatebot/osv-offline/build.yml?branch=main&style=for-the-badge)](https://github.com/renovatebot/osv-offline/actions/workflows/build.yml)
5
5
  [![MIT license](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)](./LICENSE)
6
6
  ![Stability experimental](https://img.shields.io/badge/stability-experimental-orange.svg?style=for-the-badge)
7
7
 
@@ -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.assets.find((asset) => asset.name === 'osv-offline.zip');
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.0.11",
3
+ "version": "1.1.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",
@@ -8,19 +8,19 @@
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@renovatebot/osv-offline-db": "1.0.1",
12
- "@octokit/rest": "19.0.5",
13
- "adm-zip": "0.5.10",
14
- "fs-extra": "10.1.0",
15
- "got": "11.8.6",
16
- "luxon": "3.2.1"
11
+ "@renovatebot/osv-offline-db": "1.2.0",
12
+ "@octokit/rest": "^19.0.5",
13
+ "adm-zip": "~0.5.10",
14
+ "fs-extra": "^10.1.0",
15
+ "got": "^11.8.6",
16
+ "luxon": "^3.2.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/adm-zip": "0.5.0",
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.1",
23
+ "prettier": "2.8.3",
24
24
  "ts-node": "10.9.1",
25
25
  "typescript": "4.9.4"
26
26
  }