@@ -27,26 +27,26 @@ function logState(next: StoreState, prev: StoreState) {
2727 const delta = diff ( prev , next ) ;
2828 const nDiffs = delta . length ;
2929 console . groupCollapsed (
30- `state changed (${ nDiffs } difference${ nDiffs === 1 ? "" : "s" } )` ,
30+ `dashi: state changed (${ nDiffs } difference${ nDiffs === 1 ? "" : "s" } )` ,
3131 ) ;
3232 delta . forEach ( logDiff ) ;
33- console . debug ( "Details :" , { prev, next, delta } ) ;
33+ console . debug ( "dashi: change details :" , { prev, next, delta } ) ;
3434 console . groupEnd ( ) ;
3535}
3636
3737function logDiff ( v : Difference , index : number ) {
3838 const wherePart = `%c${ index + 1 } %c${ v . type } %c${ v . path . join ( "." ) } ` ;
3939 if ( v . type === "CREATE" ) {
40- console . log ( wherePart , indexStyle , typeStyle , pathStyle , {
40+ console . debug ( "dashi:" , wherePart , indexStyle , typeStyle , pathStyle , {
4141 value : v . value ,
4242 } ) ;
4343 } else if ( v . type === "CHANGE" ) {
44- console . log ( wherePart , indexStyle , typeStyle , pathStyle , {
44+ console . debug ( "dashi:" , wherePart , indexStyle , typeStyle , pathStyle , {
4545 value : v . value ,
4646 oldValue : v . oldValue ,
4747 } ) ;
4848 } else if ( v . type === "REMOVE" ) {
49- console . log ( wherePart , indexStyle , typeStyle , pathStyle , {
49+ console . debug ( "dashi:" , wherePart , indexStyle , typeStyle , pathStyle , {
5050 oldValue : v . oldValue ,
5151 } ) ;
5252 }
0 commit comments