mtg-playerinfo 1.2.0 → 1.3.0
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/.github/workflows/ci.yml +29 -3
- package/.github/workflows/update-test-data.yml +33 -0
- package/README.md +16 -11
- package/cli.js +30 -13
- package/package.json +21 -2
- package/scripts/update-test-data.js +29 -0
- package/src/fetchers/melee.js +26 -35
- package/src/fetchers/mtgElo.js +40 -40
- package/src/fetchers/topdeck.js +70 -67
- package/src/fetchers/unityLeague.js +45 -45
- package/src/fetchers/untapped.js +54 -0
- package/src/index.js +75 -42
- package/src/utils/httpClient.js +30 -30
- package/test/data/melee.html +77 -62
- package/test/data/mtgElo.html +8 -8
- package/test/data/topdeck.html +778 -662
- package/test/data/topdeck.json +1 -0
- package/test/data/unityLeague.html +1445 -1340
- package/test/data/untapped.json +104 -0
- package/test/edgeCases.test.js +128 -0
- package/test/melee.test.js +23 -23
- package/test/meleeEdgeCases.test.js +53 -0
- package/test/mtgElo.test.js +21 -21
- package/test/mtgEloEdgeCases.test.js +92 -0
- package/test/playerInfoManager.test.js +312 -0
- package/test/topdeck.test.js +42 -29
- package/test/unityLeague.test.js +24 -24
- package/test/unityLeagueEdgeCases.test.js +123 -0
- package/test/untapped.test.js +58 -0
- package/test/verboseLogging.test.js +215 -0
- package/test/winRatePrecision.test.js +25 -0
- package/.github/workflows/pull-player-data.yml +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"gameFormats":{"Magic: The Gathering: Modern":[{"id":"modern-championship-buden-brawl-open-2025-copy","name":"Modern Championship @ Buden Brawl Open 2025","date":"2025-03-29T09:00:00.000Z","record":"4-2-0","placement":"16th","placementNumber":16,"size":54,"game":"Magic: The Gathering","bracketLink":"https://topdeck.gg/bracket/modern-championship-buden-brawl-open-2025-copy","topCut":8,"rawFormat":"Modern"}],"Magic: The Gathering: EDH":[{"id":"the-invasion-2025-cedh-championship","name":"The Invasion 2025 - cEDH Championship","date":"2025-10-04T06:00:00.000Z","record":"0-4-1","placement":"118th","placementNumber":118,"size":124,"game":"Magic: The Gathering","bracketLink":"https://topdeck.gg/bracket/the-invasion-2025-cedh-championship","topCut":40,"rawFormat":"EDH"}]},"topFinishes":{"Magic: The Gathering: Modern":{"firstPlaceFinishes":0,"top2":0,"top4":0,"top8":0,"top10":0,"top16":0},"Magic: The Gathering: EDH":{"firstPlaceFinishes":0,"top2":0,"top4":0,"top8":0,"top10":0,"top16":0}},"yearlyStats":{"2025":{"Magic: The Gathering: Modern":{"totalTournaments":1,"topCutEligible":1,"wins":4,"losses":2,"draws":0,"firstPlaceFinishes":0,"top2":0,"top4":0,"top8":0,"top10":0,"top16":0},"Magic: The Gathering: EDH":{"totalTournaments":1,"topCutEligible":1,"wins":0,"losses":4,"draws":1,"firstPlaceFinishes":0,"top2":0,"top4":0,"top8":0,"top10":0,"top16":0},"overall":{"totalTournaments":2,"topCutEligible":2,"wins":4,"losses":6,"draws":1,"firstPlaceFinishes":0,"top2":0,"top4":0,"top8":0,"top10":0,"top16":0}}},"tdcsData":null,"leaguesData":null}
|