add vercel analytics (#13474)

pull/9085/merge
Rich Harris 1 month ago committed by GitHub
parent 89cacf72b6
commit cd2186cb1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -22,7 +22,7 @@ importers:
version: 8.56.0 version: 8.56.0
eslint-plugin-svelte: eslint-plugin-svelte:
specifier: ^2.32.2 specifier: ^2.32.2
version: 2.35.1(eslint@8.56.0)(svelte@4.2.18) version: 2.35.1(eslint@8.56.0)(svelte@4.2.19)
eslint-plugin-unicorn: eslint-plugin-unicorn:
specifier: ^47.0.0 specifier: ^47.0.0
version: 47.0.0(eslint@8.56.0) version: 47.0.0(eslint@8.56.0)
@ -34,7 +34,7 @@ importers:
version: 2.8.8 version: 2.8.8
prettier-plugin-svelte: prettier-plugin-svelte:
specifier: ^2.10.1 specifier: ^2.10.1
version: 2.10.1(prettier@2.8.8)(svelte@4.2.18) version: 2.10.1(prettier@2.8.8)(svelte@4.2.19)
packages/svelte: packages/svelte:
dependencies: dependencies:
@ -95,7 +95,7 @@ importers:
version: 15.2.3(rollup@3.29.4) version: 15.2.3(rollup@3.29.4)
'@sveltejs/eslint-config': '@sveltejs/eslint-config':
specifier: ^6.0.4 specifier: ^6.0.4
version: 6.0.4(@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3))(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint-config-prettier@9.1.0(eslint@8.56.0))(eslint-plugin-svelte@2.39.0(eslint@8.56.0)(svelte@4.2.18))(eslint-plugin-unicorn@47.0.0(eslint@8.56.0))(eslint@8.56.0)(typescript@5.3.3) version: 6.0.4(@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3))(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint-config-prettier@9.1.0(eslint@8.56.0))(eslint-plugin-svelte@2.39.0(eslint@8.56.0)(svelte@4.2.19))(eslint-plugin-unicorn@47.0.0(eslint@8.56.0))(eslint@8.56.0)(typescript@5.3.3)
'@types/aria-query': '@types/aria-query':
specifier: ^5.0.1 specifier: ^5.0.1
version: 5.0.4 version: 5.0.4
@ -162,6 +162,9 @@ importers:
'@sveltejs/repl': '@sveltejs/repl':
specifier: 0.6.0 specifier: 0.6.0
version: 0.6.0(@codemirror/lang-html@6.4.9)(@codemirror/search@6.5.6)(@lezer/common@1.2.1)(@lezer/javascript@1.4.16)(@lezer/lr@1.4.0)(@sveltejs/kit@2.5.18(@sveltejs/vite-plugin-svelte@3.0.1(svelte@packages+svelte)(vite@5.0.10(@types/node@20.10.6)(lightningcss@1.22.1)))(svelte@packages+svelte)(vite@5.0.10(@types/node@20.10.6)(lightningcss@1.22.1)))(svelte@packages+svelte) version: 0.6.0(@codemirror/lang-html@6.4.9)(@codemirror/search@6.5.6)(@lezer/common@1.2.1)(@lezer/javascript@1.4.16)(@lezer/lr@1.4.0)(@sveltejs/kit@2.5.18(@sveltejs/vite-plugin-svelte@3.0.1(svelte@packages+svelte)(vite@5.0.10(@types/node@20.10.6)(lightningcss@1.22.1)))(svelte@packages+svelte)(vite@5.0.10(@types/node@20.10.6)(lightningcss@1.22.1)))(svelte@packages+svelte)
'@vercel/analytics':
specifier: ^1.3.1
version: 1.3.1
cookie: cookie:
specifier: ^0.6.0 specifier: ^0.6.0
version: 0.6.0 version: 0.6.0
@ -712,6 +715,7 @@ packages:
'@humanwhocodes/config-array@0.11.13': '@humanwhocodes/config-array@0.11.13':
resolution: {integrity: sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==} resolution: {integrity: sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==}
engines: {node: '>=10.10.0'} engines: {node: '>=10.10.0'}
deprecated: Use @eslint/config-array instead
'@humanwhocodes/module-importer@1.0.1': '@humanwhocodes/module-importer@1.0.1':
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
@ -719,6 +723,7 @@ packages:
'@humanwhocodes/object-schema@2.0.1': '@humanwhocodes/object-schema@2.0.1':
resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==} resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==}
deprecated: Use @eslint/object-schema instead
'@img/sharp-darwin-arm64@0.33.1': '@img/sharp-darwin-arm64@0.33.1':
resolution: {integrity: sha512-esr2BZ1x0bo+wl7Gx2hjssYhjrhUsD88VQulI0FrG8/otRQUOxLWHMBd1Y1qo2Gfg2KUvXNpT0ASnV9BzJCexw==} resolution: {integrity: sha512-esr2BZ1x0bo+wl7Gx2hjssYhjrhUsD88VQulI0FrG8/otRQUOxLWHMBd1Y1qo2Gfg2KUvXNpT0ASnV9BzJCexw==}
@ -1574,6 +1579,17 @@ packages:
'@ungap/structured-clone@1.2.0': '@ungap/structured-clone@1.2.0':
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
'@vercel/analytics@1.3.1':
resolution: {integrity: sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==}
peerDependencies:
next: '>= 13'
react: ^18 || ^19
peerDependenciesMeta:
next:
optional: true
react:
optional: true
'@vercel/nft@0.26.0': '@vercel/nft@0.26.0':
resolution: {integrity: sha512-4JoDL1jMPoPb9PpilQx7IQwxDUYCSwnonN8GrR6bP2BVJR390toF/tJe20tcI+wDWPkJKJqNloipfaeQfTeU2w==} resolution: {integrity: sha512-4JoDL1jMPoPb9PpilQx7IQwxDUYCSwnonN8GrR6bP2BVJR390toF/tJe20tcI+wDWPkJKJqNloipfaeQfTeU2w==}
engines: {node: '>=18'} engines: {node: '>=18'}
@ -3500,6 +3516,9 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
hasBin: true hasBin: true
server-only@0.0.1:
resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==}
set-blocking@2.0.0: set-blocking@2.0.0:
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
@ -3763,8 +3782,8 @@ packages:
typescript: typescript:
optional: true optional: true
svelte@4.2.18: svelte@4.2.19:
resolution: {integrity: sha512-d0FdzYIiAePqRJEb90WlJDkjUEx42xhivxN8muUBmfZnP+tzUgz12DJ2hRJi8sIHCME7jeK1PTMgKPSfTd8JrA==} resolution: {integrity: sha512-IY1rnGr6izd10B0A8LqsBfmlT5OILVuZ7XsI0vdGPEvuonFV7NYEUK4dAkm9Zg2q0Um92kYjTpS1CAP3Nh/KWw==}
engines: {node: '>=16'} engines: {node: '>=16'}
symbol-tree@3.2.4: symbol-tree@3.2.4:
@ -5424,13 +5443,13 @@ snapshots:
- encoding - encoding
- supports-color - supports-color
'@sveltejs/eslint-config@6.0.4(@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3))(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint-config-prettier@9.1.0(eslint@8.56.0))(eslint-plugin-svelte@2.39.0(eslint@8.56.0)(svelte@4.2.18))(eslint-plugin-unicorn@47.0.0(eslint@8.56.0))(eslint@8.56.0)(typescript@5.3.3)': '@sveltejs/eslint-config@6.0.4(@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3))(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint-config-prettier@9.1.0(eslint@8.56.0))(eslint-plugin-svelte@2.39.0(eslint@8.56.0)(svelte@4.2.19))(eslint-plugin-unicorn@47.0.0(eslint@8.56.0))(eslint@8.56.0)(typescript@5.3.3)':
dependencies: dependencies:
'@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@7.9.0(eslint@8.56.0)(typescript@5.3.3))(eslint@8.56.0)(typescript@5.3.3)
'@typescript-eslint/parser': 7.9.0(eslint@8.56.0)(typescript@5.3.3) '@typescript-eslint/parser': 7.9.0(eslint@8.56.0)(typescript@5.3.3)
eslint: 8.56.0 eslint: 8.56.0
eslint-config-prettier: 9.1.0(eslint@8.56.0) eslint-config-prettier: 9.1.0(eslint@8.56.0)
eslint-plugin-svelte: 2.39.0(eslint@8.56.0)(svelte@4.2.18) eslint-plugin-svelte: 2.39.0(eslint@8.56.0)(svelte@4.2.19)
eslint-plugin-unicorn: 47.0.0(eslint@8.56.0) eslint-plugin-unicorn: 47.0.0(eslint@8.56.0)
typescript: 5.3.3 typescript: 5.3.3
@ -5794,6 +5813,10 @@ snapshots:
'@ungap/structured-clone@1.2.0': {} '@ungap/structured-clone@1.2.0': {}
'@vercel/analytics@1.3.1':
dependencies:
server-only: 0.0.1
'@vercel/nft@0.26.0': '@vercel/nft@0.26.0':
dependencies: dependencies:
'@mapbox/node-pre-gyp': 1.0.11 '@mapbox/node-pre-gyp': 1.0.11
@ -6459,7 +6482,7 @@ snapshots:
dependencies: dependencies:
'@types/estree': 1.0.5 '@types/estree': 1.0.5
eslint-plugin-svelte@2.35.1(eslint@8.56.0)(svelte@4.2.18): eslint-plugin-svelte@2.35.1(eslint@8.56.0)(svelte@4.2.19):
dependencies: dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0)
'@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/sourcemap-codec': 1.4.15
@ -6473,14 +6496,14 @@ snapshots:
postcss-safe-parser: 6.0.0(postcss@8.4.32) postcss-safe-parser: 6.0.0(postcss@8.4.32)
postcss-selector-parser: 6.0.15 postcss-selector-parser: 6.0.15
semver: 7.5.4 semver: 7.5.4
svelte-eslint-parser: 0.33.1(svelte@4.2.18) svelte-eslint-parser: 0.33.1(svelte@4.2.19)
optionalDependencies: optionalDependencies:
svelte: 4.2.18 svelte: 4.2.19
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
- ts-node - ts-node
eslint-plugin-svelte@2.39.0(eslint@8.56.0)(svelte@4.2.18): eslint-plugin-svelte@2.39.0(eslint@8.56.0)(svelte@4.2.19):
dependencies: dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0) '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0)
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0
@ -6494,9 +6517,9 @@ snapshots:
postcss-safe-parser: 6.0.0(postcss@8.4.39) postcss-safe-parser: 6.0.0(postcss@8.4.39)
postcss-selector-parser: 6.1.0 postcss-selector-parser: 6.1.0
semver: 7.6.2 semver: 7.6.2
svelte-eslint-parser: 0.39.2(svelte@4.2.18) svelte-eslint-parser: 0.39.2(svelte@4.2.19)
optionalDependencies: optionalDependencies:
svelte: 4.2.18 svelte: 4.2.19
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
- ts-node - ts-node
@ -7600,10 +7623,10 @@ snapshots:
prelude-ls@1.2.1: {} prelude-ls@1.2.1: {}
prettier-plugin-svelte@2.10.1(prettier@2.8.8)(svelte@4.2.18): prettier-plugin-svelte@2.10.1(prettier@2.8.8)(svelte@4.2.19):
dependencies: dependencies:
prettier: 2.8.8 prettier: 2.8.8
svelte: 4.2.18 svelte: 4.2.19
prettier-plugin-svelte@3.1.2(prettier@3.1.1)(svelte@packages+svelte): prettier-plugin-svelte@3.1.2(prettier@3.1.1)(svelte@packages+svelte):
dependencies: dependencies:
@ -7820,6 +7843,8 @@ snapshots:
semver@7.6.2: {} semver@7.6.2: {}
server-only@0.0.1: {}
set-blocking@2.0.0: {} set-blocking@2.0.0: {}
set-cookie-parser@2.6.0: {} set-cookie-parser@2.6.0: {}
@ -8064,7 +8089,7 @@ snapshots:
- stylus - stylus
- sugarss - sugarss
svelte-eslint-parser@0.33.1(svelte@4.2.18): svelte-eslint-parser@0.33.1(svelte@4.2.19):
dependencies: dependencies:
eslint-scope: 7.2.2 eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.3 eslint-visitor-keys: 3.4.3
@ -8072,9 +8097,9 @@ snapshots:
postcss: 8.4.32 postcss: 8.4.32
postcss-scss: 4.0.9(postcss@8.4.32) postcss-scss: 4.0.9(postcss@8.4.32)
optionalDependencies: optionalDependencies:
svelte: 4.2.18 svelte: 4.2.19
svelte-eslint-parser@0.39.2(svelte@4.2.18): svelte-eslint-parser@0.39.2(svelte@4.2.19):
dependencies: dependencies:
eslint-scope: 7.2.2 eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.3 eslint-visitor-keys: 3.4.3
@ -8082,7 +8107,7 @@ snapshots:
postcss: 8.4.39 postcss: 8.4.39
postcss-scss: 4.0.9(postcss@8.4.39) postcss-scss: 4.0.9(postcss@8.4.39)
optionalDependencies: optionalDependencies:
svelte: 4.2.18 svelte: 4.2.19
svelte-hmr@0.15.3(svelte@packages+svelte): svelte-hmr@0.15.3(svelte@packages+svelte):
dependencies: dependencies:
@ -8113,7 +8138,7 @@ snapshots:
postcss-load-config: 3.1.4(postcss@8.4.39) postcss-load-config: 3.1.4(postcss@8.4.39)
typescript: 5.3.3 typescript: 5.3.3
svelte@4.2.18: svelte@4.2.19:
dependencies: dependencies:
'@ampproject/remapping': 2.3.0 '@ampproject/remapping': 2.3.0
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0

