@wise-old-man/utils 3.3.4 → 3.3.5
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 +4 -2
- package/dist/es/index.js +4 -2
- package/dist/es/index.mjs +4 -2
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -557,6 +557,7 @@ const Activity = {
|
|
|
557
557
|
const Boss = {
|
|
558
558
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
559
559
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
560
|
+
ARAXXOR: 'araxxor',
|
|
560
561
|
ARTIO: 'artio',
|
|
561
562
|
BARROWS_CHESTS: 'barrows_chests',
|
|
562
563
|
BRYOPHYTA: 'bryophyta',
|
|
@@ -1900,6 +1901,7 @@ const SkillProps = mapValues({
|
|
|
1900
1901
|
const BossProps = mapValues({
|
|
1901
1902
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1902
1903
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1904
|
+
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1903
1905
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1904
1906
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
1905
1907
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
@@ -2149,10 +2151,10 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
2149
2151
|
return -1;
|
|
2150
2152
|
// If number is float
|
|
2151
2153
|
if (num % 1 !== 0) {
|
|
2152
|
-
return (Math.round(num * 100) / 100).toLocaleString();
|
|
2154
|
+
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
2153
2155
|
}
|
|
2154
2156
|
if ((num < 10000 && num > -10000) || !withLetters) {
|
|
2155
|
-
return num.toLocaleString();
|
|
2157
|
+
return num.toLocaleString('en-US');
|
|
2156
2158
|
}
|
|
2157
2159
|
// < 100k
|
|
2158
2160
|
if (num < 100000 && num > -100000) {
|
package/dist/es/index.js
CHANGED
|
@@ -555,6 +555,7 @@ const Activity = {
|
|
|
555
555
|
const Boss = {
|
|
556
556
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
557
557
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
558
|
+
ARAXXOR: 'araxxor',
|
|
558
559
|
ARTIO: 'artio',
|
|
559
560
|
BARROWS_CHESTS: 'barrows_chests',
|
|
560
561
|
BRYOPHYTA: 'bryophyta',
|
|
@@ -1898,6 +1899,7 @@ const SkillProps = mapValues({
|
|
|
1898
1899
|
const BossProps = mapValues({
|
|
1899
1900
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1900
1901
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1902
|
+
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1901
1903
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1902
1904
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
1903
1905
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
@@ -2147,10 +2149,10 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
2147
2149
|
return -1;
|
|
2148
2150
|
// If number is float
|
|
2149
2151
|
if (num % 1 !== 0) {
|
|
2150
|
-
return (Math.round(num * 100) / 100).toLocaleString();
|
|
2152
|
+
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
2151
2153
|
}
|
|
2152
2154
|
if ((num < 10000 && num > -10000) || !withLetters) {
|
|
2153
|
-
return num.toLocaleString();
|
|
2155
|
+
return num.toLocaleString('en-US');
|
|
2154
2156
|
}
|
|
2155
2157
|
// < 100k
|
|
2156
2158
|
if (num < 100000 && num > -100000) {
|
package/dist/es/index.mjs
CHANGED
|
@@ -555,6 +555,7 @@ const Activity = {
|
|
|
555
555
|
const Boss = {
|
|
556
556
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
557
557
|
ALCHEMICAL_HYDRA: 'alchemical_hydra',
|
|
558
|
+
ARAXXOR: 'araxxor',
|
|
558
559
|
ARTIO: 'artio',
|
|
559
560
|
BARROWS_CHESTS: 'barrows_chests',
|
|
560
561
|
BRYOPHYTA: 'bryophyta',
|
|
@@ -1898,6 +1899,7 @@ const SkillProps = mapValues({
|
|
|
1898
1899
|
const BossProps = mapValues({
|
|
1899
1900
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1900
1901
|
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1902
|
+
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
1901
1903
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
1902
1904
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
1903
1905
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
@@ -2147,10 +2149,10 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
2147
2149
|
return -1;
|
|
2148
2150
|
// If number is float
|
|
2149
2151
|
if (num % 1 !== 0) {
|
|
2150
|
-
return (Math.round(num * 100) / 100).toLocaleString();
|
|
2152
|
+
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
2151
2153
|
}
|
|
2152
2154
|
if ((num < 10000 && num > -10000) || !withLetters) {
|
|
2153
|
-
return num.toLocaleString();
|
|
2155
|
+
return num.toLocaleString('en-US');
|
|
2154
2156
|
}
|
|
2155
2157
|
// < 100k
|
|
2156
2158
|
if (num < 100000 && num > -100000) {
|
package/dist/index.d.ts
CHANGED
|
@@ -425,6 +425,7 @@ type Activity = (typeof Activity)[keyof typeof Activity];
|
|
|
425
425
|
declare const Boss: {
|
|
426
426
|
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
427
427
|
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
428
|
+
readonly ARAXXOR: "araxxor";
|
|
428
429
|
readonly ARTIO: "artio";
|
|
429
430
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
430
431
|
readonly BRYOPHYTA: "bryophyta";
|
|
@@ -496,6 +497,7 @@ declare const Metric: {
|
|
|
496
497
|
readonly EHB: "ehb";
|
|
497
498
|
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
498
499
|
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
500
|
+
readonly ARAXXOR: "araxxor";
|
|
499
501
|
readonly ARTIO: "artio";
|
|
500
502
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
501
503
|
readonly BRYOPHYTA: "bryophyta";
|
|
@@ -1643,6 +1645,7 @@ declare const MetricProps: {
|
|
|
1643
1645
|
readonly colosseum_glory: ActivityProperties;
|
|
1644
1646
|
readonly abyssal_sire: BossProperties;
|
|
1645
1647
|
readonly alchemical_hydra: BossProperties;
|
|
1648
|
+
readonly araxxor: BossProperties;
|
|
1646
1649
|
readonly artio: BossProperties;
|
|
1647
1650
|
readonly barrows_chests: BossProperties;
|
|
1648
1651
|
readonly bryophyta: 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.5",
|
|
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",
|