@sis-cc/dotstatsuite-components 17.18.0 → 17.19.0
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.
- package/lib/rules/src/index.js +1 -1
- package/package.json +2 -2
- package/src/rules/src/index.js +1 -1
package/lib/rules/src/index.js
CHANGED
|
@@ -403,7 +403,7 @@ var _extractSdmxArtefacts = function _extractSdmxArtefacts(data) {
|
|
|
403
403
|
name: extractDataName(data),
|
|
404
404
|
observations: R.pipe(R.pathOr({}, ['dataSets', 0, 'observations']), R.mapObjIndexed(function (obs) {
|
|
405
405
|
return R.over(R.lensIndex(0), function (val) {
|
|
406
|
-
return Number(val);
|
|
406
|
+
return R.isNil(val) ? null : Number(val);
|
|
407
407
|
})(obs);
|
|
408
408
|
}), R.reject(R.pipe(R.head, R.anyPass([R.isNil, isNaN]))))(data),
|
|
409
409
|
source: (0, _get3.default)(data, 'header.links[0].href', null)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sis-cc/dotstatsuite-components",
|
|
3
3
|
"description": "Set components based on React.",
|
|
4
|
-
"version": "17.
|
|
4
|
+
"version": "17.19.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "OECD",
|
|
7
7
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-hook/size": "^2.1.1",
|
|
27
|
-
"@sis-cc/dotstatsuite-d3-charts": "^8.
|
|
27
|
+
"@sis-cc/dotstatsuite-d3-charts": "^8.3.0",
|
|
28
28
|
"date-fns": "^1.30.1",
|
|
29
29
|
"lodash": "^4.17.2",
|
|
30
30
|
"lodash.compose": "^2.4.1",
|
package/src/rules/src/index.js
CHANGED
|
@@ -64,7 +64,7 @@ const _extractSdmxArtefacts = (data) => {
|
|
|
64
64
|
name: extractDataName(data),
|
|
65
65
|
observations: R.pipe(
|
|
66
66
|
R.pathOr({}, ['dataSets', 0, 'observations']),
|
|
67
|
-
R.mapObjIndexed(obs => R.over(R.lensIndex(0), val => Number(val))(obs)),
|
|
67
|
+
R.mapObjIndexed(obs => R.over(R.lensIndex(0), val => R.isNil(val) ? null : Number(val))(obs)),
|
|
68
68
|
R.reject(R.pipe(R.head, R.anyPass([R.isNil, isNaN]))),
|
|
69
69
|
)(data),
|
|
70
70
|
source: get(data, 'header.links[0].href', null),
|