@renovatebot/osv-offline-db 1.3.2 → 1.3.3

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/db.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Ecosystem } from './ecosystem';
2
- import { Osv } from '..';
2
+ import type { Osv } from '..';
3
3
  export declare class OsvOfflineDb {
4
4
  static readonly rootDirectory: string;
5
5
  private db;
package/dist/lib/db.js CHANGED
@@ -10,10 +10,10 @@ 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');
14
+ db = {};
13
15
  // eslint-disable-next-line @typescript-eslint/no-empty-function
14
- constructor() {
15
- this.db = {};
16
- }
16
+ constructor() { }
17
17
  async initialize() {
18
18
  for (const ecosystem of ecosystem_1.ecosystems) {
19
19
  this.db[ecosystem] = new nedb_1.default({
@@ -42,4 +42,3 @@ class OsvOfflineDb {
42
42
  }
43
43
  }
44
44
  exports.OsvOfflineDb = OsvOfflineDb;
45
- OsvOfflineDb.rootDirectory = path_1.default.join((0, os_1.tmpdir)(), 'osv-offline');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renovatebot/osv-offline-db",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",
@@ -8,13 +8,14 @@
8
8
  "access": "public"
9
9
  },
10
10
  "dependencies": {
11
- "@seald-io/nedb": "^4.0.1"
11
+ "@seald-io/nedb": "^4.0.2"
12
12
  },
13
13
  "devDependencies": {
14
- "@tsconfig/node14": "1.0.3",
15
- "@types/node": "18.13.0",
16
- "prettier": "2.8.4",
14
+ "@tsconfig/node18": "2.0.0",
15
+ "@tsconfig/strictest": "1.0.2",
16
+ "@types/node": "18.16.4",
17
+ "prettier": "2.8.8",
17
18
  "ts-node": "10.9.1",
18
- "typescript": "4.9.5"
19
+ "typescript": "5.0.4"
19
20
  }
20
21
  }