@timardex/cluemart-shared 1.5.506 → 1.5.508

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.
@@ -1,4 +1,4 @@
1
- import "../chunk-K4J6EBAJ.mjs";
1
+ import "../chunk-4NULTN5V.mjs";
2
2
  import "../chunk-RQDZX76B.mjs";
3
3
  import "../chunk-DWO35OY4.mjs";
4
4
  import "../chunk-I7WE3EBR.mjs";
@@ -14,7 +14,7 @@ import {
14
14
  dateFormat,
15
15
  normalizeUrl,
16
16
  timeFormat
17
- } from "../chunk-4H2QFRNE.mjs";
17
+ } from "../chunk-G5GKLIPZ.mjs";
18
18
  import {
19
19
  EnumEventDateStatus,
20
20
  EnumEventType,
package/dist/index.cjs CHANGED
@@ -862,7 +862,7 @@ function nzStartOfDay(input) {
862
862
  if (input == null) {
863
863
  return (0, import_dayjs.default)().tz(NZ_TZ).startOf("day");
864
864
  }
865
- return (0, import_dayjs.default)(input).tz(NZ_TZ).startOf("day");
865
+ return import_dayjs.default.tz(input, NZ_TZ).startOf("day");
866
866
  }
867
867
  var formatDate = (dateStr, display = "datetime", timeStr) => {
868
868
  const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;
@@ -989,6 +989,14 @@ function computeDailyClueState(dailyClue) {
989
989
  todaysPlacement: null
990
990
  };
991
991
  }
992
+ console.log("DEBUG", {
993
+ end: end.format(),
994
+ index,
995
+ letterToday: shuffled[index],
996
+ shuffledLength: shuffled.length,
997
+ start: start.format(),
998
+ today: today.format()
999
+ });
992
1000
  return {
993
1001
  gameHistory: null,
994
1002
  todaysClue: shuffledPlacements[index].clue,