diff --git a/package.json b/package.json index 3f3d1b5f..fc213632 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "@sveltejs/kit": "^2.8.1", "@sveltejs/vite-plugin-svelte": "^4.0.0", "@types/eslint": "^9.6.1", + "@types/node": "^22.9.0", "autoprefixer": "^10.4.20", "eslint": "^9.14.0", "eslint-config-prettier": "^9.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef80f605..6a657168 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,25 +10,28 @@ importers: devDependencies: '@hearchco/sveltekit-adapter-aws': specifier: npm:@jsr/hearchco__sveltekit-adapter-aws@^0.1.12 - version: '@jsr/hearchco__sveltekit-adapter-aws@0.1.12(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11)' + version: '@jsr/hearchco__sveltekit-adapter-aws@0.1.12(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0))' '@playwright/test': specifier: ^1.48.2 version: 1.48.2 '@sveltejs/adapter-auto': specifier: ^3.3.1 - version: 3.3.1(@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11)) + version: 3.3.1(@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0))) '@sveltejs/adapter-node': specifier: ^5.2.9 - version: 5.2.9(@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11)) + version: 5.2.9(@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0))) '@sveltejs/kit': specifier: ^2.8.1 - version: 2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11) + version: 2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)) '@sveltejs/vite-plugin-svelte': specifier: ^4.0.0 - version: 4.0.0(svelte@5.2.0)(vite@5.4.11) + version: 4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)) '@types/eslint': specifier: ^9.6.1 version: 9.6.1 + '@types/node': + specifier: ^22.9.0 + version: 22.9.0 autoprefixer: specifier: ^10.4.20 version: 10.4.20(postcss@8.4.49) @@ -67,10 +70,10 @@ importers: version: 5.6.3 vite: specifier: ^5.4.11 - version: 5.4.11 + version: 5.4.11(@types/node@22.9.0) vitest: specifier: ^2.1.5 - version: 2.1.5 + version: 2.1.5(@types/node@22.9.0) packages: @@ -632,6 +635,9 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@types/node@22.9.0': + resolution: {integrity: sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==} + '@types/resolve@1.20.2': resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} @@ -1587,6 +1593,9 @@ packages: engines: {node: '>=14.17'} hasBin: true + undici-types@6.19.8: + resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} + update-browserslist-db@1.1.0: resolution: {integrity: sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==} hasBin: true @@ -1934,9 +1943,9 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@jsr/hearchco__sveltekit-adapter-aws@0.1.12(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11)': + '@jsr/hearchco__sveltekit-adapter-aws@0.1.12(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0))': dependencies: - '@sveltejs/kit': 2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11) + '@sveltejs/kit': 2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)) esbuild: 0.23.0 transitivePeerDependencies: - '@sveltejs/vite-plugin-svelte' @@ -2048,22 +2057,22 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.24.0': optional: true - '@sveltejs/adapter-auto@3.3.1(@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11))': + '@sveltejs/adapter-auto@3.3.1(@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))': dependencies: - '@sveltejs/kit': 2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11) + '@sveltejs/kit': 2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)) import-meta-resolve: 4.1.0 - '@sveltejs/adapter-node@5.2.9(@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11))': + '@sveltejs/adapter-node@5.2.9(@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))': dependencies: '@rollup/plugin-commonjs': 28.0.1(rollup@4.24.0) '@rollup/plugin-json': 6.1.0(rollup@4.24.0) '@rollup/plugin-node-resolve': 15.3.0(rollup@4.24.0) - '@sveltejs/kit': 2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11) + '@sveltejs/kit': 2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)) rollup: 4.24.0 - '@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11)': + '@sveltejs/kit@2.8.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.2.0)(vite@5.4.11) + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.1.1 @@ -2077,27 +2086,27 @@ snapshots: sirv: 3.0.0 svelte: 5.2.0 tiny-glob: 0.2.9 - vite: 5.4.11 + vite: 5.4.11(@types/node@22.9.0) - '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11)': + '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.2.0)(vite@5.4.11) + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)) debug: 4.3.7 svelte: 5.2.0 - vite: 5.4.11 + vite: 5.4.11(@types/node@22.9.0) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11)': + '@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11))(svelte@5.2.0)(vite@5.4.11) + '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)))(svelte@5.2.0)(vite@5.4.11(@types/node@22.9.0)) debug: 4.3.7 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.12 svelte: 5.2.0 - vite: 5.4.11 - vitefu: 1.0.3(vite@5.4.11) + vite: 5.4.11(@types/node@22.9.0) + vitefu: 1.0.3(vite@5.4.11(@types/node@22.9.0)) transitivePeerDependencies: - supports-color @@ -2114,6 +2123,10 @@ snapshots: '@types/json-schema@7.0.15': {} + '@types/node@22.9.0': + dependencies: + undici-types: 6.19.8 + '@types/resolve@1.20.2': {} '@vitest/expect@2.1.5': @@ -2123,13 +2136,13 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.5(vite@5.4.11)': + '@vitest/mocker@2.1.5(vite@5.4.11(@types/node@22.9.0))': dependencies: '@vitest/spy': 2.1.5 estree-walker: 3.0.3 magic-string: 0.30.12 optionalDependencies: - vite: 5.4.11 + vite: 5.4.11(@types/node@22.9.0) '@vitest/pretty-format@2.1.5': dependencies: @@ -3072,6 +3085,8 @@ snapshots: typescript@5.6.3: {} + undici-types@6.19.8: {} + update-browserslist-db@1.1.0(browserslist@4.23.3): dependencies: browserslist: 4.23.3 @@ -3084,13 +3099,13 @@ snapshots: util-deprecate@1.0.2: {} - vite-node@2.1.5: + vite-node@2.1.5(@types/node@22.9.0): dependencies: cac: 6.7.14 debug: 4.3.7 es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 5.4.11 + vite: 5.4.11(@types/node@22.9.0) transitivePeerDependencies: - '@types/node' - less @@ -3102,22 +3117,23 @@ snapshots: - supports-color - terser - vite@5.4.11: + vite@5.4.11(@types/node@22.9.0): dependencies: esbuild: 0.21.5 postcss: 8.4.49 rollup: 4.24.0 optionalDependencies: + '@types/node': 22.9.0 fsevents: 2.3.3 - vitefu@1.0.3(vite@5.4.11): + vitefu@1.0.3(vite@5.4.11(@types/node@22.9.0)): optionalDependencies: - vite: 5.4.11 + vite: 5.4.11(@types/node@22.9.0) - vitest@2.1.5: + vitest@2.1.5(@types/node@22.9.0): dependencies: '@vitest/expect': 2.1.5 - '@vitest/mocker': 2.1.5(vite@5.4.11) + '@vitest/mocker': 2.1.5(vite@5.4.11(@types/node@22.9.0)) '@vitest/pretty-format': 2.1.5 '@vitest/runner': 2.1.5 '@vitest/snapshot': 2.1.5 @@ -3133,9 +3149,11 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.1 tinyrainbow: 1.2.0 - vite: 5.4.11 - vite-node: 2.1.5 + vite: 5.4.11(@types/node@22.9.0) + vite-node: 2.1.5(@types/node@22.9.0) why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 22.9.0 transitivePeerDependencies: - less - lightningcss diff --git a/src/lib/components/gadgets/timer/main.svelte b/src/lib/components/gadgets/timer/main.svelte index 536c4eb4..4b065276 100644 --- a/src/lib/components/gadgets/timer/main.svelte +++ b/src/lib/components/gadgets/timer/main.svelte @@ -80,7 +80,7 @@ } }); - /** @type {number|undefined} */ + /** @type {NodeJS.Timeout|undefined} */ let interval = $state(undefined); function toggleState() { if (beeping) { diff --git a/src/lib/components/results/general/main.svelte b/src/lib/components/results/general/main.svelte index 879c3488..81f1dbe1 100644 --- a/src/lib/components/results/general/main.svelte +++ b/src/lib/components/results/general/main.svelte @@ -9,7 +9,7 @@ * @property {string} query * @property {string} category * @property {number} currentPage - * @property {ResultType[]} results + * @property {WebResultType[]} results */ /** @type {Props} */ diff --git a/src/lib/components/results/general/single.svelte b/src/lib/components/results/general/single.svelte index 56e8dfd7..b627cd33 100644 --- a/src/lib/components/results/general/single.svelte +++ b/src/lib/components/results/general/single.svelte @@ -4,7 +4,7 @@ /** * @typedef {object} Props - * @property {ResultType} result + * @property {WebResultType} result */ /** @type {Props} */ diff --git a/src/lib/components/results/images/main.svelte b/src/lib/components/results/images/main.svelte index 737bdb5a..a8a0fc93 100644 --- a/src/lib/components/results/images/main.svelte +++ b/src/lib/components/results/images/main.svelte @@ -10,8 +10,8 @@ * @property {string} query * @property {string} category * @property {number} currentPage - * @property {ResultType[]} results - * @property {ResultType | undefined} imagePreview + * @property {ImagesResultType[]} results + * @property {ImagesResultType | undefined} imagePreview */ /** @type {Props} */ diff --git a/src/lib/components/results/images/preview.svelte b/src/lib/components/results/images/preview.svelte index 9b18029f..b85354e4 100644 --- a/src/lib/components/results/images/preview.svelte +++ b/src/lib/components/results/images/preview.svelte @@ -3,8 +3,8 @@ /** * @typedef {object} Props - * @property {ResultType} result - * @property {ResultType | undefined} imagePreview + * @property {ImagesResultType} result + * @property {ImagesResultType | undefined} imagePreview */ /** @type {Props} */ diff --git a/src/lib/components/results/images/single.svelte b/src/lib/components/results/images/single.svelte index 733d5b3d..a38c4d1a 100644 --- a/src/lib/components/results/images/single.svelte +++ b/src/lib/components/results/images/single.svelte @@ -3,8 +3,8 @@ /** * @typedef {object} Props - * @property {ResultType} result - * @property {ResultType | undefined} imagePreview + * @property {ImagesResultType} result + * @property {ImagesResultType | undefined} imagePreview */ /** @type {Props} */ diff --git a/src/lib/components/results/infiniteloading/main.svelte b/src/lib/components/results/infiniteloading/main.svelte index dd0c39a5..eff9dace 100644 --- a/src/lib/components/results/infiniteloading/main.svelte +++ b/src/lib/components/results/infiniteloading/main.svelte @@ -1,14 +1,19 @@ diff --git a/src/lib/components/searchbox/main.svelte b/src/lib/components/searchbox/main.svelte index 6cf1b1e9..3ed72466 100644 --- a/src/lib/components/searchbox/main.svelte +++ b/src/lib/components/searchbox/main.svelte @@ -1,7 +1,7 @@