@eluvio/elv-client-js 4.2.2 → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/HttpClient.js +2 -3
package/package.json
CHANGED
package/src/HttpClient.js
CHANGED
|
@@ -2,7 +2,6 @@ const URI = require("urijs");
|
|
|
2
2
|
const Fetch = typeof fetch !== "undefined" ? fetch : require("node-fetch").default;
|
|
3
3
|
const {LogMessage} = require("./LogMessage");
|
|
4
4
|
const Utils = require("./Utils");
|
|
5
|
-
const UrlJoin = require("url-join");
|
|
6
5
|
|
|
7
6
|
class HttpClient {
|
|
8
7
|
Log(message, error=false) {
|
|
@@ -84,7 +83,7 @@ class HttpClient {
|
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
let uri = baseURI
|
|
87
|
-
.path(
|
|
86
|
+
.path(path)
|
|
88
87
|
.query(queryParams)
|
|
89
88
|
.hash("");
|
|
90
89
|
|
|
@@ -238,7 +237,7 @@ class HttpClient {
|
|
|
238
237
|
|
|
239
238
|
return (
|
|
240
239
|
baseURI
|
|
241
|
-
.path(
|
|
240
|
+
.path(path)
|
|
242
241
|
.query(queryParams)
|
|
243
242
|
.hash("")
|
|
244
243
|
.toString()
|