tods-competition-factory 1.9.1 → 1.9.3
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 +22 -25
- 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 +228 -222
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +323 -349
- 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/query.mjs
CHANGED
|
@@ -454,7 +454,6 @@ function handleCaughtError({
|
|
|
454
454
|
const globalState = {
|
|
455
455
|
tournamentFactoryVersion: "0.0.0",
|
|
456
456
|
timers: { default: { elapsedTime: 0 } },
|
|
457
|
-
iterators: { makeDeepCopy: 0 },
|
|
458
457
|
deepCopyAttributes: {
|
|
459
458
|
stringify: [],
|
|
460
459
|
ignore: [],
|
|
@@ -474,9 +473,6 @@ function getDevContext(contextCriteria) {
|
|
|
474
473
|
) && globalState.devContext;
|
|
475
474
|
}
|
|
476
475
|
}
|
|
477
|
-
function setDeepCopyIterations(value) {
|
|
478
|
-
globalState.iterators.makeDeepCopy = value;
|
|
479
|
-
}
|
|
480
476
|
function deepCopyEnabled() {
|
|
481
477
|
return {
|
|
482
478
|
enabled: globalState.deepCopy,
|
|
@@ -635,13 +631,6 @@ function makeDeepCopy(sourceObject, convertExtensions, internalUse, removeExtens
|
|
|
635
631
|
if (!deepCopy?.enabled && !internalUse || typeof sourceObject !== "object" || typeof sourceObject === "function" || sourceObject === null || typeof deepCopy?.threshold === "number" && iteration >= deepCopy.threshold) {
|
|
636
632
|
return sourceObject;
|
|
637
633
|
}
|
|
638
|
-
const devContext = getDevContext({ makeDeepCopy: true });
|
|
639
|
-
if (devContext) {
|
|
640
|
-
setDeepCopyIterations(iteration);
|
|
641
|
-
if (typeof devContext === "object" && (iteration > (devContext.iterationThreshold || 15) || devContext.firstIteration && iteration === 0) && devContext.log && (!devContext.notInternalUse || devContext.notInternalUse && !internalUse)) {
|
|
642
|
-
console.log({ devContext, iteration, internalUse }, sourceObject);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
634
|
const targetObject = Array.isArray(sourceObject) ? [] : {};
|
|
646
635
|
const sourceObjectKeys = Object.keys(sourceObject).filter(
|
|
647
636
|
(key) => !internalUse || !ignore || Array.isArray(ignore) && !ignore.includes(key) || typeof ignore === "function" && !ignore(key)
|