chofex-cli 0.1.181 → 0.1.184

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -58869,6 +58869,8 @@ var ChallengeRankingEntrySchema = exports_Schema.Struct({
58869
58869
  rank: exports_Schema.Number,
58870
58870
  displayName: exports_Schema.String,
58871
58871
  shareCode: exports_Schema.String,
58872
+ githubUrl: exports_Schema.optional(exports_Schema.String),
58873
+ linkedInUrl: exports_Schema.optional(exports_Schema.String),
58872
58874
  accuracy: exports_Schema.Number,
58873
58875
  exactCount: exports_Schema.Number,
58874
58876
  sampleSize: exports_Schema.Number,
@@ -60188,7 +60190,9 @@ var challengeRankingText = (ranking, now3 = new Date) => {
60188
60190
  const accuracy = percent(entry.accuracy).padStart(8, " ");
60189
60191
  const points = `${entry.exactCount}/${entry.sampleSize}`.padStart(11, " ");
60190
60192
  const runtime = `${entry.runtimeMs}ms`.padStart(8, " ");
60191
- lines2.push(`${rank} ${accuracy} ${points} ${runtime} ${entry.displayName} #${entry.shareCode}`);
60193
+ const profileLinks = [entry.githubUrl, entry.linkedInUrl].filter(Boolean);
60194
+ const participant = [entry.displayName, ...profileLinks].join(" ");
60195
+ lines2.push(`${rank} ${accuracy} ${points} ${runtime} ${participant}`);
60192
60196
  }
60193
60197
  return lines2.join(`
60194
60198
  `);
@@ -60199,7 +60203,9 @@ var challengeRankingText = (ranking, now3 = new Date) => {
60199
60203
  const accuracy = percent(entry.accuracy).padStart(8, " ");
60200
60204
  const exact = `${entry.exactCount}/${entry.sampleSize}`.padStart(11, " ");
60201
60205
  const queries = String(entry.queriesUsed).padStart(7, " ");
60202
- lines2.push(`${rank} ${accuracy} ${exact} ${queries} ${entry.displayName} #${entry.shareCode}`);
60206
+ const profileLinks = [entry.githubUrl, entry.linkedInUrl].filter(Boolean);
60207
+ const participant = [entry.displayName, ...profileLinks].join(" ");
60208
+ lines2.push(`${rank} ${accuracy} ${exact} ${queries} ${participant}`);
60203
60209
  }
60204
60210
  return lines2.join(`
60205
60211
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chofex-cli",
3
- "version": "0.1.181",
3
+ "version": "0.1.184",
4
4
  "description": "Command-line client for Hack the Andes",
5
5
  "type": "module",
6
6
  "bin": {