@klauswuestefeld/jux-web 2025.7.9 → 2025.9.5

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/dist/jux-web.js CHANGED
@@ -343,7 +343,14 @@ var juxWeb = (function (exports) {
343
343
  return;
344
344
  }
345
345
  try {
346
- const jsonResponse = yield response.json();
346
+ let jsonResponse = {};
347
+ try {
348
+ jsonResponse = yield response.json();
349
+ }
350
+ catch (e) {
351
+ jsonResponse = { error: 'Unexpected response', expected: false };
352
+ console.error('Unexpected response', e, response);
353
+ }
347
354
  if (response.ok) {
348
355
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(jsonResponse);
349
356
  return;
package/dist/main.esm.js CHANGED
@@ -342,7 +342,14 @@ const backendRequest = (url_1, ...args_1) => __awaiter(void 0, [url_1, ...args_1
342
342
  return;
343
343
  }
344
344
  try {
345
- const jsonResponse = yield response.json();
345
+ let jsonResponse = {};
346
+ try {
347
+ jsonResponse = yield response.json();
348
+ }
349
+ catch (e) {
350
+ jsonResponse = { error: 'Unexpected response', expected: false };
351
+ console.error('Unexpected response', e, response);
352
+ }
346
353
  if (response.ok) {
347
354
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(jsonResponse);
348
355
  return;
package/dist/main.js CHANGED
@@ -366,7 +366,14 @@ const backendRequest = (url_1, ...args_1) => __awaiter(void 0, [url_1, ...args_1
366
366
  return;
367
367
  }
368
368
  try {
369
- const jsonResponse = yield response.json();
369
+ let jsonResponse = {};
370
+ try {
371
+ jsonResponse = yield response.json();
372
+ }
373
+ catch (e) {
374
+ jsonResponse = { error: 'Unexpected response', expected: false };
375
+ console.error('Unexpected response', e, response);
376
+ }
370
377
  if (response.ok) {
371
378
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(jsonResponse);
372
379
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klauswuestefeld/jux-web",
3
- "version": "2025.7.09",
3
+ "version": "2025.9.5",
4
4
  "author": "Jux.House",
5
5
  "license": "Copyrighted",
6
6
  "description": "",