@forgecharts/sdk 1.5.55 → 1.5.56

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.
@@ -10305,28 +10305,12 @@ function _historyWindow(tf) {
10305
10305
  return 500 * (parseTfSeconds(tf) ?? 3600);
10306
10306
  }
10307
10307
  var BATCH_SUPPRESSION_MS = 1e4;
10308
- var TF_SECONDS = {
10309
- "1s": 1,
10310
- "5s": 5,
10311
- "10s": 10,
10312
- "15s": 15,
10313
- "30s": 30,
10314
- "1m": 60,
10315
- "3m": 180,
10316
- "5m": 300,
10317
- "15m": 900,
10318
- "30m": 1800,
10319
- "1h": 3600,
10320
- "2h": 7200,
10321
- "4h": 14400,
10322
- "6h": 21600,
10323
- "8h": 28800,
10324
- "12h": 43200,
10325
- "1D": 86400,
10326
- "3D": 259200,
10327
- "1W": 604800,
10328
- "1M": 2592e3
10329
- };
10308
+ function tfSeconds(tf) {
10309
+ const m = /^(\d+)\s*(s|m|h|D|W|M)$/.exec(tf);
10310
+ if (!m) return 0;
10311
+ const mult = { s: 1, m: 60, h: 3600, D: 86400, W: 604800, M: 2592e3 }[m[2]];
10312
+ return parseInt(m[1], 10) * mult;
10313
+ }
10330
10314
  var LIVE_GAP_REPAIR_DELAY_MS = 3e3;
10331
10315
  function _pageSize(tf) {
10332
10316
  return 500 * (parseTfSeconds(tf) ?? 3600);
@@ -10455,7 +10439,7 @@ var DatafeedConnector = class {
10455
10439
  this._batchSafetyTimer = null;
10456
10440
  }, BATCH_SUPPRESSION_MS);
10457
10441
  }
10458
- const tfSec = TF_SECONDS[timeframe] ?? 0;
10442
+ const tfSec = tfSeconds(timeframe);
10459
10443
  let lastSeenBarTime = lastBarTime ?? 0;
10460
10444
  let repairTimer = null;
10461
10445
  const repairGap = (fromTime, toTime) => {
@@ -18090,7 +18074,7 @@ var DEMONSTRATION_STROKE = "rgba(255, 200, 50, 0.7)";
18090
18074
  var DEMONSTRATION_COLOR = "var(--crosshair-overlay, rgba(255,255,255,0.75))";
18091
18075
 
18092
18076
  // src/version.ts
18093
- var FORGECHARTS_VERSION = "1.5.55" ;
18077
+ var FORGECHARTS_VERSION = "1.5.56" ;
18094
18078
  function applyRuntimeConfig(caps, config) {
18095
18079
  if (!config) return caps;
18096
18080
  const orderEntry = config.enableOrderEntry === false ? false : caps.orderEntry;