@renovatebot/osv-offline 2.5.0 → 2.5.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.
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.tryDownloadDb = tryDownloadDb;
7
7
  const fs_extra_1 = __importDefault(require("fs-extra"));
8
- const got_1 = require("got");
8
+ const got_1 = __importDefault(require("got"));
9
9
  const promises_1 = require("node:stream/promises");
10
10
  const osv_offline_db_1 = require("@renovatebot/osv-offline-db");
11
11
  const path_1 = __importDefault(require("path"));
@@ -38,7 +38,7 @@ async function tryDownloadDb() {
38
38
  logger('Downloading databases ...');
39
39
  const databaseUrl = process.env.OSV_OFFLINE_DATABASE_URL ??
40
40
  'https://github.com/renovatebot/osv-offline/releases/latest/download/osv-offline.zip';
41
- const stream = got_1.got.stream(databaseUrl);
41
+ const stream = got_1.default.stream(databaseUrl);
42
42
  const zipPath = path_1.default.join(osv_offline_db_1.OsvOfflineDb.rootDirectory, 'osv-offline.zip');
43
43
  const writeStream = fs_extra_1.default.createWriteStream(zipPath);
44
44
  await (0, promises_1.pipeline)(stream, writeStream);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renovatebot/osv-offline",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",
@@ -16,9 +16,9 @@
16
16
  "adm-zip": "~0.5.17",
17
17
  "debug": "^4.4.3",
18
18
  "fs-extra": "^11.3.4",
19
- "got": "^14.6.6",
19
+ "got": "^15.0.3",
20
20
  "luxon": "^3.7.2",
21
- "@renovatebot/osv-offline-db": "2.5.0"
21
+ "@renovatebot/osv-offline-db": "2.5.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/adm-zip": "0.5.8",