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

Function compare

apps/site/scripts/compare-size/index.mjs:144–152  ·  view source on GitHub ↗
({ core })

Source from the content-addressed store, hash-verified

142}
143
144export async function compare({ core }) {
145 const [oldAssets, newAssets] = await Promise.all([
146 readFile(process.env.BASE_STATS_PATH).then(f => JSON.parse(f)),
147 readFile(process.env.HEAD_STATS_PATH).then(f => JSON.parse(f)),
148 ]);
149
150 const comment = reportDiff(oldAssets, newAssets);
151 core.setOutput('comment', comment);
152}

Callers

nothing calls this directly

Calls 1

reportDiffFunction · 0.85

Tested by

no test coverage detected