tods-competition-factory 2.0.25 → 2.0.27
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 +2 -2
- package/dist/tods-competition-factory.development.cjs.js +5 -5
- 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 +9 -11
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.0.
|
|
6
|
+
return '2.0.27';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
function isFunction(obj) {
|
|
@@ -26549,8 +26549,8 @@ function generateAdHocMatchUps(params) {
|
|
|
26549
26549
|
(!participantIdPairings && !matchUpsCount)) {
|
|
26550
26550
|
return { error: INVALID_VALUES, info: 'matchUpsCount or pairings error' };
|
|
26551
26551
|
}
|
|
26552
|
-
if (matchUpsCount && matchUpsCount >
|
|
26553
|
-
return { error: INVALID_VALUES, info: 'matchUpsCount must be less than
|
|
26552
|
+
if (matchUpsCount && params.restrictMatchUpsCount !== false && matchUpsCount > 32) {
|
|
26553
|
+
return { error: INVALID_VALUES, info: 'matchUpsCount must be less than 33' };
|
|
26554
26554
|
}
|
|
26555
26555
|
if (roundNumber && !params.ignoreLastRoundNumber && roundNumber - 1 > (lastRoundNumber || 0)) {
|
|
26556
26556
|
return { error: INVALID_VALUES, info: 'roundNumber error' };
|
|
@@ -31932,8 +31932,8 @@ function getParticipantIds(params) {
|
|
|
31932
31932
|
(!params.enableDoubleRobin || params.roundsCount > (participantIds.length - 1) * 2)) {
|
|
31933
31933
|
return { error: INVALID_VALUES, info: 'Not enough participants for roundsCount' };
|
|
31934
31934
|
}
|
|
31935
|
-
if (params.roundsCount && params.roundsCount >
|
|
31936
|
-
return { error: INVALID_VALUES, info: 'roundsCount must be less than
|
|
31935
|
+
if (params.roundsCount && params.restrictRoundsCount !== false && params.roundsCount > 31) {
|
|
31936
|
+
return { error: INVALID_VALUES, info: 'roundsCount must be less than 32' };
|
|
31937
31937
|
}
|
|
31938
31938
|
return { participantIds };
|
|
31939
31939
|
}
|