@graphql-codegen/typescript-urql 3.5.6 → 3.5.9

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 +3 -3
package/index.js CHANGED
@@ -127,10 +127,8 @@ const validate = async (schema, documents, config, outputFile) => {
127
127
  throw new Error(`Plugin "typescript-urql" requires extension to be ".tsx" when withComponent: true is set!`);
128
128
  }
129
129
  }
130
- else {
131
- if (path.extname(outputFile) !== '.ts' && path.extname(outputFile) !== '.tsx') {
132
- throw new Error(`Plugin "typescript-urql" requires extension to be ".ts" or ".tsx"!`);
133
- }
130
+ else if (path.extname(outputFile) !== '.ts' && path.extname(outputFile) !== '.tsx') {
131
+ throw new Error(`Plugin "typescript-urql" requires extension to be ".ts" or ".tsx"!`);
134
132
  }
135
133
  };
136
134
 
package/index.mjs CHANGED
@@ -121,10 +121,8 @@ const validate = async (schema, documents, config, outputFile) => {
121
121
  throw new Error(`Plugin "typescript-urql" requires extension to be ".tsx" when withComponent: true is set!`);
122
122
  }
123
123
  }
124
- else {
125
- if (extname(outputFile) !== '.ts' && extname(outputFile) !== '.tsx') {
126
- throw new Error(`Plugin "typescript-urql" requires extension to be ".ts" or ".tsx"!`);
127
- }
124
+ else if (extname(outputFile) !== '.ts' && extname(outputFile) !== '.tsx') {
125
+ throw new Error(`Plugin "typescript-urql" requires extension to be ".ts" or ".tsx"!`);
128
126
  }
129
127
  };
130
128
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-urql",
3
- "version": "3.5.6",
3
+ "version": "3.5.9",
4
4
  "description": "GraphQL Code Generator plugin for generating an introspection file for Urql's Schema Awareness",
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,9 +8,9 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-codegen/plugin-helpers": "^2.4.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.7.4",
11
+ "@graphql-codegen/visitor-plugin-common": "2.7.6",
12
12
  "auto-bind": "~4.0.0",
13
- "tslib": "~2.3.0"
13
+ "tslib": "~2.4.0"
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",