@sis-cc/dotstatsuite-components 17.30.0 → 17.30.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.
@@ -39,7 +39,7 @@ var getReportingYearStart = exports.getReportingYearStart = function getReportin
39
39
 
40
40
  return id === _constants.REPORTING_YEAR_START_DAY || id === _constants.REPYEARSTART;
41
41
  }, attributes) || {};
42
- var reportYearStart = R.pathOr('--01-01', ['values', 0, 'name'], reportYearStartAttr);
42
+ var reportYearStart = R.pathOr('--01-01', ['values', 0, 'value'], reportYearStartAttr);
43
43
 
44
44
  var _R$match = R.match(/[\d]{2}/g, reportYearStart),
45
45
  _R$match2 = (0, _slicedToArray3.default)(_R$match, 2),
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.30.0",
4
+ "version": "17.30.1",
5
5
  "main": "lib/index.js",
6
6
  "author": "OECD",
7
7
  "license": "MIT",
@@ -10,7 +10,7 @@ export const getReportingYearStart = (sdmxJson) => {
10
10
  const reportYearStartAttr = R.find(({ id }) => {
11
11
  return id === REPORTING_YEAR_START_DAY || id === REPYEARSTART;
12
12
  }, attributes) || {};
13
- const reportYearStart = R.pathOr('--01-01', ['values', 0, 'name'], reportYearStartAttr);
13
+ const reportYearStart = R.pathOr('--01-01', ['values', 0, 'value'], reportYearStartAttr);
14
14
  const [month = '01', day = '01'] = R.match(/[\d]{2}/g, reportYearStart);
15
15
  return ({ month, day });
16
16
  };
@@ -12,7 +12,7 @@ describe('getReportingYearStart tests', () => {
12
12
  attributes: {
13
13
  observation: [
14
14
  { "id": "REPYEARSTART",
15
- "values": [{ "name": "0", "names": { "en": "0" } }]
15
+ "values": [{ "value": "0" }]
16
16
  }
17
17
  ]
18
18
  }
@@ -29,7 +29,7 @@ describe('getReportingYearStart tests', () => {
29
29
  observation: [
30
30
  {
31
31
  "id": "REPORTING_YEAR_START_DAY",
32
- "values": [{"name": "--07-01", "names": { "en": "--07-01" }}]
32
+ "values": [{ "value": "--07-01" }]
33
33
  }
34
34
  ]
35
35
  }
@@ -47,7 +47,7 @@ describe('getReportingYearStart tests', () => {
47
47
  observation: [
48
48
  {
49
49
  "id": "REPYEARSTART",
50
- "values": [{"name": "--08-09", "names": { "en": "--08-09" }}]
50
+ "values": [{ "value": "--08-09" }]
51
51
  }
52
52
  ]
53
53
  }