@colisweb/rescript-toolkit 4.21.2 → 4.21.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "4.21.2",
3
+ "version": "4.21.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -110,7 +110,7 @@ let make = (
110
110
  {
111
111
  period: startOfWeek->Option.mapWithDefault(defaultPeriod, start => {
112
112
  start,
113
- end_: start->DateFns.addDays(periodLength - 1),
113
+ end_: isSm ? start->DateFns.addDays(periodLength - 1) : start->DateFns.addDays(2),
114
114
  }),
115
115
  selectedDay: selectedDay->Option.getWithDefault(
116
116
  startOfWeek->Option.getWithDefault(defaultPeriod.start),