Skip to content

Commit

Permalink
Make compatible with Node 18
Browse files Browse the repository at this point in the history
This makes the project compatible with
the current Node LTS.
  • Loading branch information
poirotp-bpk committed Oct 9, 2023
1 parent aeb4c4f commit 1cfd587
Show file tree
Hide file tree
Showing 9 changed files with 11,256 additions and 55 deletions.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getBaseUrl = function(uri) {

const requestXml = function(uri) {
return new Promise((resolve, reject) => {
request(uri, (error, response, body) => {
request.get(uri, (error, response, body) => {
if (!error && response.statusCode == 200) {
resolve({xml: body, headers: response.headers});
}
Expand Down
Loading

0 comments on commit 1cfd587

Please sign in to comment.