@trackunit/react-core-contexts 1.3.14 → 1.3.16

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
@@ -82,7 +82,8 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlIntern
82
82
  // eslint-disable-next-line no-console
83
83
  console.error(`Error calling: '${errorResponse.operation.getContext().clientAwareness.name}' fetching Data for: ${errorResponse.operation.operationName}`, errorResponse.graphQLErrors);
84
84
  errorResponse.graphQLErrors.forEach(error => {
85
- if ("extensions" in error) {
85
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
86
+ if ("extensions" in error && error.extensions) {
86
87
  error.extensions.traceId = errorResponse.response?.extensions?.traceId;
87
88
  // eslint-disable-next-line local-rules/no-typescript-assertion
88
89
  const traceId = error.extensions.traceId;
package/index.esm.js CHANGED
@@ -62,7 +62,8 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlIntern
62
62
  // eslint-disable-next-line no-console
63
63
  console.error(`Error calling: '${errorResponse.operation.getContext().clientAwareness.name}' fetching Data for: ${errorResponse.operation.operationName}`, errorResponse.graphQLErrors);
64
64
  errorResponse.graphQLErrors.forEach(error => {
65
- if ("extensions" in error) {
65
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
66
+ if ("extensions" in error && error.extensions) {
66
67
  error.extensions.traceId = errorResponse.response?.extensions?.traceId;
67
68
  // eslint-disable-next-line local-rules/no-typescript-assertion
68
69
  const traceId = error.extensions.traceId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "1.3.14",
3
+ "version": "1.3.16",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -11,12 +11,12 @@
11
11
  "react": "18.3.1",
12
12
  "@js-temporal/polyfill": "^0.4.4",
13
13
  "jest-fetch-mock": "^3.0.3",
14
- "@trackunit/iris-app-api": "1.3.12",
15
- "@trackunit/react-core-contexts-api": "1.4.13",
16
- "@trackunit/react-core-hooks": "1.3.13",
17
- "@trackunit/i18n-library-translation": "1.3.13",
18
- "@trackunit/react-components": "1.4.12",
19
- "@trackunit/iris-app-runtime-core": "1.4.13"
14
+ "@trackunit/iris-app-api": "1.3.14",
15
+ "@trackunit/react-core-contexts-api": "1.4.15",
16
+ "@trackunit/react-core-hooks": "1.3.15",
17
+ "@trackunit/i18n-library-translation": "1.3.15",
18
+ "@trackunit/react-components": "1.4.14",
19
+ "@trackunit/iris-app-runtime-core": "1.4.15"
20
20
  },
21
21
  "module": "./index.esm.js",
22
22
  "main": "./index.cjs.js",