@wise-old-man/utils 3.3.4 → 3.3.6
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 +14 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -557,6 +557,8 @@ const Activity = {
|
|
|
557
557
|
const Boss = {
|
|
558
558
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
559
559
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
560
|
+
AMOXLIATL: 'amoxliatl',
|
|
561
|
+
ARAXXOR: 'araxxor',
|
|
560
562
|
ARTIO: 'artio',
|
|
561
563
|
BARROWS_CHESTS: 'barrows_chests',
|
|
562
564
|
BRYOPHYTA: 'bryophyta',
|
|
@@ -600,6 +602,7 @@ const Boss = {
|
|
|
600
602
|
TEMPOROSS: 'tempoross',
|
|
601
603
|
THE_GAUNTLET: 'the_gauntlet',
|
|
602
604
|
THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
|
|
605
|
+
THE_HUEYCOATL: 'the_hueycoatl',
|
|
603
606
|
THE_LEVIATHAN: 'the_leviathan',
|
|
604
607
|
THE_WHISPERER: 'the_whisperer',
|
|
605
608
|
THEATRE_OF_BLOOD: 'theatre_of_blood',
|
|
@@ -1900,6 +1903,8 @@ const SkillProps = mapValues({
|
|
|
1900
1903
|
const BossProps = mapValues({
|
|
1901
1904
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1902
1905
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1906
|
+
[Boss.AMOXLIATL]: { name: 'Amoxliatl' },
|
|
1907
|
+
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1903
1908
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1904
1909
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
1905
1910
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
@@ -1922,6 +1927,7 @@ const BossProps = mapValues({
|
|
|
1922
1927
|
[Boss.GIANT_MOLE]: { name: 'Giant Mole' },
|
|
1923
1928
|
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
|
|
1924
1929
|
[Boss.HESPORI]: { name: 'Hespori' },
|
|
1930
|
+
[Boss.THE_HUEYCOATL]: { name: 'The Hueycoatl' },
|
|
1925
1931
|
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
|
|
1926
1932
|
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
|
|
1927
1933
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
@@ -2149,10 +2155,10 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
2149
2155
|
return -1;
|
|
2150
2156
|
// If number is float
|
|
2151
2157
|
if (num % 1 !== 0) {
|
|
2152
|
-
return (Math.round(num * 100) / 100).toLocaleString();
|
|
2158
|
+
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
2153
2159
|
}
|
|
2154
2160
|
if ((num < 10000 && num > -10000) || !withLetters) {
|
|
2155
|
-
return num.toLocaleString();
|
|
2161
|
+
return num.toLocaleString('en-US');
|
|
2156
2162
|
}
|
|
2157
2163
|
// < 100k
|
|
2158
2164
|
if (num < 100000 && num > -100000) {
|
package/dist/es/index.js
CHANGED
|
@@ -555,6 +555,8 @@ const Activity = {
|
|
|
555
555
|
const Boss = {
|
|
556
556
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
557
557
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
558
|
+
AMOXLIATL: 'amoxliatl',
|
|
559
|
+
ARAXXOR: 'araxxor',
|
|
558
560
|
ARTIO: 'artio',
|
|
559
561
|
BARROWS_CHESTS: 'barrows_chests',
|
|
560
562
|
BRYOPHYTA: 'bryophyta',
|
|
@@ -598,6 +600,7 @@ const Boss = {
|
|
|
598
600
|
TEMPOROSS: 'tempoross',
|
|
599
601
|
THE_GAUNTLET: 'the_gauntlet',
|
|
600
602
|
THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
|
|
603
|
+
THE_HUEYCOATL: 'the_hueycoatl',
|
|
601
604
|
THE_LEVIATHAN: 'the_leviathan',
|
|
602
605
|
THE_WHISPERER: 'the_whisperer',
|
|
603
606
|
THEATRE_OF_BLOOD: 'theatre_of_blood',
|
|
@@ -1898,6 +1901,8 @@ const SkillProps = mapValues({
|
|
|
1898
1901
|
const BossProps = mapValues({
|
|
1899
1902
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1900
1903
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1904
|
+
[Boss.AMOXLIATL]: { name: 'Amoxliatl' },
|
|
1905
|
+
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1901
1906
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1902
1907
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
1903
1908
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
@@ -1920,6 +1925,7 @@ const BossProps = mapValues({
|
|
|
1920
1925
|
[Boss.GIANT_MOLE]: { name: 'Giant Mole' },
|
|
1921
1926
|
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
|
|
1922
1927
|
[Boss.HESPORI]: { name: 'Hespori' },
|
|
1928
|
+
[Boss.THE_HUEYCOATL]: { name: 'The Hueycoatl' },
|
|
1923
1929
|
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
|
|
1924
1930
|
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
|
|
1925
1931
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
@@ -2147,10 +2153,10 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
2147
2153
|
return -1;
|
|
2148
2154
|
// If number is float
|
|
2149
2155
|
if (num % 1 !== 0) {
|
|
2150
|
-
return (Math.round(num * 100) / 100).toLocaleString();
|
|
2156
|
+
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
2151
2157
|
}
|
|
2152
2158
|
if ((num < 10000 && num > -10000) || !withLetters) {
|
|
2153
|
-
return num.toLocaleString();
|
|
2159
|
+
return num.toLocaleString('en-US');
|
|
2154
2160
|
}
|
|
2155
2161
|
// < 100k
|
|
2156
2162
|
if (num < 100000 && num > -100000) {
|
package/dist/es/index.mjs
CHANGED
|
@@ -555,6 +555,8 @@ const Activity = {
|
|
|
555
555
|
const Boss = {
|
|
556
556
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
557
557
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
558
|
+
AMOXLIATL: 'amoxliatl',
|
|
559
|
+
ARAXXOR: 'araxxor',
|
|
558
560
|
ARTIO: 'artio',
|
|
559
561
|
BARROWS_CHESTS: 'barrows_chests',
|
|
560
562
|
BRYOPHYTA: 'bryophyta',
|
|
@@ -598,6 +600,7 @@ const Boss = {
|
|
|
598
600
|
TEMPOROSS: 'tempoross',
|
|
599
601
|
THE_GAUNTLET: 'the_gauntlet',
|
|
600
602
|
THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
|
|
603
|
+
THE_HUEYCOATL: 'the_hueycoatl',
|
|
601
604
|
THE_LEVIATHAN: 'the_leviathan',
|
|
602
605
|
THE_WHISPERER: 'the_whisperer',
|
|
603
606
|
THEATRE_OF_BLOOD: 'theatre_of_blood',
|
|
@@ -1898,6 +1901,8 @@ const SkillProps = mapValues({
|
|
|
1898
1901
|
const BossProps = mapValues({
|
|
1899
1902
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1900
1903
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1904
|
+
[Boss.AMOXLIATL]: { name: 'Amoxliatl' },
|
|
1905
|
+
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1901
1906
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1902
1907
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
1903
1908
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
@@ -1920,6 +1925,7 @@ const BossProps = mapValues({
|
|
|
1920
1925
|
[Boss.GIANT_MOLE]: { name: 'Giant Mole' },
|
|
1921
1926
|
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
|
|
1922
1927
|
[Boss.HESPORI]: { name: 'Hespori' },
|
|
1928
|
+
[Boss.THE_HUEYCOATL]: { name: 'The Hueycoatl' },
|
|
1923
1929
|
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
|
|
1924
1930
|
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
|
|
1925
1931
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
@@ -2147,10 +2153,10 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
2147
2153
|
return -1;
|
|
2148
2154
|
// If number is float
|
|
2149
2155
|
if (num % 1 !== 0) {
|
|
2150
|
-
return (Math.round(num * 100) / 100).toLocaleString();
|
|
2156
|
+
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
2151
2157
|
}
|
|
2152
2158
|
if ((num < 10000 && num > -10000) || !withLetters) {
|
|
2153
|
-
return num.toLocaleString();
|
|
2159
|
+
return num.toLocaleString('en-US');
|
|
2154
2160
|
}
|
|
2155
2161
|
// < 100k
|
|
2156
2162
|
if (num < 100000 && num > -100000) {
|
package/dist/index.d.ts
CHANGED
|
@@ -221,6 +221,8 @@ type Prisma_Base_Snapshot = {
|
|
|
221
221
|
abyssal_sireKills: number;
|
|
222
222
|
alchemical_hydraRank: number;
|
|
223
223
|
alchemical_hydraKills: number;
|
|
224
|
+
amoxliatlRank: number;
|
|
225
|
+
amoxliatlKills: number;
|
|
224
226
|
artioRank: number;
|
|
225
227
|
artioKills: number;
|
|
226
228
|
barrows_chestsRank: number;
|
|
@@ -262,8 +264,8 @@ type Prisma_Base_Snapshot = {
|
|
|
262
264
|
grotesque_guardiansRank: number;
|
|
263
265
|
grotesque_guardiansKills: number;
|
|
264
266
|
hesporiRank: number;
|
|
265
|
-
kalphite_queenKills: number;
|
|
266
267
|
hesporiKills: number;
|
|
268
|
+
kalphite_queenKills: number;
|
|
267
269
|
kalphite_queenRank: number;
|
|
268
270
|
king_black_dragonRank: number;
|
|
269
271
|
king_black_dragonKills: number;
|
|
@@ -293,6 +295,8 @@ type Prisma_Base_Snapshot = {
|
|
|
293
295
|
the_gauntletKills: number;
|
|
294
296
|
the_corrupted_gauntletKills: number;
|
|
295
297
|
the_corrupted_gauntletRank: number;
|
|
298
|
+
the_hueycoatlRank: number;
|
|
299
|
+
the_hueycoatlKills: number;
|
|
296
300
|
theatre_of_bloodRank: number;
|
|
297
301
|
theatre_of_bloodKills: number;
|
|
298
302
|
thermonuclear_smoke_devilRank: number;
|
|
@@ -425,6 +429,8 @@ type Activity = (typeof Activity)[keyof typeof Activity];
|
|
|
425
429
|
declare const Boss: {
|
|
426
430
|
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
427
431
|
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
432
|
+
readonly AMOXLIATL: "amoxliatl";
|
|
433
|
+
readonly ARAXXOR: "araxxor";
|
|
428
434
|
readonly ARTIO: "artio";
|
|
429
435
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
430
436
|
readonly BRYOPHYTA: "bryophyta";
|
|
@@ -468,6 +474,7 @@ declare const Boss: {
|
|
|
468
474
|
readonly TEMPOROSS: "tempoross";
|
|
469
475
|
readonly THE_GAUNTLET: "the_gauntlet";
|
|
470
476
|
readonly THE_CORRUPTED_GAUNTLET: "the_corrupted_gauntlet";
|
|
477
|
+
readonly THE_HUEYCOATL: "the_hueycoatl";
|
|
471
478
|
readonly THE_LEVIATHAN: "the_leviathan";
|
|
472
479
|
readonly THE_WHISPERER: "the_whisperer";
|
|
473
480
|
readonly THEATRE_OF_BLOOD: "theatre_of_blood";
|
|
@@ -496,6 +503,8 @@ declare const Metric: {
|
|
|
496
503
|
readonly EHB: "ehb";
|
|
497
504
|
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
498
505
|
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
506
|
+
readonly AMOXLIATL: "amoxliatl";
|
|
507
|
+
readonly ARAXXOR: "araxxor";
|
|
499
508
|
readonly ARTIO: "artio";
|
|
500
509
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
501
510
|
readonly BRYOPHYTA: "bryophyta";
|
|
@@ -539,6 +548,7 @@ declare const Metric: {
|
|
|
539
548
|
readonly TEMPOROSS: "tempoross";
|
|
540
549
|
readonly THE_GAUNTLET: "the_gauntlet";
|
|
541
550
|
readonly THE_CORRUPTED_GAUNTLET: "the_corrupted_gauntlet";
|
|
551
|
+
readonly THE_HUEYCOATL: "the_hueycoatl";
|
|
542
552
|
readonly THE_LEVIATHAN: "the_leviathan";
|
|
543
553
|
readonly THE_WHISPERER: "the_whisperer";
|
|
544
554
|
readonly THEATRE_OF_BLOOD: "theatre_of_blood";
|
|
@@ -1643,6 +1653,8 @@ declare const MetricProps: {
|
|
|
1643
1653
|
readonly colosseum_glory: ActivityProperties;
|
|
1644
1654
|
readonly abyssal_sire: BossProperties;
|
|
1645
1655
|
readonly alchemical_hydra: BossProperties;
|
|
1656
|
+
readonly amoxliatl: BossProperties;
|
|
1657
|
+
readonly araxxor: BossProperties;
|
|
1646
1658
|
readonly artio: BossProperties;
|
|
1647
1659
|
readonly barrows_chests: BossProperties;
|
|
1648
1660
|
readonly bryophyta: BossProperties;
|
|
@@ -1686,6 +1698,7 @@ declare const MetricProps: {
|
|
|
1686
1698
|
readonly tempoross: BossProperties;
|
|
1687
1699
|
readonly the_gauntlet: BossProperties;
|
|
1688
1700
|
readonly the_corrupted_gauntlet: BossProperties;
|
|
1701
|
+
readonly the_hueycoatl: BossProperties;
|
|
1689
1702
|
readonly the_leviathan: BossProperties;
|
|
1690
1703
|
readonly the_whisperer: BossProperties;
|
|
1691
1704
|
readonly theatre_of_blood: BossProperties;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
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",
|