@aloma.io/integration-sdk 3.7.45 → 3.7.47

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.
@@ -76,6 +76,9 @@ export default class Fetcher {
76
76
  if (local.onResponse) {
77
77
  await local.onResponse(ret);
78
78
  }
79
+ if (status === 204) {
80
+ return { ok: true };
81
+ }
79
82
  return unwrap(ret, options);
80
83
  }
81
84
  catch (e) {
@@ -289,6 +289,8 @@ ${text}
289
289
  throw new Error("could not get refresh token " + status + " " + text);
290
290
  }
291
291
  };
292
+ console.log(that._oauth);
293
+ console.log(config);
292
294
  const theOAuth = that._oauth
293
295
  ? new OAuth(decrypted.oauthResult, saveOAuthResult, getRefreshToken)
294
296
  : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.7.45",
3
+ "version": "3.7.47",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -111,6 +111,11 @@ export default class Fetcher {
111
111
  if (local.onResponse) {
112
112
  await local.onResponse(ret);
113
113
  }
114
+
115
+ if (status === 204)
116
+ {
117
+ return {ok: true};
118
+ }
114
119
 
115
120
  return unwrap(ret, options);
116
121
  } catch (e: any) {
@@ -352,6 +352,9 @@ ${text}
352
352
  }
353
353
  };
354
354
 
355
+ console.log(that._oauth)
356
+ console.log(config)
357
+
355
358
  const theOAuth = that._oauth
356
359
  ? new OAuth(decrypted.oauthResult, saveOAuthResult, getRefreshToken)
357
360
  : null;