@wise-old-man/utils 3.2.0 → 3.2.1
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/cjs/index.cjs +8 -2
- package/dist/es/index.js +8 -2
- package/dist/es/index.mjs +8 -2
- package/dist/index.d.ts +9 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -558,7 +558,8 @@ const Activity = {
|
|
|
558
558
|
LAST_MAN_STANDING: 'last_man_standing',
|
|
559
559
|
PVP_ARENA: 'pvp_arena',
|
|
560
560
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
561
|
-
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift'
|
|
561
|
+
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
562
|
+
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
562
563
|
};
|
|
563
564
|
const Boss = {
|
|
564
565
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
@@ -590,6 +591,7 @@ const Boss = {
|
|
|
590
591
|
KRAKEN: 'kraken',
|
|
591
592
|
KREEARRA: 'kreearra',
|
|
592
593
|
KRIL_TSUTSAROTH: 'kril_tsutsaroth',
|
|
594
|
+
LUNAR_CHESTS: 'lunar_chests',
|
|
593
595
|
MIMIC: 'mimic',
|
|
594
596
|
NEX: 'nex',
|
|
595
597
|
NIGHTMARE: 'nightmare',
|
|
@@ -600,6 +602,7 @@ const Boss = {
|
|
|
600
602
|
SCORPIA: 'scorpia',
|
|
601
603
|
SCURRIUS: 'scurrius',
|
|
602
604
|
SKOTIZO: 'skotizo',
|
|
605
|
+
SOL_HEREDIT: 'sol_heredit',
|
|
603
606
|
SPINDEL: 'spindel',
|
|
604
607
|
TEMPOROSS: 'tempoross',
|
|
605
608
|
THE_GAUNTLET: 'the_gauntlet',
|
|
@@ -1925,6 +1928,7 @@ const BossProps = mapValues({
|
|
|
1925
1928
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
1926
1929
|
[Boss.KREEARRA]: { name: "Kree'Arra" },
|
|
1927
1930
|
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
|
|
1931
|
+
[Boss.LUNAR_CHESTS]: { name: 'Lunar Chests' },
|
|
1928
1932
|
[Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
|
|
1929
1933
|
[Boss.NEX]: { name: 'Nex' },
|
|
1930
1934
|
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
@@ -1935,6 +1939,7 @@ const BossProps = mapValues({
|
|
|
1935
1939
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1936
1940
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
1937
1941
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
1942
|
+
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
1938
1943
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
|
1939
1944
|
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
1940
1945
|
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
|
|
@@ -1970,7 +1975,8 @@ const ActivityProps = mapValues({
|
|
|
1970
1975
|
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
|
|
1971
1976
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1972
1977
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1973
|
-
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
|
|
1978
|
+
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1979
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1974
1980
|
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.ACTIVITY, measure: exports.MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1975
1981
|
const ComputedMetricProps = mapValues({
|
|
1976
1982
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
package/dist/es/index.js
CHANGED
|
@@ -556,7 +556,8 @@ const Activity = {
|
|
|
556
556
|
LAST_MAN_STANDING: 'last_man_standing',
|
|
557
557
|
PVP_ARENA: 'pvp_arena',
|
|
558
558
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
559
|
-
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift'
|
|
559
|
+
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
560
|
+
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
560
561
|
};
|
|
561
562
|
const Boss = {
|
|
562
563
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
@@ -588,6 +589,7 @@ const Boss = {
|
|
|
588
589
|
KRAKEN: 'kraken',
|
|
589
590
|
KREEARRA: 'kreearra',
|
|
590
591
|
KRIL_TSUTSAROTH: 'kril_tsutsaroth',
|
|
592
|
+
LUNAR_CHESTS: 'lunar_chests',
|
|
591
593
|
MIMIC: 'mimic',
|
|
592
594
|
NEX: 'nex',
|
|
593
595
|
NIGHTMARE: 'nightmare',
|
|
@@ -598,6 +600,7 @@ const Boss = {
|
|
|
598
600
|
SCORPIA: 'scorpia',
|
|
599
601
|
SCURRIUS: 'scurrius',
|
|
600
602
|
SKOTIZO: 'skotizo',
|
|
603
|
+
SOL_HEREDIT: 'sol_heredit',
|
|
601
604
|
SPINDEL: 'spindel',
|
|
602
605
|
TEMPOROSS: 'tempoross',
|
|
603
606
|
THE_GAUNTLET: 'the_gauntlet',
|
|
@@ -1923,6 +1926,7 @@ const BossProps = mapValues({
|
|
|
1923
1926
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
1924
1927
|
[Boss.KREEARRA]: { name: "Kree'Arra" },
|
|
1925
1928
|
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
|
|
1929
|
+
[Boss.LUNAR_CHESTS]: { name: 'Lunar Chests' },
|
|
1926
1930
|
[Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
|
|
1927
1931
|
[Boss.NEX]: { name: 'Nex' },
|
|
1928
1932
|
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
@@ -1933,6 +1937,7 @@ const BossProps = mapValues({
|
|
|
1933
1937
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1934
1938
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
1935
1939
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
1940
|
+
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
1936
1941
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
|
1937
1942
|
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
1938
1943
|
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
|
|
@@ -1968,7 +1973,8 @@ const ActivityProps = mapValues({
|
|
|
1968
1973
|
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
|
|
1969
1974
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1970
1975
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1971
|
-
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
|
|
1976
|
+
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1977
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1972
1978
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.ACTIVITY, measure: MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1973
1979
|
const ComputedMetricProps = mapValues({
|
|
1974
1980
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
package/dist/es/index.mjs
CHANGED
|
@@ -556,7 +556,8 @@ const Activity = {
|
|
|
556
556
|
LAST_MAN_STANDING: 'last_man_standing',
|
|
557
557
|
PVP_ARENA: 'pvp_arena',
|
|
558
558
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
559
|
-
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift'
|
|
559
|
+
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
560
|
+
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
560
561
|
};
|
|
561
562
|
const Boss = {
|
|
562
563
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
@@ -588,6 +589,7 @@ const Boss = {
|
|
|
588
589
|
KRAKEN: 'kraken',
|
|
589
590
|
KREEARRA: 'kreearra',
|
|
590
591
|
KRIL_TSUTSAROTH: 'kril_tsutsaroth',
|
|
592
|
+
LUNAR_CHESTS: 'lunar_chests',
|
|
591
593
|
MIMIC: 'mimic',
|
|
592
594
|
NEX: 'nex',
|
|
593
595
|
NIGHTMARE: 'nightmare',
|
|
@@ -598,6 +600,7 @@ const Boss = {
|
|
|
598
600
|
SCORPIA: 'scorpia',
|
|
599
601
|
SCURRIUS: 'scurrius',
|
|
600
602
|
SKOTIZO: 'skotizo',
|
|
603
|
+
SOL_HEREDIT: 'sol_heredit',
|
|
601
604
|
SPINDEL: 'spindel',
|
|
602
605
|
TEMPOROSS: 'tempoross',
|
|
603
606
|
THE_GAUNTLET: 'the_gauntlet',
|
|
@@ -1923,6 +1926,7 @@ const BossProps = mapValues({
|
|
|
1923
1926
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
1924
1927
|
[Boss.KREEARRA]: { name: "Kree'Arra" },
|
|
1925
1928
|
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
|
|
1929
|
+
[Boss.LUNAR_CHESTS]: { name: 'Lunar Chests' },
|
|
1926
1930
|
[Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
|
|
1927
1931
|
[Boss.NEX]: { name: 'Nex' },
|
|
1928
1932
|
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
@@ -1933,6 +1937,7 @@ const BossProps = mapValues({
|
|
|
1933
1937
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1934
1938
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
1935
1939
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
1940
|
+
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
1936
1941
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
|
1937
1942
|
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
1938
1943
|
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
|
|
@@ -1968,7 +1973,8 @@ const ActivityProps = mapValues({
|
|
|
1968
1973
|
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
|
|
1969
1974
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1970
1975
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1971
|
-
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
|
|
1976
|
+
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1977
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1972
1978
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.ACTIVITY, measure: MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1973
1979
|
const ComputedMetricProps = mapValues({
|
|
1974
1980
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
package/dist/index.d.ts
CHANGED
|
@@ -410,6 +410,7 @@ declare const Activity: {
|
|
|
410
410
|
readonly PVP_ARENA: "pvp_arena";
|
|
411
411
|
readonly SOUL_WARS_ZEAL: "soul_wars_zeal";
|
|
412
412
|
readonly GUARDIANS_OF_THE_RIFT: "guardians_of_the_rift";
|
|
413
|
+
readonly COLOSSEUM_GLORY: "colosseum_glory";
|
|
413
414
|
};
|
|
414
415
|
type Activity = (typeof Activity)[keyof typeof Activity];
|
|
415
416
|
declare const Boss: {
|
|
@@ -442,6 +443,7 @@ declare const Boss: {
|
|
|
442
443
|
readonly KRAKEN: "kraken";
|
|
443
444
|
readonly KREEARRA: "kreearra";
|
|
444
445
|
readonly KRIL_TSUTSAROTH: "kril_tsutsaroth";
|
|
446
|
+
readonly LUNAR_CHESTS: "lunar_chests";
|
|
445
447
|
readonly MIMIC: "mimic";
|
|
446
448
|
readonly NEX: "nex";
|
|
447
449
|
readonly NIGHTMARE: "nightmare";
|
|
@@ -452,6 +454,7 @@ declare const Boss: {
|
|
|
452
454
|
readonly SCORPIA: "scorpia";
|
|
453
455
|
readonly SCURRIUS: "scurrius";
|
|
454
456
|
readonly SKOTIZO: "skotizo";
|
|
457
|
+
readonly SOL_HEREDIT: "sol_heredit";
|
|
455
458
|
readonly SPINDEL: "spindel";
|
|
456
459
|
readonly TEMPOROSS: "tempoross";
|
|
457
460
|
readonly THE_GAUNTLET: "the_gauntlet";
|
|
@@ -511,6 +514,7 @@ declare const Metric: {
|
|
|
511
514
|
readonly KRAKEN: "kraken";
|
|
512
515
|
readonly KREEARRA: "kreearra";
|
|
513
516
|
readonly KRIL_TSUTSAROTH: "kril_tsutsaroth";
|
|
517
|
+
readonly LUNAR_CHESTS: "lunar_chests";
|
|
514
518
|
readonly MIMIC: "mimic";
|
|
515
519
|
readonly NEX: "nex";
|
|
516
520
|
readonly NIGHTMARE: "nightmare";
|
|
@@ -521,6 +525,7 @@ declare const Metric: {
|
|
|
521
525
|
readonly SCORPIA: "scorpia";
|
|
522
526
|
readonly SCURRIUS: "scurrius";
|
|
523
527
|
readonly SKOTIZO: "skotizo";
|
|
528
|
+
readonly SOL_HEREDIT: "sol_heredit";
|
|
524
529
|
readonly SPINDEL: "spindel";
|
|
525
530
|
readonly TEMPOROSS: "tempoross";
|
|
526
531
|
readonly THE_GAUNTLET: "the_gauntlet";
|
|
@@ -555,6 +560,7 @@ declare const Metric: {
|
|
|
555
560
|
readonly PVP_ARENA: "pvp_arena";
|
|
556
561
|
readonly SOUL_WARS_ZEAL: "soul_wars_zeal";
|
|
557
562
|
readonly GUARDIANS_OF_THE_RIFT: "guardians_of_the_rift";
|
|
563
|
+
readonly COLOSSEUM_GLORY: "colosseum_glory";
|
|
558
564
|
readonly OVERALL: "overall";
|
|
559
565
|
readonly ATTACK: "attack";
|
|
560
566
|
readonly DEFENCE: "defence";
|
|
@@ -1638,6 +1644,7 @@ declare const MetricProps: {
|
|
|
1638
1644
|
readonly pvp_arena: ActivityProperties;
|
|
1639
1645
|
readonly soul_wars_zeal: ActivityProperties;
|
|
1640
1646
|
readonly guardians_of_the_rift: ActivityProperties;
|
|
1647
|
+
readonly colosseum_glory: ActivityProperties;
|
|
1641
1648
|
readonly abyssal_sire: BossProperties;
|
|
1642
1649
|
readonly alchemical_hydra: BossProperties;
|
|
1643
1650
|
readonly artio: BossProperties;
|
|
@@ -1667,6 +1674,7 @@ declare const MetricProps: {
|
|
|
1667
1674
|
readonly kraken: BossProperties;
|
|
1668
1675
|
readonly kreearra: BossProperties;
|
|
1669
1676
|
readonly kril_tsutsaroth: BossProperties;
|
|
1677
|
+
readonly lunar_chests: BossProperties;
|
|
1670
1678
|
readonly mimic: BossProperties;
|
|
1671
1679
|
readonly nex: BossProperties;
|
|
1672
1680
|
readonly nightmare: BossProperties;
|
|
@@ -1677,6 +1685,7 @@ declare const MetricProps: {
|
|
|
1677
1685
|
readonly scorpia: BossProperties;
|
|
1678
1686
|
readonly scurrius: BossProperties;
|
|
1679
1687
|
readonly skotizo: BossProperties;
|
|
1688
|
+
readonly sol_heredit: BossProperties;
|
|
1680
1689
|
readonly spindel: BossProperties;
|
|
1681
1690
|
readonly tempoross: BossProperties;
|
|
1682
1691
|
readonly the_gauntlet: BossProperties;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
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",
|