From 7b7a4e57098f1725928eeef39ac3a820a944d9e2 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Tue, 14 Oct 2025 13:45:37 +0200 Subject: [PATCH] fix --- assets/loader.ts | 5 +++-- bun.lock | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/loader.ts b/assets/loader.ts index 47a73a3..09268eb 100644 --- a/assets/loader.ts +++ b/assets/loader.ts @@ -3,10 +3,11 @@ import type { Collection, TypedPocketbase } from "./schemas"; import type { LoaderContext } from "astro/loaders"; import Pocketbase from "pocketbase"; -import type AdminAuthResponse from "pocketbase"; +import Client from "pocketbase"; +import type { RecordAuthResponse, } from "pocketbase"; let pocketbase: TypedPocketbase; -let auth: Promise; +let auth: Promise>; let isAuthenticating = false; export function pocketbaseLoader({ collection }: PocketbaseLoaderOptions) { diff --git a/bun.lock b/bun.lock index 977f52f..c193b94 100644 --- a/bun.lock +++ b/bun.lock @@ -2,7 +2,7 @@ "lockfileVersion": 1, "workspaces": { "": { - "name": "astro-pocketbase-continued", + "name": "astro-pocketbase-continue", "dependencies": { "astro-integration-kit": "^0.19.0", "dotenv": "^17.2.3", diff --git a/package.json b/package.json index 279bdf6..0d2b082 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "astro-pocketbase-continued", + "name": "astro-pocketbase-continue", "version": "0.12.0", "description": "Astro integration to ease the use of PocketBase in your Astro projects", "author": {