@authhero/kysely-adapter 11.4.0 → 11.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kysely-adapter.cjs +35 -35
- package/dist/kysely-adapter.d.ts +1 -0
- package/dist/kysely-adapter.mjs +8882 -8314
- package/dist/types/migrate/ReferenceMigrationProvider.d.ts +1 -1
- package/dist/types/src/helpers/filter.d.ts +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +9 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Migration, MigrationProvider } from "kysely";
|
|
1
|
+
import { Migration, MigrationProvider } from "kysely/migration";
|
|
2
2
|
export default class ReferenceMigrationProvider implements MigrationProvider {
|
|
3
3
|
migrations: Record<string, Migration>;
|
|
4
4
|
constructor(migrations: Record<string, Migration>);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Kysely, SelectQueryBuilder } from "kysely";
|
|
2
2
|
import { Database } from "../db";
|
|
3
3
|
export declare function sanitizeLuceneQuery(query: string, allowedFields: string[]): string;
|
|
4
|
-
export declare function luceneFilter<TB extends keyof Database>(db: Kysely<Database>, qb: SelectQueryBuilder<Database, TB, {}>, query: string, searchableColumns: string[]): SelectQueryBuilder<Database, TB, {}>;
|
|
4
|
+
export declare function luceneFilter<TB extends keyof Database>(db: Kysely<Database>, qb: SelectQueryBuilder<Database, TB, {}>, query: string, searchableColumns: string[], likeFields?: string[]): SelectQueryBuilder<Database, TB, {}>;
|
|
@@ -2,6 +2,7 @@ import { Kysely } from "kysely";
|
|
|
2
2
|
import { Database } from "./db";
|
|
3
3
|
import { DataAdapters } from "@authhero/adapter-interfaces";
|
|
4
4
|
export { migrateToLatest, migrateDown } from "../migrate/migrate";
|
|
5
|
+
export type { Database } from "./db";
|
|
5
6
|
export default function createAdapters(db: Kysely<Database>, databaseOptions?: {
|
|
6
7
|
useTransactions: boolean;
|
|
7
8
|
}): DataAdapters;
|