@wise-old-man/utils 3.1.14 → 3.1.15

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/dist/index.d.ts CHANGED
@@ -2111,7 +2111,7 @@ declare class PlayersClient extends BaseAPIClient {
2111
2111
  * Fetches all of the player's past snapshots.
2112
2112
  * @returns A list of snapshots.
2113
2113
  */
2114
- getPlayerSnapshots(username: string, options?: TimeRangeFilter): Promise<FormattedSnapshot[]>;
2114
+ getPlayerSnapshots(username: string, filter: TimeRangeFilter, pagination?: PaginationOptions): Promise<FormattedSnapshot[]>;
2115
2115
  /**
2116
2116
  * Fetches all of the player's past snapshots' timeline.
2117
2117
  * @returns A list of timeseries data (value, rank, date)
package/dist/index.js CHANGED
@@ -446,8 +446,8 @@ class PlayersClient extends BaseAPIClient {
446
446
  * Fetches all of the player's past snapshots.
447
447
  * @returns A list of snapshots.
448
448
  */
449
- getPlayerSnapshots(username, options) {
450
- return this.getRequest(`/players/${username}/snapshots`, options);
449
+ getPlayerSnapshots(username, filter, pagination) {
450
+ return this.getRequest(`/players/${username}/snapshots`, Object.assign(Object.assign({}, filter), pagination));
451
451
  }
452
452
  /**
453
453
  * Fetches all of the player's past snapshots' timeline.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "3.1.14",
3
+ "version": "3.1.15",
4
4
  "description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
5
5
  "keywords": [
6
6
  "wiseoldman",