diff --git a/bun.lockb b/bun.lockb index 6b4c8872..cf9e67ca 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index e91aca99..3f8321fc 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "pre-commit": "bun lint", "test": "vitest run" }, - "packageManager": "bun@1.1.18", + "packageManager": "bun@1.1.43", "type": "module", "//devDependencies": { "@solidjs/testing-library": "test solid components (only used for App.jsx component)", @@ -48,30 +48,30 @@ }, "devDependencies": { "@solidjs/testing-library": "^0.8.10", - "@stylistic/eslint-plugin": "^2.1.0", + "@stylistic/eslint-plugin": "^2.12.1", "@types/eslint__js": "^8.42.3", "@types/mapbox__polyline": "^1.0.5", - "@typescript-eslint/eslint-plugin": "^7.13.0", - "@typescript-eslint/parser": "^7.13.0", + "@typescript-eslint/eslint-plugin": "^8.19.1", + "@typescript-eslint/parser": "^8.19.1", "@vitest/browser": "^2.1.8", "@vitest/eslint-plugin": "^1.1.24", - "autoprefixer": "^10.4.19", - "eslint": "^9.4.0", + "autoprefixer": "^10.4.20", + "eslint": "^9.17.0", "eslint-plugin-solid": "^0.14.5", - "eslint-plugin-tailwindcss": "^3.17.3", - "globals": "^15.4.0", - "husky": "^9.0.11", + "eslint-plugin-tailwindcss": "^3.17.5", + "globals": "^15.14.0", + "husky": "^9.1.7", "jsdom": "^26.0.0", - "playwright": "^1.44.1", - "postcss": "^8.4.38", - "solid-devtools": "^0.30.1", - "tailwindcss": "^3.4.4", - "typescript": "^5.4.5", - "typescript-eslint": "^7.13.0", + "playwright": "^1.49.1", + "postcss": "^8.4.49", + "solid-devtools": "^0.33.0", + "tailwindcss": "^3.4.17", + "typescript": "^5.7.3", + "typescript-eslint": "^8.19.1", "vite": "^5.2.13", - "vite-plugin-solid": "^2.10.2", + "vite-plugin-solid": "^2.11.0", "vitest": "^2.1.8", - "wrangler": "^3.60.2" + "wrangler": "^3.101.0" }, "//dependencies": { "@mapbox/polyline": "display series of map coordinates as a line", @@ -84,12 +84,12 @@ "dependencies": { "@mapbox/polyline": "^1.2.1", "@solid-primitives/state-machine": "^0.0.3", - "@solidjs/router": "^0.13.5", - "clsx": "^1.2.1", - "dayjs": "^1.11.11", - "hls.js": "^1.5.13", + "@solidjs/router": "^0.15.2", + "clsx": "^2.1.1", + "dayjs": "^1.11.13", + "hls.js": "^1.5.18", "qr-scanner": "^1.4.2", - "solid-js": "^1.8.17" + "solid-js": "^1.9.4" }, "engines": { "node": ">=20.11.0" diff --git a/src/components/RouteStaticMap.tsx b/src/components/RouteStaticMap.tsx index d8e83d5d..c7b81bf3 100644 --- a/src/components/RouteStaticMap.tsx +++ b/src/components/RouteStaticMap.tsx @@ -17,7 +17,7 @@ const loadImage = (url: string | undefined): Promise => { const image = new Image() image.src = url image.onload = () => resolve(url) - image.onerror = (error) => reject(error) + image.onerror = (error) => reject(new Error('Failed to load image', { cause: error })) }) }