@briklab/parsee 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/dist/parser.js +4 -1
  2. package/package.json +1 -1
package/dist/parser.js CHANGED
@@ -4,7 +4,10 @@ exports.parser = void 0;
4
4
  exports.parseWithTsMorph = parseWithTsMorph;
5
5
  const ts_morph_1 = require("ts-morph");
6
6
  function getJsDocText(node) {
7
- return (node.getJsDocs?.() ?? []).map((d) => d.getDescription?.() ?? d.getComment?.() ?? "").filter(Boolean).join("\n").trim();
7
+ return (node.getJsDocs?.() ?? [])
8
+ .map((d) => d.getInnerText())
9
+ .join("\n")
10
+ .trim();
8
11
  }
9
12
  function literalValueText(init) {
10
13
  if (!init)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@briklab/parsee",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Compact ts-morph-based parser that summarizes top-level exports and TypeScript type ASTs as JSON.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",