tods-competition-factory 1.8.37 → 1.8.38
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/forge/generate.mjs +3 -8
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +3 -8
- package/dist/forge/query.mjs.map +1 -1
- package/dist/index.mjs +4 -9
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +37 -28
- 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
package/dist/index.mjs
CHANGED
|
@@ -2404,7 +2404,7 @@ const matchUpFormatCode = {
|
|
|
2404
2404
|
};
|
|
2405
2405
|
|
|
2406
2406
|
function factoryVersion() {
|
|
2407
|
-
return "1.8.
|
|
2407
|
+
return "1.8.38";
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
2410
|
function getObjectTieFormat(obj) {
|
|
@@ -27156,7 +27156,7 @@ function getEventSeedAssignments({
|
|
|
27156
27156
|
}
|
|
27157
27157
|
|
|
27158
27158
|
function processEventEntry({
|
|
27159
|
-
|
|
27159
|
+
convertExtensions,
|
|
27160
27160
|
seedAssignments,
|
|
27161
27161
|
participant,
|
|
27162
27162
|
withSeeding,
|
|
@@ -27166,10 +27166,8 @@ function processEventEntry({
|
|
|
27166
27166
|
entry
|
|
27167
27167
|
}) {
|
|
27168
27168
|
const { entryStatus, entryStage, entryPosition, extensions } = entry;
|
|
27169
|
-
const entryExtensions = extensions?.length ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
27169
|
+
const entryExtensions = extensions?.length && convertExtensions ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
27170
27170
|
const attributes = Object.assign(entryExtensions, {
|
|
27171
|
-
...extensionConversions,
|
|
27172
|
-
// this should be deprecated and clients should use derivedEventInfo
|
|
27173
27171
|
entryPosition,
|
|
27174
27172
|
entryStatus,
|
|
27175
27173
|
entryStage,
|
|
@@ -27586,7 +27584,6 @@ function getParticipantEntries(params) {
|
|
|
27586
27584
|
continue;
|
|
27587
27585
|
const {
|
|
27588
27586
|
drawDefinitions = [],
|
|
27589
|
-
extensions = [],
|
|
27590
27587
|
eventType,
|
|
27591
27588
|
eventName,
|
|
27592
27589
|
category,
|
|
@@ -27601,9 +27598,7 @@ function getParticipantEntries(params) {
|
|
|
27601
27598
|
if (publishStatuses)
|
|
27602
27599
|
eventsPublishStatuses[eventId] = publishStatuses;
|
|
27603
27600
|
if (withEvents || withSeeding || withRankingProfile) {
|
|
27604
|
-
const extensionConversions = convertExtensions ? Object.assign({}, ...extensionsToAttributes(extensions)) : {};
|
|
27605
27601
|
derivedEventInfo[eventId] = {
|
|
27606
|
-
...extensionConversions,
|
|
27607
27602
|
eventName,
|
|
27608
27603
|
eventType,
|
|
27609
27604
|
category,
|
|
@@ -27635,7 +27630,7 @@ function getParticipantEntries(params) {
|
|
|
27635
27630
|
return;
|
|
27636
27631
|
const participant = participantMap[id];
|
|
27637
27632
|
processEventEntry({
|
|
27638
|
-
|
|
27633
|
+
convertExtensions,
|
|
27639
27634
|
seedAssignments,
|
|
27640
27635
|
participant,
|
|
27641
27636
|
withSeeding,
|