@ -20,6 +20,7 @@
"@jridgewell/sourcemap-codec": "^1.4.15", "@jridgewell/sourcemap-codec": "^1.4.15",
"@supabase/supabase-js": "^2.39.2", "@supabase/supabase-js": "^2.39.2",
"@sveltejs/repl": "0.6.0", "@sveltejs/repl": "0.6.0",
"@vercel/analytics": "^1.3.1",
"cookie": "^0.6.0", "cookie": "^0.6.0",
"devalue": "^4.3.2", "devalue": "^4.3.2",
"do-not-zip": "^1.0.0", "do-not-zip": "^1.0.0",

@ -2,6 +2,7 @@
import '@sveltejs/site-kit/styles/index.css'; import '@sveltejs/site-kit/styles/index.css';
import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit'; import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit';
import { inject } from '@vercel/analytics'
import { browser } from '$app/environment'; import { browser } from '$app/environment';
import { page } from '$app/stores'; import { page } from '$app/stores';
import { Icon, Shell, Banners } from '@sveltejs/site-kit/components'; import { Icon, Shell, Banners } from '@sveltejs/site-kit/components';
@ -9,6 +10,7 @@
import { Search, SearchBox } from '@sveltejs/site-kit/search'; import { Search, SearchBox } from '@sveltejs/site-kit/search';
injectSpeedInsights(); injectSpeedInsights();
inject();
export let data; export let data;

Loading…
Cancel
Save