fix
This commit is contained in:
@@ -3,10 +3,11 @@
|
|||||||
import type { Collection, TypedPocketbase } from "./schemas";
|
import type { Collection, TypedPocketbase } from "./schemas";
|
||||||
import type { LoaderContext } from "astro/loaders";
|
import type { LoaderContext } from "astro/loaders";
|
||||||
import Pocketbase from "pocketbase";
|
import Pocketbase from "pocketbase";
|
||||||
import type AdminAuthResponse from "pocketbase";
|
import Client from "pocketbase";
|
||||||
|
import type { RecordAuthResponse, } from "pocketbase";
|
||||||
|
|
||||||
let pocketbase: TypedPocketbase;
|
let pocketbase: TypedPocketbase;
|
||||||
let auth: Promise<AdminAuthResponse>;
|
let auth: Promise<RecordAuthResponse<Client>>;
|
||||||
let isAuthenticating = false;
|
let isAuthenticating = false;
|
||||||
|
|
||||||
export function pocketbaseLoader({ collection }: PocketbaseLoaderOptions) {
|
export function pocketbaseLoader({ collection }: PocketbaseLoaderOptions) {
|
||||||
|
|||||||
2
bun.lock
2
bun.lock
@@ -2,7 +2,7 @@
|
|||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"workspaces": {
|
"workspaces": {
|
||||||
"": {
|
"": {
|
||||||
"name": "astro-pocketbase-continued",
|
"name": "astro-pocketbase-continue",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro-integration-kit": "^0.19.0",
|
"astro-integration-kit": "^0.19.0",
|
||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "astro-pocketbase-continued",
|
"name": "astro-pocketbase-continue",
|
||||||
"version": "0.12.0",
|
"version": "0.12.0",
|
||||||
"description": "Astro integration to ease the use of PocketBase in your Astro projects",
|
"description": "Astro integration to ease the use of PocketBase in your Astro projects",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
Reference in New Issue
Block a user