@trackunit/react-core-contexts 0.4.36 → 0.4.38

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 (2) hide show
  1. package/index.js +2 -6
  2. package/package.json +6 -6
package/index.js CHANGED
@@ -38,7 +38,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
38
38
  }
39
39
 
40
40
  const ManagerApolloProvider = ({ children }) => {
41
- const { publicUrl, graphqlLegacyUrl, graphqlManagerUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, graphqlSimulatorUrl, isDev, tracingHeaders, } = useEnvironment();
41
+ const { publicUrl, graphqlLegacyUrl, graphqlManagerUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders, } = useEnvironment();
42
42
  const { token } = useToken();
43
43
  const legacyGraphQLLink = createUploadLink({
44
44
  uri: request => graphqlLegacyUrl + "/" + request.operationName,
@@ -52,9 +52,6 @@ const ManagerApolloProvider = ({ children }) => {
52
52
  const reportGraphQLLink = createUploadLink({
53
53
  uri: request => graphqlReportUrl + "/" + request.operationName,
54
54
  });
55
- const simulatorGraphQLLink = createUploadLink({
56
- uri: request => graphqlSimulatorUrl + "/" + request.operationName,
57
- });
58
55
  const authLink = setContext((_, { headers }) => __awaiter(void 0, void 0, void 0, function* () {
59
56
  return {
60
57
  headers: Object.assign(Object.assign(Object.assign({}, headers), tracingHeaders), { Authorization: token ? `Bearer ${token}` : null }),
@@ -85,7 +82,7 @@ const ManagerApolloProvider = ({ children }) => {
85
82
  Sentry.addBreadcrumb({
86
83
  category: "GraphQL",
87
84
  message: "GraphQL Error",
88
- level: 'error',
85
+ level: "error",
89
86
  data: {
90
87
  log: JSON.stringify(errorResponse.graphQLErrors),
91
88
  },
@@ -119,7 +116,6 @@ const ManagerApolloProvider = ({ children }) => {
119
116
  errorLink,
120
117
  authLink,
121
118
  split(operation => operation.getContext().clientName === "imageupload", imageUploadGraphQLLink),
122
- split(operation => operation.getContext().clientName === "simulator", simulatorGraphQLLink),
123
119
  split(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split(operation => operation.getContext().clientName === "report", reportGraphQLLink, legacyGraphQLLink)),
124
120
  ]),
125
121
  });
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.4.36",
3
+ "version": "0.4.38",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
7
7
  "graphql": "^15.8.0",
8
- "@trackunit/iris-app-runtime-core": "0.3.7",
9
- "@trackunit/react-core-contexts-api": "0.2.8",
10
- "@trackunit/react-core-contexts-test": "0.1.15",
11
- "@trackunit/react-core-hooks": "0.2.15",
8
+ "@trackunit/iris-app-runtime-core": "0.3.8",
9
+ "@trackunit/react-core-contexts-api": "0.2.9",
10
+ "@trackunit/react-core-contexts-test": "0.1.17",
11
+ "@trackunit/react-core-hooks": "0.2.17",
12
12
  "react": "18.2.0",
13
13
  "@apollo/client": "3.6.9",
14
14
  "@sentry/browser": "7.24.2",
15
15
  "apollo-upload-client": "14.1.3",
16
16
  "@trackunit/i18n-library-translation": "0.0.22",
17
- "@trackunit/react-components": "0.1.16",
17
+ "@trackunit/react-components": "0.1.18",
18
18
  "react-router-dom": "6.4.5"
19
19
  },
20
20
  "module": "./index.js",