tods-competition-factory 1.7.11 → 1.7.12
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/index.mjs +21 -12
- package/dist/index.mjs.map +1 -1
- package/dist/tods-competition-factory.development.cjs.js +22 -10
- 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
|
@@ -362,7 +362,7 @@ var matchUpFormatCode = {
|
|
|
362
362
|
};
|
|
363
363
|
|
|
364
364
|
function factoryVersion() {
|
|
365
|
-
return '1.7.
|
|
365
|
+
return '1.7.12';
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
/******************************************************************************
|
|
@@ -18241,7 +18241,6 @@ function compareTieFormats(_a) {
|
|
|
18241
18241
|
return collectionOrder;
|
|
18242
18242
|
})
|
|
18243
18243
|
.join('|'));
|
|
18244
|
-
var different = nameDifference || orderDifference || ancestorDesc !== descendantDesc;
|
|
18245
18244
|
var descendantCollectionDefinitions = Object.assign.apply(Object, __spreadArray([{}], __read(((descendant === null || descendant === void 0 ? void 0 : descendant.collectionDefinitions) || []).map(function (collectionDefinition) {
|
|
18246
18245
|
var _a;
|
|
18247
18246
|
return (_a = {},
|
|
@@ -18256,8 +18255,8 @@ function compareTieFormats(_a) {
|
|
|
18256
18255
|
})), false));
|
|
18257
18256
|
descendantDifferences.collectionIds = difference(Object.keys(descendantCollectionDefinitions), Object.keys(ancestorCollectionDefinitions));
|
|
18258
18257
|
ancestorDifferences.collectionIds = difference(Object.keys(ancestorCollectionDefinitions), Object.keys(descendantCollectionDefinitions));
|
|
18259
|
-
descendantDifferences.collectionsValue = getCollectionsValue(descendantCollectionDefinitions
|
|
18260
|
-
ancestorDifferences.collectionsValue = getCollectionsValue(ancestorCollectionDefinitions
|
|
18258
|
+
descendantDifferences.collectionsValue = getCollectionsValue(descendantCollectionDefinitions);
|
|
18259
|
+
ancestorDifferences.collectionsValue = getCollectionsValue(ancestorCollectionDefinitions);
|
|
18261
18260
|
descendantDifferences.groupsCount =
|
|
18262
18261
|
(_c = (_b = ancestor === null || ancestor === void 0 ? void 0 : ancestor.collectionGroups) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : (0 - ((_e = (_d = descendant === null || descendant === void 0 ? void 0 : descendant.collectionGroups) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0) || 0);
|
|
18263
18262
|
ancestorDifferences.groupsCount = descendantDifferences.groupsCount
|
|
@@ -18267,20 +18266,32 @@ function compareTieFormats(_a) {
|
|
|
18267
18266
|
ancestorDifferences.collectionsValue.totalValue;
|
|
18268
18267
|
var matchUpCountDifference = descendantDifferences.collectionsValue.totalMatchUps -
|
|
18269
18268
|
ancestorDifferences.collectionsValue.totalMatchUps;
|
|
18269
|
+
var different = nameDifference ||
|
|
18270
|
+
orderDifference ||
|
|
18271
|
+
ancestorDesc !== descendantDesc ||
|
|
18272
|
+
valueDifference !== 0;
|
|
18270
18273
|
return __assign(__assign({ matchUpFormatDifferences: matchUpFormatDifferences, matchUpCountDifference: matchUpCountDifference, descendantDifferences: descendantDifferences, ancestorDifferences: ancestorDifferences, orderDifference: orderDifference, valueDifference: valueDifference, nameDifference: nameDifference, descendantDesc: descendantDesc, ancestorDesc: ancestorDesc }, SUCCESS), { different: different });
|
|
18271
18274
|
}
|
|
18272
|
-
function getCollectionsValue(definitions
|
|
18275
|
+
function getCollectionsValue(definitions) {
|
|
18273
18276
|
var totalMatchUps = 0;
|
|
18274
|
-
var
|
|
18277
|
+
var collectionIds = Object.keys(definitions);
|
|
18278
|
+
var totalValue = collectionIds.reduce(function (total, collectionId) {
|
|
18275
18279
|
var collectionDefinition = definitions[collectionId];
|
|
18276
|
-
var collectionValueProfiles = collectionDefinition.collectionValueProfiles, collectionValue = collectionDefinition.collectionValue, matchUpCount = collectionDefinition.matchUpCount, matchUpValue = collectionDefinition.matchUpValue;
|
|
18280
|
+
var collectionValueProfiles = collectionDefinition.collectionValueProfiles, collectionValue = collectionDefinition.collectionValue, matchUpCount = collectionDefinition.matchUpCount, matchUpValue = collectionDefinition.matchUpValue, scoreValue = collectionDefinition.scoreValue, setValue = collectionDefinition.setValue;
|
|
18277
18281
|
totalMatchUps += matchUpCount;
|
|
18278
18282
|
if (collectionValueProfiles)
|
|
18279
18283
|
return (total +
|
|
18280
18284
|
collectionValueProfiles.reduce(function (total, profile) { return total + profile.value; }, 0));
|
|
18281
|
-
if (
|
|
18282
|
-
|
|
18283
|
-
|
|
18285
|
+
if (matchUpCount) {
|
|
18286
|
+
if (isConvertableInteger(matchUpValue))
|
|
18287
|
+
return total + matchUpValue * matchUpCount;
|
|
18288
|
+
if (isConvertableInteger(scoreValue))
|
|
18289
|
+
return total + scoreValue * matchUpCount;
|
|
18290
|
+
if (isConvertableInteger(setValue))
|
|
18291
|
+
return total + setValue * matchUpCount;
|
|
18292
|
+
return total + collectionValue;
|
|
18293
|
+
}
|
|
18294
|
+
return total;
|
|
18284
18295
|
}, 0);
|
|
18285
18296
|
return { totalValue: totalValue, totalMatchUps: totalMatchUps };
|
|
18286
18297
|
}
|
|
@@ -65533,6 +65544,7 @@ var lastNames = [
|
|
|
65533
65544
|
"Dallas",
|
|
65534
65545
|
"Diamond",
|
|
65535
65546
|
"Deckard",
|
|
65547
|
+
"Dunbar",
|
|
65536
65548
|
"Earhart",
|
|
65537
65549
|
"Eisenstein",
|
|
65538
65550
|
"Eldritch",
|