From 52ae305f6471fe82de056fd919139c520a0c3373 Mon Sep 17 00:00:00 2001 From: Luca <36577976+mlucap@users.noreply.github.com> Date: Tue, 16 Feb 2021 21:14:48 -0500 Subject: [PATCH] Switches Axios to Redaxios (#1170) * Replace Axios with Redaxios * contributer and yarn * forgot to remove old axios from yarn.lock --- .all-contributorsrc | 9 +++++++++ README.md | 3 +++ docs/README.br.pt.md | 3 +++ docs/README.cn.zh.md | 3 +++ docs/README.de.md | 3 +++ docs/README.es.md | 3 +++ docs/README.fr.md | 3 +++ docs/README.hi.md | 3 +++ docs/README.in.md | 3 +++ docs/README.ja.md | 3 +++ docs/README.kr.md | 3 +++ docs/README.ml.md | 3 +++ docs/README.nl.md | 3 +++ docs/README.pl.md | 3 +++ docs/README.se.md | 3 +++ docs/README.ta.md | 3 +++ docs/README.tr.md | 3 +++ docs/README.tw.md | 3 +++ lib/api.js | 2 +- package.json | 2 +- yarn.lock | 14 +++++--------- 21 files changed, 67 insertions(+), 11 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 9407449..1728688 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -804,6 +804,15 @@ "translation", "doc" ] + }, + { + "login": "mlucap", + "name": "Luca", + "avatar_url": "https://avatars.githubusercontent.com/u/36577976?v=4", + "profile": "https://github.com/mlucap", + "contributions": [ + "code" + ] } ], "repoType": "github", diff --git a/README.md b/README.md index e350130..06e145a 100644 --- a/README.md +++ b/README.md @@ -331,6 +331,9 @@ Thanks goes out to all these wonderful people ([emoji key](https://github.com/ke
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.br.pt.md b/docs/README.br.pt.md index 79f70b0..1ffc6e3 100644 --- a/docs/README.br.pt.md +++ b/docs/README.br.pt.md @@ -219,6 +219,9 @@ Agradecemos imensamente a todas essas pessoas maravilhosas pela grande ajuda ([e
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.cn.zh.md b/docs/README.cn.zh.md index b82e015..d5173ee 100644 --- a/docs/README.cn.zh.md +++ b/docs/README.cn.zh.md @@ -259,6 +259,9 @@ Carbon 项目由 TA 们发起:
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.de.md b/docs/README.de.md index d5ffb6c..f1695c4 100644 --- a/docs/README.de.md +++ b/docs/README.de.md @@ -219,6 +219,9 @@ Ein Danke geht an all diese wunderbaren Menschen ([emoji key](https://github.com
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.es.md b/docs/README.es.md index b480c7a..26669cd 100644 --- a/docs/README.es.md +++ b/docs/README.es.md @@ -264,6 +264,9 @@ Gracias a todas estas personas maravillosas ([emoji key](https://github.com/kent
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.fr.md b/docs/README.fr.md index f93512d..6d62ab0 100644 --- a/docs/README.fr.md +++ b/docs/README.fr.md @@ -223,6 +223,9 @@ Merci à toutes ces personnes merveilleuses ([emoji key](https://github.com/kent
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.hi.md b/docs/README.hi.md index 5eb94a1..b35af9e 100644 --- a/docs/README.hi.md +++ b/docs/README.hi.md @@ -219,6 +219,9 @@ PRs का स्वागत है! अधिक जानकारी के
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.in.md b/docs/README.in.md index 71b7bad..bce5c1e 100644 --- a/docs/README.in.md +++ b/docs/README.in.md @@ -330,6 +330,9 @@ Terima kasih untuk semua orang yang sangat luar biasa ini ([emoji key](https://g
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.ja.md b/docs/README.ja.md index 65e3bc1..b8a7d17 100644 --- a/docs/README.ja.md +++ b/docs/README.ja.md @@ -230,6 +230,9 @@ PR を歓迎しています。詳細は[CONTRIBUTING.md](/.github/CONTRIBUTING.m
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.kr.md b/docs/README.kr.md index 6658044..3dc0072 100644 --- a/docs/README.kr.md +++ b/docs/README.kr.md @@ -221,6 +221,9 @@ Carbon is a project by
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.ml.md b/docs/README.ml.md index ada8286..a2224ee 100644 --- a/docs/README.ml.md +++ b/docs/README.ml.md @@ -219,6 +219,9 @@ PR കൾ സ്വാഗതം ചെയ്യുന്നു! കൂടുത
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.nl.md b/docs/README.nl.md index 075a492..0216687 100644 --- a/docs/README.nl.md +++ b/docs/README.nl.md @@ -279,6 +279,9 @@ Dank gaat naar al deze geweldige mensen ([emoji key](https://github.com/kentcdod
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.pl.md b/docs/README.pl.md index e300a46..264a37d 100644 --- a/docs/README.pl.md +++ b/docs/README.pl.md @@ -280,6 +280,9 @@ Podziękowania dla wszystkich tych wspaniałych ludzi ([emoji key](https://githu
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.se.md b/docs/README.se.md index f9420e7..08a0d59 100644 --- a/docs/README.se.md +++ b/docs/README.se.md @@ -258,6 +258,9 @@ Tack till alla dessa underbara människor ([emoji key](https://github.com/kentcd
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.ta.md b/docs/README.ta.md index c56d198..4dfea91 100644 --- a/docs/README.ta.md +++ b/docs/README.ta.md @@ -223,6 +223,9 @@ PR வரவேற்கிறோம்! மேலும் தகவலுக
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.tr.md b/docs/README.tr.md index 0bbdc7e..5e62eb5 100644 --- a/docs/README.tr.md +++ b/docs/README.tr.md @@ -219,6 +219,9 @@ Bu muhteşem insanlara teşekkürler ([emoji key](https://github.com/kentcdodds/
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/docs/README.tw.md b/docs/README.tw.md index 9d460d3..b06a80b 100644 --- a/docs/README.tw.md +++ b/docs/README.tw.md @@ -261,6 +261,9 @@ Carbon 專案由 TA 們發起:
George McCarron

📖
Erwin Rahayu

🌍 📖 + +
Luca

💻 + diff --git a/lib/api.js b/lib/api.js index 3b991cf..47632eb 100644 --- a/lib/api.js +++ b/lib/api.js @@ -1,4 +1,4 @@ -import axios from 'axios' +import axios from 'redaxios' import debounce from 'lodash.debounce' import omitBy from 'lodash.omitby' import ms from 'ms' diff --git a/package.json b/package.json index 9270057..5083608 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "@next/bundle-analyzer": "^10.0.5", "@reach/visually-hidden": "^0.12.0", "actionsack": "^0.0.13", - "axios": "^0.21.1", "cm-show-invisibles": "^3.1.0", "codemirror": "5.58.3", "codemirror-graphql": "^0.12.4", @@ -66,6 +65,7 @@ "react-image-crop": "^6.0.16", "react-mailchimp-subscribe": "^2.1.0", "react-stripe-elements": "^6.1.2", + "redaxios": "^0.4.1", "serialize-javascript": "^5.0.1", "tohash": "^1.0.2", "use-climate-change-reminder": "^0.0.7" diff --git a/yarn.lock b/yarn.lock index 3ce3f4f..62bb5ec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -109,7 +109,6 @@ "@applitools/isomorphic-fetch" "3.0.0" "@applitools/screenshoter" "2.1.1" "@applitools/snippets" "2.1.0" - axios "0.21.1" chalk "3.0.0" cosmiconfig "6.0.0" dateformat "3.0.3" @@ -2640,13 +2639,6 @@ axe-core@^4.0.2: resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.0.2.tgz#c7cf7378378a51fcd272d3c09668002a4990b1cb" integrity sha512-arU1h31OGFu+LPrOLGZ7nB45v940NMDMEJeNmbutu57P+UFDVnkZg3e+J1I2HJRZ9hT7gO8J91dn/PMrAiKakA== -axios@0.21.1, axios@^0.21.1: - version "0.21.1" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8" - integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA== - dependencies: - follow-redirects "^1.10.0" - axobject-query@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" @@ -8558,6 +8550,11 @@ readdirp@~3.5.0: dependencies: picomatch "^2.2.1" +redaxios@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/redaxios/-/redaxios-0.4.1.tgz#a46fd53b533ed76d8619d9e6d595b95543855195" + integrity sha512-+Jhh1j8/H0KBro+Hih/MrDEJ1PICaU10JA6iu5b3+uvgRI+5n2M7qpMNXq7eC/0fspP0tTq49ONXlGWFdRoNLg== + regenerate-unicode-properties@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.1.0.tgz#ef51e0f0ea4ad424b77bf7cb41f3e015c70a3f0e" @@ -10509,7 +10506,6 @@ wait-on@^5.2.1: resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-5.2.1.tgz#05b66fcb4d7f5da01537f03e7cf96e8836422996" integrity sha512-H2F986kNWMU9hKlI9l/ppO6tN8ZSJd35yBljMLa1/vjzWP++Qh6aXyt77/u7ySJFZQqBtQxnvm/xgG48AObXcw== dependencies: - axios "^0.21.1" joi "^17.3.0" lodash "^4.17.20" minimist "^1.2.5"