This is an automated email from the ASF dual-hosted git repository.

oyvindlg pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit a77e6b1bab312a74c951389b357edebbf8f98edf
Author: Øyvind Gjesdal <[email protected]>
AuthorDate: Sun Mar 8 22:18:36 2026 +0100

    delete, update and add some jena-fuseki-ui eslint related node dependencies
    
    * update eslint-config-standard to 8.0.1 -> 9.0.1 (not updated for 10 yet)
    * use caret for eslint 10 to update package lock later
    * delete eslint-plugin-standard (removed, part of other dependencies afaik)
    * update plugin-vue 9.17.0 -> 10.8.0
    * add unmet peer dependency for typescript (from eslint-config-standard 9)
    * add unmet peer dependency for vue-eslint-parser (from upgraded 
eslint-plugin-vue)
    * Add globals (browser) dependency to eslint-config for defined browser 
objects
    * Update ecma version (maybe uneccessary, suggested by LLM from warnings in 
IDE, didnt solve)
    * Rethrow cause for lint error (preserve-caught-error)
---
 jena-fuseki2/jena-fuseki-ui/eslint.config.js              |  2 ++
 jena-fuseki2/jena-fuseki-ui/package.json                  | 15 ++++++++-------
 .../jena-fuseki-ui/src/services/fuseki.service.js         |  4 ++--
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/jena-fuseki2/jena-fuseki-ui/eslint.config.js 
b/jena-fuseki2/jena-fuseki-ui/eslint.config.js
index 91f53602f7..68630e178e 100644
--- a/jena-fuseki2/jena-fuseki-ui/eslint.config.js
+++ b/jena-fuseki2/jena-fuseki-ui/eslint.config.js
@@ -17,6 +17,7 @@
 
 import js from '@eslint/js'
 import pluginVue from 'eslint-plugin-vue'
+import globals from 'globals'
 
 export default [
   js.configs.recommended,
@@ -46,6 +47,7 @@ export default [
     'languageOptions': {
       'ecmaVersion': 2021,
       'globals': {
+        ...globals.browser,
         'process': true,
         'describe': true,
         'it': true,
diff --git a/jena-fuseki2/jena-fuseki-ui/package.json 
b/jena-fuseki2/jena-fuseki-ui/package.json
index ff725b992d..bfaebba6e4 100644
--- a/jena-fuseki2/jena-fuseki-ui/package.json
+++ b/jena-fuseki2/jena-fuseki-ui/package.json
@@ -46,26 +46,25 @@
     "@babel/preset-env": "^7.0.0",
     "@cypress/code-coverage": "^4.0.1",
     "@cypress/vue": "^6.0.0",
-    "@eslint/js": "^9.28.0",
+    "@eslint/js": "^10.0.1",
     "@types/codemirror": "^5.60.15",
     "@vitejs/plugin-vue": "^6.0.0",
     "@vitest/coverage-v8": "^3.0.5",
     "@vue/compiler-sfc": "^3.5.26",
-    "@vue/eslint-config-standard": "^8.0.1",
+    "@vue/eslint-config-standard": "^9.0.1",
     "@vue/test-utils": "^2.4.1",
     "babel-loader": "^10",
     "concurrently": "^9.0.0",
     "cross-env": "^10.0.0",
     "cypress": "^15.8.1",
     "cypress-vite": "^1.4.2",
-    "eslint": "^8.52.0",
-    "eslint-plugin-cypress": "^3.0.2",
+    "eslint": "^10.0.1",
+    "eslint-plugin-cypress": "6.1.0",
     "eslint-plugin-import": "^2.28.1",
-    "eslint-plugin-node": "^11.1.0",
     "eslint-plugin-promise": "^7.0.0",
-    "eslint-plugin-standard": "^5.0.0",
-    "eslint-plugin-vue": "^9.17.0",
+    "eslint-plugin-vue": "^10.8.0",
     "express": "^5.1.0",
+    "globals": "^17.4.0",
     "jsdom": "^28.0.0",
     "json-server": "^0.17.4",
     "nanoid": "^5.0.9",
@@ -73,9 +72,11 @@
     "run-script-os": "^1.1.6",
     "sass-embedded": "^1.97.1",
     "sinon": "^21.0.1",
+    "typescript": "^5.9.3",
     "vite": "^7.1.4",
     "vite-plugin-istanbul": "^7.0.0",
     "vitest": "^3.0.5",
+    "vue-eslint-parser": "^10.4.0",
     "wait-on": "^9.0.0",
     "webpack": "^5.104.1"
   },
diff --git a/jena-fuseki2/jena-fuseki-ui/src/services/fuseki.service.js 
b/jena-fuseki2/jena-fuseki-ui/src/services/fuseki.service.js
index d98b90ee5b..8668dd977d 100644
--- a/jena-fuseki2/jena-fuseki-ui/src/services/fuseki.service.js
+++ b/jena-fuseki2/jena-fuseki-ui/src/services/fuseki.service.js
@@ -144,9 +144,9 @@ class FusekiService {
       if (error.response) {
         if (error.response.statusCode !== 200) {
           if (error.response.statusCode === 409) {
-            throw new Error(`failed to create dataset "${datasetName}", 
reason: there is another dataset with the same name`)
+            throw new Error(`failed to create dataset "${datasetName}", 
reason: there is another dataset with the same name`, { cause: error })
           }
-          throw new Error(`failed to create dataset "${datasetName}" with type 
${datasetType}, reason: HTTP status: "${error.response.statusCode}", message: 
${error.response.statusText}`)
+          throw new Error(`failed to create dataset "${datasetName}" with type 
${datasetType}, reason: HTTP status: "${error.response.statusCode}", message: 
${error.response.statusText}`, { cause: error })
         }
       }
       throw error

Reply via email to