@graphql-markdown/docusaurus 1.26.2 → 1.26.4
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/README.md +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@graphql-markdown/docusaurus)
|
|
4
4
|
[](https://raw.githubusercontent.com/graphql-markdown/graphql-markdown/main/LICENSE)
|
|
5
5
|
[](https://sonarcloud.io/summary/new_code?id=graphql-markdown_docusaurus)
|
|
6
|
+
<!--
|
|
6
7
|
[](https://sonarcloud.io/summary/new_code?id=graphql-markdown_docusaurus)
|
|
7
8
|
[](https://dashboard.stryker-mutator.io/reports/github.com/graphql-markdown/graphql-markdown/main?module=docusarus)
|
|
9
|
+
-->
|
|
8
10
|
|
|
9
11
|
**Docusaurus** [docs feature](https://docusaurus.io/docs/docs-introduction) plugin for generating **Markdown documentation** from a **GraphQL schema**.
|
|
10
12
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LoadContext, Plugin, PluginOptions } from "@docusaurus/types";
|
|
2
2
|
import type { ConfigOptions, ExperimentalConfigOptions } from "@graphql-markdown/types";
|
|
3
|
-
export default function pluginGraphQLDocGenerator(_: LoadContext, options: ConfigOptions & ExperimentalConfigOptions & Partial<PluginOptions>): Plugin
|
|
3
|
+
export default function pluginGraphQLDocGenerator(_: LoadContext, options: ConfigOptions & ExperimentalConfigOptions & Partial<PluginOptions>): Promise<Plugin>;
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.default = pluginGraphQLDocGenerator;
|
|
4
7
|
const core_1 = require("@graphql-markdown/core");
|
|
5
|
-
const logger_1 = require("@graphql-markdown/logger");
|
|
8
|
+
const logger_1 = __importDefault(require("@graphql-markdown/logger"));
|
|
6
9
|
const NAME = "docusaurus-graphql-doc-generator";
|
|
7
10
|
const COMMAND = "graphql-to-doc";
|
|
8
11
|
const DESCRIPTION = "Generate GraphQL Schema Documentation";
|
|
9
12
|
const DEFAULT_ID = "default";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
(0, logger_1.
|
|
13
|
+
const LOGGER_MODULE = "@docusaurus/logger";
|
|
14
|
+
async function pluginGraphQLDocGenerator(_, options) {
|
|
15
|
+
await (0, logger_1.default)(LOGGER_MODULE);
|
|
13
16
|
const isDefaultId = options.id === DEFAULT_ID;
|
|
14
17
|
const command = isDefaultId ? COMMAND : `${COMMAND}:${options.id}`;
|
|
15
18
|
const description = isDefaultId
|
|
@@ -24,7 +27,7 @@ function pluginGraphQLDocGenerator(_, options) {
|
|
|
24
27
|
const config = await (0, core_1.buildConfig)(options, {}, options.id);
|
|
25
28
|
await (0, core_1.generateDocFromSchema)({
|
|
26
29
|
...config,
|
|
27
|
-
loggerModule,
|
|
30
|
+
loggerModule: LOGGER_MODULE,
|
|
28
31
|
});
|
|
29
32
|
},
|
|
30
33
|
extendCli(cli) {
|
|
@@ -59,7 +62,7 @@ function pluginGraphQLDocGenerator(_, options) {
|
|
|
59
62
|
const config = await (0, core_1.buildConfig)(options, cliOptions, options.id);
|
|
60
63
|
await (0, core_1.generateDocFromSchema)({
|
|
61
64
|
...config,
|
|
62
|
-
loggerModule,
|
|
65
|
+
loggerModule: LOGGER_MODULE,
|
|
63
66
|
});
|
|
64
67
|
});
|
|
65
68
|
},
|
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.26.
|
|
8
|
+
"version": "1.26.4",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"docs": "typedoc"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@graphql-markdown/core": "^1.12.
|
|
55
|
-
"@graphql-markdown/logger": "^1.0.
|
|
56
|
-
"@graphql-markdown/printer-legacy": "^1.9.
|
|
54
|
+
"@graphql-markdown/core": "^1.12.2",
|
|
55
|
+
"@graphql-markdown/logger": "^1.0.5",
|
|
56
|
+
"@graphql-markdown/printer-legacy": "^1.9.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@docusaurus/types": "^3.5.0",
|
|
60
|
-
"@graphql-markdown/types": "^1.4.
|
|
60
|
+
"@graphql-markdown/types": "^1.4.2"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@docusaurus/logger": "*"
|