From 45aa31d14d0064fcac703e7e3f97e90c2dd63038 Mon Sep 17 00:00:00 2001 From: Harald Pehl Date: Thu, 10 Oct 2024 09:19:26 +0200 Subject: [PATCH] Fix @parcel/watcher dependency --- op/console/package.json | 3 ++- .../main/java/org/jboss/hal/op/bootstrap/EndpointStorage.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/op/console/package.json b/op/console/package.json index bfea558..5fe9d9d 100644 --- a/op/console/package.json +++ b/op/console/package.json @@ -24,6 +24,7 @@ }, "optionalDependencies": { "@parcel/watcher-linux-x64-glibc": "^2.4.1", - "@swc/core-linux-x64-gnu": "^1.7.28" + "@swc/core-linux-x64-gnu": "^1.7.28", + "lightningcss-linux-x64-gnu": "^1.27.0" } } diff --git a/op/console/src/main/java/org/jboss/hal/op/bootstrap/EndpointStorage.java b/op/console/src/main/java/org/jboss/hal/op/bootstrap/EndpointStorage.java index ee11f79..44aef26 100644 --- a/op/console/src/main/java/org/jboss/hal/op/bootstrap/EndpointStorage.java +++ b/op/console/src/main/java/org/jboss/hal/op/bootstrap/EndpointStorage.java @@ -36,12 +36,12 @@ class EndpointStorage { private final Map endpoints; private final Storage storage; + @SuppressWarnings("unchecked") EndpointStorage() { this.endpoints = new HashMap<>(); this.storage = WebStorageWindow.of(window).localStorage; String payload = storage.getItem(Ids.ENDPOINTS); if (payload != null && !payload.isEmpty()) { - //noinspection unchecked JsArray eps = (JsArray) JSON.parse(payload); for (int i = 0; i < eps.length; i++) { endpoints.put(eps.getAt(i).id, eps.getAt(i));