tods-competition-factory 2.0.42 → 2.0.43
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 +4 -4
- package/dist/tods-competition-factory.d.ts +4 -0
- package/dist/tods-competition-factory.development.cjs.js +7 -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/package.json +1 -1
|
@@ -10446,6 +10446,8 @@ declare const fixtures: {
|
|
|
10446
10446
|
participantRole: boolean;
|
|
10447
10447
|
participantStatus: boolean;
|
|
10448
10448
|
penalties: boolean;
|
|
10449
|
+
rankings: boolean;
|
|
10450
|
+
ratings: boolean;
|
|
10449
10451
|
representing: boolean;
|
|
10450
10452
|
participantRoleResponsibilities: boolean;
|
|
10451
10453
|
participantType: boolean;
|
|
@@ -10481,6 +10483,8 @@ declare const fixtures: {
|
|
|
10481
10483
|
participantRole: boolean;
|
|
10482
10484
|
participantStatus: boolean;
|
|
10483
10485
|
penalties: boolean;
|
|
10486
|
+
rankings: boolean;
|
|
10487
|
+
ratings: boolean;
|
|
10484
10488
|
representing: boolean;
|
|
10485
10489
|
participantRoleResponsibilities: boolean;
|
|
10486
10490
|
participantType: boolean;
|
|
@@ -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.43';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
function isFunction(obj) {
|
|
@@ -19820,7 +19820,7 @@ function calculatePressureRatings({ participantResults, sides, score }) {
|
|
|
19820
19820
|
const side2 = sides.find(({ sideNumber }) => sideNumber === 2);
|
|
19821
19821
|
const side1ratings = side1?.participant?.ratings;
|
|
19822
19822
|
const side2ratings = side2?.participant?.ratings;
|
|
19823
|
-
if (side1ratings[SINGLES] && side2ratings[SINGLES]) {
|
|
19823
|
+
if (side1ratings?.[SINGLES] && side2ratings?.[SINGLES]) {
|
|
19824
19824
|
const targetRatingType = ELO;
|
|
19825
19825
|
const { convertedRating: side1ConvertedRating } = getConvertedRating({ ratings: side1ratings, targetRatingType });
|
|
19826
19826
|
const { convertedRating: side2ConvertedRating } = getConvertedRating({ ratings: side2ratings, targetRatingType });
|
|
@@ -34201,7 +34201,7 @@ function getDrawData(params) {
|
|
|
34201
34201
|
const { drawPosition, participantId } = assignment;
|
|
34202
34202
|
participantPlacements = true;
|
|
34203
34203
|
return {
|
|
34204
|
-
participantResult: participantId && result
|
|
34204
|
+
participantResult: participantId && result?.participantResults?.[participantId],
|
|
34205
34205
|
participantId,
|
|
34206
34206
|
drawPosition,
|
|
34207
34207
|
};
|
|
@@ -57670,6 +57670,8 @@ const POLICY_PRIVACY_DEFAULT = {
|
|
|
57670
57670
|
participantRole: true,
|
|
57671
57671
|
participantStatus: true,
|
|
57672
57672
|
penalties: false,
|
|
57673
|
+
rankings: true,
|
|
57674
|
+
ratings: true,
|
|
57673
57675
|
representing: true,
|
|
57674
57676
|
participantRoleResponsibilities: false,
|
|
57675
57677
|
participantType: true,
|
|
@@ -57705,6 +57707,8 @@ const POLICY_PRIVACY_DEFAULT = {
|
|
|
57705
57707
|
participantRole: true,
|
|
57706
57708
|
participantStatus: true,
|
|
57707
57709
|
penalties: false,
|
|
57710
|
+
rankings: true,
|
|
57711
|
+
ratings: true,
|
|
57708
57712
|
representing: true,
|
|
57709
57713
|
participantRoleResponsibilities: false,
|
|
57710
57714
|
participantType: true,
|