@graphql-codegen/typescript-react-apollo 4.4.2 → 4.4.3-alpha-20260808092020-dc2b74192fbab38a2132cdd78128245e040fe1db

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.
package/cjs/visitor.js CHANGED
@@ -190,7 +190,8 @@ class ReactApolloVisitor extends visitor_plugin_common_1.ClientSideBaseVisitor {
190
190
  return [componentProps, component].join('\n');
191
191
  }
192
192
  _buildHooksJSDoc(node, operationName, operationType) {
193
- const variableString = node.variableDefinitions.reduce((acc, item) => {
193
+ var _a;
194
+ const variableString = (_a = node.variableDefinitions) === null || _a === void 0 ? void 0 : _a.reduce((acc, item) => {
194
195
  const name = item.variable.name.value;
195
196
  return `${acc}\n * ${name}: // value for '${name}'`;
196
197
  }, '');
package/esm/visitor.js CHANGED
@@ -186,7 +186,8 @@ export class ReactApolloVisitor extends ClientSideBaseVisitor {
186
186
  return [componentProps, component].join('\n');
187
187
  }
188
188
  _buildHooksJSDoc(node, operationName, operationType) {
189
- const variableString = node.variableDefinitions.reduce((acc, item) => {
189
+ var _a;
190
+ const variableString = (_a = node.variableDefinitions) === null || _a === void 0 ? void 0 : _a.reduce((acc, item) => {
190
191
  const name = item.variable.name.value;
191
192
  return `${acc}\n * ${name}: // value for '${name}'`;
192
193
  }, '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-react-apollo",
3
- "version": "4.4.2",
3
+ "version": "4.4.3-alpha-20260808092020-dc2b74192fbab38a2132cdd78128245e040fe1db",
4
4
  "description": "GraphQL Code Generator plugin for generating a ready-to-use React Components/HOC/Hooks based on GraphQL operations",
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"