Skip to content

Commit 37defbf

Browse files
committed
Release. Bump version number
1 parent 76200ef commit 37defbf

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/_coverpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Barchart Market Data SDK <small>JavaScript 5.16.2</small>
1+
# Barchart Market Data SDK <small>JavaScript 5.16.3</small>
22

33
> Inject real-time market data into your JavaScript applications
44

example/browser/example.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5765,7 +5765,7 @@ module.exports = (() => {
57655765
'use strict';
57665766

57675767
return {
5768-
version: '5.16.2'
5768+
version: '5.16.3'
57695769
};
57705770
})();
57715771

@@ -8073,7 +8073,7 @@ module.exports = (() => {
80738073
definition.dynamic = false;
80748074
definition.root = match[1];
80758075
definition.month = match[2];
8076-
definition.year = getFuturesYear(match[3]);
8076+
definition.year = getFuturesYear(match[3], match[2]);
80778077
}
80788078

80798079
return definition;
@@ -8269,11 +8269,11 @@ module.exports = (() => {
82698269
return alternateFuturesMonths[monthString] || monthString;
82708270
}
82718271

8272-
function getFuturesYear(yearString) {
8272+
function getFuturesYear(yearString, monthCode) {
82738273
const currentYear = getCurrentYear();
82748274
let year = parseInt(yearString);
82758275

8276-
if (year === 0 && yearString.length === 2) {
8276+
if (year === 0 && monthCode === 'Y') {
82778277
year = Math.floor(currentYear / 100) * 100 + 100;
82788278
} else if (year < 10 && yearString.length === 1) {
82798279
const bump = year < currentYear % 10 ? 1 : 0;

lib/meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module.exports = (() => {
22
'use strict';
33

44
return {
5-
version: '5.16.2'
5+
version: '5.16.3'
66
};
77
})();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@barchart/marketdata-api-js",
3-
"version": "5.16.2",
3+
"version": "5.16.3",
44
"description": "SDK for streaming market data from Barchart.com",
55
"author": {
66
"name": "Eero Pikat",

test/dist/barchart-marketdata-api-tests-5.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,7 +3321,7 @@ module.exports = (() => {
33213321
definition.dynamic = false;
33223322
definition.root = match[1];
33233323
definition.month = match[2];
3324-
definition.year = getFuturesYear(match[3]);
3324+
definition.year = getFuturesYear(match[3], match[2]);
33253325
}
33263326

33273327
return definition;
@@ -3517,11 +3517,11 @@ module.exports = (() => {
35173517
return alternateFuturesMonths[monthString] || monthString;
35183518
}
35193519

3520-
function getFuturesYear(yearString) {
3520+
function getFuturesYear(yearString, monthCode) {
35213521
const currentYear = getCurrentYear();
35223522
let year = parseInt(yearString);
35233523

3524-
if (year === 0 && yearString.length === 2) {
3524+
if (year === 0 && monthCode === 'Y') {
35253525
year = Math.floor(currentYear / 100) * 100 + 100;
35263526
} else if (year < 10 && yearString.length === 1) {
35273527
const bump = year < currentYear % 10 ? 1 : 0;

0 commit comments

Comments
 (0)