@graphql-markdown/printer-legacy 1.12.3 → 1.12.5

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.
Files changed (69) hide show
  1. package/dist/badge.d.ts +4 -3
  2. package/dist/badge.d.ts.map +1 -0
  3. package/dist/badge.js +2 -2
  4. package/dist/code.d.ts +2 -1
  5. package/dist/code.d.ts.map +1 -0
  6. package/dist/code.js +24 -22
  7. package/dist/common.d.ts +7 -8
  8. package/dist/common.d.ts.map +1 -0
  9. package/dist/common.js +3 -5
  10. package/dist/const/options.d.ts +2 -1
  11. package/dist/const/options.d.ts.map +1 -0
  12. package/dist/const/strings.d.ts +1 -0
  13. package/dist/const/strings.d.ts.map +1 -0
  14. package/dist/directive.d.ts +4 -3
  15. package/dist/directive.d.ts.map +1 -0
  16. package/dist/directive.js +7 -8
  17. package/dist/example.d.ts +1 -0
  18. package/dist/example.d.ts.map +1 -0
  19. package/dist/format-helpers.d.ts +42 -0
  20. package/dist/format-helpers.d.ts.map +1 -0
  21. package/dist/format-helpers.js +74 -0
  22. package/dist/formatter.d.ts +28 -0
  23. package/dist/formatter.d.ts.map +1 -0
  24. package/dist/formatter.js +63 -0
  25. package/dist/frontmatter.d.ts +1 -0
  26. package/dist/frontmatter.d.ts.map +1 -0
  27. package/dist/graphql/directive.d.ts +3 -2
  28. package/dist/graphql/directive.d.ts.map +1 -0
  29. package/dist/graphql/directive.js +1 -1
  30. package/dist/graphql/enum.d.ts +3 -2
  31. package/dist/graphql/enum.d.ts.map +1 -0
  32. package/dist/graphql/index.d.ts +1 -0
  33. package/dist/graphql/index.d.ts.map +1 -0
  34. package/dist/graphql/input.d.ts +2 -1
  35. package/dist/graphql/input.d.ts.map +1 -0
  36. package/dist/graphql/input.js +2 -1
  37. package/dist/graphql/interface.d.ts +2 -1
  38. package/dist/graphql/interface.d.ts.map +1 -0
  39. package/dist/graphql/interface.js +2 -1
  40. package/dist/graphql/object.d.ts +1 -0
  41. package/dist/graphql/object.d.ts.map +1 -0
  42. package/dist/graphql/operation.d.ts +4 -3
  43. package/dist/graphql/operation.d.ts.map +1 -0
  44. package/dist/graphql/operation.js +3 -3
  45. package/dist/graphql/scalar.d.ts +4 -3
  46. package/dist/graphql/scalar.d.ts.map +1 -0
  47. package/dist/graphql/union.d.ts +3 -2
  48. package/dist/graphql/union.d.ts.map +1 -0
  49. package/dist/group.d.ts +3 -2
  50. package/dist/group.d.ts.map +1 -0
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/index.js +1 -1
  54. package/dist/link.d.ts +5 -7
  55. package/dist/link.d.ts.map +1 -0
  56. package/dist/link.js +12 -13
  57. package/dist/mdx/index.d.ts +2 -1
  58. package/dist/mdx/index.d.ts.map +1 -0
  59. package/dist/mdx/index.js +2 -2
  60. package/dist/printer.d.ts +8 -12
  61. package/dist/printer.d.ts.map +1 -0
  62. package/dist/printer.js +24 -25
  63. package/dist/relation.d.ts +8 -7
  64. package/dist/relation.d.ts.map +1 -0
  65. package/dist/relation.js +9 -9
  66. package/dist/section.d.ts +5 -4
  67. package/dist/section.d.ts.map +1 -0
  68. package/dist/section.js +1 -1
  69. package/package.json +9 -9
package/dist/section.d.ts CHANGED
@@ -13,7 +13,7 @@ import type { MDXString, PrintTypeOptions } from "@graphql-markdown/types";
13
13
  *
14
14
  * @template T - Type of the GraphQL element being printed
15
15
  */
