Update .gitignore, add dist directory

This commit is contained in:
2026-07-20 21:43:05 +01:00
parent 9f2db66760
commit 3bbf00cdb0
153 changed files with 6280 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { BunMariaDBConfig } from "../types";
/**
* Sanitize string values ONLY for schema fields with explicit `html: true`.
* Other fields (including plain text that happens to contain HTML) are left untouched.
*/
export default function sanitizeHtmlFields<T extends Record<string, any> = Record<string, any>>({ table, data, config, }: {
table: string;
data: T;
config?: BunMariaDBConfig;
}): T;
/**
* Sanitize an array of row objects for insert.
*/
export declare function sanitizeHtmlFieldsBatch<T extends Record<string, any> = Record<string, any>>({ table, data, config, }: {
table: string;
data: T[];
config?: BunMariaDBConfig;
}): T[];