@graphql-markdown/core 1.16.2 → 1.16.3
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/config.js +2 -5
- package/package.json +2 -1
package/dist/config.js
CHANGED
|
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
20
|
exports.buildConfig = exports.parseHomepageOption = exports.parseGroupByOption = exports.getPrintTypeOptions = exports.parseDeprecatedPrintTypeOptions = exports.getTypeHierarchyOption = exports.getDocOptions = exports.parseDeprecatedDocOptions = exports.getDiffMethod = exports.getCustomDirectives = exports.getVisibilityDirectives = exports.getSkipDocDirectives = exports.getOnlyDocDirectives = exports.getDocDirective = exports.DEFAULT_OPTIONS = exports.DEFAULT_HIERARCHY = exports.ASSET_HOMEPAGE_LOCATION = exports.PACKAGE_NAME = exports.DOCS_URL = exports.DeprecatedOption = exports.DiffMethod = exports.TypeHierarchy = void 0;
|
|
21
21
|
const node_path_1 = require("node:path");
|
|
22
22
|
const node_os_1 = require("node:os");
|
|
23
|
+
const deepmerge_1 = require("@fastify/deepmerge");
|
|
23
24
|
const graphql_config_1 = require("./graphql-config");
|
|
24
25
|
/**
|
|
25
26
|
* Type hierarchy options for organizing schema documentation.
|
|
@@ -591,11 +592,7 @@ exports.parseHomepageOption = parseHomepageOption;
|
|
|
591
592
|
const buildConfig = async (configFileOpts, cliOpts, id = "default") => {
|
|
592
593
|
cliOpts ??= {};
|
|
593
594
|
const graphqlConfig = await (0, graphql_config_1.loadConfiguration)(id);
|
|
594
|
-
const config = {
|
|
595
|
-
...exports.DEFAULT_OPTIONS,
|
|
596
|
-
...graphqlConfig,
|
|
597
|
-
...configFileOpts,
|
|
598
|
-
};
|
|
595
|
+
const config = (0, deepmerge_1.deepmerge)()({ ...exports.DEFAULT_OPTIONS, ...graphqlConfig }, configFileOpts ?? {});
|
|
599
596
|
const baseURL = cliOpts.base ?? config.baseURL;
|
|
600
597
|
const { onlyDocDirective, skipDocDirective } = (0, exports.getVisibilityDirectives)(cliOpts, config);
|
|
601
598
|
const force = cliOpts.force ?? config.force ?? exports.DEFAULT_OPTIONS.force;
|
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.16.
|
|
8
|
+
"version": "1.16.3",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"suggest:tests": "ts-node ../../scripts/test-suggestions.ts"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
+
"@fastify/deepmerge": "^3.1.0",
|
|
67
68
|
"@graphql-markdown/graphql": "^1.1.9",
|
|
68
69
|
"@graphql-markdown/logger": "^1.0.5",
|
|
69
70
|
"@graphql-markdown/utils": "^1.9.0"
|