@graphql-markdown/core 1.21.0 → 1.21.1
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.d.ts.map +1 -1
- package/dist/config.js +22 -0
- package/dist/directives/validation.d.ts.map +1 -1
- package/dist/directives/validation.js +4 -0
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +1 -2
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js +4 -0
- package/dist/graphql-config.d.ts.map +1 -1
- package/dist/graphql-config.js +3 -2
- package/dist/renderer.d.ts.map +1 -1
- package/dist/renderer.js +7 -0
- package/package.json +10 -10
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,uBAAuB,EACvB,KAAK,EACL,OAAO,EAGP,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AASjC;;;;;;;;;;;;GAYG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED;;;;;;;;;;;GAWG;AACH,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED;;;;;;;;;;;;GAYG;AACH,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAG,mCAA4C,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAG,8BAAuC,CAAC;AACpE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAKnC,CAAC;AAEF;;;GA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AC7C,MAAM,CAAC,MAAM,EAAE,KAAK,CAEtB,CAAC;AAwDF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,eAAO,MAAM,kBAAkB,iBACf,OAAO,KACpB,KAAK,CAAC,uBAAuB,CAgB/B,CAAC;AAIF,eAAO,MAAM,mBAAmB,gBACjB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,kBAClB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,KACpC,KAAK,CAAC,MAAM,CAcd,CAAC;AAmDF,eAAO,MAAM,WAAW,mBACN,KAAK,CAAC,aAAa,CAAC,YAC1B,KAAK,CAAC,UAAU,CAAC,OACvB,KAAK,CAAC,MAAM,CAAC,KAChB,OAAO,CAAC,OAAO,CAkFjB,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -154,6 +154,8 @@ exports.DEFAULT_OPTIONS = {
|
|
|
154
154
|
* getDocDirective("example"); // Error: Invalid "example"
|
|
155
155
|
* ```
|
|
156
156
|
*/
|
|
157
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
158
|
+
// fallow-ignore-next-line unused-export
|
|
157
159
|
const getDocDirective = (name) => {
|
|
158
160
|
if (typeof name !== "string" || !patterns_1.PATTERNS.DIRECTIVE_NAME.test(name)) {
|
|
159
161
|
throw new Error(`Invalid "${name}"`);
|
|
@@ -288,6 +290,8 @@ exports.getVisibilityDirectives = getVisibilityDirectives;
|
|
|
288
290
|
* ```
|
|
289
291
|
* @see {@link DOCS_URL}/advanced/custom-directive for custom directive format documentation
|
|
290
292
|
*/
|
|
293
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
294
|
+
// fallow-ignore-next-line unused-export
|
|
291
295
|
const getCustomDirectives = (customDirectiveOptions, skipDocDirective) => {
|
|
292
296
|
if (!customDirectiveOptions ||
|
|
293
297
|
Object.keys(customDirectiveOptions).length === 0) {
|
|
@@ -321,6 +325,8 @@ exports.getCustomDirectives = getCustomDirectives;
|
|
|
321
325
|
* ```
|
|
322
326
|
* @see {@link DiffMethod} for available diff methods
|
|
323
327
|
*/
|
|
328
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
329
|
+
// fallow-ignore-next-line unused-export
|
|
324
330
|
const getForcedDiffMethod = () => {
|
|
325
331
|
return DiffMethod.FORCE;
|
|
326
332
|
};
|
|
@@ -328,10 +334,14 @@ exports.getForcedDiffMethod = getForcedDiffMethod;
|
|
|
328
334
|
const getNormalizedDiffMethod = (diff) => {
|
|
329
335
|
return diff.toLocaleUpperCase();
|
|
330
336
|
};
|
|
337
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
338
|
+
// fallow-ignore-next-line unused-export
|
|
331
339
|
const getDiffMethod = (diff) => {
|
|
332
340
|
return getNormalizedDiffMethod(diff);
|
|
333
341
|
};
|
|
334
342
|
exports.getDiffMethod = getDiffMethod;
|
|
343
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
344
|
+
// fallow-ignore-next-line unused-export
|
|
335
345
|
const parseDeprecatedDocOptions = (_cliOpts, _configOptions) => {
|
|
336
346
|
return {};
|
|
337
347
|
};
|
|
@@ -356,6 +366,8 @@ exports.parseDeprecatedDocOptions = parseDeprecatedDocOptions;
|
|
|
356
366
|
* // }
|
|
357
367
|
* ```
|
|
358
368
|
*/
|
|
369
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
370
|
+
// fallow-ignore-next-line unused-export
|
|
359
371
|
const getDocOptions = (cliOpts, configOptions) => {
|
|
360
372
|
const deprecated = (0, exports.parseDeprecatedDocOptions)(cliOpts, configOptions);
|
|
361
373
|
const cliIndex = typeof cliOpts?.index === "boolean" ? cliOpts.index : undefined;
|
|
@@ -400,6 +412,8 @@ exports.getDocOptions = getDocOptions;
|
|
|
400
412
|
* ```
|
|
401
413
|
* @see {@link TypeHierarchy} for available hierarchy types
|
|
402
414
|
*/
|
|
415
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
416
|
+
// fallow-ignore-next-line unused-export
|
|
403
417
|
const getTypeHierarchyOption = (cliOption, configOption) => {
|
|
404
418
|
const parseValue = (config) => {
|
|
405
419
|
if (typeof config === "string") {
|
|
@@ -431,6 +445,8 @@ const getTypeHierarchyOption = (cliOption, configOption) => {
|
|
|
431
445
|
return cliHierarchy ?? configHierarchy ?? exports.DEFAULT_HIERARCHY;
|
|
432
446
|
};
|
|
433
447
|
exports.getTypeHierarchyOption = getTypeHierarchyOption;
|
|
448
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
449
|
+
// fallow-ignore-next-line unused-export
|
|
434
450
|
const parseDeprecatedFormatterOption = (cliOpts, configOptions) => {
|
|
435
451
|
const legacyCli = cliOpts?.mdxParser ?? null; // NOSONAR typescript:S1874
|
|
436
452
|
const legacyConfig = configOptions?.mdxParser; // NOSONAR typescript:S1874
|
|
@@ -441,6 +457,8 @@ const parseDeprecatedFormatterOption = (cliOpts, configOptions) => {
|
|
|
441
457
|
return (cliOpts?.formatter ?? legacyCli ?? configOptions?.formatter ?? legacyConfig);
|
|
442
458
|
};
|
|
443
459
|
exports.parseDeprecatedFormatterOption = parseDeprecatedFormatterOption;
|
|
460
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
461
|
+
// fallow-ignore-next-line unused-export
|
|
444
462
|
const parseDeprecatedPrintTypeOptions = (_cliOpts, _configOptions) => {
|
|
445
463
|
return {};
|
|
446
464
|
};
|
|
@@ -514,6 +532,8 @@ const getPrintTypeOptions = (cliOpts, configOptions) => {
|
|
|
514
532
|
* // Error: Invalid "invalid-format"
|
|
515
533
|
* ```
|
|
516
534
|
*/
|
|
535
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
536
|
+
// fallow-ignore-next-line unused-export
|
|
517
537
|
const parseGroupByOption = (groupOptions) => {
|
|
518
538
|
if (typeof groupOptions !== "string") {
|
|
519
539
|
return undefined;
|
|
@@ -529,6 +549,8 @@ const parseGroupByOption = (groupOptions) => {
|
|
|
529
549
|
};
|
|
530
550
|
};
|
|
531
551
|
exports.parseGroupByOption = parseGroupByOption;
|
|
552
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
553
|
+
// fallow-ignore-next-line unused-export
|
|
532
554
|
const parseHomepageOption = (cliHomepage, configHomepage) => {
|
|
533
555
|
if (typeof cliHomepage === "string") {
|
|
534
556
|
return cliHomepage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/directives/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/directives/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH;;;;;;;;;;;;;;;GAeG;AAGH,eAAO,MAAM,aAAa,WAChB,OAAO,KACd,MAAM,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAMhE,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AAGH,eAAO,MAAM,MAAM,WACT,OAAO,KACd,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAMzD,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,WAAY,OAAO,KAAG,MAAM,IAAI,MAE1D,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,WACjB,OAAO,KACd,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAElC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM,SAAU,OAAO,KAAG,IAAI,IAAI,MAE9C,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,WACjB,OAAO,KACd,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAEjC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,WAAY,OAAO,KAAG,MAAM,IAAI,MAE1D,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB,WAC5B,OAAO,YACL,YAAY,GAAG,KAAK,KAC7B,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAMlC,CAAC"}
|
|
@@ -35,6 +35,8 @@ const isTypeObject = (value) => {
|
|
|
35
35
|
* }
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
39
|
+
// fallow-ignore-next-line unused-export
|
|
38
40
|
const hasDescriptor = (config) => {
|
|
39
41
|
return (isTypeObject(config) &&
|
|
40
42
|
"descriptor" in config &&
|
|
@@ -57,6 +59,8 @@ exports.hasDescriptor = hasDescriptor;
|
|
|
57
59
|
* }
|
|
58
60
|
* ```
|
|
59
61
|
*/
|
|
62
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
63
|
+
// fallow-ignore-next-line unused-export
|
|
60
64
|
const hasTag = (config) => {
|
|
61
65
|
return (isTypeObject(config) &&
|
|
62
66
|
"tag" in config &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAG/E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/events/index.js
CHANGED
|
@@ -21,8 +21,7 @@ var render_type_entities_events_1 = require("./render-type-entities-events");
|
|
|
21
21
|
Object.defineProperty(exports, "RenderTypeEntitiesEvents", { enumerable: true, get: function () { return render_type_entities_events_1.RenderTypeEntitiesEvents; } });
|
|
22
22
|
var generate_index_metafile_events_1 = require("./generate-index-metafile-events");
|
|
23
23
|
Object.defineProperty(exports, "GenerateIndexMetafileEvents", { enumerable: true, get: function () { return generate_index_metafile_events_1.GenerateIndexMetafileEvents; } });
|
|
24
|
-
//
|
|
25
|
-
// from source, making the barrel entry appear unused in production mode.
|
|
24
|
+
// Re-export used only by unit tests via the events barrel.
|
|
26
25
|
// fallow-ignore-next-line unused-export
|
|
27
26
|
var print_type_events_1 = require("./print-type-events");
|
|
28
27
|
Object.defineProperty(exports, "PrintTypeEvents", { enumerable: true, get: function () { return print_type_events_1.PrintTypeEvents; } });
|
package/dist/generator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAEV,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,WAAW,EAEX,cAAc,EAEf,MAAM,yBAAyB,CAAC;AA6DjC;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,cACb,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC,KACrC,OAAO,CAAC,OAAO,CAYjB,CAAC;AAgBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,aACzB,OAAO,gBACJ,MAAM,KACnB,CAAC,GAAG,SAmBN,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB,cACzB,OAAO,SACX,QAAQ,KACd,OAAO,CAAC,SAAS,CAAC,GAAG,SA+CvB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,mBACZ,MAAM,eACT,KAAK,CAAC,YAAY,CAAC,KAC/B,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAY9B,CAAC;AAEF;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK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When no changes are detected, a log message is generated indicating that the schema is unchanged.
|
|
216
216
|
*/
|
|
217
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
218
|
+
// fallow-ignore-next-line unused-export
|
|
217
219
|
const checkSchemaDifferences = async (schema, schemaLocation, diffMethod, tmpDir) => {
|
|
218
220
|
let changed = true;
|
|
219
221
|
if (diffMethod !== config_1.DiffMethod.NONE) {
|
|
@@ -238,6 +240,8 @@ exports.checkSchemaDifferences = checkSchemaDifferences;
|
|
|
238
240
|
* @returns A tuple containing two arrays: the first with resolved "only" directives,
|
|
239
241
|
* the second with resolved "skip" directives. Only defined directives are included.
|
|
240
242
|
*/
|
|
243
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
244
|
+
// fallow-ignore-next-line unused-export
|
|
241
245
|
const resolveSkipAndOnlyDirectives = (onlyDocDirective, skipDocDirective, schema) => {
|
|
242
246
|
return [onlyDocDirective, skipDocDirective].map((directive) => {
|
|
243
247
|
// Normalize to array and filter out null/undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-config.d.ts","sourceRoot":"","sources":["../src/graphql-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAEV,sBAAsB,EACtB,2BAA2B,EAC3B,YAAY,EACZ,KAAK,EAEL,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAgBjC;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"graphql-config.d.ts","sourceRoot":"","sources":["../src/graphql-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAEV,sBAAsB,EACtB,2BAA2B,EAC3B,YAAY,EACZ,KAAK,EAEL,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAgBjC;;;;;;;;;;;;GAYG;AAGH,eAAO,MAAM,sBAAsB,EAAE,2BAEpC,CAAC;AAEF;;;;;;GAMG;AACH,UAAU,YAAY;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAWD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,eAAO,MAAM,gBAAgB,YAClB,YAAY,WACZ,oBAAoB,KAC5B,YAeF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,iBAAiB,OACxB,KAAK,CAAC,MAAM,CAAC,YACP,KAAK,CAAC,oBAAoB,CAAC,qCACH,YAAY,KAC7C,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAkDjD,CAAC"}
|
package/dist/graphql-config.js
CHANGED
|
@@ -21,6 +21,8 @@ const EXTENSION_NAME = "graphql-markdown";
|
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
25
|
+
// fallow-ignore-next-line unused-export
|
|
24
26
|
const graphQLConfigExtension = () => {
|
|
25
27
|
return { name: EXTENSION_NAME };
|
|
26
28
|
};
|
|
@@ -56,8 +58,7 @@ const DEFAULT_THROW_OPTIONS = {
|
|
|
56
58
|
* // Result: loaders with { baseDir: "./src", outputDir: "./docs" }
|
|
57
59
|
* ```
|
|
58
60
|
*/
|
|
59
|
-
//
|
|
60
|
-
// dynamic spy interception and production: true excludes the test callers.
|
|
61
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
61
62
|
// fallow-ignore-next-line unused-export
|
|
62
63
|
const setLoaderOptions = (loaders, options) => {
|
|
63
64
|
for (const loader in loaders) {
|
package/dist/renderer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,QAAQ,EAER,KAAK,EAEL,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACt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BAAwB;IAiBhC;;;;;;OAMG;IACH,OAAO,CAAC,8BAA8B;IAiCtC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,wBAAwB;CA+BjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,WAAW,YACb,OAAO,QAAQ,aACb,MAAM,WACR,MAAM,SACR,KAAK,CAAC,sBAAsB,CAAC,YAC1B,OAAO,cACL,KAAK,CAAC,kBAAkB,CAAC,gBACvB,MAAM,KACnB,OAAO,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAWvC,CAAC"}
|
package/dist/renderer.js
CHANGED
|
@@ -89,6 +89,8 @@ var SidebarPosition;
|
|
|
89
89
|
*
|
|
90
90
|
* @see {@link getApiGroupFolder} For usage with type categorization
|
|
91
91
|
*/
|
|
92
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
93
|
+
// fallow-ignore-next-line unused-export
|
|
92
94
|
exports.API_GROUPS = {
|
|
93
95
|
operations: "operations",
|
|
94
96
|
types: "types",
|
|
@@ -109,6 +111,8 @@ exports.API_GROUPS = {
|
|
|
109
111
|
* const folder = getApiGroupFolder(objectType, { operations: "queries" }); // Returns appropriate folder
|
|
110
112
|
* ```
|
|
111
113
|
*/
|
|
114
|
+
// Used only by unit tests for direct whitebox coverage; not part of the production public API.
|
|
115
|
+
// fallow-ignore-next-line unused-export
|
|
112
116
|
const getApiGroupFolder = (type, groups) => {
|
|
113
117
|
let folderNames = exports.API_GROUPS;
|
|
114
118
|
if ((0, validation_1.isGroupsObject)(groups)) {
|
|
@@ -254,6 +258,9 @@ class CategoryPositionManager {
|
|
|
254
258
|
* Each level has its own CategoryPositionManager that restarts numbering at 1.
|
|
255
259
|
* @example
|
|
256
260
|
*/
|
|
261
|
+
// Value export used only by unit tests for direct whitebox coverage; the type is used
|
|
262
|
+
// elsewhere via getRenderer()'s return type.
|
|
263
|
+
// fallow-ignore-next-line unused-export
|
|
257
264
|
class Renderer {
|
|
258
265
|
group;
|
|
259
266
|
outputDir;
|
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.21.
|
|
8
|
+
"version": "1.21.1",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -73,18 +73,18 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@fastify/deepmerge": "^3.2.1",
|
|
76
|
-
"@graphql-markdown/graphql": "
|
|
77
|
-
"@graphql-markdown/logger": "
|
|
78
|
-
"@graphql-markdown/printer-legacy": "
|
|
79
|
-
"@graphql-markdown/types": "
|
|
80
|
-
"@graphql-markdown/utils": "
|
|
76
|
+
"@graphql-markdown/graphql": "",
|
|
77
|
+
"@graphql-markdown/logger": "",
|
|
78
|
+
"@graphql-markdown/printer-legacy": "",
|
|
79
|
+
"@graphql-markdown/types": "",
|
|
80
|
+
"@graphql-markdown/utils": ""
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@graphql-markdown/tooling-config": "
|
|
83
|
+
"@graphql-markdown/tooling-config": ""
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@graphql-markdown/diff": "
|
|
87
|
-
"@graphql-markdown/helpers": "
|
|
86
|
+
"@graphql-markdown/diff": "",
|
|
87
|
+
"@graphql-markdown/helpers": "",
|
|
88
88
|
"graphql-config": "5.1.6"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"test": "tests"
|
|
103
103
|
},
|
|
104
104
|
"engines": {
|
|
105
|
-
"node": ">=
|
|
105
|
+
"node": ">=22.12.0"
|
|
106
106
|
},
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public"
|