@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 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 started = Date.parse(startedDate);
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 started = Date.parse(startedDate);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letpeoplework/lighthouse-client",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shared Lighthouse API client contracts",
5
5
  "repository": "https://github.com/LetPeopleWork/lighthouse-clients",
6
6
  "type": "module",