Skip to content

Commit

Permalink
build: update axios
Browse files Browse the repository at this point in the history
  • Loading branch information
melsener committed Dec 9, 2024
1 parent 88d6df7 commit 1d64e4f
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 22 deletions.
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ module.exports = {
transform: {
"^.+\\.tsx?$": "ts-jest"
},
setupFilesAfterEnv: ["<rootDir>/test/setup.ts"]
setupFilesAfterEnv: ["<rootDir>/test/setup.ts"],
moduleNameMapper: {
"^axios/": "axios/dist/node/axios.cjs"
}
};
69 changes: 51 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"dependencies": {
"@hapi/joi": "^17.1.1",
"axios": "^0.21.4",
"axios": "^1.7.9",
"chalk": "^3.0.0",
"chokidar": "^3.3.1",
"ci-info": "^2.0.0",
Expand Down
5 changes: 3 additions & 2 deletions src/api/interceptors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AxiosRequestConfig, AxiosResponse } from "axios";
import { AxiosResponse, InternalAxiosRequestConfig } from "axios";
import maskJson from "mask-json";
import logger from "../util/logger";
import { URL } from "url";
Expand Down Expand Up @@ -30,7 +30,8 @@ const maskUrl = (_url: string | undefined): string | undefined => {
return masked;
};

const requestLogger = (request: AxiosRequestConfig): AxiosRequestConfig => {
// https://github.com/axios/axios/issues/5494#issuecomment-1402663237
const requestLogger = (request: InternalAxiosRequestConfig): InternalAxiosRequestConfig => {
const {
url,
method,
Expand Down

0 comments on commit 1d64e4f

Please sign in to comment.