tods-competition-factory 0.201.1 → 0.201.2
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 +29 -3
- 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
|
@@ -249,7 +249,7 @@ const matchUpFormatCode = {
|
|
|
249
249
|
};
|
|
250
250
|
|
|
251
251
|
function factoryVersion() {
|
|
252
|
-
return '0.201.
|
|
252
|
+
return '0.201.2';
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
function decorateResult({
|
|
@@ -11997,9 +11997,9 @@ function targetByRoundOutcome({
|
|
|
11997
11997
|
source
|
|
11998
11998
|
}
|
|
11999
11999
|
} = getRoundLinks({
|
|
12000
|
-
drawDefinition,
|
|
12001
12000
|
roundNumber: matchUp.roundNumber,
|
|
12002
|
-
structureId: structure.structureId
|
|
12001
|
+
structureId: structure.structureId,
|
|
12002
|
+
drawDefinition
|
|
12003
12003
|
});
|
|
12004
12004
|
const winnerTargetLink = getTargetLink({
|
|
12005
12005
|
source,
|
|
@@ -12029,6 +12029,14 @@ function targetByRoundOutcome({
|
|
|
12029
12029
|
const useBruteForce = winnerTargetLink && !winnerMatchUp || loserTargetLink && !loserMatchUp;
|
|
12030
12030
|
|
|
12031
12031
|
if (useBruteForce) {
|
|
12032
|
+
if (getDevContext({
|
|
12033
|
+
qualifying: true
|
|
12034
|
+
})) {
|
|
12035
|
+
console.log({
|
|
12036
|
+
useBruteForce
|
|
12037
|
+
});
|
|
12038
|
+
}
|
|
12039
|
+
|
|
12032
12040
|
const {
|
|
12033
12041
|
roundPosition: sourceRoundPosition
|
|
12034
12042
|
} = matchUp;
|
|
@@ -12065,11 +12073,26 @@ function targetByRoundOutcome({
|
|
|
12065
12073
|
targetLink: winnerTargetLink
|
|
12066
12074
|
}));
|
|
12067
12075
|
}
|
|
12076
|
+
|
|
12077
|
+
if (getDevContext({
|
|
12078
|
+
qualifying: true
|
|
12079
|
+
})) {
|
|
12080
|
+
console.log(sourceRoundPosition, sourceRoundMatchUpCount, winnerTargetLink, winnerMatchUp);
|
|
12081
|
+
}
|
|
12068
12082
|
}
|
|
12069
12083
|
|
|
12070
12084
|
if (!winnerMatchUp) {
|
|
12071
12085
|
// if there is no winnerTargetLink then find targetMatchUp in next round
|
|
12072
12086
|
structureMatchUps = structureMatchUps || inContextDrawMatchUps.filter(matchUp => matchUp.structureId === structure.structureId);
|
|
12087
|
+
|
|
12088
|
+
if (getDevContext({
|
|
12089
|
+
qualifying: true
|
|
12090
|
+
})) {
|
|
12091
|
+
console.log('no winner matcnUp', {
|
|
12092
|
+
structureMatchUps
|
|
12093
|
+
});
|
|
12094
|
+
}
|
|
12095
|
+
|
|
12073
12096
|
({
|
|
12074
12097
|
matchUp: winnerMatchUp
|
|
12075
12098
|
} = nextRoundMatchUp({
|
|
@@ -23906,6 +23929,9 @@ function setMatchUpStatus$2(params) {
|
|
|
23906
23929
|
const targetData = positionTargets({
|
|
23907
23930
|
matchUpId: matchUpTieId || matchUpId,
|
|
23908
23931
|
// get targets for TEAM matchUp if tieMatchUp
|
|
23932
|
+
useTargetMatchUpIds: getDevContext({
|
|
23933
|
+
useTargetMatchUpIds: true
|
|
23934
|
+
}),
|
|
23909
23935
|
inContextDrawMatchUps,
|
|
23910
23936
|
drawDefinition
|
|
23911
23937
|
});
|