New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tods-competition-factory

Package Overview
Dependencies
Maintainers
1
Versions
1655
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tods-competition-factory - npm Package Compare versions

Comparing version 0.1.21 to 0.1.22

src/drawEngine/governors/scoreGovernor/generateScoreString.ts

4

package.json

@@ -10,3 +10,3 @@ {

],
"version": "0.1.21",
"version": "0.1.22",
"license": "MIT",

@@ -56,3 +56,3 @@ "private": false,

"@babel/preset-typescript": "7.10.4",
"@types/jest": "26.0.13",
"@types/jest": "26.0.14",
"eslint-config-prettier": "6.11.0",

@@ -59,0 +59,0 @@ "eslint-plugin-jest": "24.0.1",

import { analyzeSet } from './analyzeSet';
import { analyzeMatchUp } from './analyzeMatchUp';
import { tallyBracket } from './roundRobinTally';
import { generateScoreString } from './generateScoreString';
import { getSetComplement, getTiebreakComplement } from './getComplement';

@@ -8,8 +9,9 @@

analyzeSet,
tallyBracket,
analyzeMatchUp,
getSetComplement,
generateScoreString,
getTiebreakComplement,
tallyBracket,
};
export default scoreGovernor;

@@ -1,3 +0,3 @@

export const tournamentRecordTemplate = () => ({
tournamentId: null,
export const tournamentRecordTemplate = ({ tournamentId }) => ({
tournamentId,
tournamentRank: null,

@@ -32,4 +32,13 @@ tournamentCategories: [],

},
unifiedTournamentId: {
tournamentId,
organisation: {
organisationId: null,
organisationName: null,
organisationAbbreviation: null,
},
},
});
export default tournamentRecordTemplate;

@@ -10,3 +10,5 @@ import { makeDeepCopy } from '../../utilities/makeDeepCopy';

}) {
const { tournamentId } = tournamentRecord;
const tournamentId =
tournamentRecord.unifiedTournamentId?.tournamentId ||
tournamentRecord.tournamentId;
const events = tournamentRecord?.events || [];

@@ -59,3 +61,5 @@ const participants = getParticipants({ tournamentRecord });

}) {
const { tournamentId } = tournamentRecord;
const tournamentId =
tournamentRecord.unifiedTournamentId?.tournamentId ||
tournamentRecord.tournamentId;
const events = (tournamentRecord && tournamentRecord.events) || [];

@@ -62,0 +66,0 @@ const participants = getParticipants({ tournamentRecord });

@@ -23,3 +23,3 @@ import { UUID } from '../utilities';

if (!props.tournamentId) Object.assign(props, { tournamentId: UUID() });
const template = definitionTemplate();
const template = definitionTemplate(props);
return Object.assign({}, template, props);

@@ -34,8 +34,7 @@ }

if (typeof tournament !== 'object') return { error: 'Invalid Object' };
if (!tournament.tournamentId) return { error: 'Missing tournamentId' };
const tournamentId =
tournament.unifiedTournamentId?.tournamentId || tournament.tournamentId;
if (!tournamentId) return { error: 'Missing tournamentId' };
tournamentRecord = makeDeepCopy(tournament);
return Object.assign(
{ tournamentId: tournamentRecord.tournamentId },
SUCCESS
);
return Object.assign({ tournamentId }, SUCCESS);
}

@@ -57,6 +56,4 @@

tournamentRecord = newTournamentRecord(props);
return Object.assign(
{ tournamentId: tournamentRecord.tournamentId },
SUCCESS
);
const tournamentId = tournamentRecord.unifiedTournamentId?.tournamentId;
return Object.assign({ tournamentId }, SUCCESS);
},

@@ -63,0 +60,0 @@ };

@@ -101,3 +101,5 @@ import { tournamentEngine } from '../../../tournamentEngine';

let tournamentRecord = tournamentEngine.getState();
const { tournamentId } = tournamentRecord;
const tournamentId =
tournamentRecord.unifiedTournamentId?.tournamentId ||
tournamentRecord.tournamentId;
let tournamentRecords = { [tournamentId]: tournamentRecord };

@@ -104,0 +106,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc