@graphql-codegen/typescript-urql 3.3.0 → 3.4.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 -3
  2. package/index.mjs +2 -3
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -91,14 +91,13 @@ export function use${operationName}(options: Omit<Urql.Use${operationType}Args<$
91
91
  }
92
92
  buildOperation(node, documentVariableName, operationType, operationResultType, operationVariablesTypes) {
93
93
  const documentVariablePrefixed = this._externalImportPrefix + documentVariableName;
94
- const operationTypePrefixed = this._externalImportPrefix + operationType;
95
94
  const operationResultTypePrefixed = this._externalImportPrefix + operationResultType;
96
95
  const operationVariablesTypesPrefixed = this._externalImportPrefix + operationVariablesTypes;
97
96
  const component = this.config.withComponent
98
- ? this._buildComponent(node, documentVariablePrefixed, operationTypePrefixed, operationResultTypePrefixed, operationVariablesTypesPrefixed)
97
+ ? this._buildComponent(node, documentVariablePrefixed, operationType, operationResultTypePrefixed, operationVariablesTypesPrefixed)
99
98
  : null;
100
99
  const hooks = this.config.withHooks
101
- ? this._buildHooks(node, operationTypePrefixed, documentVariablePrefixed, operationResultTypePrefixed, operationVariablesTypesPrefixed)
100
+ ? this._buildHooks(node, operationType, documentVariablePrefixed, operationResultTypePrefixed, operationVariablesTypesPrefixed)
102
101
  : null;
103
102
  return [component, hooks].filter(a => a).join('\n');
104
103
  }
package/index.mjs CHANGED
@@ -85,14 +85,13 @@ export function use${operationName}(options: Omit<Urql.Use${operationType}Args<$
85
85
  }
86
86
  buildOperation(node, documentVariableName, operationType, operationResultType, operationVariablesTypes) {
87
87
  const documentVariablePrefixed = this._externalImportPrefix + documentVariableName;
88
- const operationTypePrefixed = this._externalImportPrefix + operationType;
89
88
  const operationResultTypePrefixed = this._externalImportPrefix + operationResultType;
90
89
  const operationVariablesTypesPrefixed = this._externalImportPrefix + operationVariablesTypes;
91
90
  const component = this.config.withComponent
92
- ? this._buildComponent(node, documentVariablePrefixed, operationTypePrefixed, operationResultTypePrefixed, operationVariablesTypesPrefixed)
91
+ ? this._buildComponent(node, documentVariablePrefixed, operationType, operationResultTypePrefixed, operationVariablesTypesPrefixed)
93
92
  : null;
94
93
  const hooks = this.config.withHooks
95
- ? this._buildHooks(node, operationTypePrefixed, documentVariablePrefixed, operationResultTypePrefixed, operationVariablesTypesPrefixed)
94
+ ? this._buildHooks(node, operationType, documentVariablePrefixed, operationResultTypePrefixed, operationVariablesTypesPrefixed)
96
95
  : null;
97
96
  return [component, hooks].filter(a => a).join('\n');
98
97
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-urql",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "GraphQL Code Generator plugin for generating an introspection file for Urql's Schema Awareness",
5
5
  "peerDependencies": {
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",
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
  "graphql-tag": "^2.0.0"
8
8
  },
9
9
  "dependencies": {