@fkui/logic 5.45.0 → 5.45.1
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/lib/cjs/index.js +5 -5
- package/lib/esm/index.js +5 -5
- package/lib/types/tsdoc-metadata.json +1 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -2474,7 +2474,7 @@ const formatter = {
|
|
|
2474
2474
|
class FDate {
|
|
2475
2475
|
value;
|
|
2476
2476
|
constructor(value) {
|
|
2477
|
-
this.value = dayjs(value, ISO8601_YYYY_MM_DD, true);
|
|
2477
|
+
this.value = dayjs(value, ISO8601_YYYY_MM_DD, true).startOf("day");
|
|
2478
2478
|
}
|
|
2479
2479
|
/**
|
|
2480
2480
|
* Create {@link FDate} with an invalid state.
|
|
@@ -2778,7 +2778,7 @@ class FDate {
|
|
|
2778
2778
|
if (typeof rhs === "string") {
|
|
2779
2779
|
rhs = FDate.fromIso(rhs);
|
|
2780
2780
|
}
|
|
2781
|
-
return this.value.isBefore(rhs.value);
|
|
2781
|
+
return this.value.isBefore(rhs.value, "day");
|
|
2782
2782
|
}
|
|
2783
2783
|
/**
|
|
2784
2784
|
* Returns true if this date is after given date.
|
|
@@ -2789,7 +2789,7 @@ class FDate {
|
|
|
2789
2789
|
if (typeof rhs === "string") {
|
|
2790
2790
|
rhs = FDate.fromIso(rhs);
|
|
2791
2791
|
}
|
|
2792
|
-
return this.value.isAfter(rhs.value);
|
|
2792
|
+
return this.value.isAfter(rhs.value, "day");
|
|
2793
2793
|
}
|
|
2794
2794
|
/**
|
|
2795
2795
|
* Compares two {@link FDate} objects. Returns and integer indicating whenever
|
|
@@ -2828,10 +2828,10 @@ class FDate {
|
|
|
2828
2828
|
return -1;
|
|
2829
2829
|
}
|
|
2830
2830
|
}
|
|
2831
|
-
if (a.
|
|
2831
|
+
if (a.equals(b)) {
|
|
2832
2832
|
return 0;
|
|
2833
2833
|
}
|
|
2834
|
-
else if (a.
|
|
2834
|
+
else if (a.isBefore(b)) {
|
|
2835
2835
|
return -1;
|
|
2836
2836
|
}
|
|
2837
2837
|
else {
|
package/lib/esm/index.js
CHANGED
|
@@ -2472,7 +2472,7 @@ const formatter = {
|
|
|
2472
2472
|
class FDate {
|
|
2473
2473
|
value;
|
|
2474
2474
|
constructor(value) {
|
|
2475
|
-
this.value = dayjs(value, ISO8601_YYYY_MM_DD, true);
|
|
2475
|
+
this.value = dayjs(value, ISO8601_YYYY_MM_DD, true).startOf("day");
|
|
2476
2476
|
}
|
|
2477
2477
|
/**
|
|
2478
2478
|
* Create {@link FDate} with an invalid state.
|
|
@@ -2776,7 +2776,7 @@ class FDate {
|
|
|
2776
2776
|
if (typeof rhs === "string") {
|
|
2777
2777
|
rhs = FDate.fromIso(rhs);
|
|
2778
2778
|
}
|
|
2779
|
-
return this.value.isBefore(rhs.value);
|
|
2779
|
+
return this.value.isBefore(rhs.value, "day");
|
|
2780
2780
|
}
|
|
2781
2781
|
/**
|
|
2782
2782
|
* Returns true if this date is after given date.
|
|
@@ -2787,7 +2787,7 @@ class FDate {
|
|
|
2787
2787
|
if (typeof rhs === "string") {
|
|
2788
2788
|
rhs = FDate.fromIso(rhs);
|
|
2789
2789
|
}
|
|
2790
|
-
return this.value.isAfter(rhs.value);
|
|
2790
|
+
return this.value.isAfter(rhs.value, "day");
|
|
2791
2791
|
}
|
|
2792
2792
|
/**
|
|
2793
2793
|
* Compares two {@link FDate} objects. Returns and integer indicating whenever
|
|
@@ -2826,10 +2826,10 @@ class FDate {
|
|
|
2826
2826
|
return -1;
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
|
-
if (a.
|
|
2829
|
+
if (a.equals(b)) {
|
|
2830
2830
|
return 0;
|
|
2831
2831
|
}
|
|
2832
|
-
else if (a.
|
|
2832
|
+
else if (a.isBefore(b)) {
|
|
2833
2833
|
return -1;
|
|
2834
2834
|
}
|
|
2835
2835
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fkui/logic",
|
|
3
|
-
"version": "5.45.
|
|
3
|
+
"version": "5.45.1",
|
|
4
4
|
"description": "Logic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fkui",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"node": ">= 20",
|
|
68
68
|
"npm": ">= 7"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "a8c1f1f7408460f91d9d56e97902be8f1485ceb8"
|
|
71
71
|
}
|