Skip to content

Commit

Permalink
Bump axios from 0.26.0 to 1.6.0 in /airflow/www/ (apache#35624)
Browse files Browse the repository at this point in the history
* Bump axios from 0.26.0 to 1.6.0 in /airflow/www/

* Fix tests
  • Loading branch information
pierrejeambrun authored Nov 14, 2023
1 parent 0a93e2e commit a295ef3
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 29 deletions.
35 changes: 18 additions & 17 deletions airflow/www/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,30 @@ const config = {
transformIgnorePatterns: [
`node_modules/(?!${[
// specify modules that needs to be transformed for jest. (esm modules)
"react-markdown",
"vfile",
"vfile-message",
"unist",
"unified",
"axios",
"bail",
"ccount",
"character-entities",
"comma-separated-tokens",
"decode-named-character-reference",
"escape-string-regexp",
"hast",
"is-plain-obj",
"trough",
"remark-parse",
"markdown-table",
"mdast",
"micromark",
"decode-named-character-reference",
"character-entities",
"remark-rehype",
"trim-lines",
"property-information",
"hast",
"space-separated-tokens",
"comma-separated-tokens",
"react-markdown",
"remark-gfm",
"ccount",
"escape-string-regexp",
"markdown-table",
"remark-parse",
"remark-rehype",
"space-separated-tokens",
"trim-lines",
"trough",
"unified",
"unist",
"vfile",
"vfile-message",
].join("|")})`,
],
};
Expand Down
2 changes: 1 addition & 1 deletion airflow/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"@emotion/styled": "^11",
"@visx/group": "^2.10.0",
"@visx/shape": "^2.12.2",
"axios": "^0.26.0",
"axios": "^1.6.0",
"bootstrap-3-typeahead": "^4.0.2",
"camelcase-keys": "^7.0.0",
"chakra-react-select": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions airflow/www/static/js/utils/useErrorToast.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/* global describe, test, expect */

import type { AxiosError } from "axios";
import type { AxiosError, AxiosResponse } from "axios";
import { getErrorDescription } from "./useErrorToast";

describe("Test getErrorDescription()", () => {
Expand All @@ -36,7 +36,7 @@ describe("Test getErrorDescription()", () => {
statusText: "BadRequest",
headers: {},
config: {},
};
} as AxiosResponse;
axiosError.isAxiosError = true;

// if response.data is defined
Expand Down
34 changes: 25 additions & 9 deletions airflow/www/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4131,12 +4131,14 @@ axe-core@^4.3.5:
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.2.tgz#dcf7fb6dea866166c3eab33d68208afe4d5f670c"
integrity sha512-LVAaGp/wkkgYJcjmHsoKx4juT1aQvJyPcW09MLCjVTh3V2cc6PnyempiLMNH5iMdfIX/zdbjUx2KDjMLCTdPeA==

axios@^0.26.0:
version "0.26.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.0.tgz#9a318f1c69ec108f8cd5f3c3d390366635e13928"
integrity sha512-lKoGLMYtHvFrPVt3r+RBMp9nh34N0M8zEfCWqdWZx6phynIEhQqAdydpyBAAG211zlhX9Rgu08cOamy6XjE5Og==
axios@^1.6.0:
version "1.6.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.1.tgz#76550d644bf0a2d469a01f9244db6753208397d7"
integrity sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==
dependencies:
follow-redirects "^1.14.8"
follow-redirects "^1.15.0"
form-data "^4.0.0"
proxy-from-env "^1.1.0"

axobject-query@^2.2.0:
version "2.2.0"
Expand Down Expand Up @@ -6438,10 +6440,10 @@ focus-lock@^0.11.6:
dependencies:
tslib "^2.0.3"

follow-redirects@^1.14.8:
version "1.14.9"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7"
integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==
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"
Expand All @@ -6464,6 +6466,15 @@ form-data@^3.0.0:
combined-stream "^1.0.8"
mime-types "^2.1.12"

form-data@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
dependencies:
asynckit "^0.4.0"
combined-stream "^1.0.8"
mime-types "^2.1.12"

format@^0.2.0:
version "0.2.2"
resolved "https://registry.yarnpkg.com/format/-/format-0.2.2.tgz#d6170107e9efdc4ed30c9dc39016df942b5cb58b"
Expand Down Expand Up @@ -9763,6 +9774,11 @@ property-information@^6.0.0:
resolved "https://registry.yarnpkg.com/property-information/-/property-information-6.2.0.tgz#b74f522c31c097b5149e3c3cb8d7f3defd986a1d"
integrity sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg==

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"
Expand Down

0 comments on commit a295ef3

Please sign in to comment.