@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/hooks/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-D3WH67C5.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-
|
|
17
|
+
} from "../chunk-WHHVPICK.mjs";
|
|
18
18
|
import {
|
|
19
19
|
EnumEventDateStatus,
|
|
20
20
|
EnumEventType,
|
package/dist/index.cjs
CHANGED
|
@@ -730,7 +730,6 @@ var priceUnits = [
|
|
|
730
730
|
|
|
731
731
|
// src/utils/dailyClueGame.ts
|
|
732
732
|
var import_dayjs = __toESM(require("dayjs"));
|
|
733
|
-
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
|
734
733
|
|
|
735
734
|
// src/types/game.ts
|
|
736
735
|
var gameScreenIdentifierList = [
|
|
@@ -826,7 +825,6 @@ var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
|
|
|
826
825
|
})(EnumGameStatus || {});
|
|
827
826
|
|
|
828
827
|
// src/utils/dailyClueGame.ts
|
|
829
|
-
import_dayjs.default.extend(import_utc.default);
|
|
830
828
|
function createSeededRng(seed) {
|
|
831
829
|
let t = seed >>> 0;
|
|
832
830
|
return function random() {
|
|
@@ -855,7 +853,7 @@ function seededShuffle(array6, seed) {
|
|
|
855
853
|
return result;
|
|
856
854
|
}
|
|
857
855
|
function getDayIndex(startDate) {
|
|
858
|
-
return (0, import_dayjs.default)().
|
|
856
|
+
return (0, import_dayjs.default)().startOf("day").diff((0, import_dayjs.default)(startDate).startOf("day"), "day");
|
|
859
857
|
}
|
|
860
858
|
function computeDailyClueState(dailyClue) {
|
|
861
859
|
const { startDate, endDate } = dailyClue.gameFields.gameDate;
|
|
@@ -864,9 +862,9 @@ function computeDailyClueState(dailyClue) {
|
|
|
864
862
|
gameScreenIdentifierList,
|
|
865
863
|
startDate.toISOString()
|
|
866
864
|
);
|
|
867
|
-
const today = (0, import_dayjs.default)().
|
|
868
|
-
const start = (0, import_dayjs.default)(startDate).
|
|
869
|
-
const end = (0, import_dayjs.default)(endDate).
|
|
865
|
+
const today = (0, import_dayjs.default)().startOf("day");
|
|
866
|
+
const start = (0, import_dayjs.default)(startDate).startOf("day");
|
|
867
|
+
const end = (0, import_dayjs.default)(endDate).startOf("day");
|
|
870
868
|
if (today.isBefore(start)) {
|
|
871
869
|
return null;
|
|
872
870
|
}
|
|
@@ -904,11 +902,11 @@ var import_dayjs2 = __toESM(require("dayjs"));
|
|
|
904
902
|
var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
|
|
905
903
|
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
906
904
|
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
|
|
907
|
-
var
|
|
905
|
+
var import_utc = __toESM(require("dayjs/plugin/utc.js"));
|
|
908
906
|
var dateFormat = "DD-MM-YYYY";
|
|
909
907
|
var timeFormat = "HH:mm";
|
|
910
908
|
import_dayjs2.default.extend(import_customParseFormat.default);
|
|
911
|
-
import_dayjs2.default.extend(
|
|
909
|
+
import_dayjs2.default.extend(import_utc.default);
|
|
912
910
|
import_dayjs2.default.extend(import_timezone.default);
|
|
913
911
|
import_dayjs2.default.extend(import_isSameOrAfter.default);
|
|
914
912
|
var NZ_TZ = "Pacific/Auckland";
|