@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.
- package/index.cjs +5 -2
- package/index.js +5 -2
- 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
|
-
|
|
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
|
-
|
|
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
|
}
|