@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -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
 
@@ -1,4 +1,4 @@
1
- FROM node:18-alpine3.18
1
+ FROM node:20-alpine3.19
2
2
 
3
3
  ENV NODE_ENV production
4
4