@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/{chunk-KIMDTSLW.mjs → chunk-D3WH67C5.mjs} +2 -2
- package/dist/{chunk-MPIOTUCT.mjs → chunk-WHHVPICK.mjs} +7 -9
- package/dist/chunk-WHHVPICK.mjs.map +1 -0
- package/dist/formFields/index.cjs +2 -4
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/hooks/index.cjs +2 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +6 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -8
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +6 -8
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-MPIOTUCT.mjs.map +0 -1
- /package/dist/{chunk-KIMDTSLW.mjs.map → chunk-D3WH67C5.mjs.map} +0 -0
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().
|
|
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().
|
|
573
|
-
const start = dayjs(startDate).
|
|
574
|
-
const end = dayjs(endDate).
|
|
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
|
|
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(
|
|
614
|
+
dayjs2.extend(utc);
|
|
617
615
|
dayjs2.extend(timezone);
|
|
618
616
|
dayjs2.extend(isSameOrAfter);
|
|
619
617
|
var NZ_TZ = "Pacific/Auckland";
|