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.
@@ -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: 50000,
167
+ timeout: 1800000,
162
168
  headers: {
163
169
  'User-Agent': 'RequestHttp'
164
170
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sks-maximo-utils",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Maximo helper tools for updating table structures and data",
5
5
  "type": "module",
6
6
  "main": "index.js",