@smapiot/piral-cloud-browser 1.16.5 → 1.16.6-pre.20250815.2

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/lib/index.js CHANGED
@@ -116,6 +116,8 @@ var FeedServiceApiClient = class {
116
116
  }
117
117
  );
118
118
  }
119
+ } else if (res.status >= 500 && res.status < 600) {
120
+ throw new Error(`HTTP call failed with status ${res.status}: ${res.statusText}`);
119
121
  }
120
122
  return res;
121
123
  }).then(getJsonResponse);
package/lib/sdk.js CHANGED
@@ -141,6 +141,8 @@ var feedService = (() => {
141
141
  }
142
142
  );
143
143
  }
144
+ } else if (res.status >= 500 && res.status < 600) {
145
+ throw new Error(`HTTP call failed with status ${res.status}: ${res.statusText}`);
144
146
  }
145
147
  return res;
146
148
  }).then(getJsonResponse);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smapiot/piral-cloud-browser",
3
- "version": "1.16.5",
3
+ "version": "1.16.6-pre.20250815.2",
4
4
  "description": "Piral Cloud: Browser-usable API Client for the Piral Feed Service.",
5
5
  "author": {
6
6
  "name": "smapiot",
@@ -53,7 +53,7 @@
53
53
  "browser"
54
54
  ],
55
55
  "devDependencies": {
56
- "@piral/feed-client": "^1.16.5",
56
+ "@piral/feed-client": "^1.16.6",
57
57
  "dets": "^0.16",
58
58
  "esbuild": "^0.25.4"
59
59
  }