@aloma.io/integration-sdk 3.0.12 → 3.0.14
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
@@ -74,7 +74,7 @@ class Fetcher {
|
|
74
74
|
}
|
75
75
|
catch (e) {
|
76
76
|
--retries;
|
77
|
-
console.log(theURL, e
|
77
|
+
console.log(theURL, e);
|
78
78
|
if (retries <= 0)
|
79
79
|
throw e;
|
80
80
|
return local.onError(e, url, options, retries, args);
|
@@ -123,7 +123,6 @@ class OAuthFetcher extends Fetcher {
|
|
123
123
|
async customize(options, args = {}) {
|
124
124
|
const local = this;
|
125
125
|
const token = await local.getToken(args.forceTokenRefresh);
|
126
|
-
options = { ...options };
|
127
126
|
options.headers = {
|
128
127
|
...options.headers,
|
129
128
|
Authorization: `Bearer ${token}`,
|
package/package.json
CHANGED
package/src/internal/index.mjs
CHANGED
@@ -96,7 +96,7 @@ class Fetcher {
|
|
96
96
|
} catch (e) {
|
97
97
|
--retries;
|
98
98
|
|
99
|
-
console.log(theURL, e
|
99
|
+
console.log(theURL, e);
|
100
100
|
|
101
101
|
if (retries <= 0) throw e;
|
102
102
|
|
@@ -158,7 +158,6 @@ class OAuthFetcher extends Fetcher {
|
|
158
158
|
const local = this;
|
159
159
|
const token = await local.getToken(args.forceTokenRefresh);
|
160
160
|
|
161
|
-
options = { ...options };
|
162
161
|
options.headers = {
|
163
162
|
...options.headers,
|
164
163
|
Authorization: `Bearer ${token}`,
|