Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update dependency axios to v1.20.0 [SECURITY] (#5633)

Openverse (Bot)d7d7b3061971
diff --git a/frontend/src/data/api-service.ts b/frontend/src/data/api-service.ts
index a74cd4f82..7dc39540c 100644
--- a/frontend/src/data/api-service.ts
+++ b/frontend/src/data/api-service.ts
@@ -1,6 +1,6 @@
import { useRuntimeConfig } from "#imports"
-import axios, { AxiosRequestConfig, AxiosResponse } from "axios"
+import { AxiosRequestConfig, AxiosResponse, create } from "axios"
import { AUDIO, type SupportedMediaType } from "#shared/constants/media"
import { userAgentHeader } from "#shared/constants/user-agent.mjs"
@@ -155,7 +155,7 @@ export const createApiClient = ({
headers,
}
- const client = axios.create(axiosParams)
+ const client = create(axiosParams)
client.interceptors.request.use(function (config) {
validateRequest(
!config.url?.endsWith("/"),
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f868f876e..c04af5a0c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -50,7 +50,7 @@ importers:
version: 21.1.1
axios:
specifier: ^1.0.0
- version: 1.13.5
+ version: 1.20.0
js-yaml:
specifier: ^4.1.0
version: 4.3.2
@@ -105,7 +105,7 @@ importers:
version: 0.5.0
axios:
specifier: ^1.7.9
- version: 1.13.5
+ version: 1.20.0
clipboard:
specifier: ^2.0.11
version: 2.0.11
@@ -3328,8 +3328,8 @@ packages:
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==}
+ resolution: {integrity: sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==}
resolution: {integrity: sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==}
@@ -6400,6 +6400,10 @@ packages:
resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==}
+ resolution: {integrity: sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-azINV9dUtzPMFQktvTXciNAfAuVh/L/JCl0vtPCwvOA21uZrC08K/UnmrL+SXGEVc1FwzjW62+xw5S/uaLj6cA==}
@@ -11449,13 +11453,15 @@ snapshots:
dependencies:
possible-typed-array-names: 1.0.0
dependencies:
follow-redirects: 1.16.1
form-data: 4.0.6
- proxy-from-env: 1.1.0
+ https-proxy-agent: 5.0.1
+ proxy-from-env: 2.1.0
transitivePeerDependencies:
- debug
+ - supports-color
@@ -14925,6 +14931,8 @@ snapshots:
+
dependencies:
constantinople: 4.0.1