1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

Update package-lock.json and package.json with new dependencies

This commit is contained in:
Sean Morley 2024-04-18 23:42:32 +00:00
parent 1e1f594612
commit f838051500
3 changed files with 35 additions and 4 deletions

30
package-lock.json generated
View file

@ -1,14 +1,15 @@
{
"name": "adventurelog",
"version": "0.0.1",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "adventurelog",
"version": "0.0.1",
"version": "0.1.0",
"dependencies": {
"@lucia-auth/adapter-drizzle": "^1.0.7",
"@vercel/analytics": "^1.2.2",
"drizzle-orm": "^0.30.6",
"oslo": "^1.2.0",
"postgres": "^3.4.4"
@ -2534,6 +2535,26 @@
"integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==",
"dev": true
},
"node_modules/@vercel/analytics": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.2.2.tgz",
"integrity": "sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==",
"dependencies": {
"server-only": "^0.0.1"
},
"peerDependencies": {
"next": ">= 13",
"react": "^18 || ^19"
},
"peerDependenciesMeta": {
"next": {
"optional": true
},
"react": {
"optional": true
}
}
},
"node_modules/@vercel/nft": {
"version": "0.26.4",
"resolved": "https://registry.npmjs.org/@vercel/nft/-/nft-0.26.4.tgz",
@ -6149,6 +6170,11 @@
"node": ">=10"
}
},
"node_modules/server-only": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",
"integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="
},
"node_modules/set-blocking": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",

View file

@ -39,6 +39,7 @@
"type": "module",
"dependencies": {
"@lucia-auth/adapter-drizzle": "^1.0.7",
"@vercel/analytics": "^1.2.2",
"drizzle-orm": "^0.30.6",
"oslo": "^1.2.0",
"postgres": "^3.4.4"

View file

@ -1,6 +1,10 @@
import { goto } from "$app/navigation";
import type { LayoutServerLoad, PageServerLoad } from "./$types";
import { inject } from "@vercel/analytics";
if (process.env.USING_VERCEL === "true") {
inject();
}
export const load: LayoutServerLoad = async (event) => {
if (event.locals.user) {
return {
@ -12,4 +16,4 @@ export const load: LayoutServerLoad = async (event) => {
user: null,
isServerSetup: event.locals.isServerSetup,
};
};
};