@renovatebot/osv-offline-db 1.3.3 → 1.4.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
@@ -3,7 +3,6 @@
3
3
  [![Package version](https://img.shields.io/npm/v/@renovatebot/osv-offline-db?style=for-the-badge)](https://www.npmjs.com/package/@renovatebot/osv-offline-db)
4
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
- ![Stability experimental](https://img.shields.io/badge/stability-experimental-orange.svg?style=for-the-badge)
7
6
 
8
7
  ## License
9
8
 
@@ -1,2 +1,2 @@
1
- export declare const ecosystems: readonly ["crates.io", "Go", "Hex", "Maven", "npm", "NuGet", "Packagist", "PyPI", "RubyGems"];
1
+ export declare const ecosystems: readonly ["crates.io", "Go", "Hex", "Maven", "npm", "NuGet", "Packagist", "Pub", "PyPI", "RubyGems"];
2
2
  export type Ecosystem = typeof ecosystems[number];
@@ -10,6 +10,7 @@ exports.ecosystems = [
10
10
  'npm',
11
11
  'NuGet',
12
12
  'Packagist',
13
+ 'Pub',
13
14
  'PyPI',
14
15
  'RubyGems',
15
16
  ];
package/dist/lib/osv.d.ts CHANGED
@@ -65,5 +65,7 @@ export interface Reference {
65
65
  export interface Credit {
66
66
  name: string;
67
67
  contact?: string[];
68
+ type: CreditType;
68
69
  }
69
- export type ReferenceType = 'ADVISORY' | 'ARTICLE' | 'REPORT' | 'FIX' | 'GIT' | 'PACKAGE' | 'EVIDENCE' | 'WEB';
70
+ export type ReferenceType = 'ADVISORY' | 'ARTICLE' | 'DETECTION' | 'DISCUSSION' | 'REPORT' | 'FIX' | 'GIT' | 'INTRODUCED' | 'PACKAGE' | 'EVIDENCE' | 'WEB';
71
+ export type CreditType = 'FINDER' | 'REPORTER' | 'ANALYST' | 'COORDINATOR' | 'REMEDIATION_DEVELOPER' | 'REMEDIATION_REVIEWER' | 'REMEDIATION_VERIFIER' | 'TOOL' | 'SPONSOR' | 'OTHER';
@@ -11,6 +11,7 @@ const PURL_ECOSYSTEMS = {
11
11
  npm: 'npm',
12
12
  Packagist: 'composer',
13
13
  PyPI: 'pypi',
14
+ Pub: 'pub',
14
15
  RubyGems: 'gem',
15
16
  };
16
17
  function urlEncode(packageName) {
package/package.json CHANGED
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "name": "@renovatebot/osv-offline-db",
3
- "version": "1.3.3",
3
+ "version": "1.4.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/renovatebot/osv-offline.git"
13
+ },
10
14
  "dependencies": {
11
- "@seald-io/nedb": "^4.0.2"
15
+ "@seald-io/nedb": "^4.0.3"
12
16
  },
13
17
  "devDependencies": {
14
- "@tsconfig/node18": "2.0.0",
18
+ "@tsconfig/node18": "18.2.2",
15
19
  "@tsconfig/strictest": "1.0.2",
16
- "@types/node": "18.16.4",
20
+ "@types/node": "20.10.4",
17
21
  "prettier": "2.8.8",
18
- "ts-node": "10.9.1",
19
- "typescript": "5.0.4"
22
+ "ts-node": "10.9.2",
23
+ "typescript": "5.1.3"
20
24
  }
21
25
  }