tods-competition-factory 0.77.0 → 0.78.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 +6 -6
- 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 +4 -4
|
@@ -249,7 +249,7 @@ const matchUpFormatCode = {
|
|
|
249
249
|
};
|
|
250
250
|
|
|
251
251
|
function factoryVersion() {
|
|
252
|
-
return '0.
|
|
252
|
+
return '0.78.0';
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
const FORMAT_STANDARD = 'SET3-S:6/TB7'; // Best of 3 Tiebreak Sets to 6
|
|
@@ -23382,7 +23382,7 @@ function getTournamentParticipants({
|
|
|
23382
23382
|
if (!tournamentRecord.participants) return {
|
|
23383
23383
|
error: MISSING_PARTICIPANTS
|
|
23384
23384
|
};
|
|
23385
|
-
let tournamentParticipants = tournamentRecord.participants.map(participant => makeDeepCopy(participant, convertExtensions));
|
|
23385
|
+
let tournamentParticipants = tournamentRecord.participants.map(participant => makeDeepCopy(participant, convertExtensions, true));
|
|
23386
23386
|
if (typeof participantFilters !== 'object') return {
|
|
23387
23387
|
error: INVALID_OBJECT,
|
|
23388
23388
|
participantFilters
|
|
@@ -40285,8 +40285,8 @@ function addParticipantScaleItem({
|
|
|
40285
40285
|
const {
|
|
40286
40286
|
scaleItem: existingScaleItem
|
|
40287
40287
|
} = participantScaleItem({
|
|
40288
|
-
|
|
40289
|
-
|
|
40288
|
+
scaleAttributes: scaleItem,
|
|
40289
|
+
participant
|
|
40290
40290
|
});
|
|
40291
40291
|
|
|
40292
40292
|
const isUndefined = value => [undefined, null, ''].includes(value);
|
|
@@ -40301,10 +40301,10 @@ function addParticipantScaleItem({
|
|
|
40301
40301
|
} = scaleItem;
|
|
40302
40302
|
const itemType = [SCALE, scaleType, eventType, scaleName].join('.');
|
|
40303
40303
|
const timeItem = {
|
|
40304
|
-
itemType,
|
|
40305
40304
|
itemValue: scaleItem.scaleValue,
|
|
40306
40305
|
itemDate: scaleItem.scaleDate,
|
|
40307
|
-
createdAt
|
|
40306
|
+
createdAt,
|
|
40307
|
+
itemType
|
|
40308
40308
|
}; // if there is a unique identifier for the scale
|
|
40309
40309
|
|
|
40310
40310
|
if (scaleItem.scaleId) {
|