@indiekitai/pg-dash 0.4.1 → 0.4.2

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.
package/dist/mcp.js CHANGED
@@ -1035,7 +1035,7 @@ function diffSnapshots(prev, current) {
1035
1035
  import { Pool } from "pg";
1036
1036
 
1037
1037
  // src/server/schema-diff.ts
1038
- function diffSnapshots2(oldSnap, newSnap) {
1038
+ function diffSchemaSnapshots(oldSnap, newSnap) {
1039
1039
  const changes = [];
1040
1040
  const oldTableMap = new Map(oldSnap.tables.map((t) => [`${t.schema}.${t.name}`, t]));
1041
1041
  const newTableMap = new Map(newSnap.tables.map((t) => [`${t.schema}.${t.name}`, t]));
@@ -1337,7 +1337,7 @@ async function diffEnvironments(sourceConn, targetConn, options) {
1337
1337
  const constraintDiffs = [];
1338
1338
  const enumDiffs = [];
1339
1339
  if (sourceSnap && targetSnap) {
1340
- const snapChanges = diffSnapshots2(sourceSnap, targetSnap);
1340
+ const snapChanges = diffSchemaSnapshots(sourceSnap, targetSnap);
1341
1341
  for (const c of snapChanges) {
1342
1342
  if (c.object_type === "constraint") {
1343
1343
  constraintDiffs.push({