From 902c9af2b0cac7da625ef87f540b952415edb16c Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Wed, 20 Dec 2023 11:49:21 +0100 Subject: [PATCH] Migrate to SvelteKit 2 --- package-lock.json | 796 +++++++----------- package.json | 23 +- src/routes/api/articles/[id]/+server.ts | 4 +- src/routes/api/recherche/+server.ts | 2 +- src/routes/api/textes/+server.ts | 2 +- src/routes/api/textes/[id]/+server.ts | 4 +- src/routes/article/+page.server.ts | 2 +- src/routes/article/[id]/+page.server.ts | 2 +- src/routes/articles/[id]/+page.ts | 4 +- src/routes/dossier_legislatif/+page.server.ts | 2 +- .../dossier_legislatif/[id]/+page.server.ts | 2 +- src/routes/id/+page.server.ts | 2 +- src/routes/id/[...eli]/+page.server.ts | 2 +- src/routes/idcc/+page.server.ts | 2 +- src/routes/idcc/[id]/+page.server.ts | 2 +- src/routes/jo/+page.server.ts | 2 +- src/routes/jo/[id]/+page.server.ts | 2 +- src/routes/recherche/+page.ts | 2 +- src/routes/section_ta/+page.server.ts | 2 +- src/routes/section_ta/[id]/+page.server.ts | 2 +- src/routes/texte_version/+page.server.ts | 2 +- src/routes/texte_version/[id]/+page.server.ts | 2 +- src/routes/textekali/+page.server.ts | 2 +- src/routes/textekali/[id]/+page.server.ts | 2 +- src/routes/textelr/+page.server.ts | 2 +- src/routes/textelr/[id]/+page.server.ts | 2 +- src/routes/textes/+page.ts | 2 +- src/routes/textes/[id]/+page.ts | 4 +- src/routes/versions/+page.server.ts | 2 +- src/routes/versions/[...eli]/+page.server.ts | 2 +- svelte.config.js | 2 +- tsconfig.json | 6 +- 32 files changed, 343 insertions(+), 548 deletions(-) diff --git a/package-lock.json b/package-lock.json index 339bd78..402fa65 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,16 +10,17 @@ "license": "AGPL-3.0-or-later", "dependencies": { "@auditors/core": "^0.7.0", - "@tricoteuses/explorer-tools": "^0.4.3", - "fast-xml-parser": "^4.2.2", + "@tricoteuses/explorer-tools": "^0.5.0", + "fast-xml-parser": "^4.3.2", "he": "^1.2.0", "jsdom": "^23.0.1" }, "devDependencies": { "@iconify-icons/codicon": "^1.2.15", "@playwright/test": "^1.22.2", - "@sveltejs/adapter-node": "^1.2.3", + "@sveltejs/adapter-node": "^2.0.0", "@sveltejs/package": "^2.1.0", + "@sveltejs/vite-plugin-svelte": "^3.0.0", "@tailwindcss/typography": "^0.5.3", "@tricoteuses/assemblee": "^1.5.2", "@types/fs-extra": "^11.0.1", @@ -29,7 +30,7 @@ "@types/papaparse": "^5.3.7", "@typescript-eslint/eslint-plugin": "^6.1.0", "@typescript-eslint/parser": "^6.1.0", - "augmented-data-viewer": "^0.3.0", + "augmented-data-viewer": "^0.4.4", "autoprefixer": "^10.4.7", "daisyui": "^4.4.22", "dotenv": "^16.0.1", @@ -42,7 +43,7 @@ "morgan": "^1.10.0", "papaparse": "^5.3.2", "postcss": "^8.4.14", - "postcss-load-config": "^4.0.1", + "postcss-load-config": "^5.0.2", "postgres": "^3.2.4", "prettier": "^3.0.0", "prettier-plugin-svelte": "^3.0.3", @@ -54,12 +55,12 @@ "tslib": "^2.3.1", "tsx": "^4.0.0", "typescript": "^5.0.4", - "vite": "^4.0.4", + "vite": "^5.0.10", "zx": "^7.1.1" }, "peerDependencies": { - "@sveltejs/kit": "^1.21.0", - "svelte": "^4.1.2" + "@sveltejs/kit": "^2.0.4", + "svelte": "^4.2.8" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -111,7 +112,6 @@ "cpu": [ "ppc64" ], - "dev": true, "optional": true, "os": [ "aix" @@ -127,7 +127,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "android" @@ -143,7 +142,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "android" @@ -159,7 +157,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "android" @@ -175,7 +172,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -191,7 +187,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -207,7 +202,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "freebsd" @@ -223,7 +217,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "freebsd" @@ -239,7 +232,6 @@ "cpu": [ "arm" ], - "dev": true, "optional": true, "os": [ "linux" @@ -255,7 +247,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -271,7 +262,6 @@ "cpu": [ "ia32" ], - "dev": true, "optional": true, "os": [ "linux" @@ -287,7 +277,6 @@ "cpu": [ "loong64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -303,7 +292,6 @@ "cpu": [ "mips64el" ], - "dev": true, "optional": true, "os": [ "linux" @@ -319,7 +307,6 @@ "cpu": [ "ppc64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -335,7 +322,6 @@ "cpu": [ "riscv64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -351,7 +337,6 @@ "cpu": [ "s390x" ], - "dev": true, "optional": true, "os": [ "linux" @@ -367,7 +352,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -383,7 +367,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "netbsd" @@ -399,7 +382,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "openbsd" @@ -415,7 +397,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "sunos" @@ -431,7 +412,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -447,7 +427,6 @@ "cpu": [ "ia32" ], - "dev": true, "optional": true, "os": [ "win32" @@ -463,7 +442,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -528,15 +506,6 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@fastify/busboy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", - "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", - "peer": true, - "engines": { - "node": ">=14" - } - }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.13", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", @@ -828,51 +797,206 @@ } } }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.1.tgz", + "integrity": "sha512-6vMdBZqtq1dVQ4CWdhFwhKZL6E4L1dV6jUjuBvsavvNJSppzi6dLBbuV+3+IyUREaj9ZFvQefnQm28v4OCXlig==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.1.tgz", + "integrity": "sha512-Jto9Fl3YQ9OLsTDWtLFPtaIMSL2kwGyGoVCmPC8Gxvym9TCZm4Sie+cVeblPO66YZsYH8MhBKDMGZ2NDxuk/XQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.1.tgz", + "integrity": "sha512-LtYcLNM+bhsaKAIGwVkh5IOWhaZhjTfNOkGzGqdHvhiCUVuJDalvDxEdSnhFzAn+g23wgsycmZk1vbnaibZwwA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.1.tgz", + "integrity": "sha512-KyP/byeXu9V+etKO6Lw3E4tW4QdcnzDG/ake031mg42lob5tN+5qfr+lkcT/SGZaH2PdW4Z1NX9GHEkZ8xV7og==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.1.tgz", + "integrity": "sha512-Yqz/Doumf3QTKplwGNrCHe/B2p9xqDghBZSlAY0/hU6ikuDVQuOUIpDP/YcmoT+447tsZTmirmjgG3znvSCR0Q==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.1.tgz", + "integrity": "sha512-u3XkZVvxcvlAOlQJ3UsD1rFvLWqu4Ef/Ggl40WAVCuogf4S1nJPHh5RTgqYFpCOvuGJ7H5yGHabjFKEZGExk5Q==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.1.tgz", + "integrity": "sha512-0XSYN/rfWShW+i+qjZ0phc6vZ7UWI8XWNz4E/l+6edFt+FxoEghrJHjX1EY/kcUGCnZzYYRCl31SNdfOi450Aw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.1.tgz", + "integrity": "sha512-LmYIO65oZVfFt9t6cpYkbC4d5lKHLYv5B4CSHRpnANq0VZUQXGcCPXHzbCXCz4RQnx7jvlYB1ISVNCE/omz5cw==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.1.tgz", + "integrity": "sha512-kr8rEPQ6ns/Lmr/hiw8sEVj9aa07gh1/tQF2Y5HrNCCEPiCBGnBUt9tVusrcBBiJfIt1yNaXN6r1CCmpbFEDpg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.1.tgz", + "integrity": "sha512-t4QSR7gN+OEZLG0MiCgPqMWZGwmeHhsM4AkegJ0Kiy6TnJ9vZ8dEIwHw1LcZKhbHxTY32hp9eVCMdR3/I8MGRw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.1.tgz", + "integrity": "sha512-7XI4ZCBN34cb+BH557FJPmh0kmNz2c25SCQeT9OiFWEgf8+dL6ZwJ8f9RnUIit+j01u07Yvrsuu1rZGxJCc51g==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.1.tgz", + "integrity": "sha512-yE5c2j1lSWOH5jp+Q0qNL3Mdhr8WuqCNVjc6BxbVfS5cAS6zRmdiw7ktb8GNpDCEUJphILY6KACoFoRtKoqNQg==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.1.tgz", + "integrity": "sha512-PyJsSsafjmIhVgaI1Zdj7m8BB8mMckFah/xbpplObyHfiXzKcI5UOUXRyOdHW7nz4DpMCuzLnF7v5IWHenCwYA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@sveltejs/adapter-node": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@sveltejs/adapter-node/-/adapter-node-1.3.1.tgz", - "integrity": "sha512-A0VgRQDCDPzdLNoiAbcOxGw4zT1Mc+n1LwT1OmO350R7WxrEqdMUChPPOd1iMfIDWlP4ie6E2d/WQf5es2d4Zw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-node/-/adapter-node-2.0.1.tgz", + "integrity": "sha512-qobmfQ6f71yKlQSufLjtPGCFjuUqy0Y5QQySTlyqO3CEUI/F9dkrsgOUwYtEE0OBjZV+oIJds4vrJ78e2Dl/5w==", "dev": true, "dependencies": { - "@rollup/plugin-commonjs": "^25.0.0", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-node-resolve": "^15.0.1", - "rollup": "^3.7.0" + "@rollup/plugin-commonjs": "^25.0.7", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^15.2.3", + "rollup": "^4.8.0" }, "peerDependencies": { - "@sveltejs/kit": "^1.0.0" + "@sveltejs/kit": "^2.0.0" } }, "node_modules/@sveltejs/kit": { - "version": "1.30.3", - "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.30.3.tgz", - "integrity": "sha512-0DzVXfU4h+tChFvoc8C61IqErCyskD4ydSIDjpKS2lYlEzIYrtYrY7juSqACFxqcvZAnOEXvSY+zZ8br0+ZMMg==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.0.4.tgz", + "integrity": "sha512-pqUOo1Slp2fybNjTouF7qgeN815hO2boRCNO1Z7/XtXu5IPNg9OSwI485qmQ0GUU2v2NmA0XZciFHGrgzOixyw==", "hasInstallScript": true, "peer": true, "dependencies": { - "@sveltejs/vite-plugin-svelte": "^2.5.0", - "@types/cookie": "^0.5.1", - "cookie": "^0.5.0", - "devalue": "^4.3.1", + "@types/cookie": "^0.6.0", + "cookie": "^0.6.0", + "devalue": "^4.3.2", "esm-env": "^1.0.0", "kleur": "^4.1.5", - "magic-string": "^0.30.0", + "magic-string": "^0.30.5", "mrmime": "^1.0.1", "sade": "^1.8.1", "set-cookie-parser": "^2.6.0", - "sirv": "^2.0.2", - "tiny-glob": "^0.2.9", - "undici": "~5.26.2" + "sirv": "^2.0.3", + "tiny-glob": "^0.2.9" }, "bin": { "svelte-kit": "svelte-kit.js" }, "engines": { - "node": "^16.14 || >=18" + "node": ">=18.13" }, "peerDependencies": { - "svelte": "^3.54.0 || ^4.0.0-next.0 || ^5.0.0-next.0", - "vite": "^4.0.0" + "@sveltejs/vite-plugin-svelte": "^3.0.0", + "svelte": "^4.0.0 || ^5.0.0-next.0", + "vite": "^5.0.3" } }, "node_modules/@sveltejs/package": { @@ -898,42 +1022,40 @@ } }, "node_modules/@sveltejs/vite-plugin-svelte": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-2.5.3.tgz", - "integrity": "sha512-erhNtXxE5/6xGZz/M9eXsmI7Pxa6MS7jyTy06zN3Ck++ldrppOnOlJwHHTsMC7DHDQdgUp4NAc4cDNQ9eGdB/w==", - "peer": true, + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-3.0.1.tgz", + "integrity": "sha512-CGURX6Ps+TkOovK6xV+Y2rn8JKa8ZPUHPZ/NKgCxAmgBrXReavzFl8aOSCj3kQ1xqT7yGJj53hjcV/gqwDAaWA==", "dependencies": { - "@sveltejs/vite-plugin-svelte-inspector": "^1.0.4", + "@sveltejs/vite-plugin-svelte-inspector": "^2.0.0-next.0 || ^2.0.0", "debug": "^4.3.4", "deepmerge": "^4.3.1", "kleur": "^4.1.5", - "magic-string": "^0.30.3", + "magic-string": "^0.30.5", "svelte-hmr": "^0.15.3", - "vitefu": "^0.2.4" + "vitefu": "^0.2.5" }, "engines": { - "node": "^14.18.0 || >= 16" + "node": "^18.0.0 || >=20" }, "peerDependencies": { - "svelte": "^3.54.0 || ^4.0.0 || ^5.0.0-next.0", - "vite": "^4.0.0" + "svelte": "^4.0.0 || ^5.0.0-next.0", + "vite": "^5.0.0" } }, "node_modules/@sveltejs/vite-plugin-svelte-inspector": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-1.0.4.tgz", - "integrity": "sha512-zjiuZ3yydBtwpF3bj0kQNV0YXe+iKE545QGZVTaylW3eAzFr+pJ/cwK8lZEaRp4JtaJXhD5DyWAV4AxLh6DgaQ==", - "peer": true, + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-2.0.0.tgz", + "integrity": "sha512-gjr9ZFg1BSlIpfZ4PRewigrvYmHWbDrq2uvvPB1AmTWKuM+dI1JXQSUu2pIrYLb/QncyiIGkFDFKTwJ0XqQZZg==", "dependencies": { "debug": "^4.3.4" }, "engines": { - "node": "^14.18.0 || >= 16" + "node": "^18.0.0 || >=20" }, "peerDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.2.0", - "svelte": "^3.54.0 || ^4.0.0", - "vite": "^4.0.0" + "@sveltejs/vite-plugin-svelte": "^3.0.0", + "svelte": "^4.0.0 || ^5.0.0-next.0", + "vite": "^5.0.0" } }, "node_modules/@tailwindcss/typography": { @@ -1023,23 +1145,23 @@ } }, "node_modules/@tricoteuses/explorer-tools": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@tricoteuses/explorer-tools/-/explorer-tools-0.4.3.tgz", - "integrity": "sha512-CsYKyor7mhkbO4B30fRqEfhMJXbFRF4fqxzJ66NPD1tFQk2xvIfgiDNGSoFVLkOWymOW8XaIL+/SrRDuFFdqjw==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@tricoteuses/explorer-tools/-/explorer-tools-0.5.0.tgz", + "integrity": "sha512-NEekh0sR+lWW58s6t8SeN/YyBWiI2yyywWvO7tbcwIXgqDghlfQOYx9Cgwqy/PAHifyKrCvj8SBnpuNaSsej4Q==", "dependencies": { "@iconify-icons/codicon": "^1.2.15", - "augmented-data-viewer": "^0.3.1", + "augmented-data-viewer": "^0.4.4", "iconify-icon": "^1.0.3" }, "peerDependencies": { - "@sveltejs/kit": "^1.22.6", - "svelte": "^4.1.2" + "@sveltejs/kit": "^2.0.4", + "svelte": "^4.2.8" } }, "node_modules/@types/cookie": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.5.4.tgz", - "integrity": "sha512-7z/eR6O859gyWIAjuvBWFzNURmf2oPBmJlfVWkwehU5nzIyjwBsTh7WMmEEV4JFnHuQ3ex4oyTvfKzcyJVDBNA==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==", "peer": true }, "node_modules/@types/estree": { @@ -1501,16 +1623,16 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/augmented-data-viewer": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/augmented-data-viewer/-/augmented-data-viewer-0.3.1.tgz", - "integrity": "sha512-JAVGKSob5fUJj4gkmJWUzbiJEpueUEb6GM9/Usdt9pEziMfrruruumJQRZSg24zfVduxk3t865S8dpWxjaJsdw==", + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/augmented-data-viewer/-/augmented-data-viewer-0.4.4.tgz", + "integrity": "sha512-QRmD8buw4bHFKmcZQhmBbJQq15CyFrp3kkWLmawAQm7c42Uw6oKU0TB57hVtEZDGOQJnbZfGlUrG4GcA16GFOw==", "dependencies": { "@iconify-icons/codicon": "^1.2.15", "iconify-icon": "^1.0.3" }, "peerDependencies": { - "@sveltejs/kit": "^1.21.0", - "svelte": "^4.1.2" + "@sveltejs/kit": "^2.0.4", + "svelte": "^4.2.8" } }, "node_modules/autoprefixer": { @@ -1862,9 +1984,9 @@ "dev": true }, "node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", "peer": true, "engines": { "node": ">= 0.6" @@ -2353,7 +2475,6 @@ "version": "0.19.10", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.10.tgz", "integrity": "sha512-S1Y27QGt/snkNYrRcswgRFqZjaTG5a5xM3EQo97uNBnH505pdzSNe/HLBq1v0RO7iK/ngdbhJB6mDAp0OK+iUA==", - "dev": true, "hasInstallScript": true, "bin": { "esbuild": "bin/esbuild" @@ -4751,9 +4872,9 @@ } }, "node_modules/postcss-load-config": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", - "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-5.0.2.tgz", + "integrity": "sha512-Q8QR3FYbqOKa0bnC1UQ2bFq9/ulHX5Bi34muzitMr8aDtUelO5xKeJEYC/5smE0jNE9zdB/NBnOwXKexELbRlw==", "dev": true, "funding": [ { @@ -4770,17 +4891,17 @@ "yaml": "^2.3.4" }, "engines": { - "node": ">= 14" + "node": ">= 18" }, "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" + "jiti": ">=1.21.0", + "postcss": ">=8.0.9" }, "peerDependenciesMeta": { - "postcss": { + "jiti": { "optional": true }, - "ts-node": { + "postcss": { "optional": true } } @@ -5171,17 +5292,30 @@ } }, "node_modules/rollup": { - "version": "3.29.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz", - "integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==", + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.1.tgz", + "integrity": "sha512-pgPO9DWzLoW/vIhlSoDByCzcpX92bKEorbgXuZrqxByte3JFk2xSW2JEeAcyLc9Ru9pqcNNW+Ob7ntsk2oT/Xw==", "bin": { "rollup": "dist/bin/rollup" }, "engines": { - "node": ">=14.18.0", + "node": ">=18.0.0", "npm": ">=8.0.0" }, "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.9.1", + "@rollup/rollup-android-arm64": "4.9.1", + "@rollup/rollup-darwin-arm64": "4.9.1", + "@rollup/rollup-darwin-x64": "4.9.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.9.1", + "@rollup/rollup-linux-arm64-gnu": "4.9.1", + "@rollup/rollup-linux-arm64-musl": "4.9.1", + "@rollup/rollup-linux-riscv64-gnu": "4.9.1", + "@rollup/rollup-linux-x64-gnu": "4.9.1", + "@rollup/rollup-linux-x64-musl": "4.9.1", + "@rollup/rollup-win32-arm64-msvc": "4.9.1", + "@rollup/rollup-win32-ia32-msvc": "4.9.1", + "@rollup/rollup-win32-x64-msvc": "4.9.1", "fsevents": "~2.3.2" } }, @@ -5740,7 +5874,6 @@ "version": "0.15.3", "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.15.3.tgz", "integrity": "sha512-41snaPswvSf8TJUhlkoJBekRrABDXDMdpNpT2tfHIv4JuhgvHqLMhEPGtaQn0BmbNSTkuz2Ed20DF2eHw0SmBQ==", - "peer": true, "engines": { "node": "^12.20 || ^14.13.1 || >= 16" }, @@ -5906,6 +6039,50 @@ "node": ">=10" } }, + "node_modules/tailwindcss/node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/tailwindcss/node_modules/postcss-load-config/node_modules/lilconfig": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz", + "integrity": "sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==", + "dev": true, + "engines": { + "node": ">=14" + } + }, "node_modules/tailwindcss/node_modules/postcss-selector-parser": { "version": "6.0.13", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", @@ -6105,18 +6282,6 @@ "node": ">=8" } }, - "node_modules/undici": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.26.5.tgz", - "integrity": "sha512-cSb4bPFd5qgR7qr2jYAi0hlX9n5YKK2ONKkLFkxl+v/9BvC0sOpZjBHDBSXc5lWAf5ty9oZdRXytBIHzgUcerw==", - "peer": true, - "dependencies": { - "@fastify/busboy": "^2.0.0" - }, - "engines": { - "node": ">=14.0" - } - }, "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", @@ -6187,28 +6352,28 @@ "dev": true }, "node_modules/vite": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.1.tgz", - "integrity": "sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==", + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.10.tgz", + "integrity": "sha512-2P8J7WWgmc355HUMlFrwofacvr98DAjoE52BfdbwQtyLH06XKwaL/FMnmKM2crF0iX4MpmMKoDlNCB1ok7zHCw==", "dependencies": { - "esbuild": "^0.18.10", - "postcss": "^8.4.27", - "rollup": "^3.27.1" + "esbuild": "^0.19.3", + "postcss": "^8.4.32", + "rollup": "^4.2.0" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": "^18.0.0 || >=20.0.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" }, "optionalDependencies": { - "fsevents": "~2.3.2" + "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": ">= 14", + "@types/node": "^18.0.0 || >=20.0.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", @@ -6240,377 +6405,10 @@ } } }, - "node_modules/vite/node_modules/@esbuild/android-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", - "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/android-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", - "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/android-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", - "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/darwin-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", - "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/darwin-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", - "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", - "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/freebsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", - "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", - "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", - "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", - "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-loong64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", - "cpu": [ - "loong64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-mips64el": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", - "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", - "cpu": [ - "mips64el" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-ppc64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", - "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", - "cpu": [ - "ppc64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-riscv64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", - "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", - "cpu": [ - "riscv64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-s390x": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", - "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", - "cpu": [ - "s390x" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", - "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/netbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", - "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/openbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", - "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/sunos-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", - "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/win32-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", - "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/win32-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", - "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/win32-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", - "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/esbuild": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", - "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, "node_modules/vitefu": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-0.2.5.tgz", "integrity": "sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==", - "peer": true, "peerDependencies": { "vite": "^3.0.0 || ^4.0.0 || ^5.0.0" }, diff --git a/package.json b/package.json index fb457f5..d40a8d1 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,9 @@ "exports": { "./package.json": "./package.json", ".": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" + "default": "./dist/index.js", + "svelte": "./dist/index.js", + "types": "./dist/index.d.ts" } }, "files": [ @@ -33,7 +34,6 @@ "!dist/components", "!dist/server" ], - "svelte": "./dist/index.js", "typesVersions": { ">4.0": { "index": [ @@ -43,16 +43,17 @@ }, "dependencies": { "@auditors/core": "^0.7.0", - "@tricoteuses/explorer-tools": "^0.4.3", - "fast-xml-parser": "^4.2.2", + "@tricoteuses/explorer-tools": "^0.5.0", + "fast-xml-parser": "^4.3.2", "he": "^1.2.0", "jsdom": "^23.0.1" }, "devDependencies": { "@iconify-icons/codicon": "^1.2.15", "@playwright/test": "^1.22.2", - "@sveltejs/adapter-node": "^1.2.3", + "@sveltejs/adapter-node": "^2.0.0", "@sveltejs/package": "^2.1.0", + "@sveltejs/vite-plugin-svelte": "^3.0.0", "@tailwindcss/typography": "^0.5.3", "@tricoteuses/assemblee": "^1.5.2", "@types/fs-extra": "^11.0.1", @@ -62,7 +63,7 @@ "@types/papaparse": "^5.3.7", "@typescript-eslint/eslint-plugin": "^6.1.0", "@typescript-eslint/parser": "^6.1.0", - "augmented-data-viewer": "^0.3.0", + "augmented-data-viewer": "^0.4.4", "autoprefixer": "^10.4.7", "daisyui": "^4.4.22", "dotenv": "^16.0.1", @@ -75,7 +76,7 @@ "morgan": "^1.10.0", "papaparse": "^5.3.2", "postcss": "^8.4.14", - "postcss-load-config": "^4.0.1", + "postcss-load-config": "^5.0.2", "postgres": "^3.2.4", "prettier": "^3.0.0", "prettier-plugin-svelte": "^3.0.3", @@ -87,11 +88,11 @@ "tslib": "^2.3.1", "tsx": "^4.0.0", "typescript": "^5.0.4", - "vite": "^4.0.4", + "vite": "^5.0.10", "zx": "^7.1.1" }, "peerDependencies": { - "@sveltejs/kit": "^1.21.0", - "svelte": "^4.1.2" + "@sveltejs/kit": "^2.0.4", + "svelte": "^4.2.8" } } diff --git a/src/routes/api/articles/[id]/+server.ts b/src/routes/api/articles/[id]/+server.ts index 91352f9..5198607 100644 --- a/src/routes/api/articles/[id]/+server.ts +++ b/src/routes/api/articles/[id]/+server.ts @@ -69,7 +69,7 @@ export const GET: RequestHandler = async ({ params, url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { follow, latest } = query @@ -80,7 +80,7 @@ export const GET: RequestHandler = async ({ params, url }) => { ` ).map(({ data }) => data)[0] if (article === undefined) { - throw error(404, `ARTICLE ${id} non trouvé`) + error(404, `ARTICLE ${id} non trouvé`) } if (latest) { const latestVersion = article.VERSIONS.VERSION.at(-1) diff --git a/src/routes/api/recherche/+server.ts b/src/routes/api/recherche/+server.ts index 6f48044..4f61da5 100644 --- a/src/routes/api/recherche/+server.ts +++ b/src/routes/api/recherche/+server.ts @@ -66,7 +66,7 @@ export const GET: RequestHandler = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { follow, q, latest } = query diff --git a/src/routes/api/textes/+server.ts b/src/routes/api/textes/+server.ts index b9a6497..a52343c 100644 --- a/src/routes/api/textes/+server.ts +++ b/src/routes/api/textes/+server.ts @@ -76,7 +76,7 @@ export const GET: RequestHandler = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { follow, limit, nature, offset, q } = query diff --git a/src/routes/api/textes/[id]/+server.ts b/src/routes/api/textes/[id]/+server.ts index ba70e31..b37f187 100644 --- a/src/routes/api/textes/[id]/+server.ts +++ b/src/routes/api/textes/[id]/+server.ts @@ -49,7 +49,7 @@ export const GET: RequestHandler = async ({ params, url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { follow } = query const texteVersion = ( @@ -59,7 +59,7 @@ export const GET: RequestHandler = async ({ params, url }) => { ` ).map(({ data }) => data)[0] if (texteVersion === undefined) { - throw error(404, `TEXTE_VERSION ${params.id} non trouvé`) + error(404, `TEXTE_VERSION ${params.id} non trouvé`) } const aggregator = new Aggregator(follow) diff --git a/src/routes/article/+page.server.ts b/src/routes/article/+page.server.ts index fc071f9..a41cb64 100644 --- a/src/routes/article/+page.server.ts +++ b/src/routes/article/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/article/[id]/+page.server.ts b/src/routes/article/[id]/+page.server.ts index e0828c2..c791995 100644 --- a/src/routes/article/[id]/+page.server.ts +++ b/src/routes/article/[id]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { ).map(({ data }) => data)[0] if (article === undefined) { - throw error(404, `Article ${params.id} non trouvé`) + error(404, `Article ${params.id} non trouvé`) } return { article } } diff --git a/src/routes/articles/[id]/+page.ts b/src/routes/articles/[id]/+page.ts index dbd1849..1cc1e04 100644 --- a/src/routes/articles/[id]/+page.ts +++ b/src/routes/articles/[id]/+page.ts @@ -46,7 +46,7 @@ export const load: PageLoad = async ({ fetch, url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { follow: requestedFollow } = query @@ -66,7 +66,7 @@ export const load: PageLoad = async ({ fetch, url }) => { console.error( `Error in ${url.pathname} while calling ${apiUrl}:\n${response.status} ${response.statusText}\n\n${text}`, ) - throw error(response.status, text) + error(response.status, text) } return (await response.json()) as GetArticleResult } diff --git a/src/routes/dossier_legislatif/+page.server.ts b/src/routes/dossier_legislatif/+page.server.ts index df9bf32..b3d545f 100644 --- a/src/routes/dossier_legislatif/+page.server.ts +++ b/src/routes/dossier_legislatif/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/dossier_legislatif/[id]/+page.server.ts b/src/routes/dossier_legislatif/[id]/+page.server.ts index 8e2b360..fbc4cdf 100644 --- a/src/routes/dossier_legislatif/[id]/+page.server.ts +++ b/src/routes/dossier_legislatif/[id]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { ).map(({ data }) => data)[0] if (dossierLegislatif === undefined) { - throw error(404, `Dossier législatif ${params.id} non trouvé`) + error(404, `Dossier législatif ${params.id} non trouvé`) } return { dossier_legislatif: dossierLegislatif } } diff --git a/src/routes/id/+page.server.ts b/src/routes/id/+page.server.ts index 474a81f..661a37d 100644 --- a/src/routes/id/+page.server.ts +++ b/src/routes/id/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/id/[...eli]/+page.server.ts b/src/routes/id/[...eli]/+page.server.ts index bfb0988..55a2e40 100644 --- a/src/routes/id/[...eli]/+page.server.ts +++ b/src/routes/id/[...eli]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { )[0] if (idWrapper === undefined) { - throw error(404, `ELI ${params.eli} non trouvé`) + error(404, `ELI ${params.eli} non trouvé`) } return { id: idWrapper } } diff --git a/src/routes/idcc/+page.server.ts b/src/routes/idcc/+page.server.ts index c604516..188f985 100644 --- a/src/routes/idcc/+page.server.ts +++ b/src/routes/idcc/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/idcc/[id]/+page.server.ts b/src/routes/idcc/[id]/+page.server.ts index 3524ec2..d195805 100644 --- a/src/routes/idcc/[id]/+page.server.ts +++ b/src/routes/idcc/[id]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { ).map(({ data }) => data)[0] if (idcc === undefined) { - throw error(404, `IDCC ${params.id} non trouvé`) + error(404, `IDCC ${params.id} non trouvé`) } return { idcc } } diff --git a/src/routes/jo/+page.server.ts b/src/routes/jo/+page.server.ts index 5fe9b41..5332a56 100644 --- a/src/routes/jo/+page.server.ts +++ b/src/routes/jo/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/jo/[id]/+page.server.ts b/src/routes/jo/[id]/+page.server.ts index 47972c2..58bb43c 100644 --- a/src/routes/jo/[id]/+page.server.ts +++ b/src/routes/jo/[id]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { ).map(({ data }) => data)[0] if (jo === undefined) { - throw error(404, `JO ${params.id} non trouvé`) + error(404, `JO ${params.id} non trouvé`) } return { jo } } diff --git a/src/routes/recherche/+page.ts b/src/routes/recherche/+page.ts index 3043409..d8a2b37 100644 --- a/src/routes/recherche/+page.ts +++ b/src/routes/recherche/+page.ts @@ -14,7 +14,7 @@ export const load: PageLoad = async ({ fetch, url }) => { console.error( `Error in ${url.pathname} while calling ${apiUrl}:\n${response.status} ${response.statusText}\n\n${text}`, ) - throw error(response.status, text) + error(response.status, text) } return (await response.json()) as GetRechercheResult } diff --git a/src/routes/section_ta/+page.server.ts b/src/routes/section_ta/+page.server.ts index c7a0cf8..db5aa3d 100644 --- a/src/routes/section_ta/+page.server.ts +++ b/src/routes/section_ta/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/section_ta/[id]/+page.server.ts b/src/routes/section_ta/[id]/+page.server.ts index bad9e9f..b4b075e 100644 --- a/src/routes/section_ta/[id]/+page.server.ts +++ b/src/routes/section_ta/[id]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { ).map(({ data }) => data)[0] if (sectionTa === undefined) { - throw error(404, `SECTION_TA ${params.id} non trouvé`) + error(404, `SECTION_TA ${params.id} non trouvé`) } return { section_ta: sectionTa } } diff --git a/src/routes/texte_version/+page.server.ts b/src/routes/texte_version/+page.server.ts index 91139f6..a52a19f 100644 --- a/src/routes/texte_version/+page.server.ts +++ b/src/routes/texte_version/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/texte_version/[id]/+page.server.ts b/src/routes/texte_version/[id]/+page.server.ts index 58546a1..3523869 100644 --- a/src/routes/texte_version/[id]/+page.server.ts +++ b/src/routes/texte_version/[id]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { ).map(({ data }) => data)[0] if (texteVersion === undefined) { - throw error(404, `TEXTE_VERSION ${params.id} non trouvé`) + error(404, `TEXTE_VERSION ${params.id} non trouvé`) } return { texte_version: texteVersion } } diff --git a/src/routes/textekali/+page.server.ts b/src/routes/textekali/+page.server.ts index b6d30ff..064cf12 100644 --- a/src/routes/textekali/+page.server.ts +++ b/src/routes/textekali/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/textekali/[id]/+page.server.ts b/src/routes/textekali/[id]/+page.server.ts index 5907f1d..7137ebe 100644 --- a/src/routes/textekali/[id]/+page.server.ts +++ b/src/routes/textekali/[id]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { ).map(({ data }) => data)[0] if (textekali === undefined) { - throw error(404, `TEXTEKALI ${params.id} non trouvé`) + error(404, `TEXTEKALI ${params.id} non trouvé`) } return { textekali } } diff --git a/src/routes/textelr/+page.server.ts b/src/routes/textelr/+page.server.ts index cb9a67c..abf1bb9 100644 --- a/src/routes/textelr/+page.server.ts +++ b/src/routes/textelr/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/textelr/[id]/+page.server.ts b/src/routes/textelr/[id]/+page.server.ts index d8ffe00..c6b9c58 100644 --- a/src/routes/textelr/[id]/+page.server.ts +++ b/src/routes/textelr/[id]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { ).map(({ data }) => data)[0] if (textelr === undefined) { - throw error(404, `TEXTELR ${params.id} non trouvé`) + error(404, `TEXTELR ${params.id} non trouvé`) } return { textelr: textelr } } diff --git a/src/routes/textes/+page.ts b/src/routes/textes/+page.ts index 06d3512..78f151f 100644 --- a/src/routes/textes/+page.ts +++ b/src/routes/textes/+page.ts @@ -14,7 +14,7 @@ export const load: PageLoad = async ({ fetch, url }) => { console.error( `Error in ${url.pathname} while calling ${apiUrl}:\n${response.status} ${response.statusText}\n\n${text}`, ) - throw error(response.status, text) + error(response.status, text) } return (await response.json()) as ListTextesResult } diff --git a/src/routes/textes/[id]/+page.ts b/src/routes/textes/[id]/+page.ts index ecb7344..0a466d8 100644 --- a/src/routes/textes/[id]/+page.ts +++ b/src/routes/textes/[id]/+page.ts @@ -46,7 +46,7 @@ export const load: PageLoad = async ({ fetch, url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { follow: requestedFollow } = query @@ -73,7 +73,7 @@ export const load: PageLoad = async ({ fetch, url }) => { console.error( `Error in ${url.pathname} while calling ${apiUrl}:\n${response.status} ${response.statusText}\n\n${text}`, ) - throw error(response.status, text) + error(response.status, text) } return (await response.json()) as GetTexteResult } diff --git a/src/routes/versions/+page.server.ts b/src/routes/versions/+page.server.ts index cde46c5..7c37a08 100644 --- a/src/routes/versions/+page.server.ts +++ b/src/routes/versions/+page.server.ts @@ -44,7 +44,7 @@ export const load: PageServerLoad = async ({ url }) => { 2, )}\n\nError:\n${JSON.stringify(queryError, null, 2)}`, ) - throw error(400, JSON.stringify(queryError, null, 2)) + error(400, JSON.stringify(queryError, null, 2)) } const { limit, offset } = query diff --git a/src/routes/versions/[...eli]/+page.server.ts b/src/routes/versions/[...eli]/+page.server.ts index 4247ce9..c36fa1c 100644 --- a/src/routes/versions/[...eli]/+page.server.ts +++ b/src/routes/versions/[...eli]/+page.server.ts @@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ params }) => { )[0] if (versionsWrapper === undefined) { - throw error(404, `Versions ${params.eli} non trouvé`) + error(404, `Versions ${params.eli} non trouvé`) } return { versions: versionsWrapper } } diff --git a/svelte.config.js b/svelte.config.js index bac43ad..1690634 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,5 @@ import adapter from "@sveltejs/adapter-node" -import { vitePreprocess } from "@sveltejs/kit/vite" +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte" /** @type {import('@sveltejs/kit').Config} */ const config = { diff --git a/tsconfig.json b/tsconfig.json index e45aa09..794b95b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,11 +8,7 @@ "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, - "strict": true, - "paths": { - "$lib": ["./src/lib"], - "$lib/*": ["./src/lib/*"] - } + "strict": true } // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias //