@trackunit/react-core-contexts 0.4.184 → 0.4.185

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.cjs +5 -2
  2. package/index.js +5 -2
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -123,13 +123,16 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
123
123
  ((_c = x === null || x === void 0 ? void 0 : x.message) === null || _c === void 0 ? void 0 : _c.includes("Access denied! You need to be authorized to perform this action!")));
124
124
  });
125
125
  if (invalidToken) {
126
- Sentry__namespace.captureException({
126
+ Sentry__namespace.captureException(new Error(JSON.stringify({
127
127
  category: "GraphQL",
128
- message: "GraphQL Error - invalidToken",
128
+ info: "GraphQL Error - invalidToken",
129
129
  level: "warning",
130
130
  data: {
131
131
  log: JSON.stringify(errorResponse.graphQLErrors),
132
132
  },
133
+ })), {
134
+ level: "warning",
135
+ fingerprint: ["GraphQL Error - invalidToken"],
133
136
  });
134
137
  }
135
138
  }
package/index.js CHANGED
@@ -99,13 +99,16 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
99
99
  ((_c = x === null || x === void 0 ? void 0 : x.message) === null || _c === void 0 ? void 0 : _c.includes("Access denied! You need to be authorized to perform this action!")));
100
100
  });
101
101
  if (invalidToken) {
102
- Sentry.captureException({
102
+ Sentry.captureException(new Error(JSON.stringify({
103
103
  category: "GraphQL",
104
- message: "GraphQL Error - invalidToken",
104
+ info: "GraphQL Error - invalidToken",
105
105
  level: "warning",
106
106
  data: {
107
107
  log: JSON.stringify(errorResponse.graphQLErrors),
108
108
  },
109
+ })), {
110
+ level: "warning",
111
+ fingerprint: ["GraphQL Error - invalidToken"],
109
112
  });
110
113
  }
111
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.4.184",
3
+ "version": "0.4.185",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {