mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 06:36:04 +00:00
upgrade deps
This commit is contained in:
parent
53ec4745c1
commit
2aa1861cde
7 changed files with 489 additions and 308 deletions
Binary file not shown.
25
package.json
25
package.json
|
@ -14,37 +14,38 @@
|
|||
"postinstall": "patch-package"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@img/sharp-linux-x64": "^0.33.0",
|
||||
"@img/sharp-linux-x64": "^0.33.1",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
||||
"@types/cookie": "^0.6.0",
|
||||
"@types/html-minifier": "^4.0.5",
|
||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
||||
"@typescript-eslint/parser": "^6.13.2",
|
||||
"eslint": "^8.55.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
||||
"@typescript-eslint/parser": "^6.18.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"mdsvex": "^0.11.0",
|
||||
"prettier": "^3.1.0",
|
||||
"prettier": "^3.1.1",
|
||||
"prettier-plugin-svelte": "^3.1.2",
|
||||
"sharp": "^0.33.0",
|
||||
"sharp": "^0.33.1",
|
||||
"svelte": "4.2.8",
|
||||
"svelte-check": "^3.6.2",
|
||||
"svelte-preprocess": "^5.1.1",
|
||||
"svelte-preprocess": "^5.1.3",
|
||||
"tslib": "^2.6.2",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@lukeed/uuid": "^2.0.1",
|
||||
"@sveltejs/adapter-node": "1.3.1",
|
||||
"@sveltejs/adapter-static": "^2.0.3",
|
||||
"@sveltejs/kit": "1.27.7",
|
||||
"@sveltejs/adapter-node": "^3.0.0",
|
||||
"@sveltejs/adapter-static": "^3.0.1",
|
||||
"@sveltejs/kit": "^2.3.0",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"cbor-x": "^1.5.6",
|
||||
"cbor-x": "^1.5.7",
|
||||
"cookie": "^0.6.0",
|
||||
"html-minifier": "^4.0.0",
|
||||
"patch-package": "^8.0.0",
|
||||
"postinstall-postinstall": "^2.1.0",
|
||||
"svelte-body": "^1.4.0",
|
||||
"vite": "5.0.6"
|
||||
"vite": "5.0.11"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
|
|
|
@ -10,7 +10,7 @@ export const load: Load = async ({ params }) => {
|
|||
try {
|
||||
page = await import(`../../(blog)/${slug}/index.svx`)
|
||||
} catch (e) {
|
||||
throw error(404, 'Not found')
|
||||
error(404, 'Not found');
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
@ -21,7 +21,7 @@ export const GET: RequestHandler = async ({ params }) => {
|
|||
if (!postSlug) throw new Error('No slug')
|
||||
if (!assetName) throw new Error('No asset')
|
||||
|
||||
if (!(await doesAssetExist(postSlug, assetName))) throw error(404, 'Not found')
|
||||
if (!(await doesAssetExist(postSlug, assetName))) error(404, 'Not found');
|
||||
|
||||
const file = await fs.promises.readFile(path.join(postsDir, postSlug, assetName))
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ export const GET: RequestHandler = async ({ params }) => {
|
|||
|
||||
const post = await getPost(slug)
|
||||
|
||||
if (post === null) throw error(404, 'Not found')
|
||||
if (post === null) error(404, 'Not found');
|
||||
|
||||
return json({
|
||||
title: post.title,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
"module": "es2022",
|
||||
"lib": ["es2022", "DOM", "WebWorker"],
|
||||
"target": "es2020",
|
||||
|
@ -8,7 +8,6 @@
|
|||
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
||||
to enforce using \`import type\` instead of \`import\` for Types.
|
||||
*/
|
||||
"importsNotUsedAsValues": "error",
|
||||
"isolatedModules": true,
|
||||
"resolveJsonModule": true,
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue