@renovatebot/osv-offline-db 1.4.1 → 1.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.
Files changed (2) hide show
  1. package/dist/lib/db.js +1 -1
  2. package/package.json +3 -3
package/dist/lib/db.js CHANGED
@@ -10,7 +10,7 @@ const nedb_1 = __importDefault(require("@seald-io/nedb"));
10
10
  const ecosystem_1 = require("./ecosystem");
11
11
  const purl_helper_1 = require("./purl-helper");
12
12
  class OsvOfflineDb {
13
- static rootDirectory = path_1.default.join((0, os_1.tmpdir)(), 'osv-offline');
13
+ static rootDirectory = process.env['OSV_OFFLINE_ROOT_DIR'] ?? path_1.default.join((0, os_1.tmpdir)(), 'osv-offline');
14
14
  db = {};
15
15
  // eslint-disable-next-line @typescript-eslint/no-empty-function
16
16
  constructor() { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renovatebot/osv-offline-db",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",
@@ -12,12 +12,12 @@
12
12
  "url": "https://github.com/renovatebot/osv-offline.git"
13
13
  },
14
14
  "dependencies": {
15
- "@seald-io/nedb": "^4.0.3"
15
+ "@seald-io/nedb": "^4.0.4"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@tsconfig/node18": "18.2.2",
19
19
  "@tsconfig/strictest": "1.0.2",
20
- "@types/node": "20.10.4",
20
+ "@types/node": "20.10.8",
21
21
  "prettier": "2.8.8",
22
22
  "ts-node": "10.9.2",
23
23
  "typescript": "5.1.3"