@goralys/core 1.6.1 → 1.6.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -457,7 +457,7 @@ async function goralysFetchClient(method, input, payload, requestOptions) {
457
457
  if (!(contentType && contentType.toLowerCase().trim().includes("application/json")))
458
458
  return res;
459
459
  const data = await clone.json();
460
- if (data?.redirect && requestOptions?.suppressRedirect) {
460
+ if (data?.redirect && !requestOptions?.suppressRedirect) {
461
461
  emitNavigationEvent({ type: "redirect", url: data.redirect });
462
462
  }
463
463
  if (res.status === 401) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goralys/core",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "license": "LGPL-2.1-or-later",
5
5
  "description": "Shared business logic for the Goralys web application",
6
6
  "repository": {