@wise-old-man/utils 4.0.9 → 4.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/cjs/index.cjs +19 -12
- package/dist/es/index.js +19 -12
- package/dist/es/index.mjs +19 -12
- package/dist/index.d.ts +14 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -14,7 +14,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
14
14
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
15
|
PERFORMANCE OF THIS SOFTWARE.
|
|
16
16
|
***************************************************************************** */
|
|
17
|
-
/* global Reflect, Promise */
|
|
17
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
function __rest(s, e) {
|
|
@@ -37,7 +37,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
37
37
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
38
38
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
39
39
|
});
|
|
40
|
-
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
43
|
+
var e = new Error(message);
|
|
44
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
45
|
+
};
|
|
41
46
|
|
|
42
47
|
function traverseTransform(input, transformation) {
|
|
43
48
|
if (Array.isArray(input)) {
|
|
@@ -133,8 +138,8 @@ class BaseAPIClient {
|
|
|
133
138
|
const query = builder.toString();
|
|
134
139
|
return query ? `?${query}` : '';
|
|
135
140
|
}
|
|
136
|
-
fetch(
|
|
137
|
-
return __awaiter(this,
|
|
141
|
+
fetch(_a) {
|
|
142
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
138
143
|
const req = { method, body: undefined, headers: this.headers };
|
|
139
144
|
let query = '';
|
|
140
145
|
if (body) {
|
|
@@ -146,8 +151,8 @@ class BaseAPIClient {
|
|
|
146
151
|
return yield fetch(this.baseUrl + path + query, req);
|
|
147
152
|
});
|
|
148
153
|
}
|
|
149
|
-
request(
|
|
150
|
-
return __awaiter(this,
|
|
154
|
+
request(_a) {
|
|
155
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
151
156
|
const res = yield this.fetch({ method, path, body, params });
|
|
152
157
|
const data = yield res.json();
|
|
153
158
|
if (res.ok) {
|
|
@@ -156,8 +161,8 @@ class BaseAPIClient {
|
|
|
156
161
|
handleError(res.status, path, data);
|
|
157
162
|
});
|
|
158
163
|
}
|
|
159
|
-
requestText(
|
|
160
|
-
return __awaiter(this,
|
|
164
|
+
requestText(_a) {
|
|
165
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
161
166
|
const res = yield this.fetch({ method, path, body, params });
|
|
162
167
|
const text = yield res.text();
|
|
163
168
|
if (res.ok) {
|
|
@@ -959,6 +964,7 @@ const Boss = {
|
|
|
959
964
|
ARAXXOR: 'araxxor',
|
|
960
965
|
ARTIO: 'artio',
|
|
961
966
|
BARROWS_CHESTS: 'barrows_chests',
|
|
967
|
+
BRUTUS: 'brutus',
|
|
962
968
|
BRYOPHYTA: 'bryophyta',
|
|
963
969
|
CALLISTO: 'callisto',
|
|
964
970
|
CALVARION: 'calvarion',
|
|
@@ -1768,22 +1774,22 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
1768
1774
|
if (num % 1 !== 0) {
|
|
1769
1775
|
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
1770
1776
|
}
|
|
1771
|
-
if ((num < 10000 && num > -
|
|
1777
|
+
if ((num < 10000 && num > -1e4) || !withLetters) {
|
|
1772
1778
|
return num.toLocaleString('en-US');
|
|
1773
1779
|
}
|
|
1774
1780
|
// < 100k
|
|
1775
|
-
if (num < 100000 && num > -
|
|
1781
|
+
if (num < 100000 && num > -1e5) {
|
|
1776
1782
|
// If has no decimals, return as whole number instead (10.00k => 10k)
|
|
1777
1783
|
if ((num / 1000) % 1 === 0)
|
|
1778
1784
|
return `${num / 1000}k`;
|
|
1779
1785
|
return `${(num / 1000).toFixed(decimalPrecision)}k`;
|
|
1780
1786
|
}
|
|
1781
1787
|
// < 10 million
|
|
1782
|
-
if (num < 10000000 && num > -
|
|
1788
|
+
if (num < 10000000 && num > -1e7) {
|
|
1783
1789
|
return `${Math.round(num / 1000)}k`;
|
|
1784
1790
|
}
|
|
1785
1791
|
// < 1 billion
|
|
1786
|
-
if (num < 1000000000 && num > -
|
|
1792
|
+
if (num < 1000000000 && num > -1e9) {
|
|
1787
1793
|
// If has no decimals, return as whole number instead (10.00m => 10m)
|
|
1788
1794
|
if ((num / 1000000) % 1 === 0)
|
|
1789
1795
|
return `${num / 1000000}m`;
|
|
@@ -2120,6 +2126,7 @@ const BossProps = mapValues({
|
|
|
2120
2126
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
2121
2127
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
2122
2128
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
2129
|
+
[Boss.BRUTUS]: { name: 'Brutus', isMembers: false },
|
|
2123
2130
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
2124
2131
|
[Boss.CALLISTO]: { name: 'Callisto' },
|
|
2125
2132
|
[Boss.CALVARION]: { name: "Calvar'ion" },
|
package/dist/es/index.js
CHANGED
|
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise */
|
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
function __rest(s, e) {
|
|
@@ -35,7 +35,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
35
35
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
36
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
37
|
});
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
41
|
+
var e = new Error(message);
|
|
42
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
43
|
+
};
|
|
39
44
|
|
|
40
45
|
function traverseTransform(input, transformation) {
|
|
41
46
|
if (Array.isArray(input)) {
|
|
@@ -131,8 +136,8 @@ class BaseAPIClient {
|
|
|
131
136
|
const query = builder.toString();
|
|
132
137
|
return query ? `?${query}` : '';
|
|
133
138
|
}
|
|
134
|
-
fetch(
|
|
135
|
-
return __awaiter(this,
|
|
139
|
+
fetch(_a) {
|
|
140
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
136
141
|
const req = { method, body: undefined, headers: this.headers };
|
|
137
142
|
let query = '';
|
|
138
143
|
if (body) {
|
|
@@ -144,8 +149,8 @@ class BaseAPIClient {
|
|
|
144
149
|
return yield fetch(this.baseUrl + path + query, req);
|
|
145
150
|
});
|
|
146
151
|
}
|
|
147
|
-
request(
|
|
148
|
-
return __awaiter(this,
|
|
152
|
+
request(_a) {
|
|
153
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
149
154
|
const res = yield this.fetch({ method, path, body, params });
|
|
150
155
|
const data = yield res.json();
|
|
151
156
|
if (res.ok) {
|
|
@@ -154,8 +159,8 @@ class BaseAPIClient {
|
|
|
154
159
|
handleError(res.status, path, data);
|
|
155
160
|
});
|
|
156
161
|
}
|
|
157
|
-
requestText(
|
|
158
|
-
return __awaiter(this,
|
|
162
|
+
requestText(_a) {
|
|
163
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
159
164
|
const res = yield this.fetch({ method, path, body, params });
|
|
160
165
|
const text = yield res.text();
|
|
161
166
|
if (res.ok) {
|
|
@@ -957,6 +962,7 @@ const Boss = {
|
|
|
957
962
|
ARAXXOR: 'araxxor',
|
|
958
963
|
ARTIO: 'artio',
|
|
959
964
|
BARROWS_CHESTS: 'barrows_chests',
|
|
965
|
+
BRUTUS: 'brutus',
|
|
960
966
|
BRYOPHYTA: 'bryophyta',
|
|
961
967
|
CALLISTO: 'callisto',
|
|
962
968
|
CALVARION: 'calvarion',
|
|
@@ -1766,22 +1772,22 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
1766
1772
|
if (num % 1 !== 0) {
|
|
1767
1773
|
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
1768
1774
|
}
|
|
1769
|
-
if ((num < 10000 && num > -
|
|
1775
|
+
if ((num < 10000 && num > -1e4) || !withLetters) {
|
|
1770
1776
|
return num.toLocaleString('en-US');
|
|
1771
1777
|
}
|
|
1772
1778
|
// < 100k
|
|
1773
|
-
if (num < 100000 && num > -
|
|
1779
|
+
if (num < 100000 && num > -1e5) {
|
|
1774
1780
|
// If has no decimals, return as whole number instead (10.00k => 10k)
|
|
1775
1781
|
if ((num / 1000) % 1 === 0)
|
|
1776
1782
|
return `${num / 1000}k`;
|
|
1777
1783
|
return `${(num / 1000).toFixed(decimalPrecision)}k`;
|
|
1778
1784
|
}
|
|
1779
1785
|
// < 10 million
|
|
1780
|
-
if (num < 10000000 && num > -
|
|
1786
|
+
if (num < 10000000 && num > -1e7) {
|
|
1781
1787
|
return `${Math.round(num / 1000)}k`;
|
|
1782
1788
|
}
|
|
1783
1789
|
// < 1 billion
|
|
1784
|
-
if (num < 1000000000 && num > -
|
|
1790
|
+
if (num < 1000000000 && num > -1e9) {
|
|
1785
1791
|
// If has no decimals, return as whole number instead (10.00m => 10m)
|
|
1786
1792
|
if ((num / 1000000) % 1 === 0)
|
|
1787
1793
|
return `${num / 1000000}m`;
|
|
@@ -2118,6 +2124,7 @@ const BossProps = mapValues({
|
|
|
2118
2124
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
2119
2125
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
2120
2126
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
2127
|
+
[Boss.BRUTUS]: { name: 'Brutus', isMembers: false },
|
|
2121
2128
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
2122
2129
|
[Boss.CALLISTO]: { name: 'Callisto' },
|
|
2123
2130
|
[Boss.CALVARION]: { name: "Calvar'ion" },
|
package/dist/es/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise */
|
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
function __rest(s, e) {
|
|
@@ -35,7 +35,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
35
35
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
36
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
37
|
});
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
41
|
+
var e = new Error(message);
|
|
42
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
43
|
+
};
|
|
39
44
|
|
|
40
45
|
function traverseTransform(input, transformation) {
|
|
41
46
|
if (Array.isArray(input)) {
|
|
@@ -131,8 +136,8 @@ class BaseAPIClient {
|
|
|
131
136
|
const query = builder.toString();
|
|
132
137
|
return query ? `?${query}` : '';
|
|
133
138
|
}
|
|
134
|
-
fetch(
|
|
135
|
-
return __awaiter(this,
|
|
139
|
+
fetch(_a) {
|
|
140
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
136
141
|
const req = { method, body: undefined, headers: this.headers };
|
|
137
142
|
let query = '';
|
|
138
143
|
if (body) {
|
|
@@ -144,8 +149,8 @@ class BaseAPIClient {
|
|
|
144
149
|
return yield fetch(this.baseUrl + path + query, req);
|
|
145
150
|
});
|
|
146
151
|
}
|
|
147
|
-
request(
|
|
148
|
-
return __awaiter(this,
|
|
152
|
+
request(_a) {
|
|
153
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
149
154
|
const res = yield this.fetch({ method, path, body, params });
|
|
150
155
|
const data = yield res.json();
|
|
151
156
|
if (res.ok) {
|
|
@@ -154,8 +159,8 @@ class BaseAPIClient {
|
|
|
154
159
|
handleError(res.status, path, data);
|
|
155
160
|
});
|
|
156
161
|
}
|
|
157
|
-
requestText(
|
|
158
|
-
return __awaiter(this,
|
|
162
|
+
requestText(_a) {
|
|
163
|
+
return __awaiter(this, arguments, void 0, function* ({ method, path, body, params }) {
|
|
159
164
|
const res = yield this.fetch({ method, path, body, params });
|
|
160
165
|
const text = yield res.text();
|
|
161
166
|
if (res.ok) {
|
|
@@ -957,6 +962,7 @@ const Boss = {
|
|
|
957
962
|
ARAXXOR: 'araxxor',
|
|
958
963
|
ARTIO: 'artio',
|
|
959
964
|
BARROWS_CHESTS: 'barrows_chests',
|
|
965
|
+
BRUTUS: 'brutus',
|
|
960
966
|
BRYOPHYTA: 'bryophyta',
|
|
961
967
|
CALLISTO: 'callisto',
|
|
962
968
|
CALVARION: 'calvarion',
|
|
@@ -1766,22 +1772,22 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
1766
1772
|
if (num % 1 !== 0) {
|
|
1767
1773
|
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
1768
1774
|
}
|
|
1769
|
-
if ((num < 10000 && num > -
|
|
1775
|
+
if ((num < 10000 && num > -1e4) || !withLetters) {
|
|
1770
1776
|
return num.toLocaleString('en-US');
|
|
1771
1777
|
}
|
|
1772
1778
|
// < 100k
|
|
1773
|
-
if (num < 100000 && num > -
|
|
1779
|
+
if (num < 100000 && num > -1e5) {
|
|
1774
1780
|
// If has no decimals, return as whole number instead (10.00k => 10k)
|
|
1775
1781
|
if ((num / 1000) % 1 === 0)
|
|
1776
1782
|
return `${num / 1000}k`;
|
|
1777
1783
|
return `${(num / 1000).toFixed(decimalPrecision)}k`;
|
|
1778
1784
|
}
|
|
1779
1785
|
// < 10 million
|
|
1780
|
-
if (num < 10000000 && num > -
|
|
1786
|
+
if (num < 10000000 && num > -1e7) {
|
|
1781
1787
|
return `${Math.round(num / 1000)}k`;
|
|
1782
1788
|
}
|
|
1783
1789
|
// < 1 billion
|
|
1784
|
-
if (num < 1000000000 && num > -
|
|
1790
|
+
if (num < 1000000000 && num > -1e9) {
|
|
1785
1791
|
// If has no decimals, return as whole number instead (10.00m => 10m)
|
|
1786
1792
|
if ((num / 1000000) % 1 === 0)
|
|
1787
1793
|
return `${num / 1000000}m`;
|
|
@@ -2118,6 +2124,7 @@ const BossProps = mapValues({
|
|
|
2118
2124
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
2119
2125
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
2120
2126
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
2127
|
+
[Boss.BRUTUS]: { name: 'Brutus', isMembers: false },
|
|
2121
2128
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
2122
2129
|
[Boss.CALLISTO]: { name: 'Callisto' },
|
|
2123
2130
|
[Boss.CALVARION]: { name: "Calvar'ion" },
|
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ declare const Boss: {
|
|
|
67
67
|
readonly ARAXXOR: "araxxor";
|
|
68
68
|
readonly ARTIO: "artio";
|
|
69
69
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
70
|
+
readonly BRUTUS: "brutus";
|
|
70
71
|
readonly BRYOPHYTA: "bryophyta";
|
|
71
72
|
readonly CALLISTO: "callisto";
|
|
72
73
|
readonly CALVARION: "calvarion";
|
|
@@ -145,6 +146,7 @@ declare const Metric: {
|
|
|
145
146
|
readonly ARAXXOR: "araxxor";
|
|
146
147
|
readonly ARTIO: "artio";
|
|
147
148
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
149
|
+
readonly BRUTUS: "brutus";
|
|
148
150
|
readonly BRYOPHYTA: "bryophyta";
|
|
149
151
|
readonly CALLISTO: "callisto";
|
|
150
152
|
readonly CALVARION: "calvarion";
|
|
@@ -356,6 +358,8 @@ interface Snapshot {
|
|
|
356
358
|
artioKills: number;
|
|
357
359
|
barrows_chestsRank: number;
|
|
358
360
|
barrows_chestsKills: number;
|
|
361
|
+
brutusRank: number;
|
|
362
|
+
brutusKills: number;
|
|
359
363
|
bryophytaRank: number;
|
|
360
364
|
bryophytaKills: number;
|
|
361
365
|
cerberusRank: number;
|
|
@@ -3278,6 +3282,13 @@ declare const MetricProps: {
|
|
|
3278
3282
|
type: MetricType;
|
|
3279
3283
|
measure: MetricMeasure;
|
|
3280
3284
|
};
|
|
3285
|
+
readonly brutus: {
|
|
3286
|
+
name: string;
|
|
3287
|
+
minimumValue: number;
|
|
3288
|
+
isMembers: boolean;
|
|
3289
|
+
type: MetricType;
|
|
3290
|
+
measure: MetricMeasure;
|
|
3291
|
+
};
|
|
3281
3292
|
readonly bryophyta: {
|
|
3282
3293
|
name: string;
|
|
3283
3294
|
minimumValue: number;
|
|
@@ -3892,7 +3903,7 @@ declare const REAL_SKILLS: Skill[];
|
|
|
3892
3903
|
declare const F2P_BOSSES: Boss[];
|
|
3893
3904
|
declare const MEMBER_SKILLS: Skill[];
|
|
3894
3905
|
declare const COMBAT_SKILLS: Skill[];
|
|
3895
|
-
declare const REAL_METRICS: (Skill |
|
|
3906
|
+
declare const REAL_METRICS: (Skill | Boss | Activity)[];
|
|
3896
3907
|
declare function isMetric(metric: Metric | string): metric is Metric;
|
|
3897
3908
|
declare function isSkill(metric: Metric | string): metric is Skill;
|
|
3898
3909
|
declare function isActivity(metric: Metric | string): metric is Activity;
|
|
@@ -3931,4 +3942,5 @@ declare function isPlayerType(typeString: string): typeString is PlayerType;
|
|
|
3931
3942
|
|
|
3932
3943
|
declare function roundNumber(num: number, cases: number): number;
|
|
3933
3944
|
|
|
3934
|
-
export { ACTIVITIES,
|
|
3945
|
+
export { ACTIVITIES, Activity, ActivityProps, BOSSES, Boss, BossProps, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, CompetitionCSVTableType, CompetitionStatus, CompetitionStatusProps, CompetitionTimeEventStatus, CompetitionTimeEventType, CompetitionType, CompetitionTypeProps, ComputedMetric, ComputedMetricProps, Country, CountryProps, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, GroupRole, GroupRoleProps, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, MemberActivityType, Metric, MetricMeasure, MetricProps, MetricType, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVILEGED_GROUP_ROLES, Period, PeriodProps, PlayerAnnotationType, PlayerBuild, PlayerBuildProps, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, SKILLS, SKILL_EXP_AT_99, Skill, SkillProps, WOMClient, findCountry, findCountryByCode, findCountryByName, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerStatus, isPlayerType, isSkill, padNumber, parsePeriodExpression, roundNumber };
|
|
3946
|
+
export type { Achievement, AchievementDefinition, AchievementMeasure, AchievementProgressResponse, AchievementResponse, BossMetaConfig, CachedDelta, Competition, CompetitionDetailsResponse, CompetitionMetric, CompetitionResponse, CompetitionTeam, CompetitionTimeEvent, CreateCompetitionPayload, CreateGroupPayload, EditCompetitionPayload, EditGroupPayload, GenericCountMessageResponse, GenericMessageResponse, Group, GroupDetailsResponse, GroupHiscoresEntryResponse, GroupResponse, GroupRoleOrder, GroupSocialLinks, GroupStatisticsResponse, MemberActivity, MemberActivityResponse, Membership, MembershipResponse, MetricDelta, NameChange, NameChangeDenyContext, NameChangeDetailsResponse, NameChangeResponse, NameChangeReviewContext, NameChangeSkipContext, ParticipantHistoryResponse, Participation, ParticipationResponse, Patron, Player, PlayerAnnotation, PlayerArchive, PlayerArchiveResponse, PlayerCompetitionStandingResponse, PlayerDeltasMapResponse, PlayerDetailsResponse, PlayerResponse, Record$1 as Record, RecordResponse, SkillMetaBonus, SkillMetaConfig, SkillMetaMethod, Snapshot, SnapshotResponse, TimeRangeFilter, TrendDatapoint };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.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",
|