@@ -37,27 +37,34 @@ export function updateChangeStatusFromDiff(base: Graph, head: Graph): void {
3737function updateNodeChangeStatus ( baseNodes : Node [ ] , headNodes : Node [ ] ) : void {
3838 // Mark nodes as deleted if they exist in base but not in head
3939 baseNodes . forEach ( baseNode => {
40- const existsInHead = headNodes . some ( headNode => isSameNode ( baseNode , headNode ) ) ;
40+ const existsInHead = headNodes . some ( headNode =>
41+ isSameNode ( baseNode , headNode ) ,
42+ ) ;
4143 if ( ! existsInHead ) {
4244 baseNode . changeStatus = 'deleted' ;
4345 }
4446 } ) ;
4547
4648 // Mark nodes as created if they exist in head but not in base
4749 headNodes . forEach ( headNode => {
48- const existsInBase = baseNodes . some ( baseNode => isSameNode ( headNode , baseNode ) ) ;
50+ const existsInBase = baseNodes . some ( baseNode =>
51+ isSameNode ( headNode , baseNode ) ,
52+ ) ;
4953 if ( ! existsInBase ) {
5054 headNode . changeStatus = 'created' ;
5155 }
5256 } ) ;
5357}
5458
55- function updateRelationChangeStatus ( baseRelations : Relation [ ] , headRelations : Relation [ ] ) : void {
59+ function updateRelationChangeStatus (
60+ baseRelations : Relation [ ] ,
61+ headRelations : Relation [ ] ,
62+ ) : void {
5663 // Mark relations as deleted if they exist in base but not in head
5764 baseRelations . forEach ( baseRelation => {
5865 if ( baseRelation . kind === 'depends_on' ) {
59- const existsInHead = headRelations . some ( headRelation =>
60- isSameRelation ( baseRelation , headRelation )
66+ const existsInHead = headRelations . some ( headRelation =>
67+ isSameRelation ( baseRelation , headRelation ) ,
6168 ) ;
6269 if ( ! existsInHead ) {
6370 baseRelation . changeStatus = 'deleted' ;
@@ -68,8 +75,8 @@ function updateRelationChangeStatus(baseRelations: Relation[], headRelations: Re
6875 // Mark relations as created if they exist in head but not in base
6976 headRelations . forEach ( headRelation => {
7077 if ( headRelation . kind === 'depends_on' ) {
71- const existsInBase = baseRelations . some ( baseRelation =>
72- isSameRelation ( headRelation , baseRelation )
78+ const existsInBase = baseRelations . some ( baseRelation =>
79+ isSameRelation ( headRelation , baseRelation ) ,
7380 ) ;
7481 if ( ! existsInBase ) {
7582 headRelation . changeStatus = 'created' ;
0 commit comments