tods-competition-factory 1.6.27 → 1.6.28
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 +6 -5
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +55 -54
- 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 +2 -2
package/dist/index.mjs
CHANGED
|
@@ -329,7 +329,7 @@ const matchUpFormatCode = {
|
|
|
329
329
|
};
|
|
330
330
|
|
|
331
331
|
function factoryVersion() {
|
|
332
|
-
return "1.6.
|
|
332
|
+
return "1.6.28";
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
function getObjectTieFormat(obj) {
|
|
@@ -57348,7 +57348,6 @@ function generateDrawDefinition(params) {
|
|
|
57348
57348
|
ignoreStageSpace,
|
|
57349
57349
|
tournamentRecord,
|
|
57350
57350
|
qualifyingOnly,
|
|
57351
|
-
enforceGender,
|
|
57352
57351
|
tieFormatName,
|
|
57353
57352
|
drawEntries,
|
|
57354
57353
|
addToEvent,
|
|
@@ -57359,6 +57358,11 @@ function generateDrawDefinition(params) {
|
|
|
57359
57358
|
tournamentRecord,
|
|
57360
57359
|
inContext: true
|
|
57361
57360
|
});
|
|
57361
|
+
const appliedPolicies = getAppliedPolicies({
|
|
57362
|
+
tournamentRecord,
|
|
57363
|
+
event
|
|
57364
|
+
}).appliedPolicies ?? {};
|
|
57365
|
+
const enforceGender = params.enforceGender ?? policyDefinitions?.[POLICY_TYPE_MATCHUP_ACTIONS]?.participants?.enforceGender ?? appliedPolicies?.[POLICY_TYPE_MATCHUP_ACTIONS]?.participants?.enforceGender;
|
|
57362
57366
|
const validEntriesResult = event && participants && checkValidEntries({ event, participants, enforceGender });
|
|
57363
57367
|
if (validEntriesResult?.error)
|
|
57364
57368
|
return decorateResult({ result: validEntriesResult, stack });
|
|
@@ -57455,10 +57459,6 @@ function generateDrawDefinition(params) {
|
|
|
57455
57459
|
drawDefinition.matchUpType = matchUpType;
|
|
57456
57460
|
}
|
|
57457
57461
|
}
|
|
57458
|
-
const appliedPolicies = getAppliedPolicies({
|
|
57459
|
-
tournamentRecord,
|
|
57460
|
-
event
|
|
57461
|
-
}).appliedPolicies ?? {};
|
|
57462
57462
|
if (policyDefinitions) {
|
|
57463
57463
|
if (typeof policyDefinitions !== "object") {
|
|
57464
57464
|
return decorateResult({
|