@graphcommerce/graphql-codegen-markdown-docs 6.2.0-canary.88 → 6.2.0-canary.89
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/CHANGELOG.md +2 -0
- package/dist/index.js +5 -1
- package/package.json +4 -4
- package/src/graphql.ts +1 -1
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,11 @@ exports.plugin = void 0;
|
|
|
4
4
|
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
5
5
|
const graphql_1 = require("graphql");
|
|
6
6
|
/** Converts input type to markdown document. */
|
|
7
|
-
const plugin = (schema,
|
|
7
|
+
const plugin = (schema,
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
|
+
_documents,
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11
|
+
config) => {
|
|
8
12
|
const astNode = (0, plugin_helpers_1.getCachedDocumentNodeFromSchema)(schema);
|
|
9
13
|
const enumStings = new Map();
|
|
10
14
|
const descriptionText = (node) => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/graphql-codegen-markdown-docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "6.2.0-canary.
|
|
5
|
+
"version": "6.2.0-canary.89",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.
|
|
26
|
-
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.
|
|
24
|
+
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.89",
|
|
25
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.89",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.89"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@graphql-codegen/add": "5.0.0",
|
package/src/graphql.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const isNamedType = (typ?: TypeNode): typ is NamedTypeNode => typ?.kind =
|
|
|
12
12
|
|
|
13
13
|
export const isInput = (kind: string) => kind.includes('Input')
|
|
14
14
|
|
|
15
|
-
type ObjectTypeDefinitionFn = (node: ObjectTypeDefinitionNode) =>
|
|
15
|
+
type ObjectTypeDefinitionFn = (node: ObjectTypeDefinitionNode) => unknown
|
|
16
16
|
|
|
17
17
|
export const ObjectTypeDefinitionBuilder = (
|
|
18
18
|
useObjectTypes: boolean | undefined,
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,9 @@ import { MarkdownDocsPluginConfig } from './config'
|
|
|
9
9
|
/** Converts input type to markdown document. */
|
|
10
10
|
export const plugin: PluginFunction<MarkdownDocsPluginConfig, Types.ComplexPluginOutput> = (
|
|
11
11
|
schema: GraphQLSchema,
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
13
|
_documents: Types.DocumentFile[],
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13
15
|
config: MarkdownDocsPluginConfig,
|
|
14
16
|
): Types.ComplexPluginOutput => {
|
|
15
17
|
const astNode = getCachedDocumentNodeFromSchema(schema)
|