From ed9fcf47b387c256c8ea5a5b4b41c60f375e578f Mon Sep 17 00:00:00 2001 From: maxswa Date: Sat, 25 Nov 2023 22:04:48 -0500 Subject: [PATCH] Bump `axios` --- package.json | 2 +- src/hiscores.ts | 8 ++++++-- yarn.lock | 25 ++++++++++++++++--------- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index e2da129..23a1e11 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "testEnvironment": "node" }, "dependencies": { - "axios": "^0.21.1", + "axios": "^1.6.2", "jsdom": "^22.1.0", "useragent-generator": "^1.1.0" }, diff --git a/src/hiscores.ts b/src/hiscores.ts index 3dadff1..285739c 100644 --- a/src/hiscores.ts +++ b/src/hiscores.ts @@ -1,4 +1,8 @@ -import { AxiosRequestConfig, AxiosResponse } from 'axios'; +import { + AxiosRequestConfig, + AxiosResponse, + InternalAxiosRequestConfig +} from 'axios'; import { BinaryData, JSDOM } from 'jsdom'; import { Player, @@ -290,7 +294,7 @@ export async function getStats( data: { skills: [], activities: [] }, statusText: '', headers: {}, - config: {} + config: {} as InternalAxiosRequestConfig }; const getModeStats = async ( mode: Extract diff --git a/yarn.lock b/yarn.lock index def437a..3c359d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1287,12 +1287,14 @@ available-typed-arrays@^1.0.5: resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== -axios@^0.21.1: - version "0.21.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.2.tgz#21297d5084b2aeeb422f5d38e7be4fbb82239017" - integrity sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg== +axios@^1.6.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.2.tgz#de67d42c755b571d3e698df1b6504cde9b0ee9f2" + integrity sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A== dependencies: - follow-redirects "^1.14.0" + follow-redirects "^1.15.0" + form-data "^4.0.0" + proxy-from-env "^1.1.0" babel-jest@^29.6.1: version "29.6.1" @@ -2426,10 +2428,10 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469" integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA== -follow-redirects@^1.14.0: - version "1.14.8" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc" - integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA== +follow-redirects@^1.15.0: + version "1.15.3" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a" + integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q== for-each@^0.3.3: version "0.3.3" @@ -4731,6 +4733,11 @@ prompts@^2.0.1: kleur "^3.0.3" sisteransi "^1.0.5" +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + psl@^1.1.33: version "1.8.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24"