@graphql-markdown/printer-legacy 1.8.4 → 1.8.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/dist/badge.js CHANGED
@@ -42,7 +42,7 @@ const getTypeBadges = (type, groups) => {
42
42
  };
43
43
  exports.getTypeBadges = getTypeBadges;
44
44
  const printBadge = ({ text, classname }) => {
45
- const textString = typeof text === "string" ? text : text.singular;
45
+ const textString = typeof text === "object" ? text.singular : text.toString();
46
46
  const formattedText = (0, utils_1.escapeMDX)(textString);
47
47
  return `<Badge class="badge ${classname}" text="${formattedText}"/>`;
48
48
  };
package/dist/relation.js CHANGED
@@ -34,7 +34,7 @@ const printRelationOf = (type, section, getRelation, options) => {
34
34
  }
35
35
  const category = (0, exports.getRootTypeLocaleFromString)(relation);
36
36
  const badge = (0, badge_1.printBadge)({
37
- text: typeof category === "string" ? category : category.singular,
37
+ text: category,
38
38
  classname: badge_1.DEFAULT_CSS_CLASSNAME,
39
39
  });
40
40
  data = data.concat(types.map((t) => {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "bugs": {
6
6
  "url": "https://github.com/graphql-markdown/graphql-markdown/issues"
7
7
  },
8
- "version": "1.8.4",
8
+ "version": "1.8.5",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",