@wise-old-man/utils 2.0.9 → 2.0.11
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 +7 -1
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export type Prisma_Base_Delta = {
|
|
|
84
84
|
nightmare: number
|
|
85
85
|
phosanis_nightmare: number
|
|
86
86
|
obor: number
|
|
87
|
+
phantom_muspah: number
|
|
87
88
|
sarachnis: number
|
|
88
89
|
scorpia: number
|
|
89
90
|
skotizo: number
|
|
@@ -333,6 +334,8 @@ export type Prisma_Base_Snapshot = {
|
|
|
333
334
|
nightmareKills: number
|
|
334
335
|
oborRank: number
|
|
335
336
|
oborKills: number
|
|
337
|
+
phantom_muspahRank: number
|
|
338
|
+
phantom_muspahKills: number
|
|
336
339
|
sarachnisRank: number
|
|
337
340
|
sarachnisKills: number
|
|
338
341
|
scorpiaRank: number
|
|
@@ -507,6 +510,7 @@ declare const Boss: {
|
|
|
507
510
|
readonly NIGHTMARE: "nightmare";
|
|
508
511
|
readonly PHOSANIS_NIGHTMARE: "phosanis_nightmare";
|
|
509
512
|
readonly OBOR: "obor";
|
|
513
|
+
readonly PHANTOM_MUSPAH: "phantom_muspah";
|
|
510
514
|
readonly SARACHNIS: "sarachnis";
|
|
511
515
|
readonly SCORPIA: "scorpia";
|
|
512
516
|
readonly SKOTIZO: "skotizo";
|
|
@@ -567,6 +571,7 @@ declare const Metric: {
|
|
|
567
571
|
readonly NIGHTMARE: "nightmare";
|
|
568
572
|
readonly PHOSANIS_NIGHTMARE: "phosanis_nightmare";
|
|
569
573
|
readonly OBOR: "obor";
|
|
574
|
+
readonly PHANTOM_MUSPAH: "phantom_muspah";
|
|
570
575
|
readonly SARACHNIS: "sarachnis";
|
|
571
576
|
readonly SCORPIA: "scorpia";
|
|
572
577
|
readonly SKOTIZO: "skotizo";
|
|
@@ -1617,6 +1622,7 @@ declare const MetricProps: {
|
|
|
1617
1622
|
readonly nightmare: BossProperties;
|
|
1618
1623
|
readonly phosanis_nightmare: BossProperties;
|
|
1619
1624
|
readonly obor: BossProperties;
|
|
1625
|
+
readonly phantom_muspah: BossProperties;
|
|
1620
1626
|
readonly sarachnis: BossProperties;
|
|
1621
1627
|
readonly scorpia: BossProperties;
|
|
1622
1628
|
readonly skotizo: BossProperties;
|
|
@@ -2010,7 +2016,7 @@ declare class PlayersClient extends BaseAPIClient {
|
|
|
2010
2016
|
* Fetches all of the player's past snapshots.
|
|
2011
2017
|
* @returns A list of snapshots.
|
|
2012
2018
|
*/
|
|
2013
|
-
getPlayerSnapshots(username: string, options?: TimeRangeFilter
|
|
2019
|
+
getPlayerSnapshots(username: string, options?: TimeRangeFilter): Promise<FormattedSnapshot[]>;
|
|
2014
2020
|
/**
|
|
2015
2021
|
* Fetches all of the player's approved name changes.
|
|
2016
2022
|
* @returns A list of name changes.
|
package/dist/index.js
CHANGED
|
@@ -398,8 +398,8 @@ class PlayersClient extends BaseAPIClient {
|
|
|
398
398
|
* Fetches all of the player's past snapshots.
|
|
399
399
|
* @returns A list of snapshots.
|
|
400
400
|
*/
|
|
401
|
-
getPlayerSnapshots(username, options
|
|
402
|
-
return this.getRequest(`/players/${username}/snapshots`,
|
|
401
|
+
getPlayerSnapshots(username, options) {
|
|
402
|
+
return this.getRequest(`/players/${username}/snapshots`, options);
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* Fetches all of the player's approved name changes.
|
|
@@ -535,6 +535,7 @@ const Boss = {
|
|
|
535
535
|
NIGHTMARE: 'nightmare',
|
|
536
536
|
PHOSANIS_NIGHTMARE: 'phosanis_nightmare',
|
|
537
537
|
OBOR: 'obor',
|
|
538
|
+
PHANTOM_MUSPAH: 'phantom_muspah',
|
|
538
539
|
SARACHNIS: 'sarachnis',
|
|
539
540
|
SCORPIA: 'scorpia',
|
|
540
541
|
SKOTIZO: 'skotizo',
|
|
@@ -1834,6 +1835,7 @@ const BossProps = lodash.mapValues({
|
|
|
1834
1835
|
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
1835
1836
|
[Boss.PHOSANIS_NIGHTMARE]: { name: "Phosani's Nightmare" },
|
|
1836
1837
|
[Boss.OBOR]: { name: 'Obor', minimumValue: 5, isMembers: false },
|
|
1838
|
+
[Boss.PHANTOM_MUSPAH]: { name: 'Phantom Muspah', minimumValue: 50 },
|
|
1837
1839
|
[Boss.SARACHNIS]: { name: 'Sarachnis' },
|
|
1838
1840
|
[Boss.SKOTIZO]: { name: 'Skotizo', minimumValue: 5 },
|
|
1839
1841
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
@@ -2002,6 +2004,9 @@ function parseMetricAbbreviation(abbreviation) {
|
|
|
2002
2004
|
case 'guardians':
|
|
2003
2005
|
case 'ggs':
|
|
2004
2006
|
return Metric.GROTESQUE_GUARDIANS;
|
|
2007
|
+
case 'phantom':
|
|
2008
|
+
case 'muspah':
|
|
2009
|
+
return Metric.PHANTOM_MUSPAH;
|
|
2005
2010
|
case 'kq':
|
|
2006
2011
|
return Metric.KALPHITE_QUEEN;
|
|
2007
2012
|
case 'kbd':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
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",
|