@envelop/sentry 3.8.0 → 3.8.1-alpha-20220916153711-a23e2d81

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/cjs/index.js CHANGED
@@ -175,16 +175,18 @@ const useSentry = (options = {}) => {
175
175
  const errorPathWithIndex = ((_b = err.path) !== null && _b !== void 0 ? _b : [])
176
176
  .map(v => (typeof v === 'number' ? '$index' : v))
177
177
  .join(' > ');
178
- const eventId = Sentry.captureException(err, {
179
- fingerprint: ['graphql', errorPathWithIndex, opName, operationType],
180
- contexts: {
181
- GraphQL: {
182
- operationName: opName,
183
- operationType,
184
- variables: args.variableValues,
178
+ const eventId = err.originalError && skipError(err.originalError)
179
+ ? null
180
+ : Sentry.captureException(err, {
181
+ fingerprint: ['graphql', errorPathWithIndex, opName, operationType],
182
+ contexts: {
183
+ GraphQL: {
184
+ operationName: opName,
185
+ operationType,
186
+ variables: args.variableValues,
187
+ },
185
188
  },
186
- },
187
- });
189
+ });
188
190
  return addEventId(err, eventId);
189
191
  });
190
192
  setResult({
package/esm/index.js CHANGED
@@ -170,16 +170,18 @@ export const useSentry = (options = {}) => {
170
170
  const errorPathWithIndex = ((_b = err.path) !== null && _b !== void 0 ? _b : [])
171
171
  .map(v => (typeof v === 'number' ? '$index' : v))
172
172
  .join(' > ');
173
- const eventId = Sentry.captureException(err, {
174
- fingerprint: ['graphql', errorPathWithIndex, opName, operationType],
175
- contexts: {
176
- GraphQL: {
177
- operationName: opName,
178
- operationType,
179
- variables: args.variableValues,
173
+ const eventId = err.originalError && skipError(err.originalError)
174
+ ? null
175
+ : Sentry.captureException(err, {
176
+ fingerprint: ['graphql', errorPathWithIndex, opName, operationType],
177
+ contexts: {
178
+ GraphQL: {
179
+ operationName: opName,
180
+ operationType,
181
+ variables: args.variableValues,
182
+ },
180
183
  },
181
- },
182
- });
184
+ });
183
185
  return addEventId(err, eventId);
184
186
  });
185
187
  setResult({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envelop/sentry",
3
- "version": "3.8.0",
3
+ "version": "3.8.1-alpha-20220916153711-a23e2d81",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@envelop/core": "^2.6.0",