Bugfix update

This commit is contained in:
Benjamin Toby 2026-03-22 05:46:26 +01:00
parent f0cec49e3b
commit 35c4ca3853
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ export default function dbSchemaToType({ config, dbSchema, }) {
const dbTablesSchemas = datasquirelSchema.tables; const dbTablesSchemas = datasquirelSchema.tables;
const defDbName = config.db_name const defDbName = config.db_name
?.toUpperCase() ?.toUpperCase()
.replace(/^[a-zA-Z0-9]/g, "_"); .replace(/[^a-zA-Z0-9]/g, "_");
const defNames = []; const defNames = [];
const schemas = dbTablesSchemas const schemas = dbTablesSchemas
.map((table) => { .map((table) => {

View File

@ -1,6 +1,6 @@
{ {
"name": "@moduletrace/bun-sqlite", "name": "@moduletrace/bun-sqlite",
"version": "1.0.11", "version": "1.0.12",
"description": "SQLite manager for Bun", "description": "SQLite manager for Bun",
"author": "Benjamin Toby", "author": "Benjamin Toby",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -26,7 +26,7 @@ export default function dbSchemaToType({
const defDbName = config.db_name const defDbName = config.db_name
?.toUpperCase() ?.toUpperCase()
.replace(/^[a-zA-Z0-9]/g, "_"); .replace(/[^a-zA-Z0-9]/g, "_");
const defNames: string[] = []; const defNames: string[] = [];