@code-pushup/js-packages-plugin
Version:
Code PushUp plugin for JavaScript packages 🛡️
37 lines (36 loc) • 1.04 kB
TypeScript
import type { PackageAuditLevel } from '../../config.js';
import type { AuditSummary } from '../../runner/audit/types.js';
import type { DependencyGroupLong } from '../../runner/outdated/types.js';
export type NpmAdvisory = {
title: string;
url: string;
};
export type NpmFixInformation = {
name: string;
version: string;
isSemVerMajor: boolean;
};
export type NpmVulnerability = {
name: string;
severity: PackageAuditLevel;
isDirect: boolean;
effects: string[];
via: NpmAdvisory[] | string[];
range: string;
fixAvailable: boolean | NpmFixInformation;
};
export type NpmVulnerabilities = Record<string, NpmVulnerability>;
export type NpmAuditResultJson = {
vulnerabilities: NpmVulnerabilities;
metadata: {
vulnerabilities: AuditSummary;
};
};
export type NpmVersionOverview = {
current?: string;
wanted: string;
latest: string;
type: DependencyGroupLong;
homepage?: string;
};
export type NpmOutdatedResultJson = Record<string, NpmVersionOverview>;