Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bearsdotzone committed Feb 29, 2024
1 parent 32d8b27 commit 54e452a
Show file tree
Hide file tree
Showing 9 changed files with 4,116 additions and 5,106 deletions.
2 changes: 1 addition & 1 deletion collection-tracker-redis
9,155 changes: 4,081 additions & 5,074 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,37 @@
"devDependencies": {
"@brainandbones/skeleton": "^0.76.0",
"@playwright/test": "^1.35.1",
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/kit": "^1.30.4",
"@types/cookie": "^0.5.1",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"@sveltejs/adapter-auto": "^3.1.1",
"@sveltejs/kit": "^2.5.2",
"@types/cookie": "^0.6.0",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"autoprefixer": "^10.4.7",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.32.0",
"postcss": "^8.4.31",
"postcss-load-config": "^4.0.1",
"prettier": "^2.6.2",
"prettier-plugin-svelte": "^2.7.0",
"postcss-load-config": "^5.0.3",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"svelte": "^4.0.0",
"svelte-check": "^3.4.4",
"svelte-preprocess": "^5.0.4",
"tailwindcss": "^3.1.5",
"tslib": "^2.3.1",
"typescript": "^5.1.5",
"vite": "^4.5.2"
"vite": "^5.1.4"
},
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^5.0.3",
"@lucia-auth/adapter-prisma": "^2.0.0",
"@lucia-auth/adapter-prisma": "^4.0.0",
"@lucia-sveltekit/adapter-prisma": "^0.10.0",
"@prisma/client": "^4.3.1",
"@prisma/client": "^5.10.2",
"@redis/search": "^1.1.0",
"lucia-auth": "^1.8.0",
"prisma": "^4.3.1",
"lucia": "^3.0.1",
"oslo": "^1.1.3",
"prisma": "^5.10.2",
"redis": "^4.3.1"
}
}
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
url = "postgresql://postgres:postgres@localhost:5432"
}

generator client {
Expand Down
10 changes: 5 additions & 5 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// hooks.server.ts
import { auth } from "$lib/lucia";
// import { auth } from "$lib/lucia";
import type { Handle } from "@sveltejs/kit";

export const handle: Handle = async ({ event, resolve }) => {
event.locals.auth = auth.handleRequest(event);
return await resolve(event);
};
// export const handle: Handle = async ({ event, resolve }) => {
// event.locals.auth = auth.handleRequest(event);
// return await resolve(event);
// };
16 changes: 8 additions & 8 deletions src/lib/lucia.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// lib/server/lucia.ts
import lucia from "lucia-auth";
import { sveltekit } from "lucia-auth/middleware";
import lucia from "lucia";
// import { sveltekit } from "lucia-auth/middleware";
import prisma from "@lucia-auth/adapter-prisma";
import { PrismaClient } from "@prisma/client";
import { dev } from "$app/environment";

export const auth = lucia({
adapter: prisma(new PrismaClient()),
env: dev ? "DEV" : "PROD",
middleware: sveltekit()
});
// export const auth = lucia({
// adapter: prisma(new PrismaClient()),
// env: dev ? "DEV" : "PROD",
// middleware: sveltekit()
// });

export type Auth = typeof auth;
// export type Auth = typeof auth;
2 changes: 1 addition & 1 deletion src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +layout.server.ts
import { auth } from "$lib/lucia";
// import { auth } from "$lib/lucia";

// export const load = auth.handleServerSession();
3 changes: 2 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import { getUser } from 'lucia-sveltekit/client';
let session = getUser();
// let session = getUser();
let session = null;
let response = getCollections(
session != null ? session.access_token : null
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": false
}
},
"exclude": ["node_modules", ".svelte-kit"]
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
Expand Down

0 comments on commit 54e452a

Please sign in to comment.