@discomedia/utils 1.0.30 → 1.0.31
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.map +1 -1
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/test.js +689 -81
- package/dist/test.js.map +1 -1
- package/dist/types/market-time.d.ts.map +1 -1
- package/dist/types-frontend/market-time.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/alpaca-trading-api-CPaXTnjf.js +0 -1412
- package/dist/alpaca-trading-api-CPaXTnjf.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -665,7 +665,8 @@ function getMarketStatusImpl(date = new Date()) {
|
|
|
665
665
|
const nextMarketDay = calendar.getNextMarketDay(date);
|
|
666
666
|
nextStatusTime = getDayBoundaries(nextMarketDay, 'extended_hours').start;
|
|
667
667
|
}
|
|
668
|
-
|
|
668
|
+
// I think using nyDate here may be wrong - should use current time? i.e. date.getTime()
|
|
669
|
+
const nextStatusTimeDifference = nextStatusTime.getTime() - date.getTime();
|
|
669
670
|
return {
|
|
670
671
|
time: date,
|
|
671
672
|
timeString: formatNYLocale(nyDate),
|