From c5818abcc9695ab5269b25ad6da0e4944c5393d3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 27 Aug 2023 20:06:41 +0000 Subject: [PATCH 1/6] chore(deps): update dependency typescript to ~5.2.0 --- package.json | 2 +- pnpm-lock.yaml | 64 +++++++++++++++++++++++++------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 454e53c..38f7ece 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "svelte-fa": "^3.0.4", "svelte-preprocess": "^5.0.4", "tslib": "^2.6.0", - "typescript": "~5.1.6", + "typescript": "~5.2.0", "vite": "^4.4.4" }, "type": "module" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 17bdd14..d113838 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,10 +31,10 @@ devDependencies: version: 20.4.2 '@typescript-eslint/eslint-plugin': specifier: ^6.0.0 - version: 6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.45.0)(typescript@5.1.6) + version: 6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.45.0)(typescript@5.2.2) '@typescript-eslint/parser': specifier: ^6.0.0 - version: 6.0.0(eslint@8.45.0)(typescript@5.1.6) + version: 6.0.0(eslint@8.45.0)(typescript@5.2.2) '@watergis/maplibre-center-icon': specifier: ^2.0.1 version: 2.0.1(svelte@4.0.5) @@ -118,13 +118,13 @@ devDependencies: version: 3.0.4 svelte-preprocess: specifier: ^5.0.4 - version: 5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.1.6) + version: 5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.2.2) tslib: specifier: ^2.6.0 version: 2.6.0 typescript: - specifier: ~5.1.6 - version: 5.1.6 + specifier: ~5.2.0 + version: 5.2.2 vite: specifier: ^4.4.4 version: 4.4.4(@types/node@20.4.2)(sass@1.63.6) @@ -732,7 +732,7 @@ packages: '@types/geojson': 7946.0.10 dev: true - /@typescript-eslint/eslint-plugin@6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.45.0)(typescript@5.1.6): + /@typescript-eslint/eslint-plugin@6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.45.0)(typescript@5.2.2): resolution: {integrity: sha512-xuv6ghKGoiq856Bww/yVYnXGsKa588kY3M0XK7uUW/3fJNNULKRfZfSBkMTSpqGG/8ZCXCadfh8G/z/B4aqS/A==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -744,10 +744,10 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.6.2 - '@typescript-eslint/parser': 6.0.0(eslint@8.45.0)(typescript@5.1.6) + '@typescript-eslint/parser': 6.0.0(eslint@8.45.0)(typescript@5.2.2) '@typescript-eslint/scope-manager': 6.0.0 - '@typescript-eslint/type-utils': 6.0.0(eslint@8.45.0)(typescript@5.1.6) - '@typescript-eslint/utils': 6.0.0(eslint@8.45.0)(typescript@5.1.6) + '@typescript-eslint/type-utils': 6.0.0(eslint@8.45.0)(typescript@5.2.2) + '@typescript-eslint/utils': 6.0.0(eslint@8.45.0)(typescript@5.2.2) '@typescript-eslint/visitor-keys': 6.0.0 debug: 4.3.4 eslint: 8.45.0 @@ -757,13 +757,13 @@ packages: natural-compare: 1.4.0 natural-compare-lite: 1.4.0 semver: 7.5.4 - ts-api-utils: 1.0.2(typescript@5.1.6) - typescript: 5.1.6 + ts-api-utils: 1.0.2(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@6.0.0(eslint@8.45.0)(typescript@5.1.6): + /@typescript-eslint/parser@6.0.0(eslint@8.45.0)(typescript@5.2.2): resolution: {integrity: sha512-TNaufYSPrr1U8n+3xN+Yp9g31vQDJqhXzzPSHfQDLcaO4tU+mCfODPxCwf4H530zo7aUBE3QIdxCXamEnG04Tg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -775,11 +775,11 @@ packages: dependencies: '@typescript-eslint/scope-manager': 6.0.0 '@typescript-eslint/types': 6.0.0 - '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.1.6) + '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.2.2) '@typescript-eslint/visitor-keys': 6.0.0 debug: 4.3.4 eslint: 8.45.0 - typescript: 5.1.6 + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true @@ -792,7 +792,7 @@ packages: '@typescript-eslint/visitor-keys': 6.0.0 dev: true - /@typescript-eslint/type-utils@6.0.0(eslint@8.45.0)(typescript@5.1.6): + /@typescript-eslint/type-utils@6.0.0(eslint@8.45.0)(typescript@5.2.2): resolution: {integrity: sha512-ah6LJvLgkoZ/pyJ9GAdFkzeuMZ8goV6BH7eC9FPmojrnX9yNCIsfjB+zYcnex28YO3RFvBkV6rMV6WpIqkPvoQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -802,12 +802,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.1.6) - '@typescript-eslint/utils': 6.0.0(eslint@8.45.0)(typescript@5.1.6) + '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.2.2) + '@typescript-eslint/utils': 6.0.0(eslint@8.45.0)(typescript@5.2.2) debug: 4.3.4 eslint: 8.45.0 - ts-api-utils: 1.0.2(typescript@5.1.6) - typescript: 5.1.6 + ts-api-utils: 1.0.2(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true @@ -817,7 +817,7 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@6.0.0(typescript@5.1.6): + /@typescript-eslint/typescript-estree@6.0.0(typescript@5.2.2): resolution: {integrity: sha512-2zq4O7P6YCQADfmJ5OTDQTP3ktajnXIRrYAtHM9ofto/CJZV3QfJ89GEaM2BNGeSr1KgmBuLhEkz5FBkS2RQhQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -832,13 +832,13 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.4 - ts-api-utils: 1.0.2(typescript@5.1.6) - typescript: 5.1.6 + ts-api-utils: 1.0.2(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@6.0.0(eslint@8.45.0)(typescript@5.1.6): + /@typescript-eslint/utils@6.0.0(eslint@8.45.0)(typescript@5.2.2): resolution: {integrity: sha512-SOr6l4NB6HE4H/ktz0JVVWNXqCJTOo/mHnvIte1ZhBQ0Cvd04x5uKZa3zT6tiodL06zf5xxdK8COiDvPnQ27JQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -849,7 +849,7 @@ packages: '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 6.0.0 '@typescript-eslint/types': 6.0.0 - '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.1.6) + '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.2.2) eslint: 8.45.0 eslint-scope: 5.1.1 semver: 7.5.4 @@ -2739,8 +2739,8 @@ packages: picocolors: 1.0.0 sade: 1.8.1 svelte: 4.0.5 - svelte-preprocess: 5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.1.6) - typescript: 5.1.6 + svelte-preprocess: 5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - '@babel/core' - coffeescript @@ -2801,7 +2801,7 @@ packages: svelte: 4.0.5 dev: true - /svelte-preprocess@5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.1.6): + /svelte-preprocess@5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.2.2): resolution: {integrity: sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==} engines: {node: '>= 14.10.0'} requiresBuild: true @@ -2847,7 +2847,7 @@ packages: sorcery: 0.11.0 strip-indent: 3.0.0 svelte: 4.0.5 - typescript: 5.1.6 + typescript: 5.2.2 dev: true /svelte-range-slider-pips@2.2.2: @@ -2924,13 +2924,13 @@ packages: engines: {node: '>=6'} dev: true - /ts-api-utils@1.0.2(typescript@5.1.6): + /ts-api-utils@1.0.2(typescript@5.2.2): resolution: {integrity: sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==} engines: {node: '>=16.13.0'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.1.6 + typescript: 5.2.2 dev: true /tslib@2.6.0: @@ -2949,8 +2949,8 @@ packages: engines: {node: '>=10'} dev: true - /typescript@5.1.6: - resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==} + /typescript@5.2.2: + resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} hasBin: true dev: true From 3072e58faf73fe47cc1eb2e3c7958786588fdde5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 07:32:39 +0100 Subject: [PATCH 2/6] chore(deps): update actions/checkout action to v4 (#108) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aed9cd8..9ac8626 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: node-version: [18.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # pnpm setup # refer to https://github.com/pnpm/action-setup From 02620d1158cbab30a39adf5ba8ba63ce7edf62c4 Mon Sep 17 00:00:00 2001 From: Jin Igarashi Date: Thu, 28 Sep 2023 21:54:22 +0100 Subject: [PATCH 3/6] chore: update plugins and fixed logo position (#109) --- package.json | 10 ++++----- pnpm-lock.yaml | 28 ++++++++----------------- src/lib/components/DrawerContent.svelte | 24 +++++++-------------- src/routes/+page.svelte | 14 +++++++++++++ 4 files changed, 35 insertions(+), 41 deletions(-) diff --git a/package.json b/package.json index 38f7ece..489d031 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,12 @@ "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --ignore-path .prettierignore --check --plugin-search-dir=. . && eslint --ignore-path .prettierignore .", - "format": "prettier --ignore-path .prettierignore --write --plugin-search-dir=. .", + "lint": "prettier --ignore-path .prettierignore --check . && eslint --ignore-path .prettierignore .", + "format": "prettier --ignore-path .prettierignore --write .", "preinstall": "npx only-allow pnpm" }, "devDependencies": { "@evilmartians/lefthook": "^1.4.5", - "@fortawesome/free-solid-svg-icons": "^6.4.0", "@maplibre/maplibre-gl-geocoder": "github:maplibre/maplibre-gl-geocoder", "@popperjs/core": "^2.11.8", "@sveltejs/adapter-static": "^2.0.2", @@ -27,11 +26,11 @@ "@watergis/maplibre-gl-area-switcher": "^1.0.0", "@watergis/svelte-collapsible-panel": "^1.0.1", "@watergis/svelte-maplibre-attribute-popup": "^2.0.2", - "@watergis/svelte-maplibre-attribute-table": "^1.0.5", + "@watergis/svelte-maplibre-attribute-table": "^1.1.1", "@watergis/svelte-maplibre-export": "^2.0.2", "@watergis/svelte-maplibre-legend": "^2.0.2", "@watergis/svelte-maplibre-measure": "^2.0.1", - "@watergis/svelte-maplibre-menu": "^2.0.5", + "@watergis/svelte-maplibre-menu": "^2.1.1", "@watergis/svelte-maplibre-share": "^2.0.2", "@watergis/svelte-maplibre-style-switcher": "^2.0.1", "@watergis/svelte-maplibre-valhalla": "^2.0.1", @@ -49,7 +48,6 @@ "sass": "^1.63.6", "svelte": "^4.0.5", "svelte-check": "^3.4.6", - "svelte-fa": "^3.0.4", "svelte-preprocess": "^5.0.4", "tslib": "^2.6.0", "typescript": "~5.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d113838..e453c7c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,6 @@ devDependencies: '@evilmartians/lefthook': specifier: ^1.4.5 version: 1.4.5 - '@fortawesome/free-solid-svg-icons': - specifier: ^6.4.0 - version: 6.4.0 '@maplibre/maplibre-gl-geocoder': specifier: github:maplibre/maplibre-gl-geocoder version: github.com/maplibre/maplibre-gl-geocoder/9a9f184014cdbe0722728dffd8a6d317026449ad(maplibre-gl@3.2.1) @@ -48,8 +45,8 @@ devDependencies: specifier: ^2.0.2 version: 2.0.2(svelte@4.0.5) '@watergis/svelte-maplibre-attribute-table': - specifier: ^1.0.5 - version: 1.0.5(svelte@4.0.5) + specifier: ^1.1.1 + version: 1.1.1(svelte@4.0.5) '@watergis/svelte-maplibre-export': specifier: ^2.0.2 version: 2.0.2(svelte@4.0.5) @@ -60,8 +57,8 @@ devDependencies: specifier: ^2.0.1 version: 2.0.1(svelte@4.0.5) '@watergis/svelte-maplibre-menu': - specifier: ^2.0.5 - version: 2.0.5(svelte@4.0.5) + specifier: ^2.1.1 + version: 2.1.1(svelte@4.0.5) '@watergis/svelte-maplibre-share': specifier: ^2.0.2 version: 2.0.2(svelte@4.0.5) @@ -113,9 +110,6 @@ devDependencies: svelte-check: specifier: ^3.4.6 version: 3.4.6(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5) - svelte-fa: - specifier: ^3.0.4 - version: 3.0.4 svelte-preprocess: specifier: ^5.0.4 version: 5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.2.2) @@ -915,17 +909,15 @@ packages: svelte: 4.0.5 dev: true - /@watergis/svelte-maplibre-attribute-table@1.0.5(svelte@4.0.5): - resolution: {integrity: sha512-ZO01HZFg4Z4oi0gSrINFHxtExusFYjzLuO/H5d4EOJd3FOGEkuYAPJkI/l3Hno5BPUKeZGQFWnWHe0AykJclMw==} + /@watergis/svelte-maplibre-attribute-table@1.1.1(svelte@4.0.5): + resolution: {integrity: sha512-HYFhs289T2eMbYCH9IkYKd2tu4LP0O/EEwQnI8P1f2A7tQ8jIAxmVDOnoNptACxTp8fcd3aoGfcleQKW0TELUw==} peerDependencies: svelte: ^4.0.0 dependencies: - '@fortawesome/free-solid-svg-icons': 6.4.0 '@vincjo/datatables': 1.12.3(svelte@4.0.5) - '@watergis/svelte-maplibre-menu': 2.0.5(svelte@4.0.5) + '@watergis/svelte-maplibre-menu': 2.1.1(svelte@4.0.5) maplibre-gl: 3.2.1 svelte: 4.0.5 - svelte-fa: 3.0.4 dev: true /@watergis/svelte-maplibre-export@2.0.2(svelte@4.0.5): @@ -980,16 +972,14 @@ packages: - debug dev: true - /@watergis/svelte-maplibre-menu@2.0.5(svelte@4.0.5): - resolution: {integrity: sha512-/9ZtI+YQDswei7tf678AmEDlM34l82idGerQHh6F/CmckrS2JLhq6Lyc06Rq29fVx8t2RJ4igPPALI8F3Yizlw==} + /@watergis/svelte-maplibre-menu@2.1.1(svelte@4.0.5): + resolution: {integrity: sha512-tQQ//lmzBCeyhCXEkv3gK+OSrQ+dzsH/xQUCo5pfGyToCys07yjBpPLxDH2sYGUAKFYtcw3J4pnkj8LRZxMEqA==} peerDependencies: svelte: ^4.0.0 dependencies: - '@fortawesome/free-solid-svg-icons': 6.4.0 '@geoffcox/svelte-splitter': 1.0.1 maplibre-gl: 3.2.1 svelte: 4.0.5 - svelte-fa: 3.0.4 dev: true /@watergis/svelte-maplibre-share@2.0.2(svelte@4.0.5): diff --git a/src/lib/components/DrawerContent.svelte b/src/lib/components/DrawerContent.svelte index 97da8d3..41de099 100644 --- a/src/lib/components/DrawerContent.svelte +++ b/src/lib/components/DrawerContent.svelte @@ -1,6 +1,4 @@ + + + + + + From 4e446ef556857e0d3cd56988e6fde2bfb6d370db Mon Sep 17 00:00:00 2001 From: Jin Igarashi Date: Thu, 28 Sep 2023 22:31:33 +0100 Subject: [PATCH 4/6] chore: pnpm update (#110) --- package.json | 38 ++-- pnpm-lock.yaml | 532 ++++++++++++++++--------------------------------- 2 files changed, 185 insertions(+), 385 deletions(-) diff --git a/package.json b/package.json index 489d031..d3e11ff 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.1", "scripts": { "dev": "vite dev", - "build": "rimraf build && vite build", + "build": "vite build", "package": "svelte-kit package", "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", @@ -13,15 +13,13 @@ "preinstall": "npx only-allow pnpm" }, "devDependencies": { - "@evilmartians/lefthook": "^1.4.5", + "@evilmartians/lefthook": "^1.5.0", "@maplibre/maplibre-gl-geocoder": "github:maplibre/maplibre-gl-geocoder", "@popperjs/core": "^2.11.8", - "@sveltejs/adapter-static": "^2.0.2", - "@sveltejs/kit": "^1.22.3", - "@types/events": "^3.0.0", - "@types/node": "^20.4.2", - "@typescript-eslint/eslint-plugin": "^6.0.0", - "@typescript-eslint/parser": "^6.0.0", + "@sveltejs/adapter-static": "^2.0.3", + "@sveltejs/kit": "^1.25.1", + "@typescript-eslint/eslint-plugin": "^6.7.3", + "@typescript-eslint/parser": "^6.7.3", "@watergis/maplibre-center-icon": "^2.0.1", "@watergis/maplibre-gl-area-switcher": "^1.0.0", "@watergis/svelte-collapsible-panel": "^1.0.1", @@ -36,22 +34,20 @@ "@watergis/svelte-maplibre-valhalla": "^2.0.1", "buffer": "^6.0.3", "bulma": "^0.9.4", - "eslint": "^8.45.0", + "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", - "eslint-plugin-svelte": "^2.32.2", - "events": "^3.3.0", - "maplibre-gl": "^3.2.1", - "pmtiles": "2.10.0", - "prettier": "^3.0.0", - "prettier-plugin-svelte": "^3.0.0", - "rimraf": "^5.0.1", - "sass": "^1.63.6", + "eslint-plugin-svelte": "^2.33.2", + "maplibre-gl": "^3.3.1", + "pmtiles": "2.11.0", + "prettier": "^3.0.3", + "prettier-plugin-svelte": "^3.0.3", + "sass": "^1.68.0", "svelte": "^4.0.5", - "svelte-check": "^3.4.6", + "svelte-check": "^3.5.2", "svelte-preprocess": "^5.0.4", - "tslib": "^2.6.0", - "typescript": "~5.2.0", - "vite": "^4.4.4" + "tslib": "^2.6.2", + "typescript": "~5.2.2", + "vite": "^4.4.9" }, "type": "module" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e453c7c..8db5944 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,32 +6,26 @@ settings: devDependencies: '@evilmartians/lefthook': - specifier: ^1.4.5 - version: 1.4.5 + specifier: ^1.5.0 + version: 1.5.0 '@maplibre/maplibre-gl-geocoder': specifier: github:maplibre/maplibre-gl-geocoder - version: github.com/maplibre/maplibre-gl-geocoder/9a9f184014cdbe0722728dffd8a6d317026449ad(maplibre-gl@3.2.1) + version: github.com/maplibre/maplibre-gl-geocoder/9a9f184014cdbe0722728dffd8a6d317026449ad(maplibre-gl@3.3.1) '@popperjs/core': specifier: ^2.11.8 version: 2.11.8 '@sveltejs/adapter-static': - specifier: ^2.0.2 - version: 2.0.2(@sveltejs/kit@1.22.3) + specifier: ^2.0.3 + version: 2.0.3(@sveltejs/kit@1.25.1) '@sveltejs/kit': - specifier: ^1.22.3 - version: 1.22.3(svelte@4.0.5)(vite@4.4.4) - '@types/events': - specifier: ^3.0.0 - version: 3.0.0 - '@types/node': - specifier: ^20.4.2 - version: 20.4.2 + specifier: ^1.25.1 + version: 1.25.1(svelte@4.0.5)(vite@4.4.9) '@typescript-eslint/eslint-plugin': - specifier: ^6.0.0 - version: 6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.45.0)(typescript@5.2.2) + specifier: ^6.7.3 + version: 6.7.3(@typescript-eslint/parser@6.7.3)(eslint@8.50.0)(typescript@5.2.2) '@typescript-eslint/parser': - specifier: ^6.0.0 - version: 6.0.0(eslint@8.45.0)(typescript@5.2.2) + specifier: ^6.7.3 + version: 6.7.3(eslint@8.50.0)(typescript@5.2.2) '@watergis/maplibre-center-icon': specifier: ^2.0.1 version: 2.0.1(svelte@4.0.5) @@ -75,53 +69,47 @@ devDependencies: specifier: ^0.9.4 version: 0.9.4 eslint: - specifier: ^8.45.0 - version: 8.45.0 + specifier: ^8.50.0 + version: 8.50.0 eslint-config-prettier: specifier: ^9.0.0 - version: 9.0.0(eslint@8.45.0) + version: 9.0.0(eslint@8.50.0) eslint-plugin-svelte: - specifier: ^2.32.2 - version: 2.32.2(eslint@8.45.0)(svelte@4.0.5) - events: - specifier: ^3.3.0 - version: 3.3.0 + specifier: ^2.33.2 + version: 2.33.2(eslint@8.50.0)(svelte@4.0.5) maplibre-gl: - specifier: ^3.2.1 - version: 3.2.1 + specifier: ^3.3.1 + version: 3.3.1 pmtiles: - specifier: 2.10.0 - version: 2.10.0 + specifier: 2.11.0 + version: 2.11.0 prettier: - specifier: ^3.0.0 - version: 3.0.0 + specifier: ^3.0.3 + version: 3.0.3 prettier-plugin-svelte: - specifier: ^3.0.0 - version: 3.0.0(prettier@3.0.0)(svelte@4.0.5) - rimraf: - specifier: ^5.0.1 - version: 5.0.1 + specifier: ^3.0.3 + version: 3.0.3(prettier@3.0.3)(svelte@4.0.5) sass: - specifier: ^1.63.6 - version: 1.63.6 + specifier: ^1.68.0 + version: 1.68.0 svelte: specifier: ^4.0.5 version: 4.0.5 svelte-check: - specifier: ^3.4.6 - version: 3.4.6(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5) + specifier: ^3.5.2 + version: 3.5.2(postcss@8.4.28)(sass@1.68.0)(svelte@4.0.5) svelte-preprocess: specifier: ^5.0.4 - version: 5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.2.2) + version: 5.0.4(postcss@8.4.28)(sass@1.68.0)(svelte@4.0.5)(typescript@5.2.2) tslib: - specifier: ^2.6.0 - version: 2.6.0 + specifier: ^2.6.2 + version: 2.6.2 typescript: - specifier: ~5.2.0 + specifier: ~5.2.2 version: 5.2.2 vite: - specifier: ^4.4.4 - version: 4.4.4(@types/node@20.4.2)(sass@1.63.6) + specifier: ^4.4.9 + version: 4.4.9(sass@1.68.0) packages: @@ -347,13 +335,13 @@ packages: dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.45.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.50.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.45.0 + eslint: 8.50.0 eslint-visitor-keys: 3.4.3 dev: true @@ -379,13 +367,13 @@ packages: - supports-color dev: true - /@eslint/js@8.44.0: - resolution: {integrity: sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==} + /@eslint/js@8.50.0: + resolution: {integrity: sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@evilmartians/lefthook@1.4.5: - resolution: {integrity: sha512-lZT4HTz86yRBgoKSh34vCiaiit6F2t858UAUFDRU7dLadllKOagDYKQ/qlDojLzA8QC0LxI/OYYk2fke71dAmQ==} + /@evilmartians/lefthook@1.5.0: + resolution: {integrity: sha512-lyHwJk0P2MULulbjQngUyay+uNxIKS/5UOMbhgj8uesi4Q2gMOlhixDZ16rXOiZWFd6IZtBAEpInF0H27sAt+g==} cpu: [x64, arm64, ia32] os: [darwin, linux, win32] hasBin: true @@ -410,8 +398,8 @@ packages: resolution: {integrity: sha512-iWDNDnuNhsB6tKMGqjXStRhytALlB+/KBQ82T4xSjDndQsrN0CKspdMiu21RUj0AQoDxv3yzAqgp3bwEnF5SCQ==} dev: true - /@humanwhocodes/config-array@0.11.10: - resolution: {integrity: sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==} + /@humanwhocodes/config-array@0.11.11: + resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==} engines: {node: '>=10.10.0'} dependencies: '@humanwhocodes/object-schema': 1.2.1 @@ -430,18 +418,6 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true - /@isaacs/cliui@8.0.2: - resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} - engines: {node: '>=12'} - dependencies: - string-width: 5.1.2 - string-width-cjs: /string-width@4.2.3 - strip-ansi: 7.1.0 - strip-ansi-cjs: /strip-ansi@6.0.1 - wrap-ansi: 8.1.0 - wrap-ansi-cjs: /wrap-ansi@7.0.0 - dev: true - /@jridgewell/gen-mapping@0.3.3: resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} engines: {node: '>=6.0.0'} @@ -563,13 +539,6 @@ packages: fastq: 1.15.0 dev: true - /@pkgjs/parseargs@0.11.0: - resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} - engines: {node: '>=14'} - requiresBuild: true - dev: true - optional: true - /@polka/url@1.0.0-next.21: resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} dev: true @@ -578,16 +547,16 @@ packages: resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} dev: true - /@sveltejs/adapter-static@2.0.2(@sveltejs/kit@1.22.3): - resolution: {integrity: sha512-9wYtf6s6ew7DHUHMrt55YpD1FgV7oWql2IGsW5BXquLxqcY9vjrqCFo0TzzDpo+ZPZkW/v77k0eOP6tsAb8HmQ==} + /@sveltejs/adapter-static@2.0.3(@sveltejs/kit@1.25.1): + resolution: {integrity: sha512-VUqTfXsxYGugCpMqQv1U0LIdbR3S5nBkMMDmpjGVJyM6Q2jHVMFtdWJCkeHMySc6mZxJ+0eZK3T7IgmUCDrcUQ==} peerDependencies: '@sveltejs/kit': ^1.5.0 dependencies: - '@sveltejs/kit': 1.22.3(svelte@4.0.5)(vite@4.4.4) + '@sveltejs/kit': 1.25.1(svelte@4.0.5)(vite@4.4.9) dev: true - /@sveltejs/kit@1.22.3(svelte@4.0.5)(vite@4.4.4): - resolution: {integrity: sha512-IpHD5wvuoOIHYaHQUBJ1zERD2Iz+fB/rBXhXjl8InKw6X4VKE9BSus+ttHhE7Ke+Ie9ecfilzX8BnWE3FeQyng==} + /@sveltejs/kit@1.25.1(svelte@4.0.5)(vite@4.4.9): + resolution: {integrity: sha512-pD8XsvNJNgTNkFngNlM60my/X8dXWPKVzN5RghEQr0NjGZmuCjy49AfFu2cGbZjNf5pBcqd2RCNMW912P5fkhA==} engines: {node: ^16.14 || >=18} hasBin: true requiresBuild: true @@ -595,7 +564,7 @@ packages: svelte: ^3.54.0 || ^4.0.0-next.0 vite: ^4.0.0 dependencies: - '@sveltejs/vite-plugin-svelte': 2.4.5(svelte@4.0.5)(vite@4.4.4) + '@sveltejs/vite-plugin-svelte': 2.4.5(svelte@4.0.5)(vite@4.4.9) '@types/cookie': 0.5.1 cookie: 0.5.0 devalue: 4.3.2 @@ -607,13 +576,14 @@ packages: set-cookie-parser: 2.6.0 sirv: 2.0.3 svelte: 4.0.5 - undici: 5.22.1 - vite: 4.4.4(@types/node@20.4.2)(sass@1.63.6) + tiny-glob: 0.2.9 + undici: 5.25.2 + vite: 4.4.9(sass@1.68.0) transitivePeerDependencies: - supports-color dev: true - /@sveltejs/vite-plugin-svelte-inspector@1.0.3(@sveltejs/vite-plugin-svelte@2.4.5)(svelte@4.0.5)(vite@4.4.4): + /@sveltejs/vite-plugin-svelte-inspector@1.0.3(@sveltejs/vite-plugin-svelte@2.4.5)(svelte@4.0.5)(vite@4.4.9): resolution: {integrity: sha512-Khdl5jmmPN6SUsVuqSXatKpQTMIifoQPDanaxC84m9JxIibWvSABJyHpyys0Z+1yYrxY5TTEQm+6elh0XCMaOA==} engines: {node: ^14.18.0 || >= 16} peerDependencies: @@ -621,30 +591,30 @@ packages: svelte: ^3.54.0 || ^4.0.0 vite: ^4.0.0 dependencies: - '@sveltejs/vite-plugin-svelte': 2.4.5(svelte@4.0.5)(vite@4.4.4) + '@sveltejs/vite-plugin-svelte': 2.4.5(svelte@4.0.5)(vite@4.4.9) debug: 4.3.4 svelte: 4.0.5 - vite: 4.4.4(@types/node@20.4.2)(sass@1.63.6) + vite: 4.4.9(sass@1.68.0) transitivePeerDependencies: - supports-color dev: true - /@sveltejs/vite-plugin-svelte@2.4.5(svelte@4.0.5)(vite@4.4.4): + /@sveltejs/vite-plugin-svelte@2.4.5(svelte@4.0.5)(vite@4.4.9): resolution: {integrity: sha512-UJKsFNwhzCVuiZd06jM/psscyNJNDwjQC+qIeb7GBJK9iWeQCcIyfcPWDvbCudfcJggY9jtxJeeaZH7uny93FQ==} engines: {node: ^14.18.0 || >= 16} peerDependencies: svelte: ^3.54.0 || ^4.0.0 vite: ^4.0.0 dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 1.0.3(@sveltejs/vite-plugin-svelte@2.4.5)(svelte@4.0.5)(vite@4.4.4) + '@sveltejs/vite-plugin-svelte-inspector': 1.0.3(@sveltejs/vite-plugin-svelte@2.4.5)(svelte@4.0.5)(vite@4.4.9) debug: 4.3.4 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.2 svelte: 4.0.5 svelte-hmr: 0.15.3(svelte@4.0.5) - vite: 4.4.4(@types/node@20.4.2)(sass@1.63.6) - vitefu: 0.2.4(vite@4.4.4) + vite: 4.4.9(sass@1.68.0) + vitefu: 0.2.4(vite@4.4.9) transitivePeerDependencies: - supports-color dev: true @@ -674,10 +644,6 @@ packages: resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} dev: true - /@types/events@3.0.0: - resolution: {integrity: sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==} - dev: true - /@types/geojson@7946.0.10: resolution: {integrity: sha512-Nmh0K3iWQJzniTuPRcJn5hxXkfB1T1pgB89SBig5PlJQU5yocazeu4jATJlaA0GYFKWMqDdvYemoSnF2pXgLVA==} dev: true @@ -698,10 +664,6 @@ packages: '@types/pbf': 3.0.2 dev: true - /@types/node@20.4.2: - resolution: {integrity: sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==} - dev: true - /@types/pbf@3.0.2: resolution: {integrity: sha512-EDrLIPaPXOZqDjrkzxxbX7UlJSeQVgah3i0aA4pOSzmK9zq3BIh7/MZIQxED7slJByvKM4Gc6Hypyu2lJzh3SQ==} dev: true @@ -726,8 +688,8 @@ packages: '@types/geojson': 7946.0.10 dev: true - /@typescript-eslint/eslint-plugin@6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.45.0)(typescript@5.2.2): - resolution: {integrity: sha512-xuv6ghKGoiq856Bww/yVYnXGsKa588kY3M0XK7uUW/3fJNNULKRfZfSBkMTSpqGG/8ZCXCadfh8G/z/B4aqS/A==} + /@typescript-eslint/eslint-plugin@6.7.3(@typescript-eslint/parser@6.7.3)(eslint@8.50.0)(typescript@5.2.2): + resolution: {integrity: sha512-vntq452UHNltxsaaN+L9WyuMch8bMd9CqJ3zhzTPXXidwbf5mqqKCVXEuvRZUqLJSTLeWE65lQwyXsRGnXkCTA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -738,18 +700,16 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.6.2 - '@typescript-eslint/parser': 6.0.0(eslint@8.45.0)(typescript@5.2.2) - '@typescript-eslint/scope-manager': 6.0.0 - '@typescript-eslint/type-utils': 6.0.0(eslint@8.45.0)(typescript@5.2.2) - '@typescript-eslint/utils': 6.0.0(eslint@8.45.0)(typescript@5.2.2) - '@typescript-eslint/visitor-keys': 6.0.0 + '@typescript-eslint/parser': 6.7.3(eslint@8.50.0)(typescript@5.2.2) + '@typescript-eslint/scope-manager': 6.7.3 + '@typescript-eslint/type-utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2) + '@typescript-eslint/utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.7.3 debug: 4.3.4 - eslint: 8.45.0 - grapheme-splitter: 1.0.4 + eslint: 8.50.0 graphemer: 1.4.0 ignore: 5.2.4 natural-compare: 1.4.0 - natural-compare-lite: 1.4.0 semver: 7.5.4 ts-api-utils: 1.0.2(typescript@5.2.2) typescript: 5.2.2 @@ -757,8 +717,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.0.0(eslint@8.45.0)(typescript@5.2.2): - resolution: {integrity: sha512-TNaufYSPrr1U8n+3xN+Yp9g31vQDJqhXzzPSHfQDLcaO4tU+mCfODPxCwf4H530zo7aUBE3QIdxCXamEnG04Tg==} + /@typescript-eslint/parser@6.7.3(eslint@8.50.0)(typescript@5.2.2): + resolution: {integrity: sha512-TlutE+iep2o7R8Lf+yoer3zU6/0EAUc8QIBB3GYBc1KGz4c4TRm83xwXUZVPlZ6YCLss4r77jbu6j3sendJoiQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -767,27 +727,27 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.0.0 - '@typescript-eslint/types': 6.0.0 - '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.2.2) - '@typescript-eslint/visitor-keys': 6.0.0 + '@typescript-eslint/scope-manager': 6.7.3 + '@typescript-eslint/types': 6.7.3 + '@typescript-eslint/typescript-estree': 6.7.3(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.7.3 debug: 4.3.4 - eslint: 8.45.0 + eslint: 8.50.0 typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/scope-manager@6.0.0: - resolution: {integrity: sha512-o4q0KHlgCZTqjuaZ25nw5W57NeykZT9LiMEG4do/ovwvOcPnDO1BI5BQdCsUkjxFyrCL0cSzLjvIMfR9uo7cWg==} + /@typescript-eslint/scope-manager@6.7.3: + resolution: {integrity: sha512-wOlo0QnEou9cHO2TdkJmzF7DFGvAKEnB82PuPNHpT8ZKKaZu6Bm63ugOTn9fXNJtvuDPanBc78lGUGGytJoVzQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.0.0 - '@typescript-eslint/visitor-keys': 6.0.0 + '@typescript-eslint/types': 6.7.3 + '@typescript-eslint/visitor-keys': 6.7.3 dev: true - /@typescript-eslint/type-utils@6.0.0(eslint@8.45.0)(typescript@5.2.2): - resolution: {integrity: sha512-ah6LJvLgkoZ/pyJ9GAdFkzeuMZ8goV6BH7eC9FPmojrnX9yNCIsfjB+zYcnex28YO3RFvBkV6rMV6WpIqkPvoQ==} + /@typescript-eslint/type-utils@6.7.3(eslint@8.50.0)(typescript@5.2.2): + resolution: {integrity: sha512-Fc68K0aTDrKIBvLnKTZ5Pf3MXK495YErrbHb1R6aTpfK5OdSFj0rVN7ib6Tx6ePrZ2gsjLqr0s98NG7l96KSQw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -796,23 +756,23 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.2.2) - '@typescript-eslint/utils': 6.0.0(eslint@8.45.0)(typescript@5.2.2) + '@typescript-eslint/typescript-estree': 6.7.3(typescript@5.2.2) + '@typescript-eslint/utils': 6.7.3(eslint@8.50.0)(typescript@5.2.2) debug: 4.3.4 - eslint: 8.45.0 + eslint: 8.50.0 ts-api-utils: 1.0.2(typescript@5.2.2) typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/types@6.0.0: - resolution: {integrity: sha512-Zk9KDggyZM6tj0AJWYYKgF0yQyrcnievdhG0g5FqyU3Y2DRxJn4yWY21sJC0QKBckbsdKKjYDV2yVrrEvuTgxg==} + /@typescript-eslint/types@6.7.3: + resolution: {integrity: sha512-4g+de6roB2NFcfkZb439tigpAMnvEIg3rIjWQ+EM7IBaYt/CdJt6em9BJ4h4UpdgaBWdmx2iWsafHTrqmgIPNw==} engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@6.0.0(typescript@5.2.2): - resolution: {integrity: sha512-2zq4O7P6YCQADfmJ5OTDQTP3ktajnXIRrYAtHM9ofto/CJZV3QfJ89GEaM2BNGeSr1KgmBuLhEkz5FBkS2RQhQ==} + /@typescript-eslint/typescript-estree@6.7.3(typescript@5.2.2): + resolution: {integrity: sha512-YLQ3tJoS4VxLFYHTw21oe1/vIZPRqAO91z6Uv0Ss2BKm/Ag7/RVQBcXTGcXhgJMdA4U+HrKuY5gWlJlvoaKZ5g==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -820,8 +780,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.0.0 - '@typescript-eslint/visitor-keys': 6.0.0 + '@typescript-eslint/types': 6.7.3 + '@typescript-eslint/visitor-keys': 6.7.3 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -832,31 +792,30 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@6.0.0(eslint@8.45.0)(typescript@5.2.2): - resolution: {integrity: sha512-SOr6l4NB6HE4H/ktz0JVVWNXqCJTOo/mHnvIte1ZhBQ0Cvd04x5uKZa3zT6tiodL06zf5xxdK8COiDvPnQ27JQ==} + /@typescript-eslint/utils@6.7.3(eslint@8.50.0)(typescript@5.2.2): + resolution: {integrity: sha512-vzLkVder21GpWRrmSR9JxGZ5+ibIUSudXlW52qeKpzUEQhRSmyZiVDDj3crAth7+5tmN1ulvgKaCU2f/bPRCzg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.45.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 - '@typescript-eslint/scope-manager': 6.0.0 - '@typescript-eslint/types': 6.0.0 - '@typescript-eslint/typescript-estree': 6.0.0(typescript@5.2.2) - eslint: 8.45.0 - eslint-scope: 5.1.1 + '@typescript-eslint/scope-manager': 6.7.3 + '@typescript-eslint/types': 6.7.3 + '@typescript-eslint/typescript-estree': 6.7.3(typescript@5.2.2) + eslint: 8.50.0 semver: 7.5.4 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/visitor-keys@6.0.0: - resolution: {integrity: sha512-cvJ63l8c0yXdeT5POHpL0Q1cZoRcmRKFCtSjNGJxPkcP571EfZMcNbzWAc7oK3D1dRzm/V5EwtkANTZxqvuuUA==} + /@typescript-eslint/visitor-keys@6.7.3: + resolution: {integrity: sha512-HEVXkU9IB+nk9o63CeICMHxFWbHWr3E1mpilIQBe9+7L/lH97rleFLVtYsfnWB+JVMaiFnEaxvknvmIzX+CqVg==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.0.0 + '@typescript-eslint/types': 6.7.3 eslint-visitor-keys: 3.4.3 dev: true @@ -879,14 +838,14 @@ packages: peerDependencies: svelte: ^4.0.0 dependencies: - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 dev: true /@watergis/maplibre-gl-area-switcher@1.0.0: resolution: {integrity: sha512-kP5SMvxoMtCuKBlCRwZFPMxJh4qdNng42tzGmPCCL0dl7k3/atRADw7a2isgUsPRpRUBRaIjaauYZXQrItJfzw==} dependencies: - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 dev: true /@watergis/svelte-collapsible-panel@1.0.1(svelte@4.0.5): @@ -905,7 +864,7 @@ packages: peerDependencies: svelte: ^4.0.0 dependencies: - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 dev: true @@ -916,7 +875,7 @@ packages: dependencies: '@vincjo/datatables': 1.12.3(svelte@4.0.5) '@watergis/svelte-maplibre-menu': 2.1.1(svelte@4.0.5) - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 dev: true @@ -928,7 +887,7 @@ packages: '@fortawesome/free-solid-svg-icons': 6.4.0 '@neodrag/svelte': 2.0.3 jspdf: 2.5.1 - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 svelte-fa: 3.0.4 dev: true @@ -944,7 +903,7 @@ packages: detect-touch-device: 1.1.6 js-yaml: 4.1.0 lodash-es: 4.17.21 - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 svelte-awesome-color-picker: 2.4.7 svelte-fa: 3.0.4 @@ -965,7 +924,7 @@ packages: '@fortawesome/free-solid-svg-icons': 6.4.0 '@turf/distance': 6.5.0 '@watergis/terrain-rgb': 1.1.12 - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 svelte-fa: 3.0.4 transitivePeerDependencies: @@ -978,7 +937,7 @@ packages: svelte: ^4.0.0 dependencies: '@geoffcox/svelte-splitter': 1.0.1 - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 dev: true @@ -988,7 +947,7 @@ packages: svelte: ^4.0.0 dependencies: '@fortawesome/free-solid-svg-icons': 6.4.0 - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 svelte-copy: 1.4.1(svelte@4.0.5) svelte-fa: 3.0.4 @@ -1000,7 +959,7 @@ packages: svelte: ^4.0.0 dependencies: debounce: 1.2.1 - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 dev: true @@ -1010,7 +969,7 @@ packages: svelte: ^4.0.0 dependencies: '@fortawesome/free-solid-svg-icons': 6.4.0 - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 svelte: 4.0.5 svelte-fa: 3.0.4 dev: true @@ -1055,11 +1014,6 @@ packages: engines: {node: '>=8'} dev: true - /ansi-regex@6.0.1: - resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} - engines: {node: '>=12'} - dev: true - /ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -1067,11 +1021,6 @@ packages: color-convert: 2.0.1 dev: true - /ansi-styles@6.2.1: - resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} - engines: {node: '>=12'} - dev: true - /anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -1152,12 +1101,6 @@ packages: concat-map: 0.0.1 dev: true - /brace-expansion@2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - dependencies: - balanced-match: 1.0.2 - dev: true - /braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} @@ -1396,18 +1339,6 @@ packages: resolution: {integrity: sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ==} dev: true - /eastasianwidth@0.2.0: - resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - dev: true - - /emoji-regex@8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - dev: true - - /emoji-regex@9.2.2: - resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - dev: true - /es6-promise@3.3.1: resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==} dev: true @@ -1447,17 +1378,17 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@9.0.0(eslint@8.45.0): + /eslint-config-prettier@9.0.0(eslint@8.50.0): resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.45.0 + eslint: 8.50.0 dev: true - /eslint-plugin-svelte@2.32.2(eslint@8.45.0)(svelte@4.0.5): - resolution: {integrity: sha512-Jgbop2fNZsoxxkklZAIbDNhwAPynvnCtUXLsEC6O2qax7N/pfe2cNqT0ZoBbubXKJitQQDEyVDQ1rZs4ZWcrTA==} + /eslint-plugin-svelte@2.33.2(eslint@8.50.0)(svelte@4.0.5): + resolution: {integrity: sha512-knWmauax+E/jvQ9CmuX5dAhQKP9P4eGQZxWa5RMutEJVCcy0wFmiUvOeDND2jR4vUkbDlX4khKjaceY7QzbkYw==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0-0 @@ -1466,32 +1397,24 @@ packages: svelte: optional: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.45.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0) '@jridgewell/sourcemap-codec': 1.4.15 debug: 4.3.4 - eslint: 8.45.0 + eslint: 8.50.0 esutils: 2.0.3 - known-css-properties: 0.27.0 + known-css-properties: 0.28.0 postcss: 8.4.28 postcss-load-config: 3.1.4(postcss@8.4.28) postcss-safe-parser: 6.0.0(postcss@8.4.28) postcss-selector-parser: 6.0.13 semver: 7.5.4 svelte: 4.0.5 - svelte-eslint-parser: 0.32.2(svelte@4.0.5) + svelte-eslint-parser: 0.33.0(svelte@4.0.5) transitivePeerDependencies: - supports-color - ts-node dev: true - /eslint-scope@5.1.1: - resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} - engines: {node: '>=8.0.0'} - dependencies: - esrecurse: 4.3.0 - estraverse: 4.3.0 - dev: true - /eslint-scope@7.2.2: resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1505,16 +1428,16 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.45.0: - resolution: {integrity: sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==} + /eslint@8.50.0: + resolution: {integrity: sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.45.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0) '@eslint-community/regexpp': 4.6.2 '@eslint/eslintrc': 2.1.2 - '@eslint/js': 8.44.0 - '@humanwhocodes/config-array': 0.11.10 + '@eslint/js': 8.50.0 + '@humanwhocodes/config-array': 0.11.11 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 ajv: 6.12.6 @@ -1578,11 +1501,6 @@ packages: estraverse: 5.3.0 dev: true - /estraverse@4.3.0: - resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} - engines: {node: '>=4.0'} - dev: true - /estraverse@5.3.0: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} @@ -1599,11 +1517,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /events@3.3.0: - resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} - engines: {node: '>=0.8.x'} - dev: true - /extend-shallow@2.0.1: resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} engines: {node: '>=0.10.0'} @@ -1700,14 +1613,6 @@ packages: optional: true dev: true - /foreground-child@3.1.1: - resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} - engines: {node: '>=14'} - dependencies: - cross-spawn: 7.0.3 - signal-exit: 4.1.0 - dev: true - /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true @@ -1757,18 +1662,6 @@ packages: is-glob: 4.0.3 dev: true - /glob@10.3.3: - resolution: {integrity: sha512-92vPiMb/iqpmEgsOoIDvTjc50wf9CCCvMzsi6W0JLPeUKE8TWP1a73PgqSrqy7iAZxaSD1YdzU7QZR5LF51MJw==} - engines: {node: '>=16 || 14 >=14.17'} - hasBin: true - dependencies: - foreground-child: 3.1.1 - jackspeak: 2.3.0 - minimatch: 9.0.3 - minipass: 7.0.3 - path-scurry: 1.10.1 - dev: true - /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} dependencies: @@ -1800,6 +1693,10 @@ packages: type-fest: 0.20.2 dev: true + /globalyzer@0.1.0: + resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==} + dev: true + /globby@11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} @@ -1812,12 +1709,12 @@ packages: slash: 3.0.0 dev: true - /graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + /globrex@0.1.2: + resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} dev: true - /grapheme-splitter@1.0.4: - resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} + /graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} dev: true /graphemer@1.4.0: @@ -1904,11 +1801,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /is-fullwidth-code-point@3.0.0: - resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} - engines: {node: '>=8'} - dev: true - /is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -1948,15 +1840,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /jackspeak@2.3.0: - resolution: {integrity: sha512-uKmsITSsF4rUWQHzqaRUuyAir3fZfW3f202Ee34lz/gZCi970CPZwyQXLGNgWJvvZbvFyzeyGq0+4fcG/mBKZg==} - engines: {node: '>=14'} - dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 - dev: true - /js-yaml@4.1.0: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true @@ -2008,8 +1891,8 @@ packages: engines: {node: '>=6'} dev: true - /known-css-properties@0.27.0: - resolution: {integrity: sha512-uMCj6+hZYDoffuvAJjFAPz56E9uoowFHmTkqRtRq5WyC5Q6Cu/fTZKNQpX/RbzChBYLLl3lo8CjFZBAZXq9qFg==} + /known-css-properties@0.28.0: + resolution: {integrity: sha512-9pSL5XB4J+ifHP0e0jmmC98OGC1nL8/JjS+fi6mnTlIf//yt/MfVLtKg7S6nCtj/8KTcWX7nRlY0XywoYY1ISQ==} dev: true /levn@0.4.1: @@ -2048,11 +1931,6 @@ packages: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} dev: true - /lru-cache@10.0.1: - resolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==} - engines: {node: 14 || >=16.14} - dev: true - /lru-cache@6.0.0: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} @@ -2074,8 +1952,8 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true - /maplibre-gl@3.2.1: - resolution: {integrity: sha512-7INNVNJGKKPslU4DmSSMldreOEqsMYY4m62WaHQVmD95D5VlS7BiY4HKlYiNsmKI9onWk7Xd5c/JWmXLa025dA==} + /maplibre-gl@3.3.1: + resolution: {integrity: sha512-SfRq9bT68GytDzCOG0IoTGg2rASbgdYunW/6xhnp55QuLmwG1M/YOlXxqHaphwia7kZbMvBOocvY0fp5yfTjZA==} engines: {node: '>=16.14.0', npm: '>=8.1.0'} dependencies: '@mapbox/geojson-rewind': 0.5.2 @@ -2139,22 +2017,10 @@ packages: brace-expansion: 1.1.11 dev: true - /minimatch@9.0.3: - resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} - engines: {node: '>=16 || 14 >=14.17'} - dependencies: - brace-expansion: 2.0.1 - dev: true - /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: true - /minipass@7.0.3: - resolution: {integrity: sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==} - engines: {node: '>=16 || 14 >=14.17'} - dev: true - /mkdirp@0.5.6: resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} hasBin: true @@ -2186,10 +2052,6 @@ packages: hasBin: true dev: true - /natural-compare-lite@1.4.0: - resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} - dev: true - /natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true @@ -2257,14 +2119,6 @@ packages: engines: {node: '>=8'} dev: true - /path-scurry@1.10.1: - resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} - engines: {node: '>=16 || 14 >=14.17'} - dependencies: - lru-cache: 10.0.1 - minipass: 7.0.3 - dev: true - /path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -2301,8 +2155,8 @@ packages: engines: {node: '>=8.6'} dev: true - /pmtiles@2.10.0: - resolution: {integrity: sha512-X+s6JyperpcAkKwv55MKx72ckOUB0ZjcfK4929iM0SS0MkLydEi2FSW1E8YTE1E2XaZ2TVk/MIUrbsZuXV7K2g==} + /pmtiles@2.11.0: + resolution: {integrity: sha512-dU9SzzaqmCGpdEuTnIba6bDHT6j09ZJFIXxwGpvkiEnce3ZnBB1VKt6+EOmJGueriweaZLAMTUmKVElU2CBe0g==} dependencies: fflate: 0.8.0 dev: true @@ -2368,18 +2222,18 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier-plugin-svelte@3.0.0(prettier@3.0.0)(svelte@4.0.5): - resolution: {integrity: sha512-l3RQcPty2UBCoRh3yb9c5XCAmxkrc4BptAnbd5acO1gmSJtChOWkiEjnOvh7hvmtT4V80S8gXCOKAq8RNeIzSw==} + /prettier-plugin-svelte@3.0.3(prettier@3.0.3)(svelte@4.0.5): + resolution: {integrity: sha512-dLhieh4obJEK1hnZ6koxF+tMUrZbV5YGvRpf2+OADyanjya5j0z1Llo8iGwiHmFWZVG/hLEw/AJD5chXd9r3XA==} peerDependencies: prettier: ^3.0.0 svelte: ^3.2.0 || ^4.0.0-next.0 dependencies: - prettier: 3.0.0 + prettier: 3.0.3 svelte: 4.0.5 dev: true - /prettier@3.0.0: - resolution: {integrity: sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==} + /prettier@3.0.3: + resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} engines: {node: '>=14'} hasBin: true dev: true @@ -2463,14 +2317,6 @@ packages: glob: 7.2.3 dev: true - /rimraf@5.0.1: - resolution: {integrity: sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==} - engines: {node: '>=14'} - hasBin: true - dependencies: - glob: 10.3.3 - dev: true - /rollup@3.28.0: resolution: {integrity: sha512-d7zhvo1OUY2SXSM6pfNjgD5+d0Nz87CUp4mt8l/GgVP3oBsPwzNvSzyu1me6BSG9JIgWNTVcafIXBIyM8yQ3yw==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} @@ -2505,8 +2351,8 @@ packages: rimraf: 2.7.1 dev: true - /sass@1.63.6: - resolution: {integrity: sha512-MJuxGMHzaOW7ipp+1KdELtqKbfAWbH7OLIdoSMnVe3EXPMTmxTmlaZDCTsgIpPCs3w99lLo9/zDKkOrJuT5byw==} + /sass@1.68.0: + resolution: {integrity: sha512-Lmj9lM/fef0nQswm1J2HJcEsBUba4wgNx2fea6yJHODREoMFnwRpZydBnX/RjyXw2REIwdkbqE4hrTo4qfDBUA==} engines: {node: '>=14.0.0'} hasBin: true dependencies: @@ -2549,11 +2395,6 @@ packages: engines: {node: '>=8'} dev: true - /signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - dev: true - /sirv@2.0.3: resolution: {integrity: sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA==} engines: {node: '>= 10'} @@ -2642,24 +2483,6 @@ packages: engines: {node: '>=10.0.0'} dev: true - /string-width@4.2.3: - resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} - engines: {node: '>=8'} - dependencies: - emoji-regex: 8.0.0 - is-fullwidth-code-point: 3.0.0 - strip-ansi: 6.0.1 - dev: true - - /string-width@5.1.2: - resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} - engines: {node: '>=12'} - dependencies: - eastasianwidth: 0.2.0 - emoji-regex: 9.2.2 - strip-ansi: 7.1.0 - dev: true - /strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} @@ -2667,13 +2490,6 @@ packages: ansi-regex: 5.0.1 dev: true - /strip-ansi@7.1.0: - resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} - engines: {node: '>=12'} - dependencies: - ansi-regex: 6.0.1 - dev: true - /strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -2716,8 +2532,8 @@ packages: colord: 2.9.3 dev: true - /svelte-check@3.4.6(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5): - resolution: {integrity: sha512-OBlY8866Zh1zHQTkBMPS6psPi7o2umTUyj6JWm4SacnIHXpWFm658pG32m3dKvKFL49V4ntAkfFHKo4ztH07og==} + /svelte-check@3.5.2(postcss@8.4.28)(sass@1.68.0)(svelte@4.0.5): + resolution: {integrity: sha512-5a/YWbiH4c+AqAUP+0VneiV5bP8YOk9JL3jwvN+k2PEPLgpu85bjQc5eE67+eIZBBwUEJzmO3I92OqKcqbp3fw==} hasBin: true peerDependencies: svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 @@ -2729,7 +2545,7 @@ packages: picocolors: 1.0.0 sade: 1.8.1 svelte: 4.0.5 - svelte-preprocess: 5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.2.2) + svelte-preprocess: 5.0.4(postcss@8.4.28)(sass@1.68.0)(svelte@4.0.5)(typescript@5.2.2) typescript: 5.2.2 transitivePeerDependencies: - '@babel/core' @@ -2751,8 +2567,8 @@ packages: svelte: 4.0.5 dev: true - /svelte-eslint-parser@0.32.2(svelte@4.0.5): - resolution: {integrity: sha512-Ok9D3A4b23iLQsONrjqtXtYDu5ZZ/826Blaw2LeFZVTg1pwofKDG4mz3/GYTax8fQ0plRGHI6j+d9VQYy5Lo/A==} + /svelte-eslint-parser@0.33.0(svelte@4.0.5): + resolution: {integrity: sha512-5awZ6Bs+Tb/zQwa41PSdcLynAVQTwW0HGyCBjtbAQ59taLZqDgQSMzRlDmapjZdDtzERm0oXDZNE0E+PKJ6ryg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: svelte: ^3.37.0 || ^4.0.0 @@ -2791,7 +2607,7 @@ packages: svelte: 4.0.5 dev: true - /svelte-preprocess@5.0.4(postcss@8.4.28)(sass@1.63.6)(svelte@4.0.5)(typescript@5.2.2): + /svelte-preprocess@5.0.4(postcss@8.4.28)(sass@1.68.0)(svelte@4.0.5)(typescript@5.2.2): resolution: {integrity: sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==} engines: {node: '>= 14.10.0'} requiresBuild: true @@ -2833,7 +2649,7 @@ packages: detect-indent: 6.1.0 magic-string: 0.27.0 postcss: 8.4.28 - sass: 1.63.6 + sass: 1.68.0 sorcery: 0.11.0 strip-indent: 3.0.0 svelte: 4.0.5 @@ -2892,6 +2708,13 @@ packages: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true + /tiny-glob@0.2.9: + resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} + dependencies: + globalyzer: 0.1.0 + globrex: 0.1.2 + dev: true + /tinyqueue@2.0.3: resolution: {integrity: sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA==} dev: true @@ -2923,8 +2746,8 @@ packages: typescript: 5.2.2 dev: true - /tslib@2.6.0: - resolution: {integrity: sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==} + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} dev: true /type-check@0.4.0: @@ -2955,8 +2778,8 @@ packages: typewise-core: 1.2.0 dev: true - /undici@5.22.1: - resolution: {integrity: sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==} + /undici@5.25.2: + resolution: {integrity: sha512-tch8RbCfn1UUH1PeVCXva4V8gDpGAud/w0WubD6sHC46vYQ3KDxL+xv1A2UxK0N6jrVedutuPHxe1XIoqerwMw==} engines: {node: '>=14.0'} dependencies: busboy: 1.6.0 @@ -2990,8 +2813,8 @@ packages: dev: true optional: true - /vite@4.4.4(@types/node@20.4.2)(sass@1.63.6): - resolution: {integrity: sha512-4mvsTxjkveWrKDJI70QmelfVqTm+ihFAb6+xf4sjEU2TmUCTlVX87tmg/QooPEMQb/lM9qGHT99ebqPziEd3wg==} + /vite@4.4.9(sass@1.68.0): + resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -3018,16 +2841,15 @@ packages: terser: optional: true dependencies: - '@types/node': 20.4.2 esbuild: 0.18.20 postcss: 8.4.28 rollup: 3.28.0 - sass: 1.63.6 + sass: 1.68.0 optionalDependencies: fsevents: 2.3.2 dev: true - /vitefu@0.2.4(vite@4.4.4): + /vitefu@0.2.4(vite@4.4.9): resolution: {integrity: sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g==} peerDependencies: vite: ^3.0.0 || ^4.0.0 @@ -3035,7 +2857,7 @@ packages: vite: optional: true dependencies: - vite: 4.4.4(@types/node@20.4.2)(sass@1.63.6) + vite: 4.4.9(sass@1.68.0) dev: true /vt-pbf@3.1.3: @@ -3065,24 +2887,6 @@ packages: isexe: 2.0.0 dev: true - /wrap-ansi@7.0.0: - resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} - engines: {node: '>=10'} - dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - dev: true - - /wrap-ansi@8.1.0: - resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} - engines: {node: '>=12'} - dependencies: - ansi-styles: 6.2.1 - string-width: 5.1.2 - strip-ansi: 7.1.0 - dev: true - /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: true @@ -3106,7 +2910,7 @@ packages: engines: {node: '>=10'} dev: true - github.com/maplibre/maplibre-gl-geocoder/9a9f184014cdbe0722728dffd8a6d317026449ad(maplibre-gl@3.2.1): + github.com/maplibre/maplibre-gl-geocoder/9a9f184014cdbe0722728dffd8a6d317026449ad(maplibre-gl@3.3.1): resolution: {tarball: https://codeload.github.com/maplibre/maplibre-gl-geocoder/tar.gz/9a9f184014cdbe0722728dffd8a6d317026449ad} id: github.com/maplibre/maplibre-gl-geocoder/9a9f184014cdbe0722728dffd8a6d317026449ad name: '@maplibre/maplibre-gl-geocoder' @@ -3116,7 +2920,7 @@ packages: maplibre-gl: '>=1.14.0' dependencies: lodash.debounce: 4.0.8 - maplibre-gl: 3.2.1 + maplibre-gl: 3.3.1 subtag: 0.5.0 suggestions-list: 0.0.2 xtend: 4.0.2 From ba8637e8496e45ac8a7d7c45c8811d48b1ecb1d7 Mon Sep 17 00:00:00 2001 From: Jin Igarashi Date: Fri, 29 Sep 2023 21:48:15 +0100 Subject: [PATCH 5/6] fix: dependencies for maplibre geocoder (#111) --- package.json | 3 +++ pnpm-lock.yaml | 35 +++++++++++++++++++++++++++++------ 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d3e11ff..e471299 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,8 @@ "@popperjs/core": "^2.11.8", "@sveltejs/adapter-static": "^2.0.3", "@sveltejs/kit": "^1.25.1", + "@types/events": "^3.0.1", + "@types/node": "^20.7.2", "@typescript-eslint/eslint-plugin": "^6.7.3", "@typescript-eslint/parser": "^6.7.3", "@watergis/maplibre-center-icon": "^2.0.1", @@ -37,6 +39,7 @@ "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-svelte": "^2.33.2", + "events": "^3.3.0", "maplibre-gl": "^3.3.1", "pmtiles": "2.11.0", "prettier": "^3.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8db5944..2cac82c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,12 @@ devDependencies: '@sveltejs/kit': specifier: ^1.25.1 version: 1.25.1(svelte@4.0.5)(vite@4.4.9) + '@types/events': + specifier: ^3.0.1 + version: 3.0.1 + '@types/node': + specifier: ^20.7.2 + version: 20.7.2 '@typescript-eslint/eslint-plugin': specifier: ^6.7.3 version: 6.7.3(@typescript-eslint/parser@6.7.3)(eslint@8.50.0)(typescript@5.2.2) @@ -77,6 +83,9 @@ devDependencies: eslint-plugin-svelte: specifier: ^2.33.2 version: 2.33.2(eslint@8.50.0)(svelte@4.0.5) + events: + specifier: ^3.3.0 + version: 3.3.0 maplibre-gl: specifier: ^3.3.1 version: 3.3.1 @@ -109,7 +118,7 @@ devDependencies: version: 5.2.2 vite: specifier: ^4.4.9 - version: 4.4.9(sass@1.68.0) + version: 4.4.9(@types/node@20.7.2)(sass@1.68.0) packages: @@ -578,7 +587,7 @@ packages: svelte: 4.0.5 tiny-glob: 0.2.9 undici: 5.25.2 - vite: 4.4.9(sass@1.68.0) + vite: 4.4.9(@types/node@20.7.2)(sass@1.68.0) transitivePeerDependencies: - supports-color dev: true @@ -594,7 +603,7 @@ packages: '@sveltejs/vite-plugin-svelte': 2.4.5(svelte@4.0.5)(vite@4.4.9) debug: 4.3.4 svelte: 4.0.5 - vite: 4.4.9(sass@1.68.0) + vite: 4.4.9(@types/node@20.7.2)(sass@1.68.0) transitivePeerDependencies: - supports-color dev: true @@ -613,7 +622,7 @@ packages: magic-string: 0.30.2 svelte: 4.0.5 svelte-hmr: 0.15.3(svelte@4.0.5) - vite: 4.4.9(sass@1.68.0) + vite: 4.4.9(@types/node@20.7.2)(sass@1.68.0) vitefu: 0.2.4(vite@4.4.9) transitivePeerDependencies: - supports-color @@ -644,6 +653,10 @@ packages: resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} dev: true + /@types/events@3.0.1: + resolution: {integrity: sha512-QfUFdKjGSc+iCf8OFZhqJKfDuqB6lP57kSMkPw8ba3yNDANicUwCdaPt5ytZ4nDXXVFxQkvT8v73I4stSVrCxA==} + dev: true + /@types/geojson@7946.0.10: resolution: {integrity: sha512-Nmh0K3iWQJzniTuPRcJn5hxXkfB1T1pgB89SBig5PlJQU5yocazeu4jATJlaA0GYFKWMqDdvYemoSnF2pXgLVA==} dev: true @@ -664,6 +677,10 @@ packages: '@types/pbf': 3.0.2 dev: true + /@types/node@20.7.2: + resolution: {integrity: sha512-RcdC3hOBOauLP+r/kRt27NrByYtDjsXyAuSbR87O6xpsvi763WI+5fbSIvYJrXnt9w4RuxhV6eAXfIs7aaf/FQ==} + dev: true + /@types/pbf@3.0.2: resolution: {integrity: sha512-EDrLIPaPXOZqDjrkzxxbX7UlJSeQVgah3i0aA4pOSzmK9zq3BIh7/MZIQxED7slJByvKM4Gc6Hypyu2lJzh3SQ==} dev: true @@ -1517,6 +1534,11 @@ packages: engines: {node: '>=0.10.0'} dev: true + /events@3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + dev: true + /extend-shallow@2.0.1: resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} engines: {node: '>=0.10.0'} @@ -2813,7 +2835,7 @@ packages: dev: true optional: true - /vite@4.4.9(sass@1.68.0): + /vite@4.4.9(@types/node@20.7.2)(sass@1.68.0): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -2841,6 +2863,7 @@ packages: terser: optional: true dependencies: + '@types/node': 20.7.2 esbuild: 0.18.20 postcss: 8.4.28 rollup: 3.28.0 @@ -2857,7 +2880,7 @@ packages: vite: optional: true dependencies: - vite: 4.4.9(sass@1.68.0) + vite: 4.4.9(@types/node@20.7.2)(sass@1.68.0) dev: true /vt-pbf@3.1.3: From 0c632194a49a6e2cdcd67679a78d3089cc764ec3 Mon Sep 17 00:00:00 2001 From: Jin Igarashi Date: Fri, 29 Sep 2023 21:54:15 +0100 Subject: [PATCH 6/6] update service-worker (#112) --- src/service-worker.js | 62 +++++++++++++++++++++++++++++++++++++++ src/service-worker.ts | 67 ------------------------------------------- 2 files changed, 62 insertions(+), 67 deletions(-) create mode 100644 src/service-worker.js delete mode 100644 src/service-worker.ts diff --git a/src/service-worker.js b/src/service-worker.js new file mode 100644 index 0000000..b9d8688 --- /dev/null +++ b/src/service-worker.js @@ -0,0 +1,62 @@ +/// +import { build, files, version } from '$service-worker'; + +// Create a unique cache name for this deployment +const CACHE = `cache-${version}`; + +const ASSETS = [ + ...build, // the app itself + ...files // everything in `static` +]; + +self.addEventListener('install', (event) => { + // Create a new cache and add all files to it + async function addFilesToCache() { + const cache = await caches.open(CACHE); + await cache.addAll(ASSETS); + } + + event.waitUntil(addFilesToCache()); +}); + +self.addEventListener('activate', (event) => { + // Remove previous cached data from disk + async function deleteOldCaches() { + for (const key of await caches.keys()) { + if (key !== CACHE) await caches.delete(key); + } + } + + event.waitUntil(deleteOldCaches()); +}); + +self.addEventListener('fetch', (event) => { + // ignore POST requests etc + if (event.request.method !== 'GET') return; + + async function respond() { + const url = new URL(event.request.url); + const cache = await caches.open(CACHE); + + // `build`/`files` can always be served from the cache + if (ASSETS.includes(url.pathname)) { + return cache.match(url.pathname); + } + + // for everything else, try the network first, but + // fall back to the cache if we're offline + try { + const response = await fetch(event.request); + + if (response.status === 200) { + cache.put(event.request, response.clone()); + } + + return response; + } catch { + return cache.match(event.request); + } + } + + event.respondWith(respond()); +}); diff --git a/src/service-worker.ts b/src/service-worker.ts deleted file mode 100644 index 126b38a..0000000 --- a/src/service-worker.ts +++ /dev/null @@ -1,67 +0,0 @@ -/// - -// Imports: -import { build, files, version } from '$service-worker'; - -// Initializations: -const worker = self as unknown as ServiceWorkerGlobalScope; -const FILES = `cache${version}`; -const to_cache = build.concat(files); -const staticAssets = new Set(to_cache); - -// Install Event: -worker.addEventListener('install', (event) => { - event.waitUntil( - caches - .open(FILES) - .then((cache) => cache.addAll(to_cache)) - .then(() => { - worker.skipWaiting(); - }) - ); -}); - -// Activation Event: -worker.addEventListener('activate', (event) => { - event.waitUntil( - caches.keys().then(async (keys) => { - for (const key of keys) { - if (key !== FILES) await caches.delete(key); - } - worker.clients.claim(); - }) - ); -}); - -// Fetch & Cache Event: -async function fetchAndCache(request: Request) { - const cache = await caches.open(`offline${version}`); - try { - const response = await fetch(request); - cache.put(request, response.clone()); - return response; - } catch (err) { - const response = await cache.match(request); - if (response) return response; - throw err; - } -} - -// Fetch Event: -worker.addEventListener('fetch', (event) => { - if (event.request.method !== 'GET' || event.request.headers.has('range')) return; - const url = new URL(event.request.url); - const isHttp = url.protocol.startsWith('http'); - const isDevServerRequest = - url.hostname === self.location.hostname && url.port !== self.location.port; - const isStaticAsset = url.host === self.location.host && staticAssets.has(url.pathname); - const skipBecauseUncached = event.request.cache === 'only-if-cached' && !isStaticAsset; - if (isHttp && !isDevServerRequest && !skipBecauseUncached) { - event.respondWith( - (async () => { - const cachedAsset = isStaticAsset && (await caches.match(event.request)); - return cachedAsset || fetchAndCache(event.request); - })() - ); - } -});