@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.cjs
CHANGED
|
@@ -667,7 +667,8 @@ function getMarketStatusImpl(date = new Date()) {
|
|
|
667
667
|
const nextMarketDay = calendar.getNextMarketDay(date);
|
|
668
668
|
nextStatusTime = getDayBoundaries(nextMarketDay, 'extended_hours').start;
|
|
669
669
|
}
|
|
670
|
-
|
|
670
|
+
// I think using nyDate here may be wrong - should use current time? i.e. date.getTime()
|
|
671
|
+
const nextStatusTimeDifference = nextStatusTime.getTime() - date.getTime();
|
|
671
672
|
return {
|
|
672
673
|
time: date,
|
|
673
674
|
timeString: formatNYLocale(nyDate),
|