@graphql-codegen/typescript-document-nodes 2.2.1-alpha-ac95f9557.0 → 2.2.2

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 (2) hide show
  1. package/index.d.ts +17 -17
  2. package/package.json +4 -3
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helpers';
2
2
  import { NamingConvention, RawClientSideBasePluginConfig } from '@graphql-codegen/visitor-plugin-common';
3
3
  /**
4
- * @description This plugin generates TypeScript source (`.ts`) file from GraphQL files (`.graphql`).
4
+ * @description This plugin generates TypeScript source `.ts` file from GraphQL files `.graphql`.
5
5
  */
6
6
  export interface TypeScriptDocumentNodesRawPluginConfig extends RawClientSideBasePluginConfig {
7
7
  /**
@@ -11,8 +11,8 @@ export interface TypeScriptDocumentNodesRawPluginConfig extends RawClientSideBas
11
11
  * The format of the converter must be a valid `module#method`.
12
12
  * Allowed values for specific output are: `typeNames`, `enumValues`.
13
13
  * You can also use "keep" to keep all GraphQL names as-is.
14
- * Additionally you can set `transformUnderscore` to `true` if you want to override the default behavior,
15
- * which is to preserves underscores.
14
+ * Additionally, you can set `transformUnderscore` to `true` if you want to override the default behavior,
15
+ * which is to preserve underscores.
16
16
  *
17
17
  * Available case functions in `change-case-all` are `camelCase`, `capitalCase`, `constantCase`, `dotCase`, `headerCase`, `noCase`, `paramCase`, `pascalCase`, `pathCase`, `sentenceCase`, `snakeCase`, `lowerCase`, `localeLowerCase`, `lowerCaseFirst`, `spongeCase`, `titleCase`, `upperCase`, `localeUpperCase` and `upperCaseFirst`
18
18
  * [See more](https://github.com/btxtiger/change-case-all)
@@ -53,13 +53,13 @@ export interface TypeScriptDocumentNodesRawPluginConfig extends RawClientSideBas
53
53
  *
54
54
  * @exampleMarkdown
55
55
  * ```yml
56
- * documents: src/api/user-service/queries.graphql
57
- * generates:
58
- * src/api/user-service/queries.ts:
59
- * plugins:
60
- * - typescript-document-nodes
61
- * config:
62
- * namePrefix: 'gql'
56
+ * documents: src/api/user-service/queries.graphql
57
+ * generates:
58
+ * src/api/user-service/queries.ts:
59
+ * plugins:
60
+ * - typescript-document-nodes
61
+ * config:
62
+ * namePrefix: 'gql'
63
63
  * ```
64
64
  */
65
65
  namePrefix?: string;
@@ -69,13 +69,13 @@ export interface TypeScriptDocumentNodesRawPluginConfig extends RawClientSideBas
69
69
  *
70
70
  * @exampleMarkdown
71
71
  * ```yml
72
- * documents: src/api/user-service/queries.graphql
73
- * generates:
74
- * src/api/user-service/queries.ts:
75
- * plugins:
76
- * - typescript-document-nodes
77
- * config:
78
- * nameSuffix: 'Query'
72
+ * documents: src/api/user-service/queries.graphql
73
+ * generates:
74
+ * src/api/user-service/queries.ts:
75
+ * plugins:
76
+ * - typescript-document-nodes
77
+ * config:
78
+ * nameSuffix: 'Query'
79
79
  * ```
80
80
  */
81
81
  nameSuffix?: string;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-document-nodes",
3
- "version": "2.2.1-alpha-ac95f9557.0",
3
+ "version": "2.2.2",
4
4
  "description": "GraphQL Code Generator plugin for generating TypeScript modules with embedded GraphQL document nodes",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-codegen/plugin-helpers": "^2.3.0",
10
- "@graphql-codegen/visitor-plugin-common": "2.5.1-alpha-ac95f9557.0",
9
+ "@graphql-codegen/plugin-helpers": "^2.3.2",
10
+ "@graphql-codegen/visitor-plugin-common": "2.5.2",
11
11
  "auto-bind": "~4.0.0",
12
12
  "tslib": "~2.3.0"
13
13
  },
@@ -24,6 +24,7 @@
24
24
  "definition": "index.d.ts"
25
25
  },
26
26
  "exports": {
27
+ "./package.json": "./package.json",
27
28
  ".": {
28
29
  "require": "./index.js",
29
30
  "import": "./index.mjs"