MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / addToGroup

Function addToGroup

apps/site/next-data/generators/vulnerabilities.mjs:24–27  ·  view source on GitHub ↗
(majorVersion, vulnerability)

Source from the content-addressed store, hash-verified

22
23 // Helper function to add vulnerability to a major version group
24 const addToGroup = (majorVersion, vulnerability) => {
25 grouped[majorVersion] ??= [];
26 grouped[majorVersion].push(vulnerability);
27 };
28
29 // Helper function to process version patterns
30 const processVersion = (version, vulnerability) => {

Callers 1

processVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected