@syncular/typegen 0.0.6-56 → 0.0.6-67

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.
@@ -61,7 +61,7 @@ async function introspectAtVersion(migrations, targetVersion, filterTables) {
61
61
  for (const migration of migrations.migrations) {
62
62
  if (migration.version > targetVersion)
63
63
  break;
64
- await migration.fn(db);
64
+ await migration.up(db);
65
65
  }
66
66
  await db.destroy();
67
67
  let tables = await introspectPg(pglite);
@@ -64,7 +64,7 @@ async function introspectAtVersion(migrations, targetVersion, filterTables) {
64
64
  for (const migration of migrations.migrations) {
65
65
  if (migration.version > targetVersion)
66
66
  break;
67
- await migration.fn(db);
67
+ await migration.up(db);
68
68
  }
69
69
  let tableNames = getAllTables(sqliteDb);
70
70
  if (filterTables && filterTables.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/typegen",
3
- "version": "0.0.6-56",
3
+ "version": "0.0.6-67",
4
4
  "description": "TypeScript type generator for Syncular schemas",
5
5
  "license": "MIT",
6
6
  "author": "Benjamin Kniffler",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@electric-sql/pglite": "^0.3.15",
47
- "@syncular/migrations": "0.0.6-56",
47
+ "@syncular/migrations": "0.0.6-67",
48
48
  "better-sqlite3": "^12.6.2",
49
49
  "kysely-bun-sqlite": "^0.4.0",
50
50
  "kysely-pglite-dialect": "^1.2.0"
@@ -98,7 +98,7 @@ async function introspectAtVersion<DB = unknown>(
98
98
 
99
99
  for (const migration of migrations.migrations) {
100
100
  if (migration.version > targetVersion) break;
101
- await migration.fn(db);
101
+ await migration.up(db);
102
102
  }
103
103
 
104
104
  await db.destroy();
@@ -98,7 +98,7 @@ async function introspectAtVersion<DB = unknown>(
98
98
 
99
99
  for (const migration of migrations.migrations) {
100
100
  if (migration.version > targetVersion) break;
101
- await migration.fn(db);
101
+ await migration.up(db);
102
102
  }
103
103
 
104
104
  let tableNames = getAllTables(sqliteDb);