File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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} ) ( ) ; 
Original file line number Diff line number Diff line change 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" 
Original file line number Diff line number Diff 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;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments