Skip to content

Commit

Permalink
[#264] Upgrade of axios to 1.x (1.2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdofpreyru committed Nov 24, 2022
1 parent 407828e commit 98db97a
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 24 deletions.
19 changes: 13 additions & 6 deletions __tests__/__snapshots__/client-side.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,25 @@ exports[`Export at client side 1`] = `
exports[`Export at client side 2`] = `{}`;

exports[`Export at client side 3`] = `
{
wrap {
"Axios": [Function],
"AxiosError": [Function],
"AxiosHeaders": [Function],
"Cancel": [Function],
"CancelToken": [Function],
"CanceledError": [Function],
"VERSION": "0.27.2",
"VERSION": "1.2.0",
"all": [Function],
"constructor": [Function],
"create": [Function],
"default": [Function],
"defaults": {
"adapter": [Function],
"adapter": [
"xhr",
"http",
],
"env": {
"Blob": [Function],
"FormData": [Function],
},
"headers": {
Expand All @@ -190,13 +196,13 @@ exports[`Export at client side 3`] = `
"get": {},
"head": {},
"patch": {
"Content-Type": "application/x-www-form-urlencoded",
"Content-Type": undefined,
},
"post": {
"Content-Type": "application/x-www-form-urlencoded",
"Content-Type": undefined,
},
"put": {
"Content-Type": "application/x-www-form-urlencoded",
"Content-Type": undefined,
},
},
"maxBodyLength": -1,
Expand All @@ -218,6 +224,7 @@ exports[`Export at client side 3`] = `
"xsrfHeaderName": "X-XSRF-TOKEN",
},
"delete": [Function],
"formToJSON": [Function],
"get": [Function],
"getUri": [Function],
"head": [Function],
Expand Down
19 changes: 13 additions & 6 deletions __tests__/__snapshots__/server-side.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -270,19 +270,25 @@ exports[`Export at server side 1`] = `
exports[`Export at server side 2`] = `{}`;

exports[`Export at server side 3`] = `
{
wrap {
"Axios": [Function],
"AxiosError": [Function],
"AxiosHeaders": [Function],
"Cancel": [Function],
"CancelToken": [Function],
"CanceledError": [Function],
"VERSION": "0.27.2",
"VERSION": "1.2.0",
"all": [Function],
"constructor": [Function],
"create": [Function],
"default": [Function],
"defaults": {
"adapter": [Function],
"adapter": [
"xhr",
"http",
],
"env": {
"Blob": [Function],
"FormData": [Function],
},
"headers": {
Expand All @@ -293,13 +299,13 @@ exports[`Export at server side 3`] = `
"get": {},
"head": {},
"patch": {
"Content-Type": "application/x-www-form-urlencoded",
"Content-Type": undefined,
},
"post": {
"Content-Type": "application/x-www-form-urlencoded",
"Content-Type": undefined,
},
"put": {
"Content-Type": "application/x-www-form-urlencoded",
"Content-Type": undefined,
},
},
"maxBodyLength": -1,
Expand All @@ -321,6 +327,7 @@ exports[`Export at server side 3`] = `
"xsrfHeaderName": "X-XSRF-TOKEN",
},
"delete": [Function],
"formToJSON": [Function],
"get": [Function],
"getUri": [Function],
"head": [Function],
Expand Down
34 changes: 23 additions & 11 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 @@ -12,7 +12,7 @@
"@dr.pogodin/babel-plugin-react-css-modules": "^6.9.2",
"@dr.pogodin/react-global-state": "^0.9.2",
"@dr.pogodin/react-themes": "^1.4.7",
"axios": "^0.27.2",
"axios": "^1.2.0",
"commander": "^9.4.1",
"compression": "^1.7.4",
"config": "^3.3.8",
Expand Down

0 comments on commit 98db97a

Please sign in to comment.