@swan-io/shared-business 11.0.0 → 11.1.0
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": "@swan-io/shared-business",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.9.0",
|
|
6
6
|
"pnpm": "9.9.0"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@swan-io/lake": "11.
|
|
29
|
+
"@swan-io/lake": "11.1.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@formatjs/intl": "^2.10.9",
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"@types/uuid": "^10.0.0",
|
|
54
54
|
"jsdom": "^25.0.1",
|
|
55
55
|
"vitest": "^2.1.3",
|
|
56
|
-
"@swan-io/lake": "11.
|
|
56
|
+
"@swan-io/lake": "11.1.0"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -214,7 +214,9 @@ export const isDateInRange = (minDate, maxDate) => (date) => {
|
|
|
214
214
|
month: maxDate.getMonth(),
|
|
215
215
|
year: maxDate.getFullYear(),
|
|
216
216
|
};
|
|
217
|
-
return isDateAfter(date, min) && isDateBefore(date, max)
|
|
217
|
+
return ((isDateAfter(date, min) && isDateBefore(date, max)) ||
|
|
218
|
+
isDateEquals(date, min) ||
|
|
219
|
+
isDateEquals(date, max));
|
|
218
220
|
};
|
|
219
221
|
const isDateToday = (date) => {
|
|
220
222
|
const today = new Date();
|