Skip to content

Commit aaa97c7

Browse files
committed
Release. Bump version number
1 parent 1fa4f87 commit aaa97c7

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
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 6.3.1</small>
1+
# Barchart Market Data SDK <small>JavaScript 6.3.2</small>
22

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

example/browser/example.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ const retrieveExchanges = require('./snapshots/exchanges/retrieveExchanges'),
464464
SymbolParser = require('./../utilities/parsers/SymbolParser');
465465
const DiagnosticsControllerBase = require('./diagnostics/DiagnosticsControllerBase');
466466
const LoggerFactory = require('./../logging/LoggerFactory');
467-
const version = require('./../meta').version;
468467
module.exports = (() => {
469468
'use strict';
470469

@@ -518,6 +517,7 @@ module.exports = (() => {
518517
let __connectionCount = 0;
519518
let __paused = false;
520519
let __reconnectAllowed = false;
520+
let __reconnectToken = null;
521521
let __pollingFrequency = null;
522522
let __extendedProfile = false;
523523
let __extendedQuote = false;
@@ -620,6 +620,10 @@ module.exports = (() => {
620620
event: 'disconnecting'
621621
});
622622
__reconnectAllowed = false;
623+
if (__reconnectToken !== null) {
624+
clearTimeout(__reconnectToken);
625+
__reconnectToken = null;
626+
}
623627
__loginInfo.mode = null;
624628
__loginInfo.hostname = null;
625629
__loginInfo.username = null;
@@ -782,9 +786,12 @@ module.exports = (() => {
782786
}
783787
if (__reconnectAllowed) {
784788
__logger.log(`Connection [ ${__instance} ]: Scheduling reconnect attempt.`);
785-
const reconnectAction = () => connect(__loginInfo.hostname, __loginInfo.username, __loginInfo.password, __loginInfo.jwtProvider);
789+
const reconnectAction = () => {
790+
connect(__loginInfo.hostname, __loginInfo.username, __loginInfo.password, __loginInfo.jwtProvider);
791+
__reconnectToken = null;
792+
};
786793
const reconnectDelay = _RECONNECT_INTERVAL + Math.floor(Math.random() * _WATCHDOG_INTERVAL);
787-
setTimeout(reconnectAction, reconnectDelay);
794+
__reconnectToken = setTimeout(reconnectAction, reconnectDelay);
788795
}
789796
};
790797
__connection.onmessage = event => {
@@ -2167,7 +2174,7 @@ module.exports = (() => {
21672174
return Connection;
21682175
})();
21692176

2170-
},{"./../logging/LoggerFactory":15,"./../meta":22,"./../utilities/parse/ddf/message":38,"./../utilities/parsers/SymbolParser":41,"./ConnectionBase":3,"./diagnostics/DiagnosticsControllerBase":7,"./snapshots/exchanges/retrieveExchanges":8,"./snapshots/profiles/retrieveExtensions":9,"./snapshots/quotes/retrieveExtensions":10,"./snapshots/quotes/retrieveSnapshots":11,"@barchart/common-js/lang/array":51,"@barchart/common-js/lang/assert":52,"@barchart/common-js/lang/object":54}],3:[function(require,module,exports){
2177+
},{"./../logging/LoggerFactory":15,"./../utilities/parse/ddf/message":38,"./../utilities/parsers/SymbolParser":41,"./ConnectionBase":3,"./diagnostics/DiagnosticsControllerBase":7,"./snapshots/exchanges/retrieveExchanges":8,"./snapshots/profiles/retrieveExtensions":9,"./snapshots/quotes/retrieveExtensions":10,"./snapshots/quotes/retrieveSnapshots":11,"@barchart/common-js/lang/array":51,"@barchart/common-js/lang/assert":52,"@barchart/common-js/lang/object":54}],3:[function(require,module,exports){
21712178
const is = require('@barchart/common-js/lang/is');
21722179
const Environment = require('./../environment/Environment'),
21732180
EnvironmentForBrowsers = require('./../environment/EnvironmentForBrowsers');
@@ -5420,7 +5427,7 @@ module.exports = (() => {
54205427
'use strict';
54215428

54225429
return {
5423-
version: '6.3.1'
5430+
version: '6.3.2'
54245431
};
54255432
})();
54265433

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: '6.3.1'
5+
version: '6.3.2'
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": "6.3.1",
3+
"version": "6.3.2",
44
"description": "SDK for streaming market data from Barchart.com",
55
"author": {
66
"name": "Eero Pikat",

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16801,12 +16801,12 @@ describe('When checking the display format for the symbol', () => {
1680116801
});
1680216802
});
1680316803
describe('When getting a producer symbol', () => {
16804-
describe('When the year distant (futures expiration in 10 or more years)', () => {
16805-
it('CLG2034 should map to CLB4', () => {
16806-
expect(SymbolParser.getProducerSymbol('CLG2034')).toEqual('CLB4');
16804+
describe('When the year is distant (futures expiration in 10 or more years)', () => {
16805+
it('CLG2036 should map to CLB6', () => {
16806+
expect(SymbolParser.getProducerSymbol('CLG2036')).toEqual('CLB6');
1680716807
});
16808-
it('CLG34 should map to CLB4', () => {
16809-
expect(SymbolParser.getProducerSymbol('CLG34')).toEqual('CLB4');
16808+
it('CLG36 should map to CLB6', () => {
16809+
expect(SymbolParser.getProducerSymbol('CLG36')).toEqual('CLB6');
1681016810
});
1681116811
it('CLH35 should map to CLC5', () => {
1681216812
expect(SymbolParser.getProducerSymbol('CLH35')).toEqual('CLC5');

0 commit comments

Comments
 (0)