@aloma.io/integration-sdk 3.6.0 → 3.6.1
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/build/internal/index.mjs
CHANGED
@@ -72,13 +72,13 @@ class Fetcher {
|
|
72
72
|
var local = this, baseUrl = local.baseUrl;
|
73
73
|
if (retries == null)
|
74
74
|
retries = local.retry;
|
75
|
-
let theURL = `${baseUrl?.endsWith("/") ? baseUrl : baseUrl + "/"}${url}`.replace(/\/\/+/gi, "/");
|
75
|
+
let theURL = !baseUrl ? url : `${baseUrl?.endsWith("/") ? baseUrl : baseUrl + "/"}${url}`.replace(/\/\/+/gi, "/");
|
76
76
|
try {
|
77
77
|
options.url = url;
|
78
78
|
await local.customize(options, args);
|
79
79
|
url = options.url;
|
80
80
|
delete options.url;
|
81
|
-
theURL = `${baseUrl?.endsWith("/") ? baseUrl : baseUrl + "/"}${url}`.replace(/\/\/+/gi, "/");
|
81
|
+
theURL = !baseUrl ? url : `${baseUrl?.endsWith("/") ? baseUrl : baseUrl + "/"}${url}`.replace(/\/\/+/gi, "/");
|
82
82
|
if (!options?.headers || !options?.headers?.Accept) {
|
83
83
|
options.headers = {
|
84
84
|
...options.headers,
|
package/package.json
CHANGED
package/src/internal/index.mjs
CHANGED
@@ -89,7 +89,7 @@ class Fetcher {
|
|
89
89
|
|
90
90
|
if (retries == null) retries = local.retry;
|
91
91
|
|
92
|
-
let theURL =
|
92
|
+
let theURL = !baseUrl?url:`${
|
93
93
|
baseUrl?.endsWith("/") ? baseUrl : baseUrl + "/"
|
94
94
|
}${url}`.replace(/\/\/+/gi, "/");
|
95
95
|
|
@@ -100,7 +100,7 @@ class Fetcher {
|
|
100
100
|
url = options.url;
|
101
101
|
delete options.url;
|
102
102
|
|
103
|
-
theURL =
|
103
|
+
theURL = !baseUrl?url:`${
|
104
104
|
baseUrl?.endsWith("/") ? baseUrl : baseUrl + "/"
|
105
105
|
}${url}`.replace(/\/\/+/gi, "/");
|
106
106
|
|