@supawatch/target-dictionary 0.7.1 → 0.9.0

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/index.js +3 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -58,8 +58,10 @@ export class DictionaryTarget {
58
58
  notes.push("generated");
59
59
  if (col.hasDefault)
60
60
  notes.push("has default");
61
+ // comments land inside a markdown table cell: pipes and
62
+ // newlines would break the row
61
63
  if (col.comment)
62
- notes.push(col.comment);
64
+ notes.push(col.comment.replace(/\|/g, "\\|").replace(/\s*\n\s*/g, " "));
63
65
  lines.push(`| ${col.name} | ${col.sqlType} | ${runtimeLabel(col.runtime)} | ${col.nullable ? "yes" : "no"} | ${notes.join("; ")} |`);
64
66
  }
65
67
  lines.push("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supawatch/target-dictionary",
3
- "version": "0.7.1",
3
+ "version": "0.9.0",
4
4
  "description": "A markdown data dictionary generated from live Postgres by supawatch, comments sourced from the database itself.",
5
5
  "keywords": [
6
6
  "supabase",
@@ -33,7 +33,7 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@supawatch/core": "0.7.1"
36
+ "@supawatch/core": "0.9.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^22.20.1",