neo.mjs 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,22 +58,28 @@ class TableContainerController extends ComponentController {
|
|
|
58
58
|
|
|
59
59
|
if (timeline) {
|
|
60
60
|
Object.entries(timeline.cases || {}).forEach(([key, value]) => {
|
|
61
|
-
|
|
61
|
+
if (key !== 'undefined') {
|
|
62
|
+
map[key] = {date: new Date(key).toISOString(), cases: value};
|
|
63
|
+
}
|
|
62
64
|
});
|
|
63
65
|
|
|
64
66
|
Object.entries(timeline.deaths || {}).forEach(([key, value]) => {
|
|
65
|
-
if (
|
|
66
|
-
map
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
if (key !== 'undefined') {
|
|
68
|
+
if (map.hasOwnProperty(key)) {
|
|
69
|
+
map[key].deaths = value;
|
|
70
|
+
} else {
|
|
71
|
+
map[key] = {date: new Date(key).toISOString(), deaths: value};
|
|
72
|
+
}
|
|
69
73
|
}
|
|
70
74
|
});
|
|
71
75
|
|
|
72
76
|
Object.entries(timeline.recovered || {}).forEach(([key, value]) => {
|
|
73
|
-
if (
|
|
74
|
-
map
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
if (key !== 'undefined') {
|
|
78
|
+
if (map.hasOwnProperty(key)) {
|
|
79
|
+
map[key].recovered = value;
|
|
80
|
+
} else {
|
|
81
|
+
map[key] = {date: new Date(key).toISOString(), recovered: value};
|
|
82
|
+
}
|
|
77
83
|
}
|
|
78
84
|
});
|
|
79
85
|
|
|
@@ -58,22 +58,28 @@ class TableContainerController extends ComponentController {
|
|
|
58
58
|
|
|
59
59
|
if (timeline) {
|
|
60
60
|
Object.entries(timeline.cases || {}).forEach(([key, value]) => {
|
|
61
|
-
|
|
61
|
+
if (key !== 'undefined') {
|
|
62
|
+
map[key] = {date: new Date(key).toISOString(), cases: value};
|
|
63
|
+
}
|
|
62
64
|
});
|
|
63
65
|
|
|
64
66
|
Object.entries(timeline.deaths || {}).forEach(([key, value]) => {
|
|
65
|
-
if (
|
|
66
|
-
map
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
if (key !== 'undefined') {
|
|
68
|
+
if (map.hasOwnProperty(key)) {
|
|
69
|
+
map[key].deaths = value;
|
|
70
|
+
} else {
|
|
71
|
+
map[key] = {date: new Date(key).toISOString(), deaths: value};
|
|
72
|
+
}
|
|
69
73
|
}
|
|
70
74
|
});
|
|
71
75
|
|
|
72
76
|
Object.entries(timeline.recovered || {}).forEach(([key, value]) => {
|
|
73
|
-
if (
|
|
74
|
-
map
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
if (key !== 'undefined') {
|
|
78
|
+
if (map.hasOwnProperty(key)) {
|
|
79
|
+
map[key].recovered = value;
|
|
80
|
+
} else {
|
|
81
|
+
map[key] = {date: new Date(key).toISOString(), recovered: value};
|
|
82
|
+
}
|
|
77
83
|
}
|
|
78
84
|
});
|
|
79
85
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neo.mjs",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "The webworkers driven UI framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://neomjs.github.io/pages/",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@fortawesome/fontawesome-free": "^
|
|
37
|
+
"@fortawesome/fontawesome-free": "^6.0.0",
|
|
38
38
|
"@material/mwc-button": "^0.25.3",
|
|
39
39
|
"@material/mwc-textfield": "^0.25.3",
|
|
40
40
|
"autoprefixer": "^10.4.2",
|
|
41
41
|
"chalk": "^5.0.0",
|
|
42
42
|
"clean-webpack-plugin": "^4.0.0",
|
|
43
43
|
"commander": "^9.0.0",
|
|
44
|
-
"cssnano": "^5.0.
|
|
44
|
+
"cssnano": "^5.0.17",
|
|
45
45
|
"envinfo": "^7.8.1",
|
|
46
46
|
"fs-extra": "^10.0.0",
|
|
47
47
|
"highlightjs-line-numbers.js": "^2.8.0",
|
|
@@ -160,11 +160,11 @@ StartTest(t => {
|
|
|
160
160
|
{country: 'Croatia', firstname: 'Grgur', githubId: 'grgur', lastname: 'Grisogono'},
|
|
161
161
|
{country: 'Slovakia', firstname: 'Jozef', githubId: 'jsakalos', lastname: 'Sakalos'},
|
|
162
162
|
{country: 'Argentina', firstname: 'Max', githubId: 'elmasse', lastname: 'Fierro'},
|
|
163
|
+
{country: 'France', firstname: 'Nigel', githubId: 'NigeWhite', lastname: 'White'},
|
|
163
164
|
{country: 'Germany', firstname: 'Nils', githubId: 'mrsunshine', lastname: 'Dehl'},
|
|
164
165
|
{country: 'USA', firstname: 'Rich', githubId: 'rwaters', lastname: 'Waters'},
|
|
165
166
|
{country: 'Germany', firstname: 'Tobias', githubId: 'tobiu2', lastname: 'Uhlig2'},
|
|
166
|
-
{country: 'Germany', firstname: 'Tobias', githubId: 'tobiu', lastname: 'Uhlig'}
|
|
167
|
-
{country: 'France', firstname: 'Nigel', githubId: 'NigeWhite', lastname: 'White'}
|
|
167
|
+
{country: 'Germany', firstname: 'Tobias', githubId: 'tobiu', lastname: 'Uhlig'}
|
|
168
168
|
], 'collection2.getRange()');
|
|
169
169
|
|
|
170
170
|
t.notOk(collection2.isFiltered(), 'collection2.isFiltered()');
|
|
@@ -186,11 +186,11 @@ StartTest(t => {
|
|
|
186
186
|
{country: 'Croatia', firstname: 'Grgur', githubId: 'grgur', lastname: 'Grisogono'},
|
|
187
187
|
{country: 'Slovakia', firstname: 'Jozef', githubId: 'jsakalos', lastname: 'Sakalos'},
|
|
188
188
|
{country: 'Argentina', firstname: 'Max', githubId: 'elmasse', lastname: 'Fierro'},
|
|
189
|
+
{country: 'France', firstname: 'Nigel', githubId: 'NigeWhite', lastname: 'White'},
|
|
189
190
|
{country: 'Germany', firstname: 'Nils', githubId: 'mrsunshine', lastname: 'Dehl'},
|
|
190
191
|
{country: 'USA', firstname: 'Rich', githubId: 'rwaters', lastname: 'Waters'},
|
|
191
192
|
{country: 'Germany', firstname: 'Tobias', githubId: 'tobiu2', lastname: 'Uhlig2'},
|
|
192
193
|
{country: 'Germany', firstname: 'Tobias', githubId: 'tobiu', lastname: 'Uhlig'},
|
|
193
|
-
{country: 'France', firstname: 'Nigel', githubId: 'NigeWhite', lastname: 'White'}
|
|
194
194
|
], 'collection2.getRange()');
|
|
195
195
|
|
|
196
196
|
collection2.clearSorters(true);
|
|
@@ -251,4 +251,4 @@ StartTest(t => {
|
|
|
251
251
|
t.isStrict(collection3.getCount(), 5, 'collection3 count is 5');
|
|
252
252
|
t.isStrict(collection3.allItems.getCount(), 9, 'collection3 allItems count is 9');
|
|
253
253
|
});
|
|
254
|
-
});
|
|
254
|
+
});
|