@graphql-markdown/printer-legacy 1.15.0 → 1.16.1

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.
Files changed (58) hide show
  1. package/dist/badge.d.ts +10 -3
  2. package/dist/badge.d.ts.map +1 -1
  3. package/dist/badge.js +21 -9
  4. package/dist/code.d.ts +1 -1
  5. package/dist/code.d.ts.map +1 -1
  6. package/dist/common.d.ts +5 -13
  7. package/dist/common.d.ts.map +1 -1
  8. package/dist/common.js +11 -6
  9. package/dist/const/options.d.ts +4 -8
  10. package/dist/const/options.d.ts.map +1 -1
  11. package/dist/const/options.js +17 -13
  12. package/dist/const/strings.d.ts +1 -3
  13. package/dist/const/strings.d.ts.map +1 -1
  14. package/dist/const/strings.js +4 -6
  15. package/dist/directive.d.ts +1 -1
  16. package/dist/directive.d.ts.map +1 -1
  17. package/dist/directive.js +5 -8
  18. package/dist/example.d.ts.map +1 -1
  19. package/dist/example.js +2 -0
  20. package/dist/format-helpers.d.ts.map +1 -1
  21. package/dist/formatter.d.ts.map +1 -1
  22. package/dist/formatter.js +9 -30
  23. package/dist/frontmatter.d.ts.map +1 -1
  24. package/dist/graphql/directive.d.ts +1 -1
  25. package/dist/graphql/directive.d.ts.map +1 -1
  26. package/dist/graphql/enum.d.ts +1 -1
  27. package/dist/graphql/enum.d.ts.map +1 -1
  28. package/dist/graphql/input.d.ts.map +1 -1
  29. package/dist/graphql/input.js +1 -1
  30. package/dist/graphql/interface.d.ts.map +1 -1
  31. package/dist/graphql/interface.js +1 -1
  32. package/dist/graphql/object.d.ts.map +1 -1
  33. package/dist/graphql/operation.d.ts +1 -8
  34. package/dist/graphql/operation.d.ts.map +1 -1
  35. package/dist/graphql/operation.js +2 -3
  36. package/dist/graphql/scalar.d.ts +1 -1
  37. package/dist/graphql/scalar.d.ts.map +1 -1
  38. package/dist/graphql/scalar.js +2 -0
  39. package/dist/graphql/union.d.ts +1 -1
  40. package/dist/graphql/union.d.ts.map +1 -1
  41. package/dist/group.d.ts +2 -2
  42. package/dist/group.d.ts.map +1 -1
  43. package/dist/index.js +2 -2
  44. package/dist/link.d.ts +5 -13
  45. package/dist/link.d.ts.map +1 -1
  46. package/dist/link.js +14 -3
  47. package/dist/mdx/index.d.ts +1 -1
  48. package/dist/mdx/index.d.ts.map +1 -1
  49. package/dist/printer.d.ts +10 -35
  50. package/dist/printer.d.ts.map +1 -1
  51. package/dist/printer.js +29 -64
  52. package/dist/relation.d.ts +2 -2
  53. package/dist/relation.d.ts.map +1 -1
  54. package/dist/relation.js +4 -0
  55. package/dist/section.d.ts +2 -2
  56. package/dist/section.d.ts.map +1 -1
  57. package/dist/section.js +4 -0
  58. package/package.json +7 -6
package/dist/section.js CHANGED
@@ -23,6 +23,8 @@ const options_1 = require("./const/options");
23
23
  *
24
24
  * @template T - Type of the GraphQL element being printed
25
25
  */
26
+ // Used only by unit tests for direct whitebox coverage; not part of the production public API.
27
+ // fallow-ignore-next-line unused-export
26
28
  const printSectionItem = (type, options) => {
27
29
  const level = "level" in options && typeof options.level === "number" ? options.level : 4;
28
30
  if (!(0, link_1.hasPrintableDirective)(type, options)) {
@@ -67,6 +69,8 @@ exports.printSectionItem = printSectionItem;
67
69
  *
68
70
  * @template V - Type of the values being printed
69
71
  */
72
+ // Used only by unit tests for direct whitebox coverage; not part of the production public API.
73
+ // fallow-ignore-next-line unused-export
70
74
  const printSectionItems = (values, options) => {
71
75
  if (!Array.isArray(values) || values.length === 0) {
72
76
  return "";
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.15.0",
8
+ "version": "1.16.1",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -65,12 +65,13 @@
65
65
  "test:watch": "jest --watch"
66
66
  },
67
67
  "dependencies": {
68
- "@graphql-markdown/graphql": "^1.2.1",
69
- "@graphql-markdown/types": "^1.12.0",
70
- "@graphql-markdown/utils": "^1.11.0"
68
+ "@graphql-markdown/formatters": "",
69
+ "@graphql-markdown/graphql": "",
70
+ "@graphql-markdown/types": "",
71
+ "@graphql-markdown/utils": ""
71
72
  },
72
73
  "devDependencies": {
73
- "@graphql-markdown/tooling-config": "^1.0.0"
74
+ "@graphql-markdown/tooling-config": ""
74
75
  },
75
76
  "resolutions": {
76
77
  "micromatch": "4.0.8"
@@ -79,7 +80,7 @@
79
80
  "test": "tests"
80
81
  },
81
82
  "engines": {
82
- "node": ">=20"
83
+ "node": ">=22.12.0"
83
84
  },
84
85
  "publishConfig": {
85
86
  "access": "public"