@graphql-markdown/printer-legacy
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -6,3 +6,5 @@ "use strict"; | ||
exports.printInputMetadata = object_1.printObjectMetadata; | ||
const printCodeInput = (type, options) => (0, object_1.printCodeType)(type, "input", options); | ||
const printCodeInput = (type, options) => { | ||
return (0, object_1.printCodeType)(type, "input", options); | ||
}; | ||
exports.printCodeInput = printCodeInput; |
@@ -6,3 +6,5 @@ "use strict"; | ||
exports.printInterfaceMetadata = object_1.printObjectMetadata; | ||
const printCodeInterface = (type, options) => (0, object_1.printCodeType)(type, "interface", options); | ||
const printCodeInterface = (type, options) => { | ||
return (0, object_1.printCodeType)(type, "interface", options); | ||
}; | ||
exports.printCodeInterface = printCodeInterface; |
@@ -33,3 +33,5 @@ "use strict"; | ||
.getInterfaces() | ||
.map((field) => (0, graphql_1.getTypeName)(field)) | ||
.map((field) => { | ||
return (0, graphql_1.getTypeName)(field); | ||
}) | ||
.join(", ")}` | ||
@@ -42,3 +44,5 @@ : ""; | ||
}) | ||
.filter((field) => field.length > 0) | ||
.filter((field) => { | ||
return field.length > 0; | ||
}) | ||
.join(""); | ||
@@ -48,3 +52,5 @@ return `${entity} ${name}${extendsInterface} {${strings_1.MARKDOWN_EOL}${typeFields}}`; | ||
exports.printCodeType = printCodeType; | ||
const printCodeObject = (type, options) => (0, exports.printCodeType)(type, "type", options); | ||
const printCodeObject = (type, options) => { | ||
return (0, exports.printCodeType)(type, "type", options); | ||
}; | ||
exports.printCodeObject = printCodeObject; |
@@ -23,3 +23,5 @@ "use strict"; | ||
.getTypes() | ||
.map((v) => (0, graphql_1.getTypeName)(v)) | ||
.map((v) => { | ||
return (0, graphql_1.getTypeName)(v); | ||
}) | ||
.join(" | "); | ||
@@ -26,0 +28,0 @@ return code; |
@@ -7,3 +7,3 @@ import type { CustomDirectiveMap, GraphQLDirective, GraphQLSchema, IPrinter, MDXString, Maybe, PrintTypeOptions, PrinterConfigPrintTypeOptions, SchemaEntitiesGroupMap, TypeDeprecatedOption } from "@graphql-markdown/types"; | ||
static printCustomTags: (type: unknown, options: PrintTypeOptions) => string | MDXString; | ||
static init(schema: Maybe<GraphQLSchema>, baseURL?: Maybe<string>, linkRoot?: Maybe<string>, { customDirectives, groups, onlyDocDirectives, printTypeOptions, skipDocDirectives, }?: { | ||
static init(schema: Maybe<GraphQLSchema>, baseURL?: Maybe<string>, linkRoot?: Maybe<string>, { customDirectives, groups, onlyDocDirectives, printTypeOptions, skipDocDirectives, metatags, }?: { | ||
customDirectives?: CustomDirectiveMap; | ||
@@ -15,2 +15,3 @@ deprecated?: TypeDeprecatedOption; | ||
skipDocDirectives?: GraphQLDirective[]; | ||
metatags?: Record<string, string>[]; | ||
}): void; | ||
@@ -17,0 +18,0 @@ static printHeader: (id: string, title: string, options: PrintTypeOptions) => string; |
@@ -18,3 +18,3 @@ "use strict"; | ||
static printCustomTags = directive_1.printCustomTags; | ||
static init(schema, baseURL = "schema", linkRoot = "/", { customDirectives, groups, onlyDocDirectives, printTypeOptions, skipDocDirectives, } = { | ||
static init(schema, baseURL = "schema", linkRoot = "/", { customDirectives, groups, onlyDocDirectives, printTypeOptions, skipDocDirectives, metatags, } = { | ||
customDirectives: undefined, | ||
@@ -25,2 +25,3 @@ groups: undefined, | ||
skipDocDirectives: [], | ||
metatags: [], | ||
}) { | ||
@@ -45,2 +46,3 @@ if (typeof Printer.options !== "undefined") { | ||
typeBadges: printTypeOptions?.typeBadges ?? options_1.PRINT_TYPE_DEFAULT_OPTIONS.typeBadges, | ||
metatags: metatags ?? [], | ||
}; | ||
@@ -158,4 +160,4 @@ } | ||
header, | ||
metatags, | ||
mdx_1.mdx, | ||
metatags, | ||
tags, | ||
@@ -162,0 +164,0 @@ description, |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"license": "MIT", | ||
@@ -59,4 +59,4 @@ "repository": { | ||
"dependencies": { | ||
"@graphql-markdown/graphql": "^1.0.0", | ||
"@graphql-markdown/utils": "^1.6.0" | ||
"@graphql-markdown/graphql": "^1.0.1", | ||
"@graphql-markdown/utils": "^1.6.1" | ||
}, | ||
@@ -63,0 +63,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60240
1260