tods-competition-factory 0.63.2 → 0.64.0
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/tods-competition-factory.development.cjs.js +9 -9
- 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/dist/tods-competition-factory.production.esm.min.js +1 -1
- package/dist/tods-competition-factory.production.esm.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -16322,7 +16322,7 @@ function updateTieMatchUpScore({
|
|
|
16322
16322
|
});
|
|
16323
16323
|
if (result.error) return result;
|
|
16324
16324
|
const matchUp = result.matchUp;
|
|
16325
|
-
const tieFormat = matchUp.tieFormat || (structure === null || structure === void 0 ? void 0 : structure.tieFormat) || (drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.tieFormat) || (event === null || event === void 0 ? void 0 : event.tieFormat);
|
|
16325
|
+
const tieFormat = matchUp.tieFormat || (structure === null || structure === void 0 ? void 0 : structure.tieFormat) || (drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.tieFormat) || (event === null || event === void 0 ? void 0 : event.tieFormat) || undefined;
|
|
16326
16326
|
const {
|
|
16327
16327
|
winningSide,
|
|
16328
16328
|
set,
|
|
@@ -19900,7 +19900,7 @@ function setMatchUpStatus$2(params) {
|
|
|
19900
19900
|
matchUpsMap,
|
|
19901
19901
|
event
|
|
19902
19902
|
});
|
|
19903
|
-
const tieFormat = dualMatchUp.tieFormat || drawDefinition.tieFormat;
|
|
19903
|
+
const tieFormat = (dualMatchUp === null || dualMatchUp === void 0 ? void 0 : dualMatchUp.tieFormat) || (drawDefinition === null || drawDefinition === void 0 ? void 0 : drawDefinition.tieFormat) || (event === null || event === void 0 ? void 0 : event.tieFormat) || undefined;
|
|
19904
19904
|
const {
|
|
19905
19905
|
projectedWinningSide
|
|
19906
19906
|
} = getProjectedDualWinningSide({
|
|
@@ -28043,7 +28043,7 @@ const scheduleGovernor$1 = {
|
|
|
28043
28043
|
};
|
|
28044
28044
|
|
|
28045
28045
|
function factoryVersion() {
|
|
28046
|
-
return '0.
|
|
28046
|
+
return '0.64.0';
|
|
28047
28047
|
}
|
|
28048
28048
|
|
|
28049
28049
|
function attachPolicies$2({
|
|
@@ -32760,7 +32760,7 @@ function addPlayoffStructures$1(params) {
|
|
|
32760
32760
|
}) => addedMatchUpIds.includes(matchUpId));
|
|
32761
32761
|
|
|
32762
32762
|
if (addedMatchUps.length) {
|
|
32763
|
-
const tieFormat = drawDefinition.tieFormat || (event === null || event === void 0 ? void 0 : event.tieFormat);
|
|
32763
|
+
const tieFormat = drawDefinition.tieFormat || (event === null || event === void 0 ? void 0 : event.tieFormat) || undefined;
|
|
32764
32764
|
|
|
32765
32765
|
if (tieFormat) {
|
|
32766
32766
|
addedMatchUps.forEach(matchUp => {
|
|
@@ -33882,17 +33882,17 @@ function generateDrawType(params = {}) {
|
|
|
33882
33882
|
tieFormat,
|
|
33883
33883
|
matchUpType
|
|
33884
33884
|
} = params;
|
|
33885
|
-
tieFormat = tieFormat || drawDefinition.tieFormat;
|
|
33885
|
+
tieFormat = tieFormat || drawDefinition.tieFormat || undefined;
|
|
33886
33886
|
matchUpType = matchUpType || drawDefinition.matchUpType || SINGLES$1;
|
|
33887
33887
|
const drawSize = getStageDrawPositionsCount({
|
|
33888
33888
|
stage,
|
|
33889
33889
|
drawDefinition
|
|
33890
33890
|
});
|
|
33891
|
-
Object.assign(params, {
|
|
33891
|
+
Object.assign(params, definedAttributes({
|
|
33892
33892
|
drawSize,
|
|
33893
33893
|
matchUpType,
|
|
33894
33894
|
tieFormat
|
|
33895
|
-
});
|
|
33895
|
+
}));
|
|
33896
33896
|
const validDoubleEliminationSize = isPowerOf2(drawSize * 2 / 3); // check that drawSize is a valid value
|
|
33897
33897
|
|
|
33898
33898
|
const invalidDrawSize = drawSize < 2 || !staggeredEntry && ![FEED_IN$1, AD_HOC].includes(drawType) && (drawType === ROUND_ROBIN && drawSize < 3 || drawType === DOUBLE_ELIMINATION && !validDoubleEliminationSize || ![ROUND_ROBIN, DOUBLE_ELIMINATION, ROUND_ROBIN_WITH_PLAYOFF].includes(drawType) && !isPowerOf2(drawSize));
|
|
@@ -42665,7 +42665,7 @@ function getTieMatchUpContext({
|
|
|
42665
42665
|
drawDefinition,
|
|
42666
42666
|
matchUpsMap
|
|
42667
42667
|
});
|
|
42668
|
-
const tieFormat = dualMatchUp.tieFormat || structure.tieFormat || drawDefinition.tieFormat || event.tieFormat;
|
|
42668
|
+
const tieFormat = dualMatchUp.tieFormat || structure.tieFormat || drawDefinition.tieFormat || event.tieFormat || undefined;
|
|
42669
42669
|
return {
|
|
42670
42670
|
relevantAssignments,
|
|
42671
42671
|
collectionPosition,
|
|
@@ -45705,7 +45705,7 @@ function getTieFormat({
|
|
|
45705
45705
|
const structureDefaultTieFormat = (_structure = structure) === null || _structure === void 0 ? void 0 : _structure.tieFormat;
|
|
45706
45706
|
const drawDefaultTieFormat = (_drawDefinition = drawDefinition) === null || _drawDefinition === void 0 ? void 0 : _drawDefinition.tieFormat;
|
|
45707
45707
|
const eventDefaultTieFormat = event === null || event === void 0 ? void 0 : event.tieFormat;
|
|
45708
|
-
const tieFormat = (matchUpResult === null || matchUpResult === void 0 ? void 0 : (_matchUpResult$matchU = matchUpResult.matchUp) === null || _matchUpResult$matchU === void 0 ? void 0 : _matchUpResult$matchU.tieFormat) || structureDefaultTieFormat || drawDefaultTieFormat || eventDefaultTieFormat;
|
|
45708
|
+
const tieFormat = (matchUpResult === null || matchUpResult === void 0 ? void 0 : (_matchUpResult$matchU = matchUpResult.matchUp) === null || _matchUpResult$matchU === void 0 ? void 0 : _matchUpResult$matchU.tieFormat) || structureDefaultTieFormat || drawDefaultTieFormat || eventDefaultTieFormat || undefined;
|
|
45709
45709
|
return {
|
|
45710
45710
|
structureDefaultTieFormat,
|
|
45711
45711
|
eventDefaultTieFormat,
|