tods-competition-factory 1.9.1 → 1.9.2
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 +4 -16
- package/dist/forge/generate.mjs.map +1 -1
- package/dist/forge/query.mjs +0 -11
- package/dist/forge/query.mjs.map +1 -1
- package/dist/forge/transform.mjs +4 -16
- package/dist/forge/transform.mjs.map +1 -1
- package/dist/forge/utilities.mjs +0 -22
- package/dist/forge/utilities.mjs.map +1 -1
- package/dist/index.mjs +52 -55
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +66 -92
- 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 +7 -7
package/dist/forge/generate.mjs
CHANGED
|
@@ -908,7 +908,6 @@ function handleCaughtError({
|
|
|
908
908
|
const globalState = {
|
|
909
909
|
tournamentFactoryVersion: "0.0.0",
|
|
910
910
|
timers: { default: { elapsedTime: 0 } },
|
|
911
|
-
iterators: { makeDeepCopy: 0 },
|
|
912
911
|
deepCopyAttributes: {
|
|
913
912
|
stringify: [],
|
|
914
913
|
ignore: [],
|
|
@@ -928,9 +927,6 @@ function getDevContext(contextCriteria) {
|
|
|
928
927
|
) && globalState.devContext;
|
|
929
928
|
}
|
|
930
929
|
}
|
|
931
|
-
function setDeepCopyIterations(value) {
|
|
932
|
-
globalState.iterators.makeDeepCopy = value;
|
|
933
|
-
}
|
|
934
930
|
function disableNotifications() {
|
|
935
931
|
_globalStateProvider.disableNotifications();
|
|
936
932
|
}
|
|
@@ -1103,13 +1099,6 @@ function makeDeepCopy(sourceObject, convertExtensions, internalUse, removeExtens
|
|
|
1103
1099
|
if (!deepCopy?.enabled && !internalUse || typeof sourceObject !== "object" || typeof sourceObject === "function" || sourceObject === null || typeof deepCopy?.threshold === "number" && iteration >= deepCopy.threshold) {
|
|
1104
1100
|
return sourceObject;
|
|
1105
1101
|
}
|
|
1106
|
-
const devContext = getDevContext({ makeDeepCopy: true });
|
|
1107
|
-
if (devContext) {
|
|
1108
|
-
setDeepCopyIterations(iteration);
|
|
1109
|
-
if (typeof devContext === "object" && (iteration > (devContext.iterationThreshold || 15) || devContext.firstIteration && iteration === 0) && devContext.log && (!devContext.notInternalUse || devContext.notInternalUse && !internalUse)) {
|
|
1110
|
-
console.log({ devContext, iteration, internalUse }, sourceObject);
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
1102
|
const targetObject = Array.isArray(sourceObject) ? [] : {};
|
|
1114
1103
|
const sourceObjectKeys = Object.keys(sourceObject).filter(
|
|
1115
1104
|
(key) => !internalUse || !ignore || Array.isArray(ignore) && !ignore.includes(key) || typeof ignore === "function" && !ignore(key)
|
|
@@ -16437,11 +16426,10 @@ function modifyMatchUpScore({
|
|
|
16437
16426
|
}
|
|
16438
16427
|
if (Array.isArray(defaultedProcessCodes) && inContextMatchUp && !inContextMatchUp.sides?.every(({ participantId }) => participantId)) {
|
|
16439
16428
|
if (matchUpStatus === DEFAULTED) {
|
|
16440
|
-
|
|
16441
|
-
matchUp.processCodes
|
|
16442
|
-
|
|
16443
|
-
|
|
16444
|
-
}
|
|
16429
|
+
matchUp.processCodes = unique([
|
|
16430
|
+
...matchUp.processCodes ?? [],
|
|
16431
|
+
...defaultedProcessCodes
|
|
16432
|
+
]);
|
|
16445
16433
|
} else {
|
|
16446
16434
|
for (const processCode of defaultedProcessCodes || []) {
|
|
16447
16435
|
const codeIndex = processCode && matchUp?.processCodes?.lastIndexOf(processCode);
|