mutano 3.7.0 → 3.7.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.
Files changed (2) hide show
  1. package/dist/main.js +1 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -16286,7 +16286,7 @@ function extractSqlColumnDescriptions(config, tableName, tableDefinitions) {
16286
16286
  const table = tableDefinitions.get(tableName);
16287
16287
  if (!table) return [];
16288
16288
  return table.columns.map((col) => {
16289
- const enumMatch = col.type.match(/enum\s*\(([^)]+)\)/i);
16289
+ const enumMatch = col.type.match(/enum\s*\(([\s\S]+)\)/i);
16290
16290
  const enumOptions = enumMatch ? enumMatch[1].match(/'([^']+)'/g)?.map((s) => s.slice(1, -1)) : void 0;
16291
16291
  const dataType = col.type.split("(")[0].toLowerCase();
16292
16292
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mutano",
3
3
  "type": "module",
4
- "version": "3.7.0",
4
+ "version": "3.7.1",
5
5
  "description": "Converts Prisma/MySQL/PostgreSQL/SQLite schemas to Zod/TS/Kysely interfaces",
6
6
  "author": "Alisson Cavalcante Agiani <thelinuxlich@gmail.com>",
7
7
  "license": "MIT",