@klauswuestefeld/jux-web 2024.4.2 → 2024.5.22
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 +7 -3
- package/dist/main.esm.js +7 -3
- package/dist/main.js +7 -3
- package/package.json +1 -1
package/dist/jux-web.js
CHANGED
|
@@ -254,6 +254,10 @@ var juxWeb = (function (exports) {
|
|
|
254
254
|
removeOverlay();
|
|
255
255
|
if (onRedirect)
|
|
256
256
|
onRedirect(response);
|
|
257
|
+
if (response.type === 'opaqueredirect') {
|
|
258
|
+
console.info('opaqueredirect'); // Stop processing request if its an opaqueredirect
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
257
261
|
if (response.status === 401) {
|
|
258
262
|
handleUnauthorized();
|
|
259
263
|
return;
|
|
@@ -269,13 +273,13 @@ var juxWeb = (function (exports) {
|
|
|
269
273
|
}
|
|
270
274
|
}
|
|
271
275
|
else {
|
|
272
|
-
// backend
|
|
276
|
+
// backend exceptions
|
|
273
277
|
onError(jsonResponse.error);
|
|
274
278
|
}
|
|
275
279
|
}
|
|
276
280
|
catch (err) {
|
|
277
|
-
// json conversion error / json response dealing errors
|
|
278
|
-
|
|
281
|
+
// json conversion error / json response dealing errors / onSuccess errors
|
|
282
|
+
console.error(err);
|
|
279
283
|
}
|
|
280
284
|
finally {
|
|
281
285
|
requestRunning = false;
|
package/dist/main.esm.js
CHANGED
|
@@ -253,6 +253,10 @@ const backendRequest = (url_1, options_1, onSuccess_1, onError_1, onRedirect_1,
|
|
|
253
253
|
removeOverlay();
|
|
254
254
|
if (onRedirect)
|
|
255
255
|
onRedirect(response);
|
|
256
|
+
if (response.type === 'opaqueredirect') {
|
|
257
|
+
console.info('opaqueredirect'); // Stop processing request if its an opaqueredirect
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
256
260
|
if (response.status === 401) {
|
|
257
261
|
handleUnauthorized();
|
|
258
262
|
return;
|
|
@@ -268,13 +272,13 @@ const backendRequest = (url_1, options_1, onSuccess_1, onError_1, onRedirect_1,
|
|
|
268
272
|
}
|
|
269
273
|
}
|
|
270
274
|
else {
|
|
271
|
-
// backend
|
|
275
|
+
// backend exceptions
|
|
272
276
|
onError(jsonResponse.error);
|
|
273
277
|
}
|
|
274
278
|
}
|
|
275
279
|
catch (err) {
|
|
276
|
-
// json conversion error / json response dealing errors
|
|
277
|
-
|
|
280
|
+
// json conversion error / json response dealing errors / onSuccess errors
|
|
281
|
+
console.error(err);
|
|
278
282
|
}
|
|
279
283
|
finally {
|
|
280
284
|
requestRunning = false;
|
package/dist/main.js
CHANGED
|
@@ -277,6 +277,10 @@ const backendRequest = (url_1, options_1, onSuccess_1, onError_1, onRedirect_1,
|
|
|
277
277
|
removeOverlay();
|
|
278
278
|
if (onRedirect)
|
|
279
279
|
onRedirect(response);
|
|
280
|
+
if (response.type === 'opaqueredirect') {
|
|
281
|
+
console.info('opaqueredirect'); // Stop processing request if its an opaqueredirect
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
280
284
|
if (response.status === 401) {
|
|
281
285
|
handleUnauthorized();
|
|
282
286
|
return;
|
|
@@ -292,13 +296,13 @@ const backendRequest = (url_1, options_1, onSuccess_1, onError_1, onRedirect_1,
|
|
|
292
296
|
}
|
|
293
297
|
}
|
|
294
298
|
else {
|
|
295
|
-
// backend
|
|
299
|
+
// backend exceptions
|
|
296
300
|
onError(jsonResponse.error);
|
|
297
301
|
}
|
|
298
302
|
}
|
|
299
303
|
catch (err) {
|
|
300
|
-
// json conversion error / json response dealing errors
|
|
301
|
-
|
|
304
|
+
// json conversion error / json response dealing errors / onSuccess errors
|
|
305
|
+
console.error(err);
|
|
302
306
|
}
|
|
303
307
|
finally {
|
|
304
308
|
requestRunning = false;
|