@trackunit/react-core-contexts 0.4.505 → 0.4.507

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/index.cjs.js CHANGED
@@ -117,9 +117,9 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
117
117
  // eslint-disable-next-line no-console
118
118
  console.error(`Error calling: '${errorResponse.operation.getContext().clientAwareness.name}' fetching Data for: ${errorResponse.operation.operationName}`, errorResponse.graphQLErrors);
119
119
  errorResponse.graphQLErrors.forEach(error => {
120
- var _a;
120
+ var _a, _b;
121
121
  if ("extensions" in error) {
122
- error.extensions.traceId = (_a = errorResponse.response.extensions) === null || _a === void 0 ? void 0 : _a.traceId;
122
+ error.extensions.traceId = (_b = (_a = errorResponse.response) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.traceId;
123
123
  traceIds.push(error.extensions.traceId);
124
124
  }
125
125
  });
package/index.esm.js CHANGED
@@ -93,9 +93,9 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
93
93
  // eslint-disable-next-line no-console
94
94
  console.error(`Error calling: '${errorResponse.operation.getContext().clientAwareness.name}' fetching Data for: ${errorResponse.operation.operationName}`, errorResponse.graphQLErrors);
95
95
  errorResponse.graphQLErrors.forEach(error => {
96
- var _a;
96
+ var _a, _b;
97
97
  if ("extensions" in error) {
98
- error.extensions.traceId = (_a = errorResponse.response.extensions) === null || _a === void 0 ? void 0 : _a.traceId;
98
+ error.extensions.traceId = (_b = (_a = errorResponse.response) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.traceId;
99
99
  traceIds.push(error.extensions.traceId);
100
100
  }
101
101
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.4.505",
3
+ "version": "0.4.507",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {