@discomedia/utils 1.0.20 → 1.0.21

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.
@@ -13583,7 +13583,7 @@ class MarketCalendar {
13583
13583
  const yearHolidays = marketHolidays[year];
13584
13584
  if (!yearHolidays)
13585
13585
  return false;
13586
- return Object.values(yearHolidays).some(holiday => holiday.date === formattedDate);
13586
+ return Object.values(yearHolidays).some((holiday) => holiday.date === formattedDate);
13587
13587
  }
13588
13588
  /**
13589
13589
  * Checks if a date is an early close day in NY time.
@@ -13666,7 +13666,9 @@ function getLastFullTradingDateImpl(currentDate = new Date()) {
13666
13666
  marketCloseMinutes = MARKET_CONFIG.TIMES.EARLY_CLOSE.hour * 60 + MARKET_CONFIG.TIMES.EARLY_CLOSE.minute;
13667
13667
  }
13668
13668
  // If not a market day, or before open, or during market hours, return previous market day's close
13669
- if (!calendar.isMarketDay(currentDate) || minutes < marketOpenMinutes || (minutes >= marketOpenMinutes && minutes < marketCloseMinutes)) {
13669
+ if (!calendar.isMarketDay(currentDate) ||
13670
+ minutes < marketOpenMinutes ||
13671
+ (minutes >= marketOpenMinutes && minutes < marketCloseMinutes)) {
13670
13672
  const prevMarketDay = calendar.getPreviousMarketDay(currentDate);
13671
13673
  let prevCloseMinutes = MARKET_CONFIG.TIMES.MARKET_CLOSE.hour * 60 + MARKET_CONFIG.TIMES.MARKET_CLOSE.minute;
13672
13674
  if (calendar.isEarlyCloseDay(prevMarketDay)) {