@letpeoplework/lighthouse-client 1.0.0 → 1.0.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/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -710,7 +710,8 @@ var addUtcDays = (dateStr, days) => {
|
|
|
710
710
|
};
|
|
711
711
|
var computeItemAge = (dayDate, startedDate) => {
|
|
712
712
|
const day = Date.parse(`${dayDate}T00:00:00Z`);
|
|
713
|
-
const
|
|
713
|
+
const startedDateOnly = startedDate.substring(0, 10);
|
|
714
|
+
const started = Date.parse(`${startedDateOnly}T00:00:00Z`);
|
|
714
715
|
const diffDays = Math.floor((day - started) / 864e5);
|
|
715
716
|
return Math.max(1, diffDays + 1);
|
|
716
717
|
};
|
package/dist/index.js
CHANGED
|
@@ -676,7 +676,8 @@ var addUtcDays = (dateStr, days) => {
|
|
|
676
676
|
};
|
|
677
677
|
var computeItemAge = (dayDate, startedDate) => {
|
|
678
678
|
const day = Date.parse(`${dayDate}T00:00:00Z`);
|
|
679
|
-
const
|
|
679
|
+
const startedDateOnly = startedDate.substring(0, 10);
|
|
680
|
+
const started = Date.parse(`${startedDateOnly}T00:00:00Z`);
|
|
680
681
|
const diffDays = Math.floor((day - started) / 864e5);
|
|
681
682
|
return Math.max(1, diffDays + 1);
|
|
682
683
|
};
|
package/package.json
CHANGED