Bugfix update
This commit is contained in:
parent
f0cec49e3b
commit
35c4ca3853
2
dist/lib/sqlite/db-schema-to-typedef.js
vendored
2
dist/lib/sqlite/db-schema-to-typedef.js
vendored
@ -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) => {
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
@ -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[] = [];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user