Skip to content

Commit 5883275

Browse files
committed
update deps
1 parent 6365d99 commit 5883275

File tree

10 files changed

+32
-23
lines changed

10 files changed

+32
-23
lines changed

anon/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pkmn/anon",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "Logic for anonymizing Pokémon Showdown battle simulator logs",
55
"repository": "github:pkmn/stats",
66
"license": "MIT",
@@ -16,11 +16,11 @@
1616
"access": "public"
1717
},
1818
"dependencies": {
19-
"@pkmn/data": "^0.7.45",
19+
"@pkmn/data": "^0.7.47",
2020
"@pkmn/protocol": "^0.6.12"
2121
},
2222
"devDependencies": {
23-
"@pkmn/dex": "^0.7.45"
23+
"@pkmn/dex": "^0.7.47"
2424
},
2525
"scripts": {
2626
"lint": "eslint --cache src --ext ts",

logs/src/checkpoints.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
import {Configuration, ID} from './config';
23
import {CheckpointStorage} from './storage';
34

logs/src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
import * as path from 'path';
23

34
import * as util from './util';

logs/src/storage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
import * as path from 'path';
23

34
import {Batch, Checkpoint} from './checkpoints';

logs/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
/* eslint-disable */
22
import * as threads from 'bthreads';
33

44
import {Batch, Checkpoint} from './checkpoints';

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"license": "MIT",
55
"dependencies": {
66
"@pkmn/anon": "file:anon",
7-
"@pkmn/data": "^0.7.45",
8-
"@pkmn/dex": "^0.7.45",
7+
"@pkmn/data": "^0.7.47",
8+
"@pkmn/dex": "^0.7.47",
99
"@pkmn/logs": "file:logs",
1010
"@pkmn/stats": "file:stats",
1111
"json-stringify-pretty-compact": "3.0.0",
@@ -17,17 +17,17 @@
1717
"@pkmn/sets": "^5.0.4"
1818
},
1919
"devDependencies": {
20-
"@babel/preset-env": "^7.22.5",
20+
"@babel/preset-env": "^7.22.9",
2121
"@babel/preset-typescript": "^7.22.5",
22-
"@pkmn/eslint-config": "^3.3.0",
23-
"@types/jest": "^29.5.2",
24-
"@types/node": "^20.3.3",
25-
"@typescript-eslint/eslint-plugin": "^5.60.1",
26-
"@typescript-eslint/parser": "^5.60.1",
27-
"eslint": "^8.44.0",
28-
"eslint-plugin-import": "^2.27.5",
29-
"eslint-plugin-jest": "^27.2.2",
30-
"jest": "^29.5.0",
22+
"@pkmn/eslint-config": "^5.1.0",
23+
"@types/jest": "^29.5.3",
24+
"@types/node": "^20.4.5",
25+
"@typescript-eslint/eslint-plugin": "^6.2.1",
26+
"@typescript-eslint/parser": "^6.2.1",
27+
"eslint": "^8.46.0",
28+
"eslint-plugin-import": "^2.28.0",
29+
"eslint-plugin-jest": "^27.2.3",
30+
"jest": "^29.6.2",
3131
"subpkg": "^4.1.0",
3232
"tsup": "^7.1.0",
3333
"typescript": "^5.1.6"

stats/package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pkmn/stats",
3-
"version": "0.2.8",
3+
"version": "0.2.9",
44
"description": "Logic for processing usage stats from Pokémon Showdown battle simulator logs",
55
"repository": "github:pkmn/stats",
66
"license": "MIT",
@@ -16,10 +16,10 @@
1616
"access": "public"
1717
},
1818
"dependencies": {
19-
"@pkmn/data": "^0.7.45"
19+
"@pkmn/data": "^0.7.47"
2020
},
2121
"devDependencies": {
22-
"@pkmn/dex": "^0.7.45",
22+
"@pkmn/dex": "^0.7.47",
2323
"json-stringify-pretty-compact": "3.0.0"
2424
},
2525
"scripts": {
@@ -50,6 +50,9 @@
5050
]
5151
},
5252
"eslintConfig": {
53-
"extends": "@pkmn"
53+
"extends": "@pkmn",
54+
"rules": {
55+
"@typescript-eslint/no-redundant-type-constituents": "off"
56+
}
5457
}
5558
}

stats/src/binary.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Dex, Generation, ID, PokemonSet, StatsTable, TypeName, toID} from '@pkmn/data';
1+
import {Dex, Generation, ID, PokemonSet, TypeName, toID} from '@pkmn/data';
22

33
import * as parser from './parser';
44
import {weighting} from './util';
@@ -453,11 +453,13 @@ function round(v: number, p = 1e4) {
453453
return Math.round(v * p);
454454
}
455455

456+
/*
456457
function bias(stats: StatsTable) {
457458
const [first, second] = Object.entries(stats).sort((a, b) => b[1] - a[1]);
458459
// TODO: convert this pair (eg. 'atkhp') to a number
459460
return first[0] > second[0] ? [first[0], second[0]] : [second[0], first[0]];
460461
}
462+
*/
461463

462464
export const Binary = {Read, Write, Sizes, Log, Team, Stats, Display};
463465

stats/src/display.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const Display = new class {
9090

9191
const q = Object.entries(stats.pokemon);
9292
const real = ['challengecup1v1', '1v1'].includes(format);
93-
const total = Math.max(1.0, real ? stats.usage.real : stats.usage.weighted);
93+
// const total = Math.max(1.0, real ? stats.usage.real : stats.usage.weighted);
9494
if (['randombattle', 'challengecup', 'challengcup1v1', 'seasonal'].includes(format)) {
9595
q.sort((a, b) => N(a[0]).localeCompare(N(b[0])));
9696
} else if (real) {

workflows/smogon/stats.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ const StatsWorker = new class extends CombineWorker<Configuration, ApplyState, C
130130
};
131131
}
132132

133-
async processLog(log: string, state: ApplyState, shard?: string) {
133+
// async processLog(log: string, state: ApplyState, shard?: string) {
134+
async processLog(log: string, state: ApplyState) {
134135
const raw = JSON.parse(await this.storage.logs.read(log));
135136
const battle = Parser.parse(state.gen, state.format, raw);
136137
Stats.updateWeighted(

0 commit comments

Comments
 (0)