@discomedia/utils 1.0.14 → 1.0.15
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/index-frontend.cjs +0 -2
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +0 -2
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +1 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/types/market-time.d.ts +0 -1
- package/dist/types/market-time.d.ts.map +1 -1
- package/dist/types-frontend/market-time.d.ts +0 -1
- package/dist/types-frontend/market-time.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -309,12 +309,10 @@ class TimeFormatter {
|
|
|
309
309
|
*/
|
|
310
310
|
class MarketTimeCalculator {
|
|
311
311
|
calendar;
|
|
312
|
-
formatter;
|
|
313
312
|
timezone;
|
|
314
313
|
constructor(timezone = MARKET_CONFIG.TIMEZONE) {
|
|
315
314
|
this.timezone = timezone;
|
|
316
315
|
this.calendar = new MarketCalendar(timezone);
|
|
317
|
-
this.formatter = new TimeFormatter(timezone);
|
|
318
316
|
}
|
|
319
317
|
/**
|
|
320
318
|
* Get market open/close times for a date
|
|
@@ -804,7 +802,7 @@ function getTradingStartAndEndDates(options = {}) {
|
|
|
804
802
|
}
|
|
805
803
|
return { startDate, endDate: endMarketClose };
|
|
806
804
|
}
|
|
807
|
-
// Export the
|
|
805
|
+
// Export the MARKET_TIMES constant for backward compatibility
|
|
808
806
|
const MARKET_TIMES = {
|
|
809
807
|
TIMEZONE: MARKET_CONFIG.TIMEZONE,
|
|
810
808
|
PRE: {
|