tods-competition-factory 2.2.14 → 2.2.15
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 +2 -2
- package/dist/tods-competition-factory.development.cjs.js +6 -6
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +24 -24
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.2.
|
|
6
|
+
return '2.2.15';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
const SINGLES_MATCHUP = 'SINGLES';
|
|
@@ -36762,8 +36762,8 @@ function competitionScheduleMatchUps(params) {
|
|
|
36762
36762
|
const { drawId, structureId, stage } = matchUp;
|
|
36763
36763
|
if (!detailsMap?.[drawId]?.publishingDetail?.published)
|
|
36764
36764
|
return false;
|
|
36765
|
-
|
|
36766
|
-
|
|
36765
|
+
const stageKeys = Object.keys(detailsMap[drawId].stageDetails ?? {});
|
|
36766
|
+
if (stageKeys.length) {
|
|
36767
36767
|
const unpublishedStages = stageKeys.filter((stage) => !detailsMap[drawId].stageDetails[stage].published);
|
|
36768
36768
|
const publishedStages = stageKeys.filter((stage) => detailsMap[drawId].stageDetails[stage].published);
|
|
36769
36769
|
if (unpublishedStages.length && unpublishedStages.includes(stage))
|
|
@@ -36772,8 +36772,8 @@ function competitionScheduleMatchUps(params) {
|
|
|
36772
36772
|
return true;
|
|
36773
36773
|
return unpublishedStages.length && !unpublishedStages.includes(stage) && !publishedStages.length;
|
|
36774
36774
|
}
|
|
36775
|
-
|
|
36776
|
-
|
|
36775
|
+
const structureIdKeys = Object.keys(detailsMap[drawId].structureDetails ?? {});
|
|
36776
|
+
if (structureIdKeys.length) {
|
|
36777
36777
|
const unpublishedStructureIds = structureIdKeys.filter((structureId) => !detailsMap[drawId].structureDetails[structureId].published);
|
|
36778
36778
|
const publishedStructureIds = structureIdKeys.filter((structureId) => detailsMap[drawId].structureDetails[structureId].published);
|
|
36779
36779
|
if (unpublishedStructureIds.length && unpublishedStructureIds.includes(structureId))
|
|
@@ -39381,7 +39381,7 @@ function publishEvent(params) {
|
|
|
39381
39381
|
event,
|
|
39382
39382
|
})?.eventData
|
|
39383
39383
|
: undefined;
|
|
39384
|
-
notify
|
|
39384
|
+
if (notify)
|
|
39385
39385
|
addNotice({
|
|
39386
39386
|
payload: { eventData, tournamentId: tournamentRecord.tournamentId },
|
|
39387
39387
|
topic: PUBLISH_EVENT,
|