@wise-old-man/utils 4.0.10 → 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 -14
- package/dist/es/index.js +19 -14
- package/dist/es/index.mjs +19 -14
- package/dist/index.d.ts +8 -7
- 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,7 +964,7 @@ const Boss = {
|
|
|
959
964
|
ARAXXOR: 'araxxor',
|
|
960
965
|
ARTIO: 'artio',
|
|
961
966
|
BARROWS_CHESTS: 'barrows_chests',
|
|
962
|
-
|
|
967
|
+
BRUTUS: 'brutus',
|
|
963
968
|
BRYOPHYTA: 'bryophyta',
|
|
964
969
|
CALLISTO: 'callisto',
|
|
965
970
|
CALVARION: 'calvarion',
|
|
@@ -1769,22 +1774,22 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
1769
1774
|
if (num % 1 !== 0) {
|
|
1770
1775
|
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
1771
1776
|
}
|
|
1772
|
-
if ((num < 10000 && num > -
|
|
1777
|
+
if ((num < 10000 && num > -1e4) || !withLetters) {
|
|
1773
1778
|
return num.toLocaleString('en-US');
|
|
1774
1779
|
}
|
|
1775
1780
|
// < 100k
|
|
1776
|
-
if (num < 100000 && num > -
|
|
1781
|
+
if (num < 100000 && num > -1e5) {
|
|
1777
1782
|
// If has no decimals, return as whole number instead (10.00k => 10k)
|
|
1778
1783
|
if ((num / 1000) % 1 === 0)
|
|
1779
1784
|
return `${num / 1000}k`;
|
|
1780
1785
|
return `${(num / 1000).toFixed(decimalPrecision)}k`;
|
|
1781
1786
|
}
|
|
1782
1787
|
// < 10 million
|
|
1783
|
-
if (num < 10000000 && num > -
|
|
1788
|
+
if (num < 10000000 && num > -1e7) {
|
|
1784
1789
|
return `${Math.round(num / 1000)}k`;
|
|
1785
1790
|
}
|
|
1786
1791
|
// < 1 billion
|
|
1787
|
-
if (num < 1000000000 && num > -
|
|
1792
|
+
if (num < 1000000000 && num > -1e9) {
|
|
1788
1793
|
// If has no decimals, return as whole number instead (10.00m => 10m)
|
|
1789
1794
|
if ((num / 1000000) % 1 === 0)
|
|
1790
1795
|
return `${num / 1000000}m`;
|
|
@@ -2121,7 +2126,7 @@ const BossProps = mapValues({
|
|
|
2121
2126
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
2122
2127
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
2123
2128
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
2124
|
-
[Boss.
|
|
2129
|
+
[Boss.BRUTUS]: { name: 'Brutus', isMembers: false },
|
|
2125
2130
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
2126
2131
|
[Boss.CALLISTO]: { name: 'Callisto' },
|
|
2127
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,7 +962,7 @@ const Boss = {
|
|
|
957
962
|
ARAXXOR: 'araxxor',
|
|
958
963
|
ARTIO: 'artio',
|
|
959
964
|
BARROWS_CHESTS: 'barrows_chests',
|
|
960
|
-
|
|
965
|
+
BRUTUS: 'brutus',
|
|
961
966
|
BRYOPHYTA: 'bryophyta',
|
|
962
967
|
CALLISTO: 'callisto',
|
|
963
968
|
CALVARION: 'calvarion',
|
|
@@ -1767,22 +1772,22 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
1767
1772
|
if (num % 1 !== 0) {
|
|
1768
1773
|
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
1769
1774
|
}
|
|
1770
|
-
if ((num < 10000 && num > -
|
|
1775
|
+
if ((num < 10000 && num > -1e4) || !withLetters) {
|
|
1771
1776
|
return num.toLocaleString('en-US');
|
|
1772
1777
|
}
|
|
1773
1778
|
// < 100k
|
|
1774
|
-
if (num < 100000 && num > -
|
|
1779
|
+
if (num < 100000 && num > -1e5) {
|
|
1775
1780
|
// If has no decimals, return as whole number instead (10.00k => 10k)
|
|
1776
1781
|
if ((num / 1000) % 1 === 0)
|
|
1777
1782
|
return `${num / 1000}k`;
|
|
1778
1783
|
return `${(num / 1000).toFixed(decimalPrecision)}k`;
|
|
1779
1784
|
}
|
|
1780
1785
|
// < 10 million
|
|
1781
|
-
if (num < 10000000 && num > -
|
|
1786
|
+
if (num < 10000000 && num > -1e7) {
|
|
1782
1787
|
return `${Math.round(num / 1000)}k`;
|
|
1783
1788
|
}
|
|
1784
1789
|
// < 1 billion
|
|
1785
|
-
if (num < 1000000000 && num > -
|
|
1790
|
+
if (num < 1000000000 && num > -1e9) {
|
|
1786
1791
|
// If has no decimals, return as whole number instead (10.00m => 10m)
|
|
1787
1792
|
if ((num / 1000000) % 1 === 0)
|
|
1788
1793
|
return `${num / 1000000}m`;
|
|
@@ -2119,7 +2124,7 @@ const BossProps = mapValues({
|
|
|
2119
2124
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
2120
2125
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
2121
2126
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
2122
|
-
[Boss.
|
|
2127
|
+
[Boss.BRUTUS]: { name: 'Brutus', isMembers: false },
|
|
2123
2128
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
2124
2129
|
[Boss.CALLISTO]: { name: 'Callisto' },
|
|
2125
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,7 +962,7 @@ const Boss = {
|
|
|
957
962
|
ARAXXOR: 'araxxor',
|
|
958
963
|
ARTIO: 'artio',
|
|
959
964
|
BARROWS_CHESTS: 'barrows_chests',
|
|
960
|
-
|
|
965
|
+
BRUTUS: 'brutus',
|
|
961
966
|
BRYOPHYTA: 'bryophyta',
|
|
962
967
|
CALLISTO: 'callisto',
|
|
963
968
|
CALVARION: 'calvarion',
|
|
@@ -1767,22 +1772,22 @@ function formatNumber(num, withLetters = false, decimalPrecision = 2) {
|
|
|
1767
1772
|
if (num % 1 !== 0) {
|
|
1768
1773
|
return (Math.round(num * 100) / 100).toLocaleString('en-US');
|
|
1769
1774
|
}
|
|
1770
|
-
if ((num < 10000 && num > -
|
|
1775
|
+
if ((num < 10000 && num > -1e4) || !withLetters) {
|
|
1771
1776
|
return num.toLocaleString('en-US');
|
|
1772
1777
|
}
|
|
1773
1778
|
// < 100k
|
|
1774
|
-
if (num < 100000 && num > -
|
|
1779
|
+
if (num < 100000 && num > -1e5) {
|
|
1775
1780
|
// If has no decimals, return as whole number instead (10.00k => 10k)
|
|
1776
1781
|
if ((num / 1000) % 1 === 0)
|
|
1777
1782
|
return `${num / 1000}k`;
|
|
1778
1783
|
return `${(num / 1000).toFixed(decimalPrecision)}k`;
|
|
1779
1784
|
}
|
|
1780
1785
|
// < 10 million
|
|
1781
|
-
if (num < 10000000 && num > -
|
|
1786
|
+
if (num < 10000000 && num > -1e7) {
|
|
1782
1787
|
return `${Math.round(num / 1000)}k`;
|
|
1783
1788
|
}
|
|
1784
1789
|
// < 1 billion
|
|
1785
|
-
if (num < 1000000000 && num > -
|
|
1790
|
+
if (num < 1000000000 && num > -1e9) {
|
|
1786
1791
|
// If has no decimals, return as whole number instead (10.00m => 10m)
|
|
1787
1792
|
if ((num / 1000000) % 1 === 0)
|
|
1788
1793
|
return `${num / 1000000}m`;
|
|
@@ -2119,7 +2124,7 @@ const BossProps = mapValues({
|
|
|
2119
2124
|
[Boss.ARAXXOR]: { name: 'Araxxor' },
|
|
2120
2125
|
[Boss.ARTIO]: { name: 'Artio' },
|
|
2121
2126
|
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
2122
|
-
[Boss.
|
|
2127
|
+
[Boss.BRUTUS]: { name: 'Brutus', isMembers: false },
|
|
2123
2128
|
[Boss.BRYOPHYTA]: { name: 'Bryophyta', isMembers: false },
|
|
2124
2129
|
[Boss.CALLISTO]: { name: 'Callisto' },
|
|
2125
2130
|
[Boss.CALVARION]: { name: "Calvar'ion" },
|
package/dist/index.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ declare const Boss: {
|
|
|
67
67
|
readonly ARAXXOR: "araxxor";
|
|
68
68
|
readonly ARTIO: "artio";
|
|
69
69
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
70
|
-
readonly
|
|
70
|
+
readonly BRUTUS: "brutus";
|
|
71
71
|
readonly BRYOPHYTA: "bryophyta";
|
|
72
72
|
readonly CALLISTO: "callisto";
|
|
73
73
|
readonly CALVARION: "calvarion";
|
|
@@ -146,7 +146,7 @@ declare const Metric: {
|
|
|
146
146
|
readonly ARAXXOR: "araxxor";
|
|
147
147
|
readonly ARTIO: "artio";
|
|
148
148
|
readonly BARROWS_CHESTS: "barrows_chests";
|
|
149
|
-
readonly
|
|
149
|
+
readonly BRUTUS: "brutus";
|
|
150
150
|
readonly BRYOPHYTA: "bryophyta";
|
|
151
151
|
readonly CALLISTO: "callisto";
|
|
152
152
|
readonly CALVARION: "calvarion";
|
|
@@ -358,8 +358,8 @@ interface Snapshot {
|
|
|
358
358
|
artioKills: number;
|
|
359
359
|
barrows_chestsRank: number;
|
|
360
360
|
barrows_chestsKills: number;
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
brutusRank: number;
|
|
362
|
+
brutusKills: number;
|
|
363
363
|
bryophytaRank: number;
|
|
364
364
|
bryophytaKills: number;
|
|
365
365
|
cerberusRank: number;
|
|
@@ -3282,7 +3282,7 @@ declare const MetricProps: {
|
|
|
3282
3282
|
type: MetricType;
|
|
3283
3283
|
measure: MetricMeasure;
|
|
3284
3284
|
};
|
|
3285
|
-
readonly
|
|
3285
|
+
readonly brutus: {
|
|
3286
3286
|
name: string;
|
|
3287
3287
|
minimumValue: number;
|
|
3288
3288
|
isMembers: boolean;
|
|
@@ -3903,7 +3903,7 @@ declare const REAL_SKILLS: Skill[];
|
|
|
3903
3903
|
declare const F2P_BOSSES: Boss[];
|
|
3904
3904
|
declare const MEMBER_SKILLS: Skill[];
|
|
3905
3905
|
declare const COMBAT_SKILLS: Skill[];
|
|
3906
|
-
declare const REAL_METRICS: (Skill |
|
|
3906
|
+
declare const REAL_METRICS: (Skill | Boss | Activity)[];
|
|
3907
3907
|
declare function isMetric(metric: Metric | string): metric is Metric;
|
|
3908
3908
|
declare function isSkill(metric: Metric | string): metric is Skill;
|
|
3909
3909
|
declare function isActivity(metric: Metric | string): metric is Activity;
|
|
@@ -3942,4 +3942,5 @@ declare function isPlayerType(typeString: string): typeString is PlayerType;
|
|
|
3942
3942
|
|
|
3943
3943
|
declare function roundNumber(num: number, cases: number): number;
|
|
3944
3944
|
|
|
3945
|
-
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",
|