From 45f446e2f3e80243cfad027a7f87e89ace499aa3 Mon Sep 17 00:00:00 2001 From: Dallas Hoffman Date: Wed, 31 Jul 2024 22:57:22 -0400 Subject: [PATCH] Update sqlocal; fix preload issue; list margin --- package-lock.json | 89 +++++++++++++++++++++++++++++++++++------ package.json | 2 +- src/routes/+layout.ts | 1 + src/styles/_bytemd.scss | 4 ++ 4 files changed, 83 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7335440..e2d6670 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@bytemd/plugin-gfm": "^1.21.0", "bytemd": "1.21.0", "kysely": "^0.27.3", - "sqlocal": "^0.7.1" + "sqlocal": "^0.11.1" }, "devDependencies": { "@picocss/pico": "^1.5.10", @@ -2647,9 +2647,10 @@ ] }, "node_modules/@sqlite.org/sqlite-wasm": { - "version": "3.45.1-build1", - "resolved": "https://registry.npmjs.org/@sqlite.org/sqlite-wasm/-/sqlite-wasm-3.45.1-build1.tgz", - "integrity": "sha512-1EgshFNhVeBtZ9KtQPm3PzzJ2CtpmXAq2DAPywy7WZ3gOK6p5n8TY+M+mBMpQCF5cLqrdNFb3Kp9uNie9rUAHw==", + "version": "3.46.0-build2", + "resolved": "https://registry.npmjs.org/@sqlite.org/sqlite-wasm/-/sqlite-wasm-3.46.0-build2.tgz", + "integrity": "sha512-10s/u/Main1RGO+jjzK+mgC/zh1ls1CEnq3Dujr03TwvzLg+j4FAohOmlYkQj8KQOj1vGR9cuB9F8tVBTwVGVA==", + "license": "Apache-2.0", "bin": { "sqlite-wasm": "bin/index.js" } @@ -2868,6 +2869,18 @@ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz", "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==" }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "license": "ISC" + }, + "node_modules/@ungap/with-resolvers": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@ungap/with-resolvers/-/with-resolvers-0.1.0.tgz", + "integrity": "sha512-g7f0IkJdPW2xhY7H4iE72DAsIyfuwEFc6JWc2tYFwKDMWWAF699vGjrM348cwQuOXgHpe1gWFe+Eiyjx/ewvvw==", + "license": "ISC" + }, "node_modules/@vite-pwa/assets-generator": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/@vite-pwa/assets-generator/-/assets-generator-0.2.4.tgz", @@ -3496,6 +3509,21 @@ "@types/codemirror": "^5.0.0" } }, + "node_modules/coincident": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/coincident/-/coincident-1.2.3.tgz", + "integrity": "sha512-Uxz3BMTWIslzeWjuQnizGWVg0j6khbvHUQ8+5BdM7WuJEm4ALXwq3wluYoB+uF68uPBz/oUOeJnYURKyfjexlA==", + "license": "ISC", + "dependencies": { + "@ungap/structured-clone": "^1.2.0", + "@ungap/with-resolvers": "^0.1.0", + "gc-hook": "^0.3.1", + "proxy-target": "^3.0.2" + }, + "optionalDependencies": { + "ws": "^8.16.0" + } + }, "node_modules/color": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", @@ -4331,6 +4359,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/gc-hook": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/gc-hook/-/gc-hook-0.3.1.tgz", + "integrity": "sha512-E5M+O/h2o7eZzGhzRZGex6hbB3k4NWqO0eA+OzLRLXxhdbYPajZnynPwAtphnh+cRHPwsj5Z80dqZlfI4eK55A==", + "license": "ISC" + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -6327,15 +6361,16 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/nanoid": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.6.tgz", - "integrity": "sha512-rRq0eMHoGZxlvaFOUdK1Ev83Bd1IgzzR+WJ3IbDJ7QOSdAxYjlurSPqFs9s4lJg29RT6nPwizFtJhQS6V5xgiA==", + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.7.tgz", + "integrity": "sha512-oLxFY2gd2IqnjcYyOXD8XGCftpGtZP2AbHbOkthDkvRywH5ayNtPVy9YlOPcHckXzbLTCHpkb7FB+yuxKV13pQ==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "bin": { "nanoid": "bin/nanoid.js" }, @@ -6731,6 +6766,12 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/proxy-target": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/proxy-target/-/proxy-target-3.0.2.tgz", + "integrity": "sha512-FFE1XNwXX/FNC3/P8HiKaJSy/Qk68RitG/QEcLy/bVnTAPlgTAWPZKh0pARLAnpfXQPKyalBhk009NRTgsk8vQ==", + "license": "MIT" + }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -7519,12 +7560,14 @@ } }, "node_modules/sqlocal": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/sqlocal/-/sqlocal-0.7.1.tgz", - "integrity": "sha512-E2OsznO0Vjuby3p+MWd4WsjJYCiHFSJC5tg/WGEGFPb+UJ+xUsmpwcppl17oI83W3JK5qMTERUICO0hW4shYgA==", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/sqlocal/-/sqlocal-0.11.1.tgz", + "integrity": "sha512-vg0j6WGleDvBJlG3p3hEVZ01j+X83O8kZMTao01g7XoIJUB6dmFEWu5ePY5Rhg36J61zP5/+hhSUQi7GD4+/PA==", + "license": "MIT", "dependencies": { - "@sqlite.org/sqlite-wasm": "^3.45.1-build1", - "nanoid": "^5.0.5" + "@sqlite.org/sqlite-wasm": "^3.46.0-build2", + "coincident": "^1.2.3", + "nanoid": "^5.0.7" }, "funding": { "type": "paypal", @@ -8990,6 +9033,28 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, + "node_modules/ws": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", diff --git a/package.json b/package.json index 0c019da..a5506b4 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@bytemd/plugin-gfm": "^1.21.0", "bytemd": "1.21.0", "kysely": "^0.27.3", - "sqlocal": "^0.7.1" + "sqlocal": "^0.11.1" }, "devDependencies": { "@picocss/pico": "^1.5.10", diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index 03e612c..ec1acd2 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -1,2 +1,3 @@ import '$styles/index.scss'; export const ssr = false; +export const prerender = true; diff --git a/src/styles/_bytemd.scss b/src/styles/_bytemd.scss index 5422c53..bcfa9bf 100644 --- a/src/styles/_bytemd.scss +++ b/src/styles/_bytemd.scss @@ -68,6 +68,10 @@ margin-bottom: 0; } + :where(dl, ol, ul) { + margin-bottom: 1rem; + } + .task-list-item { list-style-type: none; }