Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Jan 27, 2024
1 parent a3d6a06 commit 5a9ef2c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions anon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"access": "public"
},
"dependencies": {
"@pkmn/data": "^0.8.4",
"@pkmn/data": "^0.8.6",
"@pkmn/protocol": "^0.6.19"
},
"devDependencies": {
"@pkmn/dex": "^0.8.4"
"@pkmn/dex": "^0.8.6"
},
"scripts": {
"lint": "eslint --cache src --ext ts",
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"license": "MIT",
"dependencies": {
"@pkmn/anon": "file:anon",
"@pkmn/data": "^0.8.4",
"@pkmn/dex": "^0.8.4",
"@pkmn/data": "^0.8.6",
"@pkmn/dex": "^0.8.6",
"@pkmn/logs": "file:logs",
"@pkmn/stats": "file:stats",
"json-stringify-pretty-compact": "3.0.0",
Expand All @@ -14,19 +14,19 @@
},
"optionalDependencies": {
"@pkmn/engine": "file:../engine",
"@pkmn/sets": "^5.1.0"
"@pkmn/sets": "^5.1.1"
},
"devDependencies": {
"@babel/preset-env": "^7.23.8",
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@pkmn/eslint-config": "^6.5.0",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.7",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"@types/node": "^20.11.7",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.6.1",
"eslint-plugin-jest": "^27.6.3",
"jest": "^29.7.0",
"subpkg": "^4.1.0",
"tsup": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions stats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"access": "public"
},
"dependencies": {
"@pkmn/data": "^0.8.4"
"@pkmn/data": "^0.8.6"
},
"devDependencies": {
"@pkmn/dex": "^0.8.4",
"@pkmn/dex": "^0.8.6",
"json-stringify-pretty-compact": "3.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion stats/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export const Parser = new class {
let move = toID(pokemon.moves[i]);
if (move === 'hiddenpower') {
const type = !legacy && pokemon.hpType
? pokemon.hpType : gen.types.getHiddenPower(ivs)!.type;
? pokemon.hpType : gen.types.getHiddenPower(ivs).type;
move = `${move}${toID(type)}` as ID;
}
pokemon.moves[i] = move;
Expand Down
2 changes: 1 addition & 1 deletion stats/src/reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const Reports = new class {
for (const [species, moveset] of movesetStats.entries()) {
if (moveset.usage < 0.0001) break; // 1/100th of a percent

const p = stats.pokemon[species]!;
const p = stats.pokemon[species];

s += sep;
s += ` | ${util.displaySpecies(gen, species, legacy)}`.padEnd(WIDTH + 2) + '| \n';
Expand Down
6 changes: 3 additions & 3 deletions stats/src/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ export const Stats = new class {
const pw = {p1: playerWeights[0][i], p2: playerWeights[1][i]};
const cutoff = cutoffs[i];
if (!tagsOnly) {
const s = stats.total[cutoff]!;
const s = stats.total[cutoff];
if (updateLeads(s, battle, pw, playerTags)) {
updateEncounters(s, battle.matchups, weight);
s.battles++;
}
}

for (const tag of tags) {
const s = stats.tags[tag]![cutoff]!;
const s = stats.tags[tag][cutoff];
if (updateLeads(s, battle, pw, playerTags, tag)) {
updateEncounters(s, battle.matchups, weight);
s.battles++;
Expand Down Expand Up @@ -538,7 +538,7 @@ function updateLeads(

for (const side of sides) {
if (tag && !tags[side].has(tag)) continue;
const usage = stats.pokemon[leads[side]]!.lead;
const usage = stats.pokemon[leads[side]].lead;
usage.raw++;
stats.lead.raw++;

Expand Down

0 comments on commit 5a9ef2c

Please sign in to comment.