16
- export declare const printSectionItem: <T>(type: T, options: PrintTypeOptions) => MDXString | string;
16
+ export declare const printSectionItem: <T>(type: T, options: PrintTypeOptions) => string | MDXString;
17
17
  /**
18
18
  * Prints an array of section items with consistent formatting.
19
19
  *
@@ -23,7 +23,7 @@ export declare const printSectionItem: <T>(type: T, options: PrintTypeOptions) =
23
23
  *
24
24
  * @template V - Type of the values being printed
25
25
  */
26
- export declare const printSectionItems: <V>(values: V | V[], options: PrintTypeOptions) => MDXString | string;
26
+ export declare const printSectionItems: <V>(values: V | V[], options: PrintTypeOptions) => string | MDXString;
27
27
  /**
28
28
  * Prints a complete section with title and content.
29
29
  *
@@ -34,7 +34,7 @@ export declare const printSectionItems: <V>(values: V | V[], options: PrintTypeO
34
34
  *
35
35
  * @template V - Type of the values being printed
36
36
  */
37
- export declare const printSection: <V>(values: V[] | readonly V[], section: string, options: PrintTypeOptions) => MDXString | string;
37
+ export declare const printSection: <V>(values: V[] | readonly V[], section: string, options: PrintTypeOptions) => string | MDXString;
38
38
  /**
39
39
  * Prints a metadata section with special handling for deprecated items.
40
40
  *
@@ -47,4 +47,5 @@ export declare const printSection: <V>(values: V[] | readonly V[], section: stri
47
47
  * @template T - Type of the parent element
48
48
  * @template V - Type of the values being printed
49
49
  */
50
- export declare const printMetadataSection: <T, V>(type: T, values: V | V[] | readonly V[], section: string, options: PrintTypeOptions) => MDXString | string;
50
+ export declare const printMetadataSection: <T, V>(type: T, values: V | V[] | readonly V[], section: string, options: PrintTypeOptions) => string | MDXString;
51
+ //# sourceMappingURL=section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../src/section.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAEV,SAAS,EACT,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAYjC;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,2DAuCjC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,mEAuBlC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,+FAqC7B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAE,CAAC,4GAsDxC,CAAC"}
package/dist/section.js CHANGED
@@ -44,7 +44,7 @@ const printSectionItem = (type, options) => {
44
44
  section += (0, exports.printSectionItems)(type.args, {
45
45
  ...options,
46
46
  level: 5,
47
- parentType: typeof options.parentType === "undefined"
47
+ parentType: options.parentType === undefined
48
48
  ? type.name
49
49
  : `${options.parentType}.${type.name}`,
50
50
  });
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.12.3",
8
+ "version": "1.12.5",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -49,18 +49,17 @@
49
49
  "./package.json": "./package.json"
50
50
  },
51
51
  "scripts": {
52
- "prepack": "pinst --disable",
53
- "postpack": "pinst --enable",
54
52
  "stryker": "stryker run",
55
- "clean": "rm -rf ./dist",
56
- "docs": "typedoc"
53
+ "clean": "tsgo --build --clean && rm -rf ./dist",
54
+ "docs": "typedoc",
55
+ "build": "tsgo --build"
57
56
  },
58
57
  "dependencies": {
59
58
  "@graphql-markdown/graphql": "^1.1.9",
60
- "@graphql-markdown/utils": "^1.9.0"
59
+ "@graphql-markdown/utils": "^1.9.1"
61
60
  },
62
61
  "devDependencies": {
63
- "@graphql-markdown/types": "^1.8.0"
62
+ "@graphql-markdown/types": "^1.9.0"
64
63
  },
65
64
  "resolutions": {
66
65
  "micromatch": "4.0.8"
@@ -69,11 +68,12 @@
69
68
  "test": "tests"
70
69
  },
71
70
  "engines": {
72
- "node": ">=16.14"
71
+ "node": ">=20"
73
72
  },
74
73
  "publishConfig": {
75
74
  "directory": "dist",
76
- "access": "public"
75
+ "access": "public",
76
+ "scripts": {}
77
77
  },
78
78
  "typescript": {
79
79
  "definition": "dist/index.d.ts"