tods-competition-factory 1.8.35 → 1.8.36
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/forge/generate.mjs +6 -7
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +1 -2
- package/dist/forge/query.mjs.map +1 -1
- package/dist/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +11 -12
- 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 +3 -3
package/dist/forge/generate.mjs
CHANGED
|
@@ -10748,11 +10748,11 @@ function swapAssignedPositions({
|
|
|
10748
10748
|
);
|
|
10749
10749
|
const secondAssignment = candidatePositionAssignments.find(
|
|
10750
10750
|
(assignment) => assignment.drawPosition === secondPosition
|
|
10751
|
-
);
|
|
10751
|
+
) ?? {};
|
|
10752
10752
|
const updatedFirstAssignmentAttributes = {
|
|
10753
|
-
participantId: secondAssignment
|
|
10754
|
-
qualifier: secondAssignment
|
|
10755
|
-
bye: secondAssignment
|
|
10753
|
+
participantId: secondAssignment?.participantId,
|
|
10754
|
+
qualifier: secondAssignment?.qualifier,
|
|
10755
|
+
bye: secondAssignment?.bye
|
|
10756
10756
|
};
|
|
10757
10757
|
const updatedSecondAssignmentAttributes = {
|
|
10758
10758
|
participantId: firstAssignment.participantId,
|
|
@@ -12233,7 +12233,7 @@ function randomUnseededSeparation({
|
|
|
12233
12233
|
});
|
|
12234
12234
|
if (result.error)
|
|
12235
12235
|
return decorateResult({ result, stack });
|
|
12236
|
-
} else {
|
|
12236
|
+
} else if (assignment.participantId) {
|
|
12237
12237
|
const result = assignDrawPosition({
|
|
12238
12238
|
automaticPlacement: true,
|
|
12239
12239
|
inContextDrawMatchUps,
|
|
@@ -18752,12 +18752,11 @@ function getParticipantEntries(params) {
|
|
|
18752
18752
|
const targetParticipantIds = participantFilters?.participantIds;
|
|
18753
18753
|
const getRelevantParticipantIds = (participantId) => {
|
|
18754
18754
|
const relevantParticipantIds = [participantId];
|
|
18755
|
-
relevantParticipantIds.push(participantId);
|
|
18756
18755
|
participantMap[participantId]?.participant.individualParticipantIds?.forEach(
|
|
18757
18756
|
(individualParticiapntId) => relevantParticipantIds.push(individualParticiapntId)
|
|
18758
18757
|
);
|
|
18759
18758
|
return relevantParticipantIds.some(
|
|
18760
|
-
(
|
|
18759
|
+
(id) => !targetParticipantIds?.length || targetParticipantIds.includes(id)
|
|
18761
18760
|
) ? relevantParticipantIds : [];
|
|
18762
18761
|
};
|
|
18763
18762
|
const withOpts = {
|