From d398e904c68e4a492e83d82dc6cd3785999da936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Tue, 10 Sep 2024 13:30:18 +0200 Subject: [PATCH] feat: Prettier jsdoc comment formatting, bump dependencies --- deno.json | 6 +++--- mod.ts | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index fc273e4..9862d93 100644 --- a/deno.json +++ b/deno.json @@ -1,14 +1,14 @@ { "name": "@denosaurs/typefetch", - "version": "0.0.17", + "version": "0.0.18", "exports": { ".": "./main.ts" }, "imports": { "@std/cli": "jsr:@std/cli@^1", "@std/path": "jsr:@std/path@^1", - "@std/yaml": "jsr:@std/yaml@^0.224", - "@std/http": "jsr:@std/http@^0.224", + "@std/yaml": "jsr:@std/yaml@^1", + "@std/http": "jsr:@std/http@^1", "openapi-types": "npm:openapi-types@12.1", "ts-morph": "npm:ts-morph@22.0" }, diff --git a/mod.ts b/mod.ts index 9d353d8..b4bd281 100644 --- a/mod.ts +++ b/mod.ts @@ -680,6 +680,10 @@ export function addComponents( }); } + if (typeof doc.description === "string") { + doc.description = doc.description.trim(); + } + return ({ isExported: true, docs: notEmpty(doc) ? [doc] : [],