@forgecharts/sdk 1.5.48 → 1.5.49
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.
- package/dist/datafeed/DatafeedConnector.d.ts +2 -1
- package/dist/datafeed/DatafeedConnector.d.ts.map +1 -1
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/internal.js +6 -7
- package/dist/internal.js.map +1 -1
- package/dist/react/index.js +6 -7
- package/dist/react/index.js.map +1 -1
- package/dist/react/internal.js +6 -7
- package/dist/react/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/internal.js
CHANGED
|
@@ -10353,6 +10353,7 @@ function toOHLCV(bar) {
|
|
|
10353
10353
|
function _historyWindow(tf) {
|
|
10354
10354
|
return 500 * (parseTfSeconds(tf) ?? 3600);
|
|
10355
10355
|
}
|
|
10356
|
+
var BATCH_SUPPRESSION_MS = 1e4;
|
|
10356
10357
|
function _pageSize(tf) {
|
|
10357
10358
|
return 500 * (parseTfSeconds(tf) ?? 3600);
|
|
10358
10359
|
}
|
|
@@ -10388,7 +10389,8 @@ var DatafeedConnector = class {
|
|
|
10388
10389
|
*/
|
|
10389
10390
|
_emptyPageStreak = 0;
|
|
10390
10391
|
/**
|
|
10391
|
-
* Safety timer: clears `batchPending` if bar_batch never arrives
|
|
10392
|
+
* Safety timer: clears `batchPending` if bar_batch never arrives, so live
|
|
10393
|
+
* ticks resume. It no longer gates the chart reveal.
|
|
10392
10394
|
* Prevents the chart from staying blank when a provider doesn't fire onHistoricalReady.
|
|
10393
10395
|
*/
|
|
10394
10396
|
_batchSafetyTimer = null;
|
|
@@ -10463,9 +10465,7 @@ var DatafeedConnector = class {
|
|
|
10463
10465
|
loadedFired = true;
|
|
10464
10466
|
this._cb.onLoaded(symbol, timeframe, engine.getBars().length);
|
|
10465
10467
|
};
|
|
10466
|
-
|
|
10467
|
-
fireLoaded();
|
|
10468
|
-
}
|
|
10468
|
+
fireLoaded();
|
|
10469
10469
|
const prefetchTo = from;
|
|
10470
10470
|
const prefetchFrom = from - _pageSize(timeframe);
|
|
10471
10471
|
void this._datafeed.getHistoricalBars(symbol, timeframe, prefetchFrom, prefetchTo - 1).then(({ bars: prefetchedBars }) => {
|
|
@@ -10479,8 +10479,7 @@ var DatafeedConnector = class {
|
|
|
10479
10479
|
this._batchSafetyTimer = setTimeout(() => {
|
|
10480
10480
|
batchPending = false;
|
|
10481
10481
|
this._batchSafetyTimer = null;
|
|
10482
|
-
|
|
10483
|
-
}, 6e4);
|
|
10482
|
+
}, BATCH_SUPPRESSION_MS);
|
|
10484
10483
|
}
|
|
10485
10484
|
this._datafeed.subscribeBars(symbol, timeframe, (bar) => {
|
|
10486
10485
|
if (this._activeUID === uid) {
|
|
@@ -25527,7 +25526,7 @@ var demonstrationTool = {
|
|
|
25527
25526
|
};
|
|
25528
25527
|
|
|
25529
25528
|
// src/version.ts
|
|
25530
|
-
var FORGECHARTS_VERSION = "1.5.
|
|
25529
|
+
var FORGECHARTS_VERSION = "1.5.49" ;
|
|
25531
25530
|
|
|
25532
25531
|
// src/compatibility.ts
|
|
25533
25532
|
var MIN_KIT_API = 1;
|