@aloma.io/integration-sdk 3.3.86 → 3.3.88

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.
@@ -115,6 +115,10 @@ class Fetcher {
115
115
  if (e.status === 429) {
116
116
  return local.onError(e, url, options, retries, args, true);
117
117
  }
118
+ // bad request
119
+ if (e.status === 400 || e.status === 422) {
120
+ throw (e);
121
+ }
118
122
  --retries;
119
123
  console.log(theURL, e);
120
124
  if (retries <= 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.3.86",
3
+ "version": "3.3.88",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -147,6 +147,11 @@ class Fetcher {
147
147
  if (e.status === 429) {
148
148
  return local.onError(e, url, options, retries, args, true);
149
149
  }
150
+
151
+ // bad request
152
+ if (e.status === 400 || e.status === 422) {
153
+ throw(e);
154
+ }
150
155
 
151
156
  --retries;
152
157