MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / changed

Function changed

libatomic/src/review/viewer.js:93–98  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

91 return 'Not comparable';
92 }
93 function changed(node) {
94 if (!node) return false;
95 const value = node.properties.observation;
96 return typeof node.properties.delta === 'number' ? node.properties.delta !== 0 :
97 (isAbsent(value.before) && value.after.status === 'measured') || (isAbsent(value.after) && value.before.status === 'measured');
98 }
99
100 function showCard(id, focus = false) {
101 if (state.pass === 'summary') activate(riskRules.has(id) ? 'risk' : 'slop');

Callers 1

eligibleFunction · 0.70

Calls 1

isAbsentFunction · 0.85

Tested by

no test coverage detected