@fern-api/generator-cli 0.5.2 → 0.5.3

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/api.js CHANGED
@@ -8071,7 +8071,8 @@ ${this.generateIndentedBlock(
8071
8071
  generateParameter(parameter) {
8072
8072
  const desc = parameter.description?.match(/[^\r\n]+/g)?.length;
8073
8073
  const containsLineBreak = desc != null && desc > 1;
8074
- return `**${parameter.name}:** \`${this.wrapInLink(parameter.type, parameter.location)}\` ${parameter.description != null ? (containsLineBreak ? "\n\n" : "\u2014 ") + parameter.description : ""}
8074
+ const typeText = parameter.location != null ? `[${parameter.type}](${parameter.location.path})` : `\`${parameter.type}\``;
8075
+ return `**${parameter.name}:** ${typeText} ${parameter.description != null ? (containsLineBreak ? "\n\n" : "\u2014 ") + parameter.description : ""}
8075
8076
  `;
8076
8077
  }
8077
8078
  generateIndentedBlock(content) {
package/dist/cli.js CHANGED
@@ -14189,7 +14189,8 @@ ${this.generateIndentedBlock(
14189
14189
  generateParameter(parameter) {
14190
14190
  const desc = parameter.description?.match(/[^\r\n]+/g)?.length;
14191
14191
  const containsLineBreak = desc != null && desc > 1;
14192
- return `**${parameter.name}:** \`${this.wrapInLink(parameter.type, parameter.location)}\` ${parameter.description != null ? (containsLineBreak ? "\n\n" : "\u2014 ") + parameter.description : ""}
14192
+ const typeText = parameter.location != null ? `[${parameter.type}](${parameter.location.path})` : `\`${parameter.type}\``;
14193
+ return `**${parameter.name}:** ${typeText} ${parameter.description != null ? (containsLineBreak ? "\n\n" : "\u2014 ") + parameter.description : ""}
14193
14194
  `;
14194
14195
  }
14195
14196
  generateIndentedBlock(content) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/generator-cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/fern-api/fern.git",