diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 28f670c19..7ddf24848 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -224,7 +224,7 @@ importers: lint-staged: ^12.3.4 lodash: ^4.17.21 mdsvex: ^0.10.6 - node-html-parser: ^5.3.3 + node-html-parser: ^5.4.1 prettier: ^2.5.1 prettier-plugin-svelte: ^2.7.0 prism-svelte: ^0.5.0 @@ -240,15 +240,20 @@ importers: vite: ^3.0.5 vite-plugin-replace: ^0.1.1 dependencies: + '@sveltejs/adapter-auto': 1.0.0-next.65 + '@sveltejs/kit': 1.0.0-next.405_svelte@3.49.0+vite@3.0.8 feather-icons: 4.29.0 flexsearch: 0.7.21 lodash: 4.17.21 + mdsvex: 0.10.6_svelte@3.49.0 + node-html-parser: 5.4.1 prism-svelte: 0.5.0 prismjs: 1.28.0 + rehype-autolink-headings: 6.1.1 + rehype-slug: 5.0.1 + svelte-preprocess: 4.10.7_574864f2c1e38a18e1dd006ff2a55a0f vite-plugin-replace: 0.1.1_vite@3.0.8 devDependencies: - '@sveltejs/adapter-auto': 1.0.0-next.65 - '@sveltejs/kit': 1.0.0-next.405_svelte@3.49.0+vite@3.0.8 '@typescript-eslint/eslint-plugin': 5.33.1_9453dc52f46f2b5190141254f471acd8 '@typescript-eslint/parser': 5.33.1_eslint@8.22.0+typescript@4.5.4 eslint: 8.22.0 @@ -256,16 +261,11 @@ importers: eslint-plugin-svelte3: 4.0.0_eslint@8.22.0+svelte@3.49.0 husky: 7.0.4 lint-staged: 12.5.0 - mdsvex: 0.10.6_svelte@3.49.0 - node-html-parser: 5.4.1 prettier: 2.7.1 prettier-plugin-svelte: 2.7.0_prettier@2.7.1+svelte@3.49.0 - rehype-autolink-headings: 6.1.1 - rehype-slug: 5.0.1 svelte: 3.49.0 svelte-check: 2.8.0_672e12d11bb153592c4fcd404f07f29e svelte-kit-cookie-session: 3.0.6 - svelte-preprocess: 4.10.7_574864f2c1e38a18e1dd006ff2a55a0f tslib: 2.4.0 typescript: 4.5.4 vite: 3.0.8 @@ -2262,7 +2262,6 @@ packages: { integrity: sha512-B1/plF62pt+H2IJHvApK8fdOJAVsvojvacuac8x8s+JIyqbropMyqNqHTKLm3YD8ZFLGwYeFTudU+PQ7vGvBdA==, } - dev: true /@cnakazawa/watch/1.0.4: resolution: @@ -2545,7 +2544,6 @@ packages: { integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==, } - dev: true /@istanbuljs/load-nyc-config/1.1.0: resolution: @@ -2966,7 +2964,6 @@ packages: transitivePeerDependencies: - encoding - supports-color - dev: true /@mdx-js/util/1.6.22: resolution: @@ -3211,7 +3208,6 @@ packages: dependencies: estree-walker: 2.0.2 picomatch: 2.3.1 - dev: true /@rushstack/eslint-patch/1.1.4: resolution: @@ -3271,7 +3267,7 @@ packages: transitivePeerDependencies: - encoding - supports-color - dev: true + dev: false /@sveltejs/adapter-cloudflare/1.0.0-next.31: resolution: @@ -3282,7 +3278,6 @@ packages: '@cloudflare/workers-types': 3.14.1 esbuild: 0.14.54 worktop: 0.8.0-next.14 - dev: true /@sveltejs/adapter-netlify/1.0.0-next.71: resolution: @@ -3294,7 +3289,6 @@ packages: esbuild: 0.14.54 set-cookie-parser: 2.5.1 tiny-glob: 0.2.9 - dev: true /@sveltejs/adapter-vercel/1.0.0-next.66: resolution: @@ -3320,7 +3314,7 @@ packages: transitivePeerDependencies: - encoding - supports-color - dev: true + dev: false /@sveltejs/kit/1.0.0-next.405_svelte@3.49.0+vite@3.0.8: resolution: @@ -3343,7 +3337,7 @@ packages: transitivePeerDependencies: - diff-match-patch - supports-color - dev: true + dev: false /@sveltejs/kit/1.0.0-next.411_svelte@3.49.0+vite@3.0.8: resolution: @@ -3432,7 +3426,6 @@ packages: vite: 3.0.8 transitivePeerDependencies: - supports-color - dev: true /@theguild/eslint-config/0.0.1_eslint@8.22.0+typescript@4.7.4: resolution: @@ -3602,7 +3595,7 @@ packages: } dependencies: '@types/unist': 2.0.6 - dev: true + dev: false /@types/inquirer/7.3.3: resolution: @@ -3780,7 +3773,6 @@ packages: { integrity: sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==, } - dev: true /@types/resolve/1.17.1: resolution: @@ -3798,7 +3790,6 @@ packages: } dependencies: '@types/node': 18.7.6 - dev: true /@types/semver/6.2.3: resolution: @@ -4265,7 +4256,6 @@ packages: transitivePeerDependencies: - encoding - supports-color - dev: true /@vitest/ui/0.21.1: resolution: @@ -4318,7 +4308,6 @@ packages: { integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==, } - dev: true /abort-controller/3.0.0: resolution: @@ -4375,7 +4364,6 @@ packages: } engines: { node: '>=0.4.0' } hasBin: true - dev: true /agent-base/6.0.2: resolution: @@ -4387,7 +4375,6 @@ packages: debug: 4.3.4 transitivePeerDependencies: - supports-color - dev: true /aggregate-error/3.1.0: resolution: @@ -4498,14 +4485,12 @@ packages: dependencies: normalize-path: 3.0.0 picomatch: 2.3.1 - dev: true /aproba/2.0.0: resolution: { integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==, } - dev: true /are-we-there-yet/2.0.0: resolution: @@ -4516,7 +4501,6 @@ packages: dependencies: delegates: 1.0.0 readable-stream: 3.6.0 - dev: true /arg/4.1.3: resolution: @@ -4715,7 +4699,6 @@ packages: { integrity: sha512-tLRNUXati5MFePdAk8dw7Qt7DpxPB60ofAgn8WRhW6a2rcimZnYBP9oxHiv0OHy+Wz7kPMG+t4LGdt31+4EmGg==, } - dev: true /asynckit/0.4.0: resolution: @@ -4927,7 +4910,7 @@ packages: { integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==, } - dev: true + dev: false /balanced-match/1.0.2: resolution: @@ -4974,7 +4957,6 @@ packages: integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==, } engines: { node: '>=8' } - dev: true /bindings/1.5.0: resolution: @@ -4983,7 +4965,6 @@ packages: } dependencies: file-uri-to-path: 1.0.0 - dev: true /bl/4.1.0: resolution: @@ -5001,7 +4982,7 @@ packages: { integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==, } - dev: true + dev: false /brace-expansion/1.1.11: resolution: @@ -5011,7 +4992,6 @@ packages: dependencies: balanced-match: 1.0.2 concat-map: 0.0.1 - dev: true /brace-expansion/2.0.1: resolution: @@ -5103,7 +5083,6 @@ packages: { integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==, } - dev: true /buffer-from/1.1.2: resolution: @@ -5356,7 +5335,6 @@ packages: readdirp: 3.6.0 optionalDependencies: fsevents: 2.3.2 - dev: true /chownr/2.0.0: resolution: @@ -5364,7 +5342,6 @@ packages: integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==, } engines: { node: '>=10' } - dev: true /ci-info/2.0.0: resolution: @@ -5572,7 +5549,6 @@ packages: integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==, } hasBin: true - dev: true /colorette/2.0.19: resolution: @@ -5625,7 +5601,6 @@ packages: { integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==, } - dev: true /concurrently/7.1.0: resolution: @@ -5669,7 +5644,6 @@ packages: { integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==, } - dev: true /convert-source-map/1.8.0: resolution: @@ -5809,7 +5783,7 @@ packages: domhandler: 4.3.1 domutils: 2.8.0 nth-check: 2.1.1 - dev: true + dev: false /css-what/6.1.0: resolution: @@ -5817,7 +5791,7 @@ packages: integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==, } engines: { node: '>= 6' } - dev: true + dev: false /cssom/0.3.8: resolution: @@ -6025,7 +5999,6 @@ packages: integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==, } engines: { node: '>=0.10.0' } - dev: true /defaults/1.0.3: resolution: @@ -6090,7 +6063,6 @@ packages: { integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==, } - dev: true /detect-indent/6.1.0: resolution: @@ -6098,7 +6070,6 @@ packages: integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==, } engines: { node: '>=8' } - dev: true /detect-libc/2.0.1: resolution: @@ -6106,7 +6077,6 @@ packages: integrity: sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==, } engines: { node: '>=8' } - dev: true /detect-newline/3.1.0: resolution: @@ -6186,7 +6156,7 @@ packages: domelementtype: 2.3.0 domhandler: 4.3.1 entities: 2.2.0 - dev: true + dev: false /dom-walk/0.1.2: resolution: @@ -6200,7 +6170,7 @@ packages: { integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==, } - dev: true + dev: false /domexception/2.0.1: resolution: @@ -6220,7 +6190,7 @@ packages: engines: { node: '>= 4' } dependencies: domelementtype: 2.3.0 - dev: true + dev: false /domutils/2.8.0: resolution: @@ -6231,7 +6201,7 @@ packages: dom-serializer: 1.4.1 domelementtype: 2.3.0 domhandler: 4.3.1 - dev: true + dev: false /dotenv/8.6.0: resolution: @@ -6308,7 +6278,7 @@ packages: { integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==, } - dev: true + dev: false /errno/0.1.8: resolution: @@ -6387,7 +6357,6 @@ packages: { integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==, } - dev: true /esbuild-android-64/0.14.54: resolution: @@ -7103,7 +7072,6 @@ packages: { integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==, } - dev: true /estree-walker/1.0.1: resolution: @@ -7279,7 +7247,6 @@ packages: { integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==, } - dev: true /extendable-error/0.1.7: resolution: @@ -7415,7 +7382,6 @@ packages: { integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==, } - dev: true /fill-range/4.0.0: resolution: @@ -7610,7 +7576,6 @@ packages: engines: { node: '>= 8' } dependencies: minipass: 3.3.5 - dev: true /fs-monkey/1.0.3: resolution: @@ -7684,7 +7649,6 @@ packages: string-width: 4.2.3 strip-ansi: 6.0.1 wide-align: 1.1.5 - dev: true /gensync/1.0.0-beta.2: resolution: @@ -7780,7 +7744,7 @@ packages: { integrity: sha512-w0dzqw/nt51xMVmlaV1+JRzN+oCa1KfcgGEWhxUG16wbdA+Xnt/yoFO8Z8x/V82ZcZ0wy6ln9QDup5avbhiDhQ==, } - dev: true + dev: false /glob-parent/5.1.2: resolution: @@ -7790,7 +7754,6 @@ packages: engines: { node: '>= 6' } dependencies: is-glob: 4.0.3 - dev: true /glob-parent/6.0.2: resolution: @@ -7814,7 +7777,6 @@ packages: minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 - dev: true /glob/8.0.3: resolution: @@ -7863,7 +7825,6 @@ packages: { integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==, } - dev: true /globby/11.1.0: resolution: @@ -7885,14 +7846,12 @@ packages: { integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==, } - dev: true /graceful-fs/4.2.10: resolution: { integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==, } - dev: true /grapheme-splitter/1.0.4: resolution: @@ -8024,7 +7983,6 @@ packages: { integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==, } - dev: true /has-value/0.3.1: resolution: @@ -8092,7 +8050,7 @@ packages: { integrity: sha512-4Qf++8o5v14us4Muv3HRj+Er6wTNGA/N9uCaZMty4JWvyFKLdhULrv4KE1b65AthsSO9TXSZnjuxS8ecIyhb0w==, } - dev: true + dev: false /hast-util-heading-rank/2.1.0: resolution: @@ -8101,7 +8059,7 @@ packages: } dependencies: '@types/hast': 2.3.4 - dev: true + dev: false /hast-util-is-element/2.1.2: resolution: @@ -8111,7 +8069,7 @@ packages: dependencies: '@types/hast': 2.3.4 '@types/unist': 2.0.6 - dev: true + dev: false /hast-util-to-string/2.0.0: resolution: @@ -8120,7 +8078,7 @@ packages: } dependencies: '@types/hast': 2.3.4 - dev: true + dev: false /he/1.2.0: resolution: @@ -8128,7 +8086,7 @@ packages: integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==, } hasBin: true - dev: true + dev: false /hosted-git-info/2.8.9: resolution: @@ -8179,7 +8137,6 @@ packages: debug: 4.3.4 transitivePeerDependencies: - supports-color - dev: true /human-id/1.0.2: resolution: @@ -8415,7 +8372,6 @@ packages: engines: { node: '>=8' } dependencies: binary-extensions: 2.2.0 - dev: true /is-boolean-object/1.1.2: resolution: @@ -8441,7 +8397,6 @@ packages: integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==, } engines: { node: '>=4' } - dev: true /is-builtin-module/3.2.0: resolution: @@ -8585,7 +8540,6 @@ packages: integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==, } engines: { node: '>=0.10.0' } - dev: true /is-fullwidth-code-point/3.0.0: resolution: @@ -8618,7 +8572,6 @@ packages: engines: { node: '>=0.10.0' } dependencies: is-extglob: 2.1.1 - dev: true /is-hexadecimal/1.0.4: resolution: @@ -8701,7 +8654,7 @@ packages: integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==, } engines: { node: '>=12' } - dev: true + dev: false /is-plain-object/2.0.4: resolution: @@ -9851,7 +9804,6 @@ packages: integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==, } engines: { node: '>=6' } - dev: true /language-subtag-registry/0.3.22: resolution: @@ -10110,7 +10062,6 @@ packages: } dependencies: sourcemap-codec: 1.4.8 - dev: true /magic-string/0.26.2: resolution: @@ -10120,7 +10071,6 @@ packages: engines: { node: '>=12' } dependencies: sourcemap-codec: 1.4.8 - dev: true /make-dir/3.1.0: resolution: @@ -10130,7 +10080,6 @@ packages: engines: { node: '>=8' } dependencies: semver: 6.3.0 - dev: true /make-error/1.3.6: resolution: @@ -10247,6 +10196,7 @@ packages: prismjs: 1.28.0 svelte: 3.49.0 vfile-message: 2.0.4 + dev: false /memfs/3.4.7: resolution: @@ -10398,7 +10348,6 @@ packages: integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==, } engines: { node: '>=4' } - dev: true /minimatch/3.1.2: resolution: @@ -10407,7 +10356,6 @@ packages: } dependencies: brace-expansion: 1.1.11 - dev: true /minimatch/5.1.0: resolution: @@ -10435,7 +10383,6 @@ packages: { integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==, } - dev: true /minipass/3.3.5: resolution: @@ -10445,7 +10392,6 @@ packages: engines: { node: '>=8' } dependencies: yallist: 4.0.0 - dev: true /minizlib/2.1.2: resolution: @@ -10456,7 +10402,6 @@ packages: dependencies: minipass: 3.3.5 yallist: 4.0.0 - dev: true /mixin-deep/1.3.2: resolution: @@ -10485,7 +10430,6 @@ packages: hasBin: true dependencies: minimist: 1.2.6 - dev: true /mkdirp/1.0.4: resolution: @@ -10508,7 +10452,6 @@ packages: integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==, } engines: { node: '>=4' } - dev: true /mrmime/1.0.1: resolution: @@ -10516,7 +10459,6 @@ packages: integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==, } engines: { node: '>=10' } - dev: true /ms/2.0.0: resolution: @@ -10640,7 +10582,6 @@ packages: integrity: sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg==, } hasBin: true - dev: true /node-html-parser/5.4.1: resolution: @@ -10650,7 +10591,7 @@ packages: dependencies: css-select: 4.3.0 he: 1.2.0 - dev: true + dev: false /node-int64/0.4.0: resolution: @@ -10691,7 +10632,6 @@ packages: hasBin: true dependencies: abbrev: 1.1.1 - dev: true /normalize-package-data/2.5.0: resolution: @@ -10721,7 +10661,6 @@ packages: integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==, } engines: { node: '>=0.10.0' } - dev: true /npm-run-path/2.0.2: resolution: @@ -10834,7 +10773,6 @@ packages: console-control-strings: 1.1.0 gauge: 3.0.2 set-blocking: 2.0.0 - dev: true /nth-check/2.1.1: resolution: @@ -10843,7 +10781,7 @@ packages: } dependencies: boolbase: 1.0.0 - dev: true + dev: false /nwsapi/2.2.1: resolution: @@ -10858,7 +10796,6 @@ packages: integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==, } engines: { node: '>=0.10.0' } - dev: true /object-copy/0.1.0: resolution: @@ -11207,7 +11144,6 @@ packages: integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==, } engines: { node: '>=0.10.0' } - dev: true /path-is-network-drive/1.0.16: resolution: @@ -11476,6 +11412,7 @@ packages: { integrity: sha512-yABh19CYbM24V7aS7TuPYRNMqthxwbvx6FF/Rw920YbyBWO3tnyPIqRMgHuSVsLmuHkkBS1Akyof463FVdkeDQ==, } + dev: false /prism-svelte/0.5.0: resolution: @@ -11490,6 +11427,7 @@ packages: integrity: sha512-8aaXdYvl1F7iC7Xm1spqSaY/OJBpYW3v+KJ+F17iYxvdc8sfjW194COK5wVhMZX45tGteiBQgdvD/nhxcRwylw==, } engines: { node: '>=6' } + dev: false /process-nextick-args/2.0.1: resolution: @@ -11694,7 +11632,6 @@ packages: engines: { node: '>=8.10.0' } dependencies: picomatch: 2.3.1 - dev: true /recast/0.20.5: resolution: @@ -11790,7 +11727,6 @@ packages: integrity: sha512-zRgSaYemnNYxUv+/5SeoHI0eJIgTL/A2pUtXUPLHQxUldagouJ9p+K6IbIZ/JiQuCEv2E2B1O11SjVQy3aMCkw==, } engines: { node: '>=8' } - dev: true /regexpp/3.2.0: resolution: @@ -11845,7 +11781,7 @@ packages: hast-util-is-element: 2.1.2 unified: 10.1.2 unist-util-visit: 4.1.0 - dev: true + dev: false /rehype-slug/5.0.1: resolution: @@ -11860,7 +11796,7 @@ packages: hast-util-to-string: 2.0.0 unified: 10.1.2 unist-util-visit: 4.1.0 - dev: true + dev: false /remark-mdx/1.6.22: resolution: @@ -12000,7 +11936,6 @@ packages: integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==, } engines: { node: '>=8' } - dev: true /resolve-url/0.2.1: resolution: @@ -12075,7 +12010,6 @@ packages: hasBin: true dependencies: glob: 7.2.3 - dev: true /rimraf/3.0.2: resolution: @@ -12085,7 +12019,6 @@ packages: hasBin: true dependencies: glob: 7.2.3 - dev: true /rollup-plugin-typescript2/0.31.2_rollup@2.68.0+typescript@4.7.4: resolution: @@ -12113,7 +12046,6 @@ packages: } dependencies: estree-walker: 0.6.1 - dev: true /rollup/2.68.0: resolution: @@ -12187,7 +12119,6 @@ packages: engines: { node: '>=6' } dependencies: mri: 1.2.0 - dev: true /safe-buffer/5.1.2: resolution: @@ -12236,7 +12167,6 @@ packages: graceful-fs: 4.2.10 mkdirp: 0.5.6 rimraf: 2.7.1 - dev: true /sane/4.1.0: resolution: @@ -12282,7 +12212,6 @@ packages: integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==, } hasBin: true - dev: true /semver/7.0.0: resolution: @@ -12301,7 +12230,6 @@ packages: hasBin: true dependencies: lru-cache: 6.0.0 - dev: true /seq/0.3.5: resolution: @@ -12318,14 +12246,12 @@ packages: { integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==, } - dev: true /set-cookie-parser/2.5.1: resolution: { integrity: sha512-1jeBGaKNGdEq4FgIrORu/N570dwoPYio8lSoYLWmX7sQ//0JY08Xh9o5pBcgmHQ/MbsYp/aZnOe1s1lIsbLprQ==, } - dev: true /set-value/2.0.1: resolution: @@ -12534,7 +12460,6 @@ packages: minimist: 1.2.6 sander: 0.5.1 sourcemap-codec: 1.4.8 - dev: true /source-map-js/1.0.2: resolution: @@ -12603,7 +12528,6 @@ packages: { integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==, } - dev: true /spawn-command/0.0.2: resolution: @@ -12887,7 +12811,6 @@ packages: engines: { node: '>=8' } dependencies: min-indent: 1.0.1 - dev: true /strip-json-comments/3.1.1: resolution: @@ -13000,7 +12923,6 @@ packages: svelte: '>=3.19.0' dependencies: svelte: 3.49.0 - dev: true /svelte-kit-cookie-session/3.0.6: resolution: @@ -13119,7 +13041,7 @@ packages: strip-indent: 3.0.0 svelte: 3.49.0 typescript: 4.5.4 - dev: true + dev: false /svelte-preprocess/4.10.7_bac3b31ef5ffe7afc7916633411c96ef: resolution: @@ -13215,7 +13137,6 @@ packages: minizlib: 2.1.2 mkdirp: 1.0.4 yallist: 4.0.0 - dev: true /term-size/2.2.1: resolution: @@ -13276,7 +13197,6 @@ packages: dependencies: globalyzer: 0.1.0 globrex: 0.1.2 - dev: true /tinypool/0.2.4: resolution: @@ -13455,7 +13375,7 @@ packages: { integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==, } - dev: true + dev: false /ts-jest/26.5.6_jest@26.6.3+typescript@4.7.4: resolution: @@ -13762,7 +13682,7 @@ packages: is-plain-obj: 4.1.0 trough: 2.1.0 vfile: 5.3.4 - dev: true + dev: false /unified/9.2.0: resolution: @@ -13822,7 +13742,7 @@ packages: { integrity: sha512-F5CZ68eYzuSvJjGhCLPL3cYx45IxkqXSetCcRgUXtbcm50X2L9oOWQlfUfDdAf+6Pd27YDblBfdtmsThXmwpbQ==, } - dev: true + dev: false /unist-util-remove-position/2.0.1: resolution: @@ -13849,7 +13769,7 @@ packages: } dependencies: '@types/unist': 2.0.6 - dev: true + dev: false /unist-util-visit-parents/3.1.1: resolution: @@ -13870,7 +13790,7 @@ packages: dependencies: '@types/unist': 2.0.6 unist-util-is: 5.1.1 - dev: true + dev: false /unist-util-visit/2.0.3: resolution: @@ -13893,7 +13813,7 @@ packages: '@types/unist': 2.0.6 unist-util-is: 5.1.1 unist-util-visit-parents: 5.1.0 - dev: true + dev: false /universalify/0.1.2: resolution: @@ -14049,7 +13969,7 @@ packages: dependencies: '@types/unist': 2.0.6 unist-util-stringify-position: 3.0.2 - dev: true + dev: false /vfile/4.2.1: resolution: @@ -14074,7 +13994,7 @@ packages: is-buffer: 2.0.5 unist-util-stringify-position: 3.0.2 vfile-message: 3.1.2 - dev: true + dev: false /vite-plugin-replace/0.1.1_vite@3.0.8: resolution: @@ -14343,7 +14263,6 @@ packages: } dependencies: string-width: 4.2.3 - dev: true /word-wrap/1.2.3: resolution: @@ -14362,7 +14281,6 @@ packages: dependencies: mrmime: 1.0.1 regexparam: 2.0.1 - dev: true /wrap-ansi/6.2.0: resolution: diff --git a/site/package.json b/site/package.json index da45b24d0..87c68fdff 100644 --- a/site/package.json +++ b/site/package.json @@ -11,8 +11,6 @@ "format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ." }, "devDependencies": { - "@sveltejs/adapter-auto": "1.0.0-next.65", - "@sveltejs/kit": "1.0.0-next.405", "@typescript-eslint/eslint-plugin": "^5.10.1", "@typescript-eslint/parser": "^5.10.1", "eslint": "^8.12.0", @@ -20,16 +18,11 @@ "eslint-plugin-svelte3": "^4.0.0", "husky": "^7.0.4", "lint-staged": "^12.3.4", - "mdsvex": "^0.10.6", - "node-html-parser": "^5.3.3", "prettier": "^2.5.1", "prettier-plugin-svelte": "^2.7.0", - "rehype-autolink-headings": "^6.1.1", - "rehype-slug": "^5.0.1", "svelte": "^3.47.0", "svelte-check": "^2.8.0", "svelte-kit-cookie-session": "3.0.6", - "svelte-preprocess": "^4.10.1", "tslib": "^2.3.1", "typescript": "4.5.4", "vite": "^3.0.5" @@ -42,8 +35,15 @@ "feather-icons": "^4.28.0", "flexsearch": "^0.7.21", "lodash": "^4.17.21", + "mdsvex": "^0.10.6", "prism-svelte": "^0.5.0", "prismjs": "^1.28.0", - "vite-plugin-replace": "^0.1.1" + "vite-plugin-replace": "^0.1.1", + "node-html-parser": "^5.4.1", + "rehype-autolink-headings": "^6.1.1", + "rehype-slug": "^5.0.1", + "@sveltejs/adapter-auto": "1.0.0-next.65", + "@sveltejs/kit": "1.0.0-next.405", + "svelte-preprocess": "^4.10.1" } } diff --git a/site/src/app.d.ts b/site/src/app.d.ts index c508644bd..386399c24 100644 --- a/site/src/app.d.ts +++ b/site/src/app.d.ts @@ -6,7 +6,7 @@ interface SessionData {} // for information about these interfaces declare namespace App { interface Locals { - session: import('svelte-kit-cookie-session').Session + session: {} cookies: Record // all parsed cookies are automatically set from handleSession to avoid overhead } diff --git a/site/src/hooks.ts b/site/src/hooks.ts deleted file mode 100644 index 251fbb726..000000000 --- a/site/src/hooks.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { handleSession } from 'svelte-kit-cookie-session' - -/** @type {import('@sveltejs/kit').GetSession} */ -export async function getSession({ locals }) { - return locals.session.data -} - -// You can do it like this, without passing a own handle function -export const handle = handleSession({ - secret: import.meta.env.VITE_SESSION_SECRET -})