busroot-sdk 0.0.8-dev.2695660818 → 0.0.8-dev.2695893749
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/build/index.js +2 -3
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1573,9 +1573,8 @@ var require_times = __commonJS({
|
|
|
1573
1573
|
return moment_timezone_1.default.duration(startMoment.diff(endMoment)).humanize(true);
|
|
1574
1574
|
};
|
|
1575
1575
|
exports2.getDurationAsHumanize = getDurationAsHumanize;
|
|
1576
|
-
function generateTimeWindows(startAt, windowDuration, count, limitAt) {
|
|
1577
|
-
const
|
|
1578
|
-
const correctedStartAt = startAt - diffToMultiple;
|
|
1576
|
+
function generateTimeWindows(startAt, windowDuration, count, limitAt, alignStartToWindowGrid = true) {
|
|
1577
|
+
const correctedStartAt = alignStartToWindowGrid ? startAt - startAt % windowDuration : startAt;
|
|
1579
1578
|
const windows = [];
|
|
1580
1579
|
let endAtTimestamp = 0;
|
|
1581
1580
|
for (let i = 0; i < count; i++) {
|
package/package.json
CHANGED