@graphql-codegen/java-common 2.1.18 → 2.1.19-alpha-b9cc98b7a.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.
Files changed (3) hide show
  1. package/index.js +2 -4
  2. package/index.mjs +2 -4
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -18,13 +18,11 @@ function wrapTypeWithModifiers(baseType, typeNode, listType = 'Iterable') {
18
18
  if (typeNode.kind === graphql.Kind.NON_NULL_TYPE) {
19
19
  return wrapTypeWithModifiers(baseType, typeNode.type, listType);
20
20
  }
21
- else if (typeNode.kind === graphql.Kind.LIST_TYPE) {
21
+ if (typeNode.kind === graphql.Kind.LIST_TYPE) {
22
22
  const innerType = wrapTypeWithModifiers(baseType, typeNode.type, listType);
23
23
  return `${listType}<${innerType}>`;
24
24
  }
25
- else {
26
- return baseType;
27
- }
25
+ return baseType;
28
26
  }
29
27
  function stripIndent(string) {
30
28
  const indent = minIndent(string);
package/index.mjs CHANGED
@@ -12,13 +12,11 @@ function wrapTypeWithModifiers(baseType, typeNode, listType = 'Iterable') {
12
12
  if (typeNode.kind === Kind.NON_NULL_TYPE) {
13
13
  return wrapTypeWithModifiers(baseType, typeNode.type, listType);
14
14
  }
15
- else if (typeNode.kind === Kind.LIST_TYPE) {
15
+ if (typeNode.kind === Kind.LIST_TYPE) {
16
16
  const innerType = wrapTypeWithModifiers(baseType, typeNode.type, listType);
17
17
  return `${listType}<${innerType}>`;
18
18
  }
19
- else {
20
- return baseType;
21
- }
19
+ return baseType;
22
20
  }
23
21
  function stripIndent(string) {
24
22
  const indent = minIndent(string);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-codegen/java-common",
3
- "version": "2.1.18",
3
+ "version": "2.1.19-alpha-b9cc98b7a.0",
4
4
  "description": "GraphQL Code Generator utils library for developing Java plugins",
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
9
  "@graphql-codegen/plugin-helpers": "^2.4.0",
10
- "@graphql-codegen/visitor-plugin-common": "2.8.0",
10
+ "@graphql-codegen/visitor-plugin-common": "2.9.0-alpha-b9cc98b7a.0",
11
11
  "auto-bind": "~4.0.0",
12
12
  "min-indent": "1.0.1",
13
13
  "tslib": "~2.4.0",