1- import * as jsondiffpatch from 'jsondiffpatch/with-text-diffs' ;
21import * as consoleFormatter from 'jsondiffpatch/formatters/console' ;
2+ import * as jsondiffpatch from 'jsondiffpatch/with-text-diffs' ;
33
44const instance = jsondiffpatch . create ( {
55 objectHash : function ( obj ) {
@@ -24,7 +24,6 @@ interface Data {
2424 name : string ;
2525 capital ?: string ;
2626 independence ?: Date ;
27- unasur : boolean ;
2827 population ?: number ;
2928 } [ ] ;
3029 spanishName ?: string ;
@@ -85,73 +84,61 @@ const data: Data = {
8584 name : 'Argentina' ,
8685 capital : 'Buenos Aires' ,
8786 independence : new Date ( 1816 , 6 , 9 ) ,
88- unasur : true ,
8987 } ,
9088 {
9189 name : 'Bolivia' ,
9290 capital : 'La Paz' ,
9391 independence : new Date ( 1825 , 7 , 6 ) ,
94- unasur : true ,
9592 } ,
9693 {
9794 name : 'Brazil' ,
9895 capital : 'Brasilia' ,
9996 independence : new Date ( 1822 , 8 , 7 ) ,
100- unasur : true ,
10197 } ,
10298 {
10399 name : 'Chile' ,
104100 capital : 'Santiago' ,
105101 independence : new Date ( 1818 , 1 , 12 ) ,
106- unasur : true ,
107102 } ,
108103 {
109104 name : 'Colombia' ,
110105 capital : 'Bogotá' ,
111106 independence : new Date ( 1810 , 6 , 20 ) ,
112- unasur : true ,
113107 } ,
114108 {
115109 name : 'Ecuador' ,
116110 capital : 'Quito' ,
117111 independence : new Date ( 1809 , 7 , 10 ) ,
118- unasur : true ,
119112 } ,
120113 {
121114 name : 'Guyana' ,
122115 capital : 'Georgetown' ,
123116 independence : new Date ( 1966 , 4 , 26 ) ,
124- unasur : true ,
125117 } ,
126118 {
127119 name : 'Paraguay' ,
128120 capital : 'Asunción' ,
129121 independence : new Date ( 1811 , 4 , 14 ) ,
130- unasur : true ,
131122 } ,
132123 {
133124 name : 'Peru' ,
134125 capital : 'Lima' ,
135126 independence : new Date ( 1821 , 6 , 28 ) ,
136- unasur : true ,
137127 } ,
138128 {
139129 name : 'Suriname' ,
140130 capital : 'Paramaribo' ,
141131 independence : new Date ( 1975 , 10 , 25 ) ,
142- unasur : true ,
143132 } ,
144133 {
145134 name : 'Uruguay' ,
146135 capital : 'Montevideo' ,
147136 independence : new Date ( 1825 , 7 , 25 ) ,
148- unasur : true ,
149137 } ,
150138 {
151139 name : 'Venezuela' ,
152140 capital : 'Caracas' ,
153141 independence : new Date ( 1811 , 6 , 5 ) ,
154- unasur : true ,
155142 } ,
156143 ] ,
157144} ;
@@ -167,7 +154,6 @@ data.countries.pop();
167154data . countries [ 0 ] . capital = 'Rawson' ;
168155data . countries . push ( {
169156 name : 'Antártida' ,
170- unasur : false ,
171157} ) ;
172158
173159// modify and move
0 commit comments