sks-maximo-utils 1.1.2 → 1.1.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/nodeutils/requestHttp.js +7 -1
- package/package.json +1 -1
package/nodeutils/requestHttp.js
CHANGED
|
@@ -28,6 +28,12 @@ function limitLogOutput(data, maxLength = 200) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function joinUrl(base, path) {
|
|
31
|
+
if(path!=null&&path!==''){
|
|
32
|
+
if(path.startsWith('http')){
|
|
33
|
+
return path;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
31
37
|
return `${base.replace(/\/$/, '')}/${path.replace(/^\//, '')}`;
|
|
32
38
|
}
|
|
33
39
|
|
|
@@ -158,7 +164,7 @@ function createService() {
|
|
|
158
164
|
const config = getConfig();
|
|
159
165
|
const service = axios.create({
|
|
160
166
|
baseURL: config.baseUrl,
|
|
161
|
-
timeout:
|
|
167
|
+
timeout: 1800000,
|
|
162
168
|
headers: {
|
|
163
169
|
'User-Agent': 'RequestHttp'
|
|
164
170
|
},
|