mirror of
https://github.com/maxswa/osrs-json-hiscores.git
synced 2025-10-15 10:19:04 +00:00
Compare commits
86 Commits
add-tob-ha
...
v2.12.1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7724636b40 | ||
![]() |
3954b04acc | ||
![]() |
ee7389455c | ||
![]() |
54c11635e0 | ||
![]() |
dc799cf363 | ||
![]() |
d4c7aaff2a | ||
![]() |
03c089ebff | ||
![]() |
96641d875a | ||
![]() |
b2bdd3d2ce | ||
![]() |
a4ddfaf199 | ||
![]() |
efbcdfc709 | ||
![]() |
fe913aba1f | ||
![]() |
1497653bab | ||
![]() |
f76de38eb1 | ||
![]() |
2f1d10b309 | ||
![]() |
f08424cb81 | ||
![]() |
69088db3b6 | ||
![]() |
9cc89735cd | ||
![]() |
a126ae4fc7 | ||
![]() |
52f3df1838 | ||
![]() |
2891bbddc4 | ||
![]() |
e2ea2fe33d | ||
![]() |
b7ae812f45 | ||
![]() |
240628d9cc | ||
![]() |
b754663f6d | ||
![]() |
0678f7c979 | ||
![]() |
2a60283a93 | ||
![]() |
b912731cf9 | ||
![]() |
cf44c57ec6 | ||
![]() |
3f34c9ab61 | ||
![]() |
1ef73b6b0c | ||
![]() |
08ecf68689 | ||
![]() |
ab3ee70237 | ||
![]() |
cad20d41cb | ||
![]() |
2877b9c8a1 | ||
![]() |
afbb22749a | ||
![]() |
eebf76a34c | ||
![]() |
e60442a7ce | ||
![]() |
1132a085e1 | ||
![]() |
a2a34a46e3 | ||
![]() |
71a76a12fd | ||
![]() |
3a72315498 | ||
![]() |
c1c9833ad0 | ||
![]() |
9fe03746e1 | ||
![]() |
66a4fb47a6 | ||
![]() |
83c44148a7 | ||
![]() |
44dea6b35c | ||
![]() |
0bf491638c | ||
![]() |
febca534b0 | ||
![]() |
8daee5c39b | ||
![]() |
f98cf8aaaa | ||
![]() |
5d9f6a6bac | ||
![]() |
8737b50a82 | ||
![]() |
1255e7e3d2 | ||
![]() |
f4135d0b0f | ||
![]() |
6135ff459c | ||
![]() |
9fb7e4cebc | ||
![]() |
11350b2444 | ||
![]() |
e0d6c5b20f | ||
![]() |
c8a4440ac3 | ||
![]() |
f3781cf142 | ||
![]() |
5fbc04217b | ||
![]() |
eb5d0ba49f | ||
![]() |
c68e3bebea | ||
![]() |
aa6fd6f39a | ||
![]() |
cc9aae8ced | ||
![]() |
12882b4e34 | ||
![]() |
b17a8b9299 | ||
![]() |
50f2c19257 | ||
![]() |
d892f8e67b | ||
![]() |
af5664ae6e | ||
![]() |
20c5c2f730 | ||
![]() |
04e59cff04 | ||
![]() |
ad2249ba76 | ||
![]() |
5c52bfd883 | ||
![]() |
947d994cdf | ||
![]() |
130446ab74 | ||
![]() |
f96e7e3e2d | ||
![]() |
90d66b6b2c | ||
![]() |
14cedb5877 | ||
![]() |
4703812b52 | ||
![]() |
a11ac96f68 | ||
![]() |
f97caa6a15 | ||
![]() |
e7e54741d2 | ||
![]() |
062e5e02b2 | ||
![]() |
ed7036f9c0 |
11
README.md
11
README.md
@@ -3,7 +3,7 @@
|
|||||||
[](https://www.npmjs.com/package/osrs-json-hiscores)
|
[](https://www.npmjs.com/package/osrs-json-hiscores)
|
||||||
[](https://npm-stat.com/charts.html?package=osrs-json-hiscores)
|
[](https://npm-stat.com/charts.html?package=osrs-json-hiscores)
|
||||||
[](https://github.com/maxswa/osrs-json-hiscores/blob/master/src/types.ts)
|
[](https://github.com/maxswa/osrs-json-hiscores/blob/master/src/types.ts)
|
||||||
[](https://github.com/maxswa/osrs-json-hiscores/actions/workflows/main.yml?query=branch%3Amain)
|
[](https://github.com/maxswa/osrs-json-hiscores/actions/workflows/main.yml?query=branch%3Amain)
|
||||||
|
|
||||||
**The Old School Runescape API wrapper that does more!**
|
**The Old School Runescape API wrapper that does more!**
|
||||||
|
|
||||||
@@ -109,7 +109,9 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses
|
|||||||
| Bounty Hunter (Rogue) | `rogueBH` |
|
| Bounty Hunter (Rogue) | `rogueBH` |
|
||||||
| Bounty Hunter (Hunter) | `hunterBH` |
|
| Bounty Hunter (Hunter) | `hunterBH` |
|
||||||
| Last Man Standing | `lastManStanding` |
|
| Last Man Standing | `lastManStanding` |
|
||||||
|
| PvP Arena | `pvpArena` |
|
||||||
| Soul Wars Zeal | `soulWarsZeal` |
|
| Soul Wars Zeal | `soulWarsZeal` |
|
||||||
|
| Rifts Closed | `riftsClosed` |
|
||||||
|
|
||||||
### Leagues
|
### Leagues
|
||||||
|
|
||||||
@@ -148,8 +150,11 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses
|
|||||||
| Kreearra | `kreeArra` |
|
| Kreearra | `kreeArra` |
|
||||||
| K'ril Tsutsaroth | `krilTsutsaroth` |
|
| K'ril Tsutsaroth | `krilTsutsaroth` |
|
||||||
| Mimic | `mimic` |
|
| Mimic | `mimic` |
|
||||||
|
| Nex | `nex` |
|
||||||
| The Nightmare of Ashihama | `nightmare` |
|
| The Nightmare of Ashihama | `nightmare` |
|
||||||
|
| Phosani's Nightmare | `phosanisNightmare` |
|
||||||
| Obor | `obor` |
|
| Obor | `obor` |
|
||||||
|
| Phantom Muspah | `phantomMuspah` |
|
||||||
| Sarachnis | `sarachnis` |
|
| Sarachnis | `sarachnis` |
|
||||||
| Scorpia | `scorpia` |
|
| Scorpia | `scorpia` |
|
||||||
| Skotizo | `skotizo` |
|
| Skotizo | `skotizo` |
|
||||||
@@ -159,6 +164,8 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses
|
|||||||
| Theatre Of Blood | `theatreOfBlood` |
|
| Theatre Of Blood | `theatreOfBlood` |
|
||||||
| Theatre Of Blood: Hard Mode | `theatreOfBloodHardMode` |
|
| Theatre Of Blood: Hard Mode | `theatreOfBloodHardMode` |
|
||||||
| Thermonuclear Smoke Devil | `thermonuclearSmokeDevil` |
|
| Thermonuclear Smoke Devil | `thermonuclearSmokeDevil` |
|
||||||
|
| Tombs of Amascut | `tombsOfAmascut` |
|
||||||
|
| Tombs of Amascut: Expert Mode | `tombsOfAmascutExpertMode` |
|
||||||
| TzKal-Zuk | `tzKalZuk` |
|
| TzKal-Zuk | `tzKalZuk` |
|
||||||
| TzTok-Jad | `tzTokJad` |
|
| TzTok-Jad | `tzTokJad` |
|
||||||
| Venenatis | `venenatis` |
|
| Venenatis | `venenatis` |
|
||||||
@@ -190,7 +197,9 @@ Activities consist of all levels of clue scrolls as well as minigames and bosses
|
|||||||
leaguePoints: {},
|
leaguePoints: {},
|
||||||
bountyHunter: {},
|
bountyHunter: {},
|
||||||
lastManStanding: {},
|
lastManStanding: {},
|
||||||
|
pvpArena: {},
|
||||||
soulWarsZeal: {},
|
soulWarsZeal: {},
|
||||||
|
riftsClosed: {},
|
||||||
bosses: {}
|
bosses: {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2322
__tests__/attackTopPage.html
vendored
2322
__tests__/attackTopPage.html
vendored
File diff suppressed because it is too large
Load Diff
2368
__tests__/b0atyNamePage.html
vendored
2368
__tests__/b0atyNamePage.html
vendored
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,9 @@ import {
|
|||||||
Stats,
|
Stats,
|
||||||
getPlayerTableURL,
|
getPlayerTableURL,
|
||||||
getSkillPageURL,
|
getSkillPageURL,
|
||||||
getStatsURL
|
getStatsURL,
|
||||||
|
BOSSES,
|
||||||
|
INVALID_FORMAT_ERROR
|
||||||
} from '../src/index';
|
} from '../src/index';
|
||||||
|
|
||||||
const B0ATY_NAME = 'B0ATY';
|
const B0ATY_NAME = 'B0ATY';
|
||||||
@@ -85,7 +87,9 @@ test('Parse CSV to json', () => {
|
|||||||
392,250
|
392,250
|
||||||
1,6143
|
1,6143
|
||||||
4814,898
|
4814,898
|
||||||
|
13,4057
|
||||||
37,225
|
37,225
|
||||||
|
25,1110
|
||||||
382,2780
|
382,2780
|
||||||
944,3000
|
944,3000
|
||||||
1981,1452
|
1981,1452
|
||||||
@@ -113,8 +117,11 @@ test('Parse CSV to json', () => {
|
|||||||
625,2391
|
625,2391
|
||||||
120,2981
|
120,2981
|
||||||
1,109
|
1,109
|
||||||
|
99,39002
|
||||||
3,22666
|
3,22666
|
||||||
|
2,84
|
||||||
26,323
|
26,323
|
||||||
|
44,6233
|
||||||
201,1101
|
201,1101
|
||||||
82,3404
|
82,3404
|
||||||
5085,61
|
5085,61
|
||||||
@@ -124,6 +131,8 @@ test('Parse CSV to json', () => {
|
|||||||
6984,138
|
6984,138
|
||||||
23,923141
|
23,923141
|
||||||
4043,2000
|
4043,2000
|
||||||
|
4073,1020
|
||||||
|
289,13070
|
||||||
489,8
|
489,8
|
||||||
967,47
|
967,47
|
||||||
11155,223
|
11155,223
|
||||||
@@ -166,7 +175,9 @@ test('Parse CSV to json', () => {
|
|||||||
rogue: { rank: 89912, score: 37 }
|
rogue: { rank: 89912, score: 37 }
|
||||||
},
|
},
|
||||||
lastManStanding: { rank: 4814, score: 898 },
|
lastManStanding: { rank: 4814, score: 898 },
|
||||||
|
pvpArena: { rank: 13, score: 4057 },
|
||||||
soulWarsZeal: { rank: 37, score: 225 },
|
soulWarsZeal: { rank: 37, score: 225 },
|
||||||
|
riftsClosed: { rank: 25, score: 1110 },
|
||||||
clues: {
|
clues: {
|
||||||
all: { rank: 32, score: 12148 },
|
all: { rank: 32, score: 12148 },
|
||||||
beginner: { rank: 3105, score: 76 },
|
beginner: { rank: 3105, score: 76 },
|
||||||
@@ -204,8 +215,11 @@ test('Parse CSV to json', () => {
|
|||||||
kreeArra: { rank: 625, score: 2391 },
|
kreeArra: { rank: 625, score: 2391 },
|
||||||
krilTsutsaroth: { rank: 120, score: 2981 },
|
krilTsutsaroth: { rank: 120, score: 2981 },
|
||||||
mimic: { rank: 1, score: 109 },
|
mimic: { rank: 1, score: 109 },
|
||||||
|
nex: { rank: 99, score: 39002 },
|
||||||
nightmare: { rank: 3, score: 22666 },
|
nightmare: { rank: 3, score: 22666 },
|
||||||
|
phosanisNightmare: { rank: 2, score: 84 },
|
||||||
obor: { rank: 26, score: 323 },
|
obor: { rank: 26, score: 323 },
|
||||||
|
phantomMuspah: { rank: 44, score: 6233 },
|
||||||
sarachnis: { rank: 201, score: 1101 },
|
sarachnis: { rank: 201, score: 1101 },
|
||||||
scorpia: { rank: 82, score: 3404 },
|
scorpia: { rank: 82, score: 3404 },
|
||||||
skotizo: { rank: 5085, score: 61 },
|
skotizo: { rank: 5085, score: 61 },
|
||||||
@@ -215,6 +229,8 @@ test('Parse CSV to json', () => {
|
|||||||
theatreOfBlood: { rank: 6984, score: 138 },
|
theatreOfBlood: { rank: 6984, score: 138 },
|
||||||
theatreOfBloodHardMode: { rank: 23, score: 923141 },
|
theatreOfBloodHardMode: { rank: 23, score: 923141 },
|
||||||
thermonuclearSmokeDevil: { rank: 4043, score: 2000 },
|
thermonuclearSmokeDevil: { rank: 4043, score: 2000 },
|
||||||
|
tombsOfAmascut: { rank: 4073, score: 1020 },
|
||||||
|
tombsOfAmascutExpertMode: { rank: 289, score: 13070 },
|
||||||
tzKalZuk: { rank: 489, score: 8 },
|
tzKalZuk: { rank: 489, score: 8 },
|
||||||
tzTokJad: { rank: 967, score: 47 },
|
tzTokJad: { rank: 967, score: 47 },
|
||||||
venenatis: { rank: 11155, score: 223 },
|
venenatis: { rank: 11155, score: 223 },
|
||||||
@@ -229,6 +245,18 @@ test('Parse CSV to json', () => {
|
|||||||
expect(parseStats(csv)).toStrictEqual(expectedOutput);
|
expect(parseStats(csv)).toStrictEqual(expectedOutput);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Parse CSV with unknown activity', () => {
|
||||||
|
const statsWithUnknownActivity = `${lynxTitanStats}
|
||||||
|
-1,-1`;
|
||||||
|
expect(() => parseStats(statsWithUnknownActivity)).toThrow(
|
||||||
|
INVALID_FORMAT_ERROR
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Parse invalid CSV', () => {
|
||||||
|
expect(() => parseStats('invalid')).toThrow(INVALID_FORMAT_ERROR);
|
||||||
|
});
|
||||||
|
|
||||||
describe('Get name format', () => {
|
describe('Get name format', () => {
|
||||||
it('gets a name with a space', async () => {
|
it('gets a name with a space', async () => {
|
||||||
const data = await getRSNFormat(LYNX_TITAN_SPACE_NAME);
|
const data = await getRSNFormat(LYNX_TITAN_SPACE_NAME);
|
||||||
@@ -441,7 +469,10 @@ test('Get non-existent player', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Get stats by gamemode', async () => {
|
test('Get stats by gamemode', async () => {
|
||||||
const { skills } = await getStatsByGamemode(LYNX_TITAN_FORMATTED_NAME);
|
const { skills, bosses } = await getStatsByGamemode(
|
||||||
|
LYNX_TITAN_FORMATTED_NAME
|
||||||
|
);
|
||||||
|
|
||||||
expect(skills).toMatchObject({
|
expect(skills).toMatchObject({
|
||||||
overall: { rank: expect.any(Number), level: 2277, xp: 4600000000 },
|
overall: { rank: expect.any(Number), level: 2277, xp: 4600000000 },
|
||||||
attack: { rank: expect.any(Number), level: 99, xp: 200000000 },
|
attack: { rank: expect.any(Number), level: 99, xp: 200000000 },
|
||||||
@@ -468,4 +499,56 @@ test('Get stats by gamemode', async () => {
|
|||||||
hunter: { rank: expect.any(Number), level: 99, xp: 200000000 },
|
hunter: { rank: expect.any(Number), level: 99, xp: 200000000 },
|
||||||
construction: { rank: expect.any(Number), level: 99, xp: 200000000 }
|
construction: { rank: expect.any(Number), level: 99, xp: 200000000 }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const bossKeys = Object.keys(bosses);
|
||||||
|
expect(bossKeys).toStrictEqual(BOSSES);
|
||||||
|
|
||||||
|
expect.assertions(2);
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('Get stats options', () => {
|
||||||
|
const rsn = 'player';
|
||||||
|
let axiosMock: jest.Mock;
|
||||||
|
beforeEach(() => {
|
||||||
|
axios.get = jest.fn(
|
||||||
|
(url) =>
|
||||||
|
new Promise<any>((resolve) =>
|
||||||
|
resolve(
|
||||||
|
url === getPlayerTableURL('main', rsn)
|
||||||
|
? { data: lynxTitanNamePage }
|
||||||
|
: { status: 200, data: lynxTitanStats }
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
axiosMock = axios.get as any;
|
||||||
|
axiosMock.mockClear();
|
||||||
|
});
|
||||||
|
it('fetches all gamemodes and formatted RSN when no options provided', async () => {
|
||||||
|
await getStats(rsn);
|
||||||
|
expect(axiosMock.mock.calls.map((val) => val[0])).toEqual([
|
||||||
|
getStatsURL('main', rsn),
|
||||||
|
getPlayerTableURL('main', rsn),
|
||||||
|
getStatsURL('ironman', rsn),
|
||||||
|
getStatsURL('hardcore', rsn),
|
||||||
|
getStatsURL('ultimate', rsn)
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
it('skips fetching formatted RSN when option is provided', async () => {
|
||||||
|
await getStats(rsn, { shouldGetFormattedRsn: false });
|
||||||
|
expect(
|
||||||
|
axiosMock.mock.calls.some(
|
||||||
|
(val) => val[0] === getPlayerTableURL('main', rsn)
|
||||||
|
)
|
||||||
|
).toBeFalsy();
|
||||||
|
});
|
||||||
|
it('skips fetching game mode when option is provided', async () => {
|
||||||
|
await getStats(rsn, {
|
||||||
|
otherGamemodes: ['ironman', 'ultimate']
|
||||||
|
});
|
||||||
|
expect(
|
||||||
|
axiosMock.mock.calls.some(
|
||||||
|
(val) => val[0] === getStatsURL('hardcore', rsn)
|
||||||
|
)
|
||||||
|
).toBeFalsy();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
2321
__tests__/lynxTitanNamePage.html
vendored
2321
__tests__/lynxTitanNamePage.html
vendored
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@
|
|||||||
3,99,200000000
|
3,99,200000000
|
||||||
25,99,200000000
|
25,99,200000000
|
||||||
5,99,200000000
|
5,99,200000000
|
||||||
24,99,200000000
|
23,99,200000000
|
||||||
12,99,200000000
|
12,99,200000000
|
||||||
2,99,200000000
|
2,99,200000000
|
||||||
19,99,200000000
|
19,99,200000000
|
||||||
@@ -29,7 +29,15 @@
|
|||||||
-1,-1
|
-1,-1
|
||||||
-1,-1
|
-1,-1
|
||||||
-1,-1
|
-1,-1
|
||||||
344430,22
|
347584,22
|
||||||
|
-1,-1
|
||||||
|
-1,-1
|
||||||
|
-1,-1
|
||||||
|
-1,-1
|
||||||
|
-1,-1
|
||||||
|
-1,-1
|
||||||
|
-1,-1
|
||||||
|
-1,-1
|
||||||
-1,-1
|
-1,-1
|
||||||
-1,-1
|
-1,-1
|
||||||
-1,-1
|
-1,-1
|
||||||
|
Can't render this file because it has a wrong number of fields in line 25.
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "osrs-json-hiscores",
|
"name": "osrs-json-hiscores",
|
||||||
"version": "2.4.2",
|
"version": "2.12.1",
|
||||||
"description": "The Old School Runescape API wrapper that does more!",
|
"description": "The Old School Runescape API wrapper that does more!",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
@@ -30,6 +30,9 @@
|
|||||||
"stats",
|
"stats",
|
||||||
"skills"
|
"skills"
|
||||||
],
|
],
|
||||||
|
"publishConfig": {
|
||||||
|
"registry": "https://registry.npmjs.org"
|
||||||
|
},
|
||||||
"author": "maxswa",
|
"author": "maxswa",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
112
src/hiscores.ts
112
src/hiscores.ts
@@ -1,4 +1,5 @@
|
|||||||
import { JSDOM } from 'jsdom';
|
import { AxiosResponse } from 'axios';
|
||||||
|
import { BinaryData, JSDOM } from 'jsdom';
|
||||||
import {
|
import {
|
||||||
Player,
|
Player,
|
||||||
Activity,
|
Activity,
|
||||||
@@ -12,7 +13,8 @@ import {
|
|||||||
PlayerSkillRow,
|
PlayerSkillRow,
|
||||||
ActivityName,
|
ActivityName,
|
||||||
PlayerActivityRow,
|
PlayerActivityRow,
|
||||||
Bosses
|
Bosses,
|
||||||
|
GetStatsOptions
|
||||||
} from './types';
|
} from './types';
|
||||||
import {
|
import {
|
||||||
getStatsURL,
|
getStatsURL,
|
||||||
@@ -27,7 +29,9 @@ import {
|
|||||||
rsnFromElement,
|
rsnFromElement,
|
||||||
getActivityPageURL,
|
getActivityPageURL,
|
||||||
httpGet,
|
httpGet,
|
||||||
BOSSES
|
BOSSES,
|
||||||
|
INVALID_FORMAT_ERROR,
|
||||||
|
validateRSN
|
||||||
} from './utils';
|
} from './utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -37,24 +41,19 @@ import {
|
|||||||
* @returns Formatted version of the rsn.
|
* @returns Formatted version of the rsn.
|
||||||
*/
|
*/
|
||||||
export async function getRSNFormat(rsn: string): Promise<string> {
|
export async function getRSNFormat(rsn: string): Promise<string> {
|
||||||
if (typeof rsn !== 'string') {
|
validateRSN(rsn);
|
||||||
throw Error('RSN must be a string');
|
|
||||||
} else if (!/^[a-zA-Z0-9 _-]+$/.test(rsn)) {
|
|
||||||
throw Error('RSN contains invalid character');
|
|
||||||
} else if (rsn.length > 12 || rsn.length < 1) {
|
|
||||||
throw Error('RSN must be between 1 and 12 characters');
|
|
||||||
}
|
|
||||||
|
|
||||||
const url = getPlayerTableURL('main', rsn);
|
const url = getPlayerTableURL('main', rsn);
|
||||||
try {
|
try {
|
||||||
const response = await httpGet(url);
|
const response = await httpGet<string | Buffer | BinaryData | undefined>(
|
||||||
const dom = new JSDOM(response.data);
|
url
|
||||||
const spans = dom.window.document.querySelectorAll(
|
|
||||||
'span[style="color:#AA0022;"]'
|
|
||||||
);
|
);
|
||||||
if (spans.length >= 2) {
|
const dom = new JSDOM(response.data);
|
||||||
const nameSpan = spans[1];
|
const anchor = dom.window.document.querySelector(
|
||||||
return rsnFromElement(nameSpan);
|
'.personal-hiscores__row.personal-hiscores__row--type-highlight a'
|
||||||
|
);
|
||||||
|
if (anchor) {
|
||||||
|
return rsnFromElement(anchor);
|
||||||
}
|
}
|
||||||
throw Error('Player not found');
|
throw Error('Player not found');
|
||||||
} catch {
|
} catch {
|
||||||
@@ -74,6 +73,13 @@ export function parseStats(csv: string): Stats {
|
|||||||
.filter((entry) => !!entry)
|
.filter((entry) => !!entry)
|
||||||
.map((stat) => stat.split(','));
|
.map((stat) => stat.split(','));
|
||||||
|
|
||||||
|
if (
|
||||||
|
splitCSV.length !==
|
||||||
|
SKILLS.length + BH_MODES.length + CLUES.length + BOSSES.length + 5
|
||||||
|
) {
|
||||||
|
throw Error(INVALID_FORMAT_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
const skillObjects: Skill[] = splitCSV
|
const skillObjects: Skill[] = splitCSV
|
||||||
.filter((stat) => stat.length === 3)
|
.filter((stat) => stat.length === 3)
|
||||||
.map((stat) => {
|
.map((stat) => {
|
||||||
@@ -100,7 +106,12 @@ export function parseStats(csv: string): Stats {
|
|||||||
const [leaguePoints] = activityObjects.splice(0, 1);
|
const [leaguePoints] = activityObjects.splice(0, 1);
|
||||||
const bhObjects = activityObjects.splice(0, BH_MODES.length);
|
const bhObjects = activityObjects.splice(0, BH_MODES.length);
|
||||||
const clueObjects = activityObjects.splice(0, CLUES.length);
|
const clueObjects = activityObjects.splice(0, CLUES.length);
|
||||||
const [lastManStanding, soulWarsZeal] = activityObjects.splice(0, 2);
|
const [
|
||||||
|
lastManStanding,
|
||||||
|
pvpArena,
|
||||||
|
soulWarsZeal,
|
||||||
|
riftsClosed
|
||||||
|
] = activityObjects.splice(0, 4);
|
||||||
const bossObjects = activityObjects.splice(0, BOSSES.length);
|
const bossObjects = activityObjects.splice(0, BOSSES.length);
|
||||||
|
|
||||||
const skills: Skills = skillObjects.reduce<Skills>((prev, curr, index) => {
|
const skills: Skills = skillObjects.reduce<Skills>((prev, curr, index) => {
|
||||||
@@ -132,7 +143,9 @@ export function parseStats(csv: string): Stats {
|
|||||||
leaguePoints,
|
leaguePoints,
|
||||||
bountyHunter,
|
bountyHunter,
|
||||||
lastManStanding,
|
lastManStanding,
|
||||||
|
pvpArena,
|
||||||
soulWarsZeal,
|
soulWarsZeal,
|
||||||
|
riftsClosed,
|
||||||
clues,
|
clues,
|
||||||
bosses
|
bosses
|
||||||
};
|
};
|
||||||
@@ -149,25 +162,36 @@ export function parseStats(csv: string): Stats {
|
|||||||
* @param rsn Username of the player.
|
* @param rsn Username of the player.
|
||||||
* @returns Player object.
|
* @returns Player object.
|
||||||
*/
|
*/
|
||||||
export async function getStats(rsn: string): Promise<Player> {
|
export async function getStats(
|
||||||
if (typeof rsn !== 'string') {
|
rsn: string,
|
||||||
throw Error('RSN must be a string');
|
options?: GetStatsOptions
|
||||||
} else if (!/^[a-zA-Z0-9 _]+$/.test(rsn)) {
|
): Promise<Player> {
|
||||||
throw Error('RSN contains invalid character');
|
validateRSN(rsn);
|
||||||
} else if (rsn.length > 12 || rsn.length < 1) {
|
const otherGamemodes = options?.otherGamemodes ?? [
|
||||||
throw Error('RSN must be between 1 and 12 characters');
|
'ironman',
|
||||||
}
|
'hardcore',
|
||||||
|
'ultimate'
|
||||||
|
];
|
||||||
|
const shouldGetFormattedRsn = options?.shouldGetFormattedRsn ?? true;
|
||||||
|
|
||||||
const mainRes = await httpGet(getStatsURL('main', rsn));
|
const mainRes = await httpGet<string>(getStatsURL('main', rsn));
|
||||||
if (mainRes.status === 200) {
|
if (mainRes.status === 200) {
|
||||||
const otherResponses = await Promise.all([
|
const emptyResponse: AxiosResponse<string> = {
|
||||||
httpGet(getStatsURL('ironman', rsn)).catch((err) => err),
|
status: 404,
|
||||||
httpGet(getStatsURL('hardcore', rsn)).catch((err) => err),
|
data: '',
|
||||||
httpGet(getStatsURL('ultimate', rsn)).catch((err) => err),
|
statusText: '',
|
||||||
getRSNFormat(rsn).catch(() => undefined)
|
headers: {},
|
||||||
]);
|
config: {}
|
||||||
|
};
|
||||||
const [ironRes, hcRes, ultRes, formattedName] = otherResponses;
|
const getModeStats = async (
|
||||||
|
mode: Extract<Gamemode, 'ironman' | 'hardcore' | 'ultimate'>
|
||||||
|
): Promise<AxiosResponse<string>> =>
|
||||||
|
otherGamemodes.includes(mode)
|
||||||
|
? httpGet<string>(getStatsURL(mode, rsn)).catch((err) => err)
|
||||||
|
: emptyResponse;
|
||||||
|
const formattedName = shouldGetFormattedRsn
|
||||||
|
? await getRSNFormat(rsn).catch(() => undefined)
|
||||||
|
: undefined;
|
||||||
|
|
||||||
const player: Player = {
|
const player: Player = {
|
||||||
name: formattedName ?? rsn,
|
name: formattedName ?? rsn,
|
||||||
@@ -178,8 +202,11 @@ export async function getStats(rsn: string): Promise<Player> {
|
|||||||
};
|
};
|
||||||
player.main = parseStats(mainRes.data);
|
player.main = parseStats(mainRes.data);
|
||||||
|
|
||||||
|
const ironRes = await getModeStats('ironman');
|
||||||
if (ironRes.status === 200) {
|
if (ironRes.status === 200) {
|
||||||
player.ironman = parseStats(ironRes.data);
|
player.ironman = parseStats(ironRes.data);
|
||||||
|
const hcRes = await getModeStats('hardcore');
|
||||||
|
const ultRes = await getModeStats('ultimate');
|
||||||
if (hcRes.status === 200) {
|
if (hcRes.status === 200) {
|
||||||
player.mode = 'hardcore';
|
player.mode = 'hardcore';
|
||||||
player.hardcore = parseStats(hcRes.data);
|
player.hardcore = parseStats(hcRes.data);
|
||||||
@@ -237,16 +264,11 @@ export async function getStatsByGamemode(
|
|||||||
rsn: string,
|
rsn: string,
|
||||||
mode: Gamemode = 'main'
|
mode: Gamemode = 'main'
|
||||||
): Promise<Stats> {
|
): Promise<Stats> {
|
||||||
if (typeof rsn !== 'string') {
|
validateRSN(rsn);
|
||||||
throw Error('RSN must be a string');
|
if (!GAMEMODES.includes(mode)) {
|
||||||
} else if (!/^[a-zA-Z0-9 _]+$/.test(rsn)) {
|
|
||||||
throw Error('RSN contains invalid character');
|
|
||||||
} else if (rsn.length > 12 || rsn.length < 1) {
|
|
||||||
throw Error('RSN must be between 1 and 12 characters');
|
|
||||||
} else if (!GAMEMODES.includes(mode)) {
|
|
||||||
throw Error('Invalid game mode');
|
throw Error('Invalid game mode');
|
||||||
}
|
}
|
||||||
const response = await httpGet(getStatsURL(mode, rsn));
|
const response = await httpGet<string>(getStatsURL(mode, rsn));
|
||||||
if (response.status !== 200) {
|
if (response.status !== 200) {
|
||||||
throw Error('Player not found');
|
throw Error('Player not found');
|
||||||
}
|
}
|
||||||
@@ -269,7 +291,7 @@ export async function getSkillPage(
|
|||||||
}
|
}
|
||||||
const url = getSkillPageURL(mode, skill, page);
|
const url = getSkillPageURL(mode, skill, page);
|
||||||
|
|
||||||
const response = await httpGet(url);
|
const response = await httpGet<string | Buffer | BinaryData | undefined>(url);
|
||||||
const dom = new JSDOM(response.data);
|
const dom = new JSDOM(response.data);
|
||||||
const playersHTML = dom.window.document.querySelectorAll(
|
const playersHTML = dom.window.document.querySelectorAll(
|
||||||
'.personal-hiscores__row'
|
'.personal-hiscores__row'
|
||||||
@@ -317,7 +339,7 @@ export async function getActivityPage(
|
|||||||
}
|
}
|
||||||
const url = getActivityPageURL(mode, activity, page);
|
const url = getActivityPageURL(mode, activity, page);
|
||||||
|
|
||||||
const response = await httpGet(url);
|
const response = await httpGet<string | Buffer | BinaryData | undefined>(url);
|
||||||
const dom = new JSDOM(response.data);
|
const dom = new JSDOM(response.data);
|
||||||
const playersHTML = dom.window.document.querySelectorAll(
|
const playersHTML = dom.window.document.querySelectorAll(
|
||||||
'.personal-hiscores__row'
|
'.personal-hiscores__row'
|
||||||
|
27
src/types.ts
27
src/types.ts
@@ -5,7 +5,10 @@ export type Gamemode =
|
|||||||
| 'hardcore'
|
| 'hardcore'
|
||||||
| 'deadman'
|
| 'deadman'
|
||||||
| 'seasonal'
|
| 'seasonal'
|
||||||
| 'tournament';
|
| 'tournament'
|
||||||
|
| 'skiller'
|
||||||
|
| 'oneDefence'
|
||||||
|
| 'freshStart';
|
||||||
|
|
||||||
export interface Skill {
|
export interface Skill {
|
||||||
rank: number;
|
rank: number;
|
||||||
@@ -89,8 +92,11 @@ export type Boss =
|
|||||||
| 'kreeArra'
|
| 'kreeArra'
|
||||||
| 'krilTsutsaroth'
|
| 'krilTsutsaroth'
|
||||||
| 'mimic'
|
| 'mimic'
|
||||||
|
| 'nex'
|
||||||
| 'nightmare'
|
| 'nightmare'
|
||||||
|
| 'phosanisNightmare'
|
||||||
| 'obor'
|
| 'obor'
|
||||||
|
| 'phantomMuspah'
|
||||||
| 'sarachnis'
|
| 'sarachnis'
|
||||||
| 'scorpia'
|
| 'scorpia'
|
||||||
| 'skotizo'
|
| 'skotizo'
|
||||||
@@ -100,6 +106,8 @@ export type Boss =
|
|||||||
| 'theatreOfBlood'
|
| 'theatreOfBlood'
|
||||||
| 'theatreOfBloodHardMode'
|
| 'theatreOfBloodHardMode'
|
||||||
| 'thermonuclearSmokeDevil'
|
| 'thermonuclearSmokeDevil'
|
||||||
|
| 'tombsOfAmascut'
|
||||||
|
| 'tombsOfAmascutExpertMode'
|
||||||
| 'tzKalZuk'
|
| 'tzKalZuk'
|
||||||
| 'tzTokJad'
|
| 'tzTokJad'
|
||||||
| 'venenatis'
|
| 'venenatis'
|
||||||
@@ -116,7 +124,9 @@ export type ActivityName =
|
|||||||
| 'hunterBH'
|
| 'hunterBH'
|
||||||
| 'rogueBH'
|
| 'rogueBH'
|
||||||
| 'lastManStanding'
|
| 'lastManStanding'
|
||||||
|
| 'pvpArena'
|
||||||
| 'soulWarsZeal'
|
| 'soulWarsZeal'
|
||||||
|
| 'riftsClosed'
|
||||||
| 'allClues'
|
| 'allClues'
|
||||||
| 'beginnerClues'
|
| 'beginnerClues'
|
||||||
| 'easyClues'
|
| 'easyClues'
|
||||||
@@ -132,7 +142,9 @@ export interface Stats {
|
|||||||
leaguePoints: Activity;
|
leaguePoints: Activity;
|
||||||
bountyHunter: BH;
|
bountyHunter: BH;
|
||||||
lastManStanding: Activity;
|
lastManStanding: Activity;
|
||||||
|
pvpArena: Activity;
|
||||||
soulWarsZeal: Activity;
|
soulWarsZeal: Activity;
|
||||||
|
riftsClosed: Activity;
|
||||||
bosses: Bosses;
|
bosses: Bosses;
|
||||||
}
|
}
|
||||||
export type Modes = { [M in Gamemode]?: Stats };
|
export type Modes = { [M in Gamemode]?: Stats };
|
||||||
@@ -154,3 +166,16 @@ export interface PlayerActivityRow extends Activity {
|
|||||||
name: string;
|
name: string;
|
||||||
dead: boolean;
|
dead: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GetStatsOptions {
|
||||||
|
/**
|
||||||
|
* Other game modes to fetch ranks for.
|
||||||
|
* @defaultvalue `['ironman', 'hardcore', 'ultimate']`
|
||||||
|
*/
|
||||||
|
otherGamemodes?: Extract<Gamemode, 'ironman' | 'hardcore' | 'ultimate'>[];
|
||||||
|
/**
|
||||||
|
* If true, the formatted RSN will be fetched. Otherwise it will return the provided, unformatted RSN.
|
||||||
|
* @defaultvalue `true`
|
||||||
|
*/
|
||||||
|
shouldGetFormattedRsn?: boolean;
|
||||||
|
}
|
||||||
|
@@ -22,7 +22,10 @@ export const GAMEMODE_URL: GamemodeUrl = {
|
|||||||
ultimate: `${BASE_URL}_ultimate/`,
|
ultimate: `${BASE_URL}_ultimate/`,
|
||||||
deadman: `${BASE_URL}_deadman/`,
|
deadman: `${BASE_URL}_deadman/`,
|
||||||
seasonal: `${BASE_URL}_seasonal/`,
|
seasonal: `${BASE_URL}_seasonal/`,
|
||||||
tournament: `${BASE_URL}_tournament/`
|
tournament: `${BASE_URL}_tournament/`,
|
||||||
|
skiller: `${BASE_URL}_skiller/`,
|
||||||
|
oneDefence: `${BASE_URL}_skiller_defence/`,
|
||||||
|
freshStart: `${BASE_URL}_fresh_start/`
|
||||||
};
|
};
|
||||||
export const SKILLS: SkillName[] = [
|
export const SKILLS: SkillName[] = [
|
||||||
'overall',
|
'overall',
|
||||||
@@ -97,8 +100,11 @@ export const BOSSES: Boss[] = [
|
|||||||
'kreeArra',
|
'kreeArra',
|
||||||
'krilTsutsaroth',
|
'krilTsutsaroth',
|
||||||
'mimic',
|
'mimic',
|
||||||
|
'nex',
|
||||||
'nightmare',
|
'nightmare',
|
||||||
|
'phosanisNightmare',
|
||||||
'obor',
|
'obor',
|
||||||
|
'phantomMuspah',
|
||||||
'sarachnis',
|
'sarachnis',
|
||||||
'scorpia',
|
'scorpia',
|
||||||
'skotizo',
|
'skotizo',
|
||||||
@@ -108,6 +114,8 @@ export const BOSSES: Boss[] = [
|
|||||||
'theatreOfBlood',
|
'theatreOfBlood',
|
||||||
'theatreOfBloodHardMode',
|
'theatreOfBloodHardMode',
|
||||||
'thermonuclearSmokeDevil',
|
'thermonuclearSmokeDevil',
|
||||||
|
'tombsOfAmascut',
|
||||||
|
'tombsOfAmascutExpertMode',
|
||||||
'tzKalZuk',
|
'tzKalZuk',
|
||||||
'tzTokJad',
|
'tzTokJad',
|
||||||
'venenatis',
|
'venenatis',
|
||||||
@@ -129,7 +137,9 @@ export const ACTIVITIES: ActivityName[] = [
|
|||||||
'eliteClues',
|
'eliteClues',
|
||||||
'masterClues',
|
'masterClues',
|
||||||
'lastManStanding',
|
'lastManStanding',
|
||||||
|
'pvpArena',
|
||||||
'soulWarsZeal',
|
'soulWarsZeal',
|
||||||
|
'riftsClosed',
|
||||||
...BOSSES
|
...BOSSES
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -165,8 +175,11 @@ export const FORMATTED_BOSS_NAMES: FormattedBossNames = {
|
|||||||
kreeArra: "Kree'Arra",
|
kreeArra: "Kree'Arra",
|
||||||
krilTsutsaroth: "K'ril Tsutsaroth",
|
krilTsutsaroth: "K'ril Tsutsaroth",
|
||||||
mimic: 'Mimic',
|
mimic: 'Mimic',
|
||||||
|
nex: 'Nex',
|
||||||
nightmare: 'The Nightmare of Ashihama',
|
nightmare: 'The Nightmare of Ashihama',
|
||||||
|
phosanisNightmare: "Phosani's Nightmare",
|
||||||
obor: 'Obor',
|
obor: 'Obor',
|
||||||
|
phantomMuspah: 'Phantom Muspah',
|
||||||
sarachnis: 'Sarachnis',
|
sarachnis: 'Sarachnis',
|
||||||
scorpia: 'Scorpia',
|
scorpia: 'Scorpia',
|
||||||
skotizo: 'Skotizo',
|
skotizo: 'Skotizo',
|
||||||
@@ -176,6 +189,8 @@ export const FORMATTED_BOSS_NAMES: FormattedBossNames = {
|
|||||||
theatreOfBlood: 'Theatre of Blood',
|
theatreOfBlood: 'Theatre of Blood',
|
||||||
theatreOfBloodHardMode: 'Theatre of Blood: Hard Mode',
|
theatreOfBloodHardMode: 'Theatre of Blood: Hard Mode',
|
||||||
thermonuclearSmokeDevil: 'Thermonuclear Smoke Devil',
|
thermonuclearSmokeDevil: 'Thermonuclear Smoke Devil',
|
||||||
|
tombsOfAmascut: 'Tombs of Amascut',
|
||||||
|
tombsOfAmascutExpertMode: 'Tombs of Amascut: Expert Mode',
|
||||||
tzKalZuk: 'TzKal-Zuk',
|
tzKalZuk: 'TzKal-Zuk',
|
||||||
tzTokJad: 'TzTok-Jad',
|
tzTokJad: 'TzTok-Jad',
|
||||||
venenatis: 'Venenatis',
|
venenatis: 'Venenatis',
|
||||||
@@ -241,5 +256,9 @@ export const FORMATTED_BH_NAMES: FormattedBHNames = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const FORMATTED_LMS = 'Last Man Standing';
|
export const FORMATTED_LMS = 'Last Man Standing';
|
||||||
|
export const FORMATTED_PVP_ARENA = 'PvP Arena';
|
||||||
export const FORMATTED_SOUL_WARS = 'Soul Wars Zeal';
|
export const FORMATTED_SOUL_WARS = 'Soul Wars Zeal';
|
||||||
export const FORMATTED_LEAGUE_POINTS = 'League Points';
|
export const FORMATTED_LEAGUE_POINTS = 'League Points';
|
||||||
|
export const FORMATTED_RIFTS_CLOSED = 'Rifts Closed';
|
||||||
|
|
||||||
|
export const INVALID_FORMAT_ERROR = 'Invalid hiscores format';
|
||||||
|
@@ -96,10 +96,25 @@ export const rsnFromElement = (el: Element | null) => {
|
|||||||
* @param url URL to run a `GET` request against.
|
* @param url URL to run a `GET` request against.
|
||||||
* @returns Axios response.
|
* @returns Axios response.
|
||||||
*/
|
*/
|
||||||
export const httpGet = (url: string) =>
|
export const httpGet = <Response>(url: string) =>
|
||||||
axios.get(url, {
|
axios.get<Response>(url, {
|
||||||
headers: {
|
headers: {
|
||||||
// without User-Agent header requests may be rejected by DDoS protection mechanism
|
// without User-Agent header requests may be rejected by DDoS protection mechanism
|
||||||
'User-Agent': ua.firefox(80)
|
'User-Agent': ua.firefox(80)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validates that a provided RSN has the same username restrictions as Jagex.
|
||||||
|
* @param rsn Username to validate.
|
||||||
|
* @throws Error if the RSN fails validation.
|
||||||
|
*/
|
||||||
|
export const validateRSN = (rsn: string) => {
|
||||||
|
if (typeof rsn !== 'string') {
|
||||||
|
throw Error('RSN must be a string');
|
||||||
|
} else if (!/^[a-zA-Z0-9 _-]+$/.test(rsn)) {
|
||||||
|
throw Error('RSN contains invalid character');
|
||||||
|
} else if (rsn.length > 12 || rsn.length < 1) {
|
||||||
|
throw Error('RSN must be between 1 and 12 characters');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
@@ -4,7 +4,12 @@
|
|||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"outDir": "./lib",
|
"outDir": "./lib",
|
||||||
"strict": true
|
"strict": true,
|
||||||
|
"lib": ["ES2015", "DOM", "DOM.Iterable"],
|
||||||
|
"typeRoots": [
|
||||||
|
"./node_modules/@types",
|
||||||
|
"./src/@types"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["node_modules", "**/__tests__/*"]
|
"exclude": ["node_modules", "**/__tests__/*"]
|
||||||
|
195
yarn.lock
195
yarn.lock
@@ -811,10 +811,10 @@
|
|||||||
"@typescript-eslint/types" "4.19.0"
|
"@typescript-eslint/types" "4.19.0"
|
||||||
eslint-visitor-keys "^2.0.0"
|
eslint-visitor-keys "^2.0.0"
|
||||||
|
|
||||||
abab@^2.0.3:
|
abab@^2.0.3, abab@^2.0.5:
|
||||||
version "2.0.5"
|
version "2.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"
|
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291"
|
||||||
integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==
|
integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==
|
||||||
|
|
||||||
acorn-globals@^6.0.0:
|
acorn-globals@^6.0.0:
|
||||||
version "6.0.0"
|
version "6.0.0"
|
||||||
@@ -839,6 +839,11 @@ acorn@^7.1.1, acorn@^7.4.0:
|
|||||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
|
||||||
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
|
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
|
||||||
|
|
||||||
|
acorn@^8.0.5:
|
||||||
|
version "8.7.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30"
|
||||||
|
integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==
|
||||||
|
|
||||||
aggregate-error@^3.0.0:
|
aggregate-error@^3.0.0:
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a"
|
resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a"
|
||||||
@@ -1108,11 +1113,11 @@ axe-core@^4.0.2:
|
|||||||
integrity sha512-vwPpH4Aj4122EW38mxO/fxhGKtwWTMLDIJfZ1He0Edbtjcfna/R3YB67yVhezUMzqc3Jr3+Ii50KRntlENL4xQ==
|
integrity sha512-vwPpH4Aj4122EW38mxO/fxhGKtwWTMLDIJfZ1He0Edbtjcfna/R3YB67yVhezUMzqc3Jr3+Ii50KRntlENL4xQ==
|
||||||
|
|
||||||
axios@^0.21.1:
|
axios@^0.21.1:
|
||||||
version "0.21.1"
|
version "0.21.2"
|
||||||
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8"
|
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.2.tgz#21297d5084b2aeeb422f5d38e7be4fbb82239017"
|
||||||
integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==
|
integrity sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects "^1.10.0"
|
follow-redirects "^1.14.0"
|
||||||
|
|
||||||
axobject-query@^2.2.0:
|
axobject-query@^2.2.0:
|
||||||
version "2.2.0"
|
version "2.2.0"
|
||||||
@@ -1181,9 +1186,9 @@ babel-preset-jest@^26.6.2:
|
|||||||
babel-preset-current-node-syntax "^1.0.0"
|
babel-preset-current-node-syntax "^1.0.0"
|
||||||
|
|
||||||
balanced-match@^1.0.0:
|
balanced-match@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
|
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
|
||||||
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
|
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
|
||||||
|
|
||||||
base@^0.11.1:
|
base@^0.11.1:
|
||||||
version "0.11.2"
|
version "0.11.2"
|
||||||
@@ -1571,7 +1576,7 @@ component-emitter@^1.2.1:
|
|||||||
concat-map@0.0.1:
|
concat-map@0.0.1:
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
||||||
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
|
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
|
||||||
|
|
||||||
configstore@^5.0.1:
|
configstore@^5.0.1:
|
||||||
version "5.0.1"
|
version "5.0.1"
|
||||||
@@ -1674,7 +1679,7 @@ cssom@~0.3.6:
|
|||||||
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a"
|
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a"
|
||||||
integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==
|
integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==
|
||||||
|
|
||||||
cssstyle@^2.2.0:
|
cssstyle@^2.3.0:
|
||||||
version "2.3.0"
|
version "2.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852"
|
resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852"
|
||||||
integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==
|
integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==
|
||||||
@@ -1734,15 +1739,15 @@ decamelize@^1.1.0, decamelize@^1.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
|
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
|
||||||
integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=
|
integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=
|
||||||
|
|
||||||
decimal.js@^10.2.0:
|
decimal.js@^10.2.1:
|
||||||
version "10.2.1"
|
version "10.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.2.1.tgz#238ae7b0f0c793d3e3cea410108b35a2c01426a3"
|
resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783"
|
||||||
integrity sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==
|
integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==
|
||||||
|
|
||||||
decode-uri-component@^0.2.0:
|
decode-uri-component@^0.2.0:
|
||||||
version "0.2.0"
|
version "0.2.2"
|
||||||
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
|
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
|
||||||
integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=
|
integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==
|
||||||
|
|
||||||
decompress-response@^3.3.0:
|
decompress-response@^3.3.0:
|
||||||
version "3.3.0"
|
version "3.3.0"
|
||||||
@@ -1998,13 +2003,13 @@ escape-string-regexp@^2.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
|
||||||
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
|
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
|
||||||
|
|
||||||
escodegen@^1.14.1:
|
escodegen@^2.0.0:
|
||||||
version "1.14.3"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
|
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd"
|
||||||
integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==
|
integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==
|
||||||
dependencies:
|
dependencies:
|
||||||
esprima "^4.0.1"
|
esprima "^4.0.1"
|
||||||
estraverse "^4.2.0"
|
estraverse "^5.2.0"
|
||||||
esutils "^2.0.2"
|
esutils "^2.0.2"
|
||||||
optionator "^0.8.1"
|
optionator "^0.8.1"
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
@@ -2213,7 +2218,7 @@ esrecurse@^4.3.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
estraverse "^5.2.0"
|
estraverse "^5.2.0"
|
||||||
|
|
||||||
estraverse@^4.1.1, estraverse@^4.2.0:
|
estraverse@^4.1.1:
|
||||||
version "4.3.0"
|
version "4.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
|
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d"
|
||||||
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
|
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
|
||||||
@@ -2459,10 +2464,10 @@ flatted@^3.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469"
|
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469"
|
||||||
integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==
|
integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==
|
||||||
|
|
||||||
follow-redirects@^1.10.0:
|
follow-redirects@^1.14.0:
|
||||||
version "1.13.1"
|
version "1.14.8"
|
||||||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.1.tgz#5f69b813376cee4fd0474a3aba835df04ab763b7"
|
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc"
|
||||||
integrity sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg==
|
integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==
|
||||||
|
|
||||||
for-in@^1.0.2:
|
for-in@^1.0.2:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
@@ -2775,9 +2780,9 @@ has@^1.0.3:
|
|||||||
function-bind "^1.1.1"
|
function-bind "^1.1.1"
|
||||||
|
|
||||||
hosted-git-info@^2.1.4:
|
hosted-git-info@^2.1.4:
|
||||||
version "2.8.8"
|
version "2.8.9"
|
||||||
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488"
|
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9"
|
||||||
integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==
|
integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==
|
||||||
|
|
||||||
hosted-git-info@^3.0.0:
|
hosted-git-info@^3.0.0:
|
||||||
version "3.0.8"
|
version "3.0.8"
|
||||||
@@ -2799,9 +2804,9 @@ html-escaper@^2.0.0:
|
|||||||
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
|
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
|
||||||
|
|
||||||
http-cache-semantics@^4.0.0:
|
http-cache-semantics@^4.0.0:
|
||||||
version "4.1.0"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
|
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a"
|
||||||
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
|
integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==
|
||||||
|
|
||||||
http-signature@~1.2.0:
|
http-signature@~1.2.0:
|
||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
@@ -2954,11 +2959,6 @@ internal-slot@^1.0.3:
|
|||||||
has "^1.0.3"
|
has "^1.0.3"
|
||||||
side-channel "^1.0.4"
|
side-channel "^1.0.4"
|
||||||
|
|
||||||
ip-regex@^2.1.0:
|
|
||||||
version "2.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9"
|
|
||||||
integrity sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=
|
|
||||||
|
|
||||||
is-accessor-descriptor@^0.1.6:
|
is-accessor-descriptor@^0.1.6:
|
||||||
version "0.1.6"
|
version "0.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6"
|
resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6"
|
||||||
@@ -3739,35 +3739,35 @@ jsbn@~0.1.0:
|
|||||||
integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM=
|
integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM=
|
||||||
|
|
||||||
jsdom@^16.3.0, jsdom@^16.4.0:
|
jsdom@^16.3.0, jsdom@^16.4.0:
|
||||||
version "16.4.0"
|
version "16.5.0"
|
||||||
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.4.0.tgz#36005bde2d136f73eee1a830c6d45e55408edddb"
|
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.5.0.tgz#9e453505600cc5a70b385750d35256f380730cc4"
|
||||||
integrity sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w==
|
integrity sha512-QxZH0nmDTnTTVI0YDm4RUlaUPl5dcyn62G5TMDNfMmTW+J1u1v9gCR8WR+WZ6UghAa7nKJjDOFaI00eMMWvJFQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
abab "^2.0.3"
|
abab "^2.0.5"
|
||||||
acorn "^7.1.1"
|
acorn "^8.0.5"
|
||||||
acorn-globals "^6.0.0"
|
acorn-globals "^6.0.0"
|
||||||
cssom "^0.4.4"
|
cssom "^0.4.4"
|
||||||
cssstyle "^2.2.0"
|
cssstyle "^2.3.0"
|
||||||
data-urls "^2.0.0"
|
data-urls "^2.0.0"
|
||||||
decimal.js "^10.2.0"
|
decimal.js "^10.2.1"
|
||||||
domexception "^2.0.1"
|
domexception "^2.0.1"
|
||||||
escodegen "^1.14.1"
|
escodegen "^2.0.0"
|
||||||
html-encoding-sniffer "^2.0.1"
|
html-encoding-sniffer "^2.0.1"
|
||||||
is-potential-custom-element-name "^1.0.0"
|
is-potential-custom-element-name "^1.0.0"
|
||||||
nwsapi "^2.2.0"
|
nwsapi "^2.2.0"
|
||||||
parse5 "5.1.1"
|
parse5 "6.0.1"
|
||||||
request "^2.88.2"
|
request "^2.88.2"
|
||||||
request-promise-native "^1.0.8"
|
request-promise-native "^1.0.9"
|
||||||
saxes "^5.0.0"
|
saxes "^5.0.1"
|
||||||
symbol-tree "^3.2.4"
|
symbol-tree "^3.2.4"
|
||||||
tough-cookie "^3.0.1"
|
tough-cookie "^4.0.0"
|
||||||
w3c-hr-time "^1.0.2"
|
w3c-hr-time "^1.0.2"
|
||||||
w3c-xmlserializer "^2.0.0"
|
w3c-xmlserializer "^2.0.0"
|
||||||
webidl-conversions "^6.1.0"
|
webidl-conversions "^6.1.0"
|
||||||
whatwg-encoding "^1.0.5"
|
whatwg-encoding "^1.0.5"
|
||||||
whatwg-mimetype "^2.3.0"
|
whatwg-mimetype "^2.3.0"
|
||||||
whatwg-url "^8.0.0"
|
whatwg-url "^8.0.0"
|
||||||
ws "^7.2.3"
|
ws "^7.4.4"
|
||||||
xml-name-validator "^3.0.0"
|
xml-name-validator "^3.0.0"
|
||||||
|
|
||||||
jsesc@^2.5.1:
|
jsesc@^2.5.1:
|
||||||
@@ -3823,9 +3823,9 @@ json5@2.x, json5@^2.1.2:
|
|||||||
minimist "^1.2.5"
|
minimist "^1.2.5"
|
||||||
|
|
||||||
json5@^1.0.1:
|
json5@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe"
|
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593"
|
||||||
integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==
|
integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==
|
||||||
dependencies:
|
dependencies:
|
||||||
minimist "^1.2.0"
|
minimist "^1.2.0"
|
||||||
|
|
||||||
@@ -4279,9 +4279,9 @@ min-indent@^1.0.0:
|
|||||||
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
|
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
|
||||||
|
|
||||||
minimatch@^3.0.4:
|
minimatch@^3.0.4:
|
||||||
version "3.0.4"
|
version "3.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
|
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
|
||||||
integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
|
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
|
||||||
dependencies:
|
dependencies:
|
||||||
brace-expansion "^1.1.7"
|
brace-expansion "^1.1.7"
|
||||||
|
|
||||||
@@ -4295,9 +4295,9 @@ minimist-options@^4.0.2:
|
|||||||
kind-of "^6.0.3"
|
kind-of "^6.0.3"
|
||||||
|
|
||||||
minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
|
minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
|
||||||
version "1.2.5"
|
version "1.2.7"
|
||||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
|
||||||
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
|
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
|
||||||
|
|
||||||
mixin-deep@^1.2.0:
|
mixin-deep@^1.2.0:
|
||||||
version "1.3.2"
|
version "1.3.2"
|
||||||
@@ -4411,9 +4411,9 @@ normalize-path@^3.0.0:
|
|||||||
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
|
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
|
||||||
|
|
||||||
normalize-url@^4.1.0:
|
normalize-url@^4.1.0:
|
||||||
version "4.5.0"
|
version "4.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129"
|
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a"
|
||||||
integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==
|
integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==
|
||||||
|
|
||||||
normalize-version@^1.0.5:
|
normalize-version@^1.0.5:
|
||||||
version "1.0.5"
|
version "1.0.5"
|
||||||
@@ -4796,10 +4796,10 @@ parse-json@^5.0.0:
|
|||||||
json-parse-even-better-errors "^2.3.0"
|
json-parse-even-better-errors "^2.3.0"
|
||||||
lines-and-columns "^1.1.6"
|
lines-and-columns "^1.1.6"
|
||||||
|
|
||||||
parse5@5.1.1:
|
parse5@6.0.1:
|
||||||
version "5.1.1"
|
version "6.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178"
|
resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b"
|
||||||
integrity sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==
|
integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==
|
||||||
|
|
||||||
pascalcase@^0.1.1:
|
pascalcase@^0.1.1:
|
||||||
version "0.1.1"
|
version "0.1.1"
|
||||||
@@ -4837,9 +4837,9 @@ path-key@^3.0.0, path-key@^3.1.0:
|
|||||||
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
|
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
|
||||||
|
|
||||||
path-parse@^1.0.6:
|
path-parse@^1.0.6:
|
||||||
version "1.0.6"
|
version "1.0.7"
|
||||||
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
|
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
|
||||||
integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==
|
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
|
||||||
|
|
||||||
path-type@^2.0.0:
|
path-type@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
@@ -4970,7 +4970,7 @@ prop-types@^15.7.2:
|
|||||||
object-assign "^4.1.1"
|
object-assign "^4.1.1"
|
||||||
react-is "^16.8.1"
|
react-is "^16.8.1"
|
||||||
|
|
||||||
psl@^1.1.28:
|
psl@^1.1.28, psl@^1.1.33:
|
||||||
version "1.8.0"
|
version "1.8.0"
|
||||||
resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24"
|
resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24"
|
||||||
integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==
|
integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==
|
||||||
@@ -4996,9 +4996,9 @@ pupa@^2.0.1:
|
|||||||
escape-goat "^2.0.0"
|
escape-goat "^2.0.0"
|
||||||
|
|
||||||
qs@~6.5.2:
|
qs@~6.5.2:
|
||||||
version "6.5.2"
|
version "6.5.3"
|
||||||
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad"
|
||||||
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==
|
integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==
|
||||||
|
|
||||||
queue-microtask@^1.2.2:
|
queue-microtask@^1.2.2:
|
||||||
version "1.2.3"
|
version "1.2.3"
|
||||||
@@ -5136,7 +5136,7 @@ request-promise-core@1.1.4:
|
|||||||
dependencies:
|
dependencies:
|
||||||
lodash "^4.17.19"
|
lodash "^4.17.19"
|
||||||
|
|
||||||
request-promise-native@^1.0.8:
|
request-promise-native@^1.0.9:
|
||||||
version "1.0.9"
|
version "1.0.9"
|
||||||
resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.9.tgz#e407120526a5efdc9a39b28a5679bf47b9d9dc28"
|
resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.9.tgz#e407120526a5efdc9a39b28a5679bf47b9d9dc28"
|
||||||
integrity sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==
|
integrity sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==
|
||||||
@@ -5354,7 +5354,7 @@ sane@^4.0.3:
|
|||||||
minimist "^1.1.1"
|
minimist "^1.1.1"
|
||||||
walker "~1.0.5"
|
walker "~1.0.5"
|
||||||
|
|
||||||
saxes@^5.0.0:
|
saxes@^5.0.1:
|
||||||
version "5.0.1"
|
version "5.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d"
|
resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d"
|
||||||
integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==
|
integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==
|
||||||
@@ -5892,9 +5892,9 @@ tmp@^0.0.33:
|
|||||||
os-tmpdir "~1.0.2"
|
os-tmpdir "~1.0.2"
|
||||||
|
|
||||||
tmpl@1.0.x:
|
tmpl@1.0.x:
|
||||||
version "1.0.4"
|
version "1.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1"
|
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc"
|
||||||
integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=
|
integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==
|
||||||
|
|
||||||
to-fast-properties@^2.0.0:
|
to-fast-properties@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
@@ -5951,14 +5951,14 @@ tough-cookie@^2.3.3, tough-cookie@~2.5.0:
|
|||||||
psl "^1.1.28"
|
psl "^1.1.28"
|
||||||
punycode "^2.1.1"
|
punycode "^2.1.1"
|
||||||
|
|
||||||
tough-cookie@^3.0.1:
|
tough-cookie@^4.0.0:
|
||||||
version "3.0.1"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-3.0.1.tgz#9df4f57e739c26930a018184887f4adb7dca73b2"
|
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.0.0.tgz#d822234eeca882f991f0f908824ad2622ddbece4"
|
||||||
integrity sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==
|
integrity sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==
|
||||||
dependencies:
|
dependencies:
|
||||||
ip-regex "^2.1.0"
|
psl "^1.1.33"
|
||||||
psl "^1.1.28"
|
|
||||||
punycode "^2.1.1"
|
punycode "^2.1.1"
|
||||||
|
universalify "^0.1.2"
|
||||||
|
|
||||||
tr46@^2.0.2:
|
tr46@^2.0.2:
|
||||||
version "2.0.2"
|
version "2.0.2"
|
||||||
@@ -5968,9 +5968,9 @@ tr46@^2.0.2:
|
|||||||
punycode "^2.1.1"
|
punycode "^2.1.1"
|
||||||
|
|
||||||
trim-newlines@^3.0.0:
|
trim-newlines@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.0.tgz#79726304a6a898aa8373427298d54c2ee8b1cb30"
|
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144"
|
||||||
integrity sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==
|
integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==
|
||||||
|
|
||||||
ts-jest@^26.5.4:
|
ts-jest@^26.5.4:
|
||||||
version "26.5.4"
|
version "26.5.4"
|
||||||
@@ -6120,6 +6120,11 @@ unique-string@^2.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
crypto-random-string "^2.0.0"
|
crypto-random-string "^2.0.0"
|
||||||
|
|
||||||
|
universalify@^0.1.2:
|
||||||
|
version "0.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
|
||||||
|
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
|
||||||
|
|
||||||
unset-value@^1.0.0:
|
unset-value@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"
|
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"
|
||||||
@@ -6363,10 +6368,10 @@ write-file-atomic@^3.0.0:
|
|||||||
signal-exit "^3.0.2"
|
signal-exit "^3.0.2"
|
||||||
typedarray-to-buffer "^3.1.5"
|
typedarray-to-buffer "^3.1.5"
|
||||||
|
|
||||||
ws@^7.2.3:
|
ws@^7.4.4:
|
||||||
version "7.4.6"
|
version "7.5.8"
|
||||||
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c"
|
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.8.tgz#ac2729881ab9e7cbaf8787fe3469a48c5c7f636a"
|
||||||
integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==
|
integrity sha512-ri1Id1WinAX5Jqn9HejiGb8crfRio0Qgu8+MtL36rlTA6RLsMdWt1Az/19A2Qij6uSHUMphEFaTKa4WG+UNHNw==
|
||||||
|
|
||||||
xdg-basedir@^4.0.0:
|
xdg-basedir@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
|
Reference in New Issue
Block a user