@timardex/cluemart-shared 1.5.494 → 1.5.495
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-YTEETYG7.mjs → chunk-F4IWHY4O.mjs} +9 -7
- package/dist/chunk-F4IWHY4O.mjs.map +1 -0
- package/dist/{chunk-DXNREXCC.mjs → chunk-SKWWATIR.mjs} +2 -2
- package/dist/formFields/index.cjs +4 -2
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/hooks/index.cjs +4 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +8 -6
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-YTEETYG7.mjs.map +0 -1
- /package/dist/{chunk-DXNREXCC.mjs.map → chunk-SKWWATIR.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-SKWWATIR.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-F4IWHY4O.mjs";
|
|
18
18
|
import {
|
|
19
19
|
EnumEventDateStatus,
|
|
20
20
|
EnumEventType,
|
package/dist/index.cjs
CHANGED
|
@@ -730,6 +730,7 @@ 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"));
|
|
733
734
|
|
|
734
735
|
// src/types/game.ts
|
|
735
736
|
var gameScreenIdentifierList = [
|
|
@@ -821,6 +822,7 @@ var EnumGameStatus = /* @__PURE__ */ ((EnumGameStatus2) => {
|
|
|
821
822
|
})(EnumGameStatus || {});
|
|
822
823
|
|
|
823
824
|
// src/utils/dailyClueGame.ts
|
|
825
|
+
import_dayjs.default.extend(import_utc.default);
|
|
824
826
|
function createSeededRng(seed) {
|
|
825
827
|
let t = seed >>> 0;
|
|
826
828
|
return function random() {
|
|
@@ -849,7 +851,7 @@ function seededShuffle(array6, seed) {
|
|
|
849
851
|
return result;
|
|
850
852
|
}
|
|
851
853
|
function getDayIndex(startDate) {
|
|
852
|
-
return (0, import_dayjs.default)().startOf("day").diff((0, import_dayjs.default)(startDate).startOf("day"), "day");
|
|
854
|
+
return (0, import_dayjs.default)().utc().startOf("day").diff((0, import_dayjs.default)(startDate).utc().startOf("day"), "day");
|
|
853
855
|
}
|
|
854
856
|
function computeDailyClueState(dailyClue) {
|
|
855
857
|
const { startDate, endDate } = dailyClue.gameFields.gameDate;
|
|
@@ -858,9 +860,9 @@ function computeDailyClueState(dailyClue) {
|
|
|
858
860
|
gameScreenIdentifierList,
|
|
859
861
|
startDate.toISOString()
|
|
860
862
|
);
|
|
861
|
-
const today = (0, import_dayjs.default)().startOf("day");
|
|
862
|
-
const start = (0, import_dayjs.default)(startDate).startOf("day");
|
|
863
|
-
const end = (0, import_dayjs.default)(endDate).startOf("day");
|
|
863
|
+
const today = (0, import_dayjs.default)().utc().startOf("day");
|
|
864
|
+
const start = (0, import_dayjs.default)(startDate).utc().startOf("day");
|
|
865
|
+
const end = (0, import_dayjs.default)(endDate).utc().startOf("day");
|
|
864
866
|
if (today.isBefore(start)) {
|
|
865
867
|
return null;
|
|
866
868
|
}
|
|
@@ -898,11 +900,11 @@ var import_dayjs2 = __toESM(require("dayjs"));
|
|
|
898
900
|
var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
|
|
899
901
|
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
900
902
|
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
|
|
901
|
-
var
|
|
903
|
+
var import_utc2 = __toESM(require("dayjs/plugin/utc.js"));
|
|
902
904
|
var dateFormat = "DD-MM-YYYY";
|
|
903
905
|
var timeFormat = "HH:mm";
|
|
904
906
|
import_dayjs2.default.extend(import_customParseFormat.default);
|
|
905
|
-
import_dayjs2.default.extend(
|
|
907
|
+
import_dayjs2.default.extend(import_utc2.default);
|
|
906
908
|
import_dayjs2.default.extend(import_timezone.default);
|
|
907
909
|
import_dayjs2.default.extend(import_isSameOrAfter.default);
|
|
908
910
|
var NZ_TZ = "Pacific/Auckland";
|