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.
Files changed (2) hide show
  1. package/build/index.js +2 -3
  2. 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 diffToMultiple = startAt % windowDuration;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "busroot-sdk",
3
- "version": "0.0.8-dev.2695660818",
3
+ "version": "0.0.8-dev.2695893749",
4
4
  "description": "An SDK for accessing Busroot from output.industries",
5
5
  "homepage": "https://www.output.industries",
6
6
  "main": "./build/index.js",