@rian8337/osu-droid-replay-analyzer 2.0.0-alpha.7 → 2.0.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/README.md CHANGED
@@ -44,7 +44,7 @@ import { ReplayAnalyzer } from "@rian8337/osu-droid-replay-analyzer";
44
44
 
45
45
  // Obtaining a beatmap file is optional, however it allows the replay analyzer to output more data
46
46
  // for old replays (replay version 1 or 2)
47
- const beatmapInfo = await MapInfo.getInformation({ beatmapID: 901854 });
47
+ const beatmapInfo = await MapInfo.getInformation(901854);
48
48
 
49
49
  if (!beatmapInfo.title) {
50
50
  return console.log("Beatmap not found");
@@ -78,7 +78,7 @@ readFile("path/to/file.odr", async (err, replayData) => {
78
78
 
79
79
  // Obtaining a beatmap file is optional, however it allows the replay analyzer to output more data
80
80
  // for old replays (replay version 1 or 2)
81
- const beatmapInfo = await MapInfo.getInformation({ beatmapID: 901854 });
81
+ const beatmapInfo = await MapInfo.getInformation(901854);
82
82
 
83
83
  if (!beatmapInfo.title) {
84
84
  return console.log("Beatmap not found");
@@ -119,7 +119,7 @@ import { MapInfo, MapStats } from "@rian8337/osu-base";
119
119
  import { DroidStarRating } from "@rian8337/osu-difficulty-calculator";
120
120
  import { ReplayAnalyzer } from "@rian8337/osu-droid-replay-analyzer";
121
121
 
122
- const beatmapInfo = await MapInfo.getInformation({ beatmapID: 901854 });
122
+ const beatmapInfo = await MapInfo.getInformation(901854);
123
123
 
124
124
  if (!beatmapInfo.title) {
125
125
  return console.log("Beatmap not found");