osrs-json-hiscores 2.9.0 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -0
- package/lib/hiscores.js +2 -2
- package/lib/types.d.ts +1 -1
- package/lib/utils/constants.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -163,6 +163,8 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses
|
|
163
163
|
| Theatre Of Blood | `theatreOfBlood` |
|
164
164
|
| Theatre Of Blood: Hard Mode | `theatreOfBloodHardMode` |
|
165
165
|
| Thermonuclear Smoke Devil | `thermonuclearSmokeDevil` |
|
166
|
+
| Tombs of Amascut | `tombsOfAmascut` |
|
167
|
+
| Tombs of Amascut: Expert Mode | `tombsOfAmascutExpertMode` |
|
166
168
|
| TzKal-Zuk | `tzKalZuk` |
|
167
169
|
| TzTok-Jad | `tzTokJad` |
|
168
170
|
| Venenatis | `venenatis` |
|
package/lib/hiscores.js
CHANGED
@@ -186,7 +186,7 @@ function getStats(rsn) {
|
|
186
186
|
if (typeof rsn !== 'string') {
|
187
187
|
throw Error('RSN must be a string');
|
188
188
|
}
|
189
|
-
else if (!/^[a-zA-Z0-9 _]+$/.test(rsn)) {
|
189
|
+
else if (!/^[a-zA-Z0-9 _-]+$/.test(rsn)) {
|
190
190
|
throw Error('RSN contains invalid character');
|
191
191
|
}
|
192
192
|
else if (rsn.length > 12 || rsn.length < 1) {
|
@@ -271,7 +271,7 @@ function getStatsByGamemode(rsn, mode) {
|
|
271
271
|
if (typeof rsn !== 'string') {
|
272
272
|
throw Error('RSN must be a string');
|
273
273
|
}
|
274
|
-
else if (!/^[a-zA-Z0-9 _]+$/.test(rsn)) {
|
274
|
+
else if (!/^[a-zA-Z0-9 _-]+$/.test(rsn)) {
|
275
275
|
throw Error('RSN contains invalid character');
|
276
276
|
}
|
277
277
|
else if (rsn.length > 12 || rsn.length < 1) {
|
package/lib/types.d.ts
CHANGED
@@ -20,7 +20,7 @@ export declare type BHType = 'rogue' | 'hunter';
|
|
20
20
|
export declare type BH = {
|
21
21
|
[Type in BHType]: Activity;
|
22
22
|
};
|
23
|
-
export declare type Boss = 'abyssalSire' | 'alchemicalHydra' | 'barrows' | 'bryophyta' | 'callisto' | 'cerberus' | 'chambersOfXeric' | 'chambersOfXericChallengeMode' | 'chaosElemental' | 'chaosFanatic' | 'commanderZilyana' | 'corporealBeast' | 'crazyArchaeologist' | 'dagannothPrime' | 'dagannothRex' | 'dagannothSupreme' | 'derangedArchaeologist' | 'generalGraardor' | 'giantMole' | 'grotesqueGuardians' | 'hespori' | 'kalphiteQueen' | 'kingBlackDragon' | 'kraken' | 'kreeArra' | 'krilTsutsaroth' | 'mimic' | 'nex' | 'nightmare' | 'phosanisNightmare' | 'obor' | 'sarachnis' | 'scorpia' | 'skotizo' | 'tempoross' | 'gauntlet' | 'corruptedGauntlet' | 'theatreOfBlood' | 'theatreOfBloodHardMode' | 'thermonuclearSmokeDevil' | 'tzKalZuk' | 'tzTokJad' | 'venenatis' | 'vetion' | 'vorkath' | 'wintertodt' | 'zalcano' | 'zulrah';
|
23
|
+
export declare type Boss = 'abyssalSire' | 'alchemicalHydra' | 'barrows' | 'bryophyta' | 'callisto' | 'cerberus' | 'chambersOfXeric' | 'chambersOfXericChallengeMode' | 'chaosElemental' | 'chaosFanatic' | 'commanderZilyana' | 'corporealBeast' | 'crazyArchaeologist' | 'dagannothPrime' | 'dagannothRex' | 'dagannothSupreme' | 'derangedArchaeologist' | 'generalGraardor' | 'giantMole' | 'grotesqueGuardians' | 'hespori' | 'kalphiteQueen' | 'kingBlackDragon' | 'kraken' | 'kreeArra' | 'krilTsutsaroth' | 'mimic' | 'nex' | 'nightmare' | 'phosanisNightmare' | 'obor' | 'sarachnis' | 'scorpia' | 'skotizo' | 'tempoross' | 'gauntlet' | 'corruptedGauntlet' | 'theatreOfBlood' | 'theatreOfBloodHardMode' | 'thermonuclearSmokeDevil' | 'tombsOfAmascut' | 'tombsOfAmascutExpertMode' | 'tzKalZuk' | 'tzTokJad' | 'venenatis' | 'vetion' | 'vorkath' | 'wintertodt' | 'zalcano' | 'zulrah';
|
24
24
|
export declare type Bosses = {
|
25
25
|
[Type in Boss]: Activity;
|
26
26
|
};
|
package/lib/utils/constants.js
CHANGED
@@ -104,6 +104,8 @@ exports.BOSSES = [
|
|
104
104
|
'theatreOfBlood',
|
105
105
|
'theatreOfBloodHardMode',
|
106
106
|
'thermonuclearSmokeDevil',
|
107
|
+
'tombsOfAmascut',
|
108
|
+
'tombsOfAmascutExpertMode',
|
107
109
|
'tzKalZuk',
|
108
110
|
'tzTokJad',
|
109
111
|
'venenatis',
|
@@ -170,6 +172,8 @@ exports.FORMATTED_BOSS_NAMES = {
|
|
170
172
|
theatreOfBlood: 'Theatre of Blood',
|
171
173
|
theatreOfBloodHardMode: 'Theatre of Blood: Hard Mode',
|
172
174
|
thermonuclearSmokeDevil: 'Thermonuclear Smoke Devil',
|
175
|
+
tombsOfAmascut: 'Tombs of Amascut',
|
176
|
+
tombsOfAmascutExpertMode: 'Tombs of Amascut: Expert Mode',
|
173
177
|
tzKalZuk: 'TzKal-Zuk',
|
174
178
|
tzTokJad: 'TzTok-Jad',
|
175
179
|
venenatis: 'Venenatis',
|