tods-competition-factory 1.6.12 → 1.6.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 CHANGED
@@ -329,7 +329,7 @@ const matchUpFormatCode = {
329
329
  };
330
330
 
331
331
  function factoryVersion() {
332
- return "1.6.12";
332
+ return "1.6.15";
333
333
  }
334
334
 
335
335
  function getObjectTieFormat(obj) {
@@ -2784,7 +2784,7 @@ function validMatchUp(matchUp) {
2784
2784
  const { matchUpId, drawPositions } = matchUp;
2785
2785
  const validMatchUpId = typeof matchUpId === "string";
2786
2786
  const validDrawPositions = !drawPositions || Array.isArray(drawPositions) && drawPositions.length <= 2 && drawPositions.every(
2787
- (dp) => isConvertableInteger(dp) || dp === void 0
2787
+ (dp) => isConvertableInteger(dp) || dp === void 0 || dp === null
2788
2788
  );
2789
2789
  return validMatchUpId && validDrawPositions;
2790
2790
  }
@@ -7008,9 +7008,10 @@ function getSourceDrawPositionRanges({
7008
7008
  structureId: sourceStructureId,
7009
7009
  matchUpsMap
7010
7010
  });
7011
- const { roundProfile } = getRoundMatchUps$1({
7011
+ const roundMatchUpsResult = getRoundMatchUps$1({
7012
7012
  matchUps: structureMatchUps2
7013
7013
  });
7014
+ const roundProfile = roundMatchUpsResult.roundProfile;
7014
7015
  return { [sourceStructureId]: roundProfile };
7015
7016
  })
7016
7017
  );
@@ -7652,7 +7653,7 @@ function getSide({
7652
7653
  sideNumber
7653
7654
  }) {
7654
7655
  const assignment = positionAssignments.find(
7655
- (assignment2) => assignment2.drawPosition === drawPosition
7656
+ (assignment2) => assignment2.drawPosition && assignment2.drawPosition === drawPosition
7656
7657
  );
7657
7658
  const participantId = drawPositionCollectionAssignment ? drawPositionCollectionAssignment[drawPosition]?.participantId : assignment?.participantId;
7658
7659
  const sideValue = assignment ? getSideValue$1({