tods-competition-factory 1.6.12 → 1.6.13
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 -2
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +3 -2
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +3 -2
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +5 -4
- 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/forge/query.mjs
CHANGED
|
@@ -3867,7 +3867,7 @@ function validMatchUp(matchUp) {
|
|
|
3867
3867
|
const { matchUpId, drawPositions } = matchUp;
|
|
3868
3868
|
const validMatchUpId = typeof matchUpId === "string";
|
|
3869
3869
|
const validDrawPositions = !drawPositions || Array.isArray(drawPositions) && drawPositions.length <= 2 && drawPositions.every(
|
|
3870
|
-
(dp) => isConvertableInteger(dp) || dp === void 0
|
|
3870
|
+
(dp) => isConvertableInteger(dp) || dp === void 0 || dp === null
|
|
3871
3871
|
);
|
|
3872
3872
|
return validMatchUpId && validDrawPositions;
|
|
3873
3873
|
}
|
|
@@ -6280,9 +6280,10 @@ function getSourceDrawPositionRanges({
|
|
|
6280
6280
|
structureId: sourceStructureId,
|
|
6281
6281
|
matchUpsMap
|
|
6282
6282
|
});
|
|
6283
|
-
const
|
|
6283
|
+
const roundMatchUpsResult = getRoundMatchUps({
|
|
6284
6284
|
matchUps: structureMatchUps2
|
|
6285
6285
|
});
|
|
6286
|
+
const roundProfile = roundMatchUpsResult.roundProfile;
|
|
6286
6287
|
return { [sourceStructureId]: roundProfile };
|
|
6287
6288
|
})
|
|
6288
6289
|
);
|