@openpkg-ts/sdk 0.50.1 → 0.51.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 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1366,10 +1366,8 @@ function parseExamplesFromTags(tags) {
1366
1366
  function stripParamSeparator(text) {
1367
1367
  if (!text)
1368
1368
  return;
1369
- let stripped = text.replace(/^-\s*/, "").trim();
1370
- const parts = stripped.split(/\n\s*\n/);
1371
- stripped = parts[0].trim();
1372
- return stripped || undefined;
1369
+ const stripped = text.replace(/^-\s*/, "").trim();
1370
+ return splitCommentLevelTags(stripped).retained.trim() || undefined;
1373
1371
  }
1374
1372
  function stripTypeParamSeparator(text) {
1375
1373
  if (!text)
@@ -1391,6 +1389,7 @@ function extractSeeTagText(tag) {
1391
1389
  if (seeMatch) {
1392
1390
  let text = seeMatch[1].trim();
1393
1391
  text = text.replace(/\s*\*\s*$/gm, "").trim();
1392
+ text = text.replace(/^[ \t]*\*[ \t]?/gm, "").trim();
1394
1393
  if (text)
1395
1394
  return text;
1396
1395
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpkg-ts/sdk",
3
- "version": "0.50.1",
3
+ "version": "0.51.0",
4
4
  "description": "TypeScript API extraction SDK - programmatic primitives for OpenPkg specs",
5
5
  "keywords": [
6
6
  "openpkg",