tods-competition-factory 0.98.1 → 0.98.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 +6 -8
- 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.98.
|
|
252
|
+
return '0.98.2';
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
const FORMAT_STANDARD = 'SET3-S:6/TB7'; // Best of 3 Tiebreak Sets to 6
|
|
@@ -20740,8 +20740,10 @@ function swapWinnerLoser(params) {
|
|
|
20740
20740
|
function setMatchUpStatus$2(params) {
|
|
20741
20741
|
var _inContextMatchUp$dra, _matchUp$sides;
|
|
20742
20742
|
|
|
20743
|
-
//
|
|
20743
|
+
// always clear score if DOUBLE_WALKOVER or WALKOVER
|
|
20744
|
+
if ([WALKOVER$1, DOUBLE_WALKOVER].includes(params.matchUpStatus)) params.score = undefined; // matchUpStatus in params is the new status
|
|
20744
20745
|
// winningSide in params is new winningSide
|
|
20746
|
+
|
|
20745
20747
|
const {
|
|
20746
20748
|
allowChangePropagation = undefined,
|
|
20747
20749
|
// factory default
|
|
@@ -20750,9 +20752,7 @@ function setMatchUpStatus$2(params) {
|
|
|
20750
20752
|
matchUpStatus,
|
|
20751
20753
|
winningSide,
|
|
20752
20754
|
matchUpId,
|
|
20753
|
-
event
|
|
20754
|
-
} = params;
|
|
20755
|
-
let {
|
|
20755
|
+
event,
|
|
20756
20756
|
score
|
|
20757
20757
|
} = params; // Check for missing parameters ---------------------------------------------
|
|
20758
20758
|
|
|
@@ -20857,10 +20857,8 @@ function setMatchUpStatus$2(params) {
|
|
|
20857
20857
|
return {
|
|
20858
20858
|
error: INVALID_MATCHUP_STATUS
|
|
20859
20859
|
};
|
|
20860
|
-
}
|
|
20861
|
-
|
|
20860
|
+
}
|
|
20862
20861
|
|
|
20863
|
-
if ([WALKOVER$1, DOUBLE_WALKOVER].includes(matchUpStatus)) score = undefined;
|
|
20864
20862
|
Object.assign(params, {
|
|
20865
20863
|
inContextDrawMatchUps,
|
|
20866
20864
|
inContextMatchUp,
|