Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace deprecated request pkg #2180

Merged
merged 3 commits into from
May 25, 2023

Conversation

jimmytsang
Copy link
Contributor

@jimmytsang jimmytsang commented May 19, 2023

replace the request package with axios

@jimmytsang jimmytsang force-pushed the refactor-request-pkg branch from 423d140 to 348ec3b Compare May 19, 2023 20:29
@@ -97,7 +96,7 @@
"redux-devtools-extension": "2.13.9",
"redux-mock-store": "1.5.4",
"redux-thunk": "2.4.1",
"request": "2.88.2",
"axios": "1.4.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considered using native nodejs functions but ran into connectivity errors that were not easily resolvable.
I believe this current solution using axios is appropriate for the time being as it involves very little code change and is a popular npm package that has a very active community supporting it.

Signed-off-by: jtsang01 <[email protected]>
@@ -17,6 +17,7 @@

var url = require('url');
var path = require('path');
var axios = require('axios');
var request = require('request');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to remove this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@chandrasekhar1996
Copy link
Contributor

package-lock.json will also need to be updated

Signed-off-by: jtsang01 <[email protected]>
@jimmytsang jimmytsang force-pushed the refactor-request-pkg branch from 078f492 to ac9aa7f Compare May 23, 2023 04:39
@havetisyan havetisyan merged commit 7568b4a into AthenZ:master May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants