@rian8337/osu-droid-replay-analyzer 2.2.0 → 2.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/README.md CHANGED
@@ -53,7 +53,7 @@ if (!beatmapInfo.title) {
53
53
  // A `ReplayAnalyzer` instance that contains the replay
54
54
  const replay = await new ReplayAnalyzer({
55
55
  scoreID: 12948732,
56
- map: beatmapInfo.map,
56
+ map: beatmapInfo.beatmap,
57
57
  }).analyze();
58
58
 
59
59
  // The data of the replay
@@ -85,7 +85,7 @@ readFile("path/to/file.odr", async (err, replayData) => {
85
85
  }
86
86
 
87
87
  // A `ReplayAnalyzer` instance that contains the replay
88
- const replay = new ReplayAnalyzer({ scoreID: 0, map: beatmapInfo.map });
88
+ const replay = new ReplayAnalyzer({ scoreID: 0, map: beatmapInfo.beatmap });
89
89
 
90
90
  replay.originalODR = replayData;
91
91
 
@@ -128,7 +128,7 @@ if (!beatmapInfo.title) {
128
128
  // A `ReplayAnalyzer` instance that contains the replay
129
129
  const replay = await new ReplayAnalyzer({
130
130
  scoreID: 12948732,
131
- map: beatmapInfo.map,
131
+ map: beatmapInfo.beatmap,
132
132
  }).analyze();
133
133
 
134
134
  // The data of the replay
@@ -148,7 +148,7 @@ const stats = new MapStats({
148
148
  });
149
149
 
150
150
  replay.map = new DroidStarRating().calculate({
151
- map: beatmapInfo.map,
151
+ map: beatmapInfo.beatmap,
152
152
  mods: data.convertedMods,
153
153
  stats: stats,
154
154
  });