@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.
- package/dist/badge.d.ts +10 -3
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +21 -9
- package/dist/code.d.ts +1 -1
- package/dist/code.d.ts.map +1 -1
- package/dist/common.d.ts +5 -13
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +11 -6
- package/dist/const/options.d.ts +4 -8
- package/dist/const/options.d.ts.map +1 -1
- package/dist/const/options.js +17 -13
- package/dist/const/strings.d.ts +1 -3
- package/dist/const/strings.d.ts.map +1 -1
- package/dist/const/strings.js +4 -6
- package/dist/directive.d.ts +1 -1
- package/dist/directive.d.ts.map +1 -1
- package/dist/directive.js +5 -8
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +2 -0
- package/dist/format-helpers.d.ts.map +1 -1
- package/dist/formatter.d.ts.map +1 -1
- package/dist/formatter.js +9 -30
- package/dist/frontmatter.d.ts.map +1 -1
- package/dist/graphql/directive.d.ts +1 -1
- package/dist/graphql/directive.d.ts.map +1 -1
- package/dist/graphql/enum.d.ts +1 -1
- package/dist/graphql/enum.d.ts.map +1 -1
- package/dist/graphql/input.d.ts.map +1 -1
- package/dist/graphql/input.js +1 -1
- package/dist/graphql/interface.d.ts.map +1 -1
- package/dist/graphql/interface.js +1 -1
- package/dist/graphql/object.d.ts.map +1 -1
- package/dist/graphql/operation.d.ts +1 -8
- package/dist/graphql/operation.d.ts.map +1 -1
- package/dist/graphql/operation.js +2 -3
- package/dist/graphql/scalar.d.ts +1 -1
- package/dist/graphql/scalar.d.ts.map +1 -1
- package/dist/graphql/scalar.js +2 -0
- package/dist/graphql/union.d.ts +1 -1
- package/dist/graphql/union.d.ts.map +1 -1
- package/dist/group.d.ts +2 -2
- package/dist/group.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/link.d.ts +5 -13
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +14 -3
- package/dist/mdx/index.d.ts +1 -1
- package/dist/mdx/index.d.ts.map +1 -1
- package/dist/printer.d.ts +10 -35
- package/dist/printer.d.ts.map +1 -1
- package/dist/printer.js +29 -64
- package/dist/relation.d.ts +2 -2
- package/dist/relation.d.ts.map +1 -1
- package/dist/relation.js +4 -0
- package/dist/section.d.ts +2 -2
- package/dist/section.d.ts.map +1 -1
- package/dist/section.js +4 -0
- 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.
|
|
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/
|
|
69
|
-
"@graphql-markdown/
|
|
70
|
-
"@graphql-markdown/
|
|
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": "
|
|
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": ">=
|
|
83
|
+
"node": ">=22.12.0"
|
|
83
84
|
},
|
|
84
85
|
"publishConfig": {
|
|
85
86
|
"access": "public"
|