@graphql-codegen/typescript-oclif 2.2.11 → 2.2.12-alpha-9d94e917a.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
@@ -29,14 +29,12 @@ const mapVariableTypeToOclifType = (type) => {
29
29
  if (type.name.value === 'Boolean') {
30
30
  return 'boolean';
31
31
  }
32
- else if (['Float', 'Int'].includes(type.name.value)) {
32
+ if (['Float', 'Int'].includes(type.name.value)) {
33
33
  // A quirk of oclif is that "integer" allows for any `number`-typed response, and then
34
34
  // we supply our own parsing function to make sure it's a float and not an integer
35
35
  return 'integer';
36
36
  }
37
- else {
38
- return 'string';
39
- }
37
+ return 'string';
40
38
  };
41
39
  // Retrieve the inner type if nested within List and/or NonNull
42
40
  const getInnerType = (type) => {
package/index.mjs CHANGED
@@ -23,14 +23,12 @@ const mapVariableTypeToOclifType = (type) => {
23
23
  if (type.name.value === 'Boolean') {
24
24
  return 'boolean';
25
25
  }
26
- else if (['Float', 'Int'].includes(type.name.value)) {
26
+ if (['Float', 'Int'].includes(type.name.value)) {
27
27
  // A quirk of oclif is that "integer" allows for any `number`-typed response, and then
28
28
  // we supply our own parsing function to make sure it's a float and not an integer
29
29
  return 'integer';
30
30
  }
31
- else {
32
- return 'string';
33
- }
31
+ return 'string';
34
32
  };
35
33
  // Retrieve the inner type if nested within List and/or NonNull
36
34
  const getInnerType = (type) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-oclif",
3
- "version": "2.2.11",
3
+ "version": "2.2.12-alpha-9d94e917a.0",
4
4
  "description": "GraphQL Code Generator plugin for generating a CLI tool with oclif",
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",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-codegen/plugin-helpers": "^2.4.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.8.0",
11
+ "@graphql-codegen/visitor-plugin-common": "2.9.0-alpha-9d94e917a.0",
12
12
  "auto-bind": "~4.0.0",
13
13
  "tslib": "~2.4.0"
14
14
  },