UNPKG

@nodesecure/vulnera

Version:

NodeSecure vulnerabilities strategies

9 lines 332 B
// Import Internal Dependencies import { STANDARD_VULN_MAPPERS } from "./mappers.js"; export function standardVulnerabilityMapper(strategy, vulnerabilities) { if (!(strategy in STANDARD_VULN_MAPPERS)) { return []; } return vulnerabilities.map(STANDARD_VULN_MAPPERS[strategy]); } //# sourceMappingURL=index.js.map