@graphql-markdown/core 1.6.1 → 1.6.2
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 +2 -2
- package/src/config.js +6 -4
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.6.
|
|
8
|
+
"version": "1.6.2",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "src/index.js",
|
|
11
11
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@graphql-markdown/diff": "^1.0.14",
|
|
36
|
-
"@graphql-markdown/printer-legacy": "^1.4.
|
|
36
|
+
"@graphql-markdown/printer-legacy": "^1.4.2",
|
|
37
37
|
"graphql-config": "^5.0.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
package/src/config.js
CHANGED
|
@@ -26,6 +26,7 @@ const DEFAULT_OPTIONS = {
|
|
|
26
26
|
pretty: false,
|
|
27
27
|
printer: "@graphql-markdown/printer-legacy",
|
|
28
28
|
printTypeOptions: {
|
|
29
|
+
codeSection: true,
|
|
29
30
|
deprecated: "default",
|
|
30
31
|
parentTypePrefix: true,
|
|
31
32
|
relatedTypeSection: true,
|
|
@@ -113,14 +114,15 @@ function getDocOptions(cliOpts, configOptions) {
|
|
|
113
114
|
|
|
114
115
|
function gePrintTypeOptions(cliOpts, configOptions) {
|
|
115
116
|
return {
|
|
116
|
-
|
|
117
|
-
relatedTypeSection:
|
|
118
|
-
!cliOpts.noRelatedType && configOptions.relatedTypeSection,
|
|
119
|
-
typeBadges: !cliOpts.noTypeBadges && configOptions.typeBadges,
|
|
117
|
+
codeSection: !cliOpts.noCode && configOptions.codeSection,
|
|
120
118
|
deprecated:
|
|
121
119
|
cliOpts.deprecated ??
|
|
122
120
|
configOptions.deprecated ??
|
|
123
121
|
DEFAULT_OPTIONS.printTypeOptions.deprecated,
|
|
122
|
+
parentTypePrefix: !cliOpts.noParentType && configOptions.parentTypePrefix,
|
|
123
|
+
relatedTypeSection:
|
|
124
|
+
!cliOpts.noRelatedType && configOptions.relatedTypeSection,
|
|
125
|
+
typeBadges: !cliOpts.noTypeBadges && configOptions.typeBadges,
|
|
124
126
|
};
|
|
125
127
|
}
|
|
126
128
|
|