fumadocs-typescript 5.1.3 → 5.1.4

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as markdownRenderer, t as parseTags } from "./parse-tags-D9KSwbHI.js";
1
+ import { n as markdownRenderer, t as parseTags } from "./parse-tags-DMoo_pSD.js";
2
2
  import fs from "node:fs/promises";
3
3
  import path from "node:path";
4
4
  import { createHash } from "node:crypto";
@@ -33,7 +33,7 @@ function generateHash(str) {
33
33
 
34
34
  //#endregion
35
35
  //#region package.json
36
- var version = "5.1.3";
36
+ var version = "5.1.4";
37
37
 
38
38
  //#endregion
39
39
  //#region src/lib/base.ts
@@ -51,11 +51,13 @@ function parseTags(tags) {
51
51
  continue;
52
52
  }
53
53
  if (key === "param") {
54
- const [param, description] = text.split("-", 2);
54
+ const sepIdx = text.indexOf("-");
55
+ const param = sepIdx === -1 ? text.trim() : text.slice(0, sepIdx).trim();
56
+ const description = sepIdx === -1 ? "" : text.slice(sepIdx + 1).trim();
55
57
  typed.params ??= [];
56
58
  typed.params.push({
57
- name: param.trim(),
58
- description: description.trim()
59
+ name: param,
60
+ description
59
61
  });
60
62
  continue;
61
63
  }
package/dist/ui/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as markdownRenderer, t as parseTags } from "../parse-tags-D9KSwbHI.js";
1
+ import { n as markdownRenderer, t as parseTags } from "../parse-tags-DMoo_pSD.js";
2
2
  import { TypeTable } from "fumadocs-ui/components/type-table";
3
3
  import { toJsxRuntime } from "hast-util-to-jsx-runtime";
4
4
  import * as runtime from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-typescript",
3
- "version": "5.1.3",
3
+ "version": "5.1.4",
4
4
  "description": "Typescript Integration for Fumadocs",
5
5
  "keywords": [
6
6
  "Docs",
@@ -53,8 +53,8 @@
53
53
  "typescript": "^5.9.3",
54
54
  "vfile": "^6.0.3",
55
55
  "eslint-config-custom": "0.0.0",
56
- "fumadocs-core": "16.6.1",
57
- "fumadocs-ui": "16.6.1",
56
+ "fumadocs-core": "16.6.5",
57
+ "fumadocs-ui": "16.6.5",
58
58
  "tsconfig": "0.0.0"
59
59
  },
60
60
  "peerDependencies": {