-
Notifications
You must be signed in to change notification settings - Fork 283
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
Conversation
Signed-off-by: jtsang01 <[email protected]>
423d140
to
348ec3b
Compare
@@ -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", |
There was a problem hiding this comment.
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]>
ui/src/rdl-rest.js
Outdated
@@ -17,6 +17,7 @@ | |||
|
|||
var url = require('url'); | |||
var path = require('path'); | |||
var axios = require('axios'); | |||
var request = require('request'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
package-lock.json will also need to be updated |
Signed-off-by: jtsang01 <[email protected]>
078f492
to
ac9aa7f
Compare
replace the
request
package withaxios