@graphql-markdown/printer-legacy 1.1.4 → 1.1.5
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/package.json +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -151,7 +151,7 @@ module.exports = class Printer {
|
|
|
151
151
|
return "";
|
|
152
152
|
}
|
|
153
153
|
const link = this.toLink(type, type.name, category);
|
|
154
|
-
return `[\`${link.text}\`](${link.url}) <Badge
|
|
154
|
+
return `[\`${link.text}\`](${link.url}) <Badge class="secondary" text="${category.singular}"/>`;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
printSection(
|
|
@@ -454,7 +454,7 @@ module.exports = class Printer {
|
|
|
454
454
|
const reason = type.deprecationReason
|
|
455
455
|
? ": " + escapeMDX(type.deprecationReason)
|
|
456
456
|
: "";
|
|
457
|
-
return `<Badge
|
|
457
|
+
return `<Badge class="warning" text="DEPRECATED${reason}"/>${MARKDOWN_EOP}`;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
printDescription(type, noText = NO_DESCRIPTION_TEXT) {
|