Skip to content

Commit bf4568f

Browse files
committed
Release. Bump version number
1 parent 4a288c8 commit bf4568f

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

docs/_coverpage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Barchart Market Data SDK <small>JavaScript 6.2.3</small>
1+
# Barchart Market Data SDK <small>JavaScript 6.2.4</small>
22

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

example/browser/example.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ module.exports = (() => {
12291229
if (parsed.type) {
12301230
processMarketMessage(parsed);
12311231
} else {
1232-
__logger.log(message);
1232+
__logger.log('Message parser failed to assign the message type');
12331233
}
12341234
}
12351235
}
@@ -4340,7 +4340,6 @@ module.exports = (() => {
43404340
}
43414341
if (!p && message.type !== 'REFRESH_QUOTE') {
43424342
_logger.warn(`MarketState [ ${_instance} ]: No profile found for [ ${symbol} ]`);
4343-
_logger.log(message);
43444343
return;
43454344
}
43464345
let q = _getOrCreateQuote(symbol);
@@ -4640,7 +4639,6 @@ module.exports = (() => {
46404639
break;
46414640
default:
46424641
_logger.error(`MarketState [ ${_instance} ]: Unhandled Market Message`);
4643-
_logger.error(message);
46444642
break;
46454643
}
46464644
};
@@ -5312,7 +5310,7 @@ module.exports = (() => {
53125310
'use strict';
53135311

53145312
return {
5315-
version: '6.2.3'
5313+
version: '6.2.4'
53165314
};
53175315
})();
53185316

@@ -6644,9 +6642,6 @@ module.exports = (() => {
66446642
}
66456643
break;
66466644
}
6647-
default:
6648-
console.log(msg);
6649-
break;
66506645
}
66516646
}
66526647
break;

lib/meta.js

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

44
return {
5-
version: '6.2.3'
5+
version: '6.2.4'
66
};
77
})();

package.json

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

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

+15-6
Original file line numberDiff line numberDiff line change
@@ -2171,9 +2171,6 @@ module.exports = (() => {
21712171
}
21722172
break;
21732173
}
2174-
default:
2175-
console.log(msg);
2176-
break;
21772174
}
21782175
}
21792176
break;
@@ -13161,6 +13158,7 @@ describe('when valid prices are formatted', () => {
1316113158
});
1316213159

1316313160
},{"./../../../../lib/utilities/format/price":21}],73:[function(require,module,exports){
13161+
const Timezones = require('@barchart/common-js/lang/Timezones');
1316413162
const formatQuote = require('./../../../../lib/utilities/format/quote');
1316513163
describe('When a quote formatter is used (without specifying the clock)', () => {
1316613164
describe('and a quote is formatted (with no "flag" and a "lastPrice" value)', () => {
@@ -13230,16 +13228,27 @@ describe('When a quote formatter is used (without specifying the clock)', () =>
1323013228
});
1323113229
});
1323213230
describe('and the quote timeUtc is 2:00:01 AM UTC (and exchangeRef is present)', () => {
13231+
let expected = {};
1323313232
beforeEach(() => {
13233+
if (Timezones.parse('America/New_York').getIsDaylightSavingsTime()) {
13234+
expected.chicago = '22:00:01';
13235+
} else {
13236+
expected.chicago = '21:00:01';
13237+
}
13238+
if (Timezones.parse('America/Denver').getIsDaylightSavingsTime()) {
13239+
expected.denver = '20:00:01';
13240+
} else {
13241+
expected.denver = '19:00:01';
13242+
}
1323413243
const milliseconds = Date.UTC(2022, 6, 1, 2, 0, 1);
1323513244
quote.time = new Date(1, 2, 3, 4, 5, 6); //ignored
1323613245
quote.timeUtc = new Date(milliseconds);
1323713246
});
1323813247
it('the formatter outputs "22:00:01" (when asked to display time in the "America/New_York" timezone)', () => {
13239-
expect(formatQuote(quote, false, false, "America/New_York")).toEqual('22:00:01');
13248+
expect(formatQuote(quote, false, false, "America/New_York")).toEqual(expected.chicago);
1324013249
});
1324113250
it('the formatter outputs "20:00:01" (when asked to display time in the "America/Denver" timezone)', () => {
13242-
expect(formatQuote(quote, false, false, "America/Denver")).toEqual('20:00:01');
13251+
expect(formatQuote(quote, false, false, "America/Denver")).toEqual(expected.denver);
1324313252
});
1324413253
});
1324513254
});
@@ -13613,7 +13622,7 @@ describe('When a time formatter is created (and a "short" 12-hour clock is speci
1361313622
});
1361413623
});
1361513624

13616-
},{"./../../../../lib/utilities/format/quote":22}],74:[function(require,module,exports){
13625+
},{"./../../../../lib/utilities/format/quote":22,"@barchart/common-js/lang/Timezones":36}],74:[function(require,module,exports){
1361713626
const cmdtyView = require('./../../../../../lib/utilities/format/specialized/cmdtyView');
1361813627
const Profile = require('./../../../../../lib/marketState/Profile');
1361913628
const ZBM2_1500C = new Profile('ZBM2|1500C', '30-Year T-Bond', 'CBOT', '5', 1000, 1);

0 commit comments

Comments
 (0)