@timardex/cluemart-shared 1.5.496 → 1.5.497

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.mjs CHANGED
@@ -435,7 +435,6 @@ var priceUnits = [
435
435
 
436
436
  // src/utils/dailyClueGame.ts
437
437
  import dayjs from "dayjs";
438
- import utc from "dayjs/plugin/utc";
439
438
 
440
439
  // src/types/game.ts
441
440
  var gameScreenIdentifierList = [
@@ -531,7 +530,6 @@ var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
531
530
  })(EnumGameStatus || {});
532
531
 
533
532
  // src/utils/dailyClueGame.ts
534
- dayjs.extend(utc);
535
533
  function createSeededRng(seed) {
536
534
  let t = seed >>> 0;
537
535
  return function random() {
@@ -560,7 +558,7 @@ function seededShuffle(array6, seed) {
560
558
  return result;
561
559
  }
562
560
  function getDayIndex(startDate) {
563
- return dayjs().utc().startOf("day").diff(dayjs(startDate).utc().startOf("day"), "day");
561
+ return dayjs().startOf("day").diff(dayjs(startDate).startOf("day"), "day");
564
562
  }
565
563
  function computeDailyClueState(dailyClue) {
566
564
  const { startDate, endDate } = dailyClue.gameFields.gameDate;
@@ -569,9 +567,9 @@ function computeDailyClueState(dailyClue) {
569
567
  gameScreenIdentifierList,
570
568
  startDate.toISOString()
571
569
  );
572
- const today = dayjs().utc().startOf("day");
573
- const start = dayjs(startDate).utc().startOf("day");
574
- const end = dayjs(endDate).utc().startOf("day");
570
+ const today = dayjs().startOf("day");
571
+ const start = dayjs(startDate).startOf("day");
572
+ const end = dayjs(endDate).startOf("day");
575
573
  if (today.isBefore(start)) {
576
574
  return null;
577
575
  }
@@ -609,11 +607,11 @@ import dayjs2 from "dayjs";
609
607
  import customParseFormat from "dayjs/plugin/customParseFormat.js";
610
608
  import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
611
609
  import timezone from "dayjs/plugin/timezone.js";
612
- import utc2 from "dayjs/plugin/utc.js";
610
+ import utc from "dayjs/plugin/utc.js";
613
611
  var dateFormat = "DD-MM-YYYY";
614
612
  var timeFormat = "HH:mm";
615
613
  dayjs2.extend(customParseFormat);
616
- dayjs2.extend(utc2);
614
+ dayjs2.extend(utc);
617
615
  dayjs2.extend(timezone);
618
616
  dayjs2.extend(isSameOrAfter);
619
617
  var NZ_TZ = "Pacific/Auckland";