@graphcommerce/graphql-codegen-markdown-docs 8.0.0 → 8.0.1-canary.0

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.0.1-canary.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2187](https://github.com/graphcommerce-org/graphcommerce/pull/2187) [`6c4cee8`](https://github.com/graphcommerce-org/graphcommerce/commit/6c4cee8469ee4934281bda53ac96aeb5af2f9479) - Make sure the config page can be properly rendered in the docs
8
+ ([@paales](https://github.com/paales))
9
+
3
10
  ## 8.0.0
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ config) => {
38
38
  BooleanValue: {
39
39
  leave: (node) => (node.value ? 'true' : 'false'),
40
40
  },
41
- EnumValue: { leave: (node) => `'${node.value}'` },
41
+ EnumValue: { leave: (node) => `${node.value}` },
42
42
  IntValue: { leave: (node) => node.value },
43
43
  ObjectValue: {
44
44
  leave: (node) => {
@@ -56,7 +56,7 @@ config) => {
56
56
  },
57
57
  InputValueDefinition: {
58
58
  leave: (node) => {
59
- const defaultValue = node.defaultValue ? ` = ${node.defaultValue}` : '';
59
+ const defaultValue = node.defaultValue ? ` = \`${node.defaultValue}\`` : '';
60
60
  return `${node.name}: ${node.type}${defaultValue}${descriptionText(node)}`;
61
61
  },
62
62
  },
@@ -80,7 +80,7 @@ config) => {
80
80
  EnumTypeDefinition: {
81
81
  leave: (node) => {
82
82
  if (node.values)
83
- enumStings.set(node.name, node.values.map((v) => `'${v.trim()}'`).join(' | '));
83
+ enumStings.set(node.name, node.values.map((v) => `${v.trim()}`).join(' | '));
84
84
  return '';
85
85
  },
86
86
  },
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": "8.0.0",
5
+ "version": "8.0.1-canary.0",
6
6
  "sideEffects": false,
7
7
  "type": "commonjs",
8
8
  "main": "dist/index.js",
@@ -29,9 +29,9 @@
29
29
  "parse-filepath": "^1.0.2"
30
30
  },
31
31
  "peerDependencies": {
32
- "@graphcommerce/eslint-config-pwa": "^8.0.0",
33
- "@graphcommerce/prettier-config-pwa": "^8.0.0",
34
- "@graphcommerce/typescript-config-pwa": "^8.0.0",
32
+ "@graphcommerce/eslint-config-pwa": "^8.0.1-canary.0",
33
+ "@graphcommerce/prettier-config-pwa": "^8.0.1-canary.0",
34
+ "@graphcommerce/typescript-config-pwa": "^8.0.1-canary.0",
35
35
  "graphql": "^16.7.1"
36
36
  }
37
37
  }
package/src/index.ts CHANGED
@@ -48,7 +48,7 @@ export const plugin: PluginFunction<MarkdownDocsPluginConfig, Types.ComplexPlugi
48
48
  BooleanValue: {
49
49
  leave: (node) => (node.value ? 'true' : 'false'),
50
50
  },
51
- EnumValue: { leave: (node) => `'${node.value}'` },
51
+ EnumValue: { leave: (node) => `${node.value}` },
52
52
  IntValue: { leave: (node) => node.value },
53
53
  ObjectValue: {
54
54
  leave: (node) => {
@@ -66,7 +66,7 @@ export const plugin: PluginFunction<MarkdownDocsPluginConfig, Types.ComplexPlugi
66
66
  },
67
67
  InputValueDefinition: {
68
68
  leave: (node) => {
69
- const defaultValue = node.defaultValue ? ` = ${node.defaultValue}` : ''
69
+ const defaultValue = node.defaultValue ? ` = \`${node.defaultValue}\`` : ''
70
70
  return `${node.name}: ${node.type}${defaultValue}${descriptionText(node)}`
71
71
  },
72
72
  },
@@ -92,7 +92,7 @@ export const plugin: PluginFunction<MarkdownDocsPluginConfig, Types.ComplexPlugi
92
92
  EnumTypeDefinition: {
93
93
  leave: (node) => {
94
94
  if (node.values)
95
- enumStings.set(node.name, node.values.map((v) => `'${v.trim()}'`).join(' | '))
95
+ enumStings.set(node.name, node.values.map((v) => `${v.trim()}`).join(' | '))
96
96
  return ''
97
97
  },
98
98
  },