Skip to content

Commit

Permalink
Merge pull request #16 from millette/fix-Sqlitedb-type
Browse files Browse the repository at this point in the history
Fix #15 Astro DB no longer exports type Sqlitedb
  • Loading branch information
pilcrowonpaper authored Aug 17, 2024
2 parents ecefa40 + 0d41bed commit 9267561
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
"url": "https://github.com/pilcrowOnPaper/lucia-adapter-astrodb"
},
"devDependencies": {
"@astrojs/db": "0.8.6",
"@astrojs/db": "^0.12.0",
"@lucia-auth/adapter-test": "^5.0.1",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"auri": "1.0.2",
"eslint": "^8.51.0",
"lucia": "^3.1.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
"eslint": "^8.57.0",
"lucia": "^3.2.0",
"prettier": "^3.3.3",
"typescript": "^5.5.3"
},
"peerDependencies": {
"@astrojs/db": "0.8 - 0.11",
"@astrojs/db": "^0.12.0",
"lucia": "3.x"
}
}
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/// <reference types="@astrojs/db" />
import { eq, lte } from "astro:db";

import type { SqliteDB, Table } from "@astrojs/db/runtime";
import type { Database, Table } from "@astrojs/db/runtime";
import type { Adapter, DatabaseSession, DatabaseUser, UserId } from "lucia";

export class AstroDBAdapter implements Adapter {
private db: SqliteDB;
private db: Database;

private sessionTable: SessionTable;
private userTable: UserTable;

constructor(db: SqliteDB, sessionTable: SessionTable, userTable: UserTable) {
constructor(db: Database, sessionTable: SessionTable, userTable: UserTable) {
this.db = db;
this.sessionTable = sessionTable;
this.userTable = userTable;
Expand Down

0 comments on commit 9267561

Please sign in to comment.