@strapi/plugin-sentry 4.3.4 → 4.3.5

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.
@@ -14,7 +14,7 @@ export default {
14
14
  bootstrap() {},
15
15
  async registerTrads({ locales }) {
16
16
  const importedTrads = await Promise.all(
17
- locales.map(locale => {
17
+ locales.map((locale) => {
18
18
  return import(
19
19
  /* webpackChunkName: "sentry-translation-[request]" */ `./translations/${locale}.json`
20
20
  )
package/jest.config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const baseConfig = require('../../../jest.base-config');
4
- const pkg = require('./package');
4
+ const pkg = require('./package.json');
5
5
 
6
6
  module.exports = {
7
7
  ...baseConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-sentry",
3
- "version": "4.3.4",
3
+ "version": "4.3.5",
4
4
  "description": "Send Strapi error events to Sentry",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "test:unit": "jest --verbose"
25
25
  },
26
26
  "dependencies": {
27
- "@sentry/node": "6.19.6"
27
+ "@sentry/node": "6.19.7"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@strapi/strapi": "^4.0.0"
@@ -39,5 +39,5 @@
39
39
  "description": "Send Strapi error events to Sentry.",
40
40
  "kind": "plugin"
41
41
  },
42
- "gitHead": "28a2a00db8234ffcf644661c4c8092aa82f8c119"
42
+ "gitHead": "a52b0535513ff35b4ef46c9daf7be48f2ba71737"
43
43
  }
@@ -19,7 +19,7 @@ module.exports = ({ strapi }) => {
19
19
  await next();
20
20
  } catch (error) {
21
21
  sentryService.sendError(error, (scope, sentryInstance) => {
22
- scope.addEventProcessor(event => {
22
+ scope.addEventProcessor((event) => {
23
23
  // Parse Koa context to add error metadata
24
24
  return sentryInstance.Handlers.parseRequest(event, ctx.request, {
25
25
  // Don't parse the transaction name, we'll do it manually
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
+
2
3
  // FIXME
3
4
  /* eslint-disable import/extensions */
4
5
  const Sentry = require('@sentry/node');
5
6
 
6
- const createSentryService = strapi => {
7
+ const createSentryService = (strapi) => {
7
8
  let isReady = false;
8
9
  let instance = null;
9
10
  let settings = {};
@@ -69,7 +70,7 @@ const createSentryService = strapi => {
69
70
  return;
70
71
  }
71
72
 
72
- instance.withScope(scope => {
73
+ instance.withScope((scope) => {
73
74
  // Configure the Sentry scope using the provided callback
74
75
  if (configureScope && settings.sendMetadata) {
75
76
  configureScope(scope, instance);