@strapi/plugin-sentry 5.8.1 → 5.10.0

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 (75) hide show
  1. package/dist/admin/chunks/dk-2c1X5YD1.mjs +8 -0
  2. package/dist/admin/chunks/dk-2c1X5YD1.mjs.map +1 -0
  3. package/dist/admin/chunks/dk-C64Vk1_X.js +10 -0
  4. package/dist/admin/chunks/dk-C64Vk1_X.js.map +1 -0
  5. package/dist/admin/chunks/en-CzMdlTs0.js +10 -0
  6. package/dist/admin/chunks/en-CzMdlTs0.js.map +1 -0
  7. package/dist/admin/chunks/en-DDCHBy0-.mjs +8 -0
  8. package/dist/admin/chunks/en-DDCHBy0-.mjs.map +1 -0
  9. package/dist/admin/chunks/es-BnizV7-a.mjs +8 -0
  10. package/dist/admin/chunks/es-BnizV7-a.mjs.map +1 -0
  11. package/dist/admin/chunks/es-l4HaM-C0.js +10 -0
  12. package/dist/admin/chunks/es-l4HaM-C0.js.map +1 -0
  13. package/dist/admin/chunks/fr-BsXNdB-N.mjs +8 -0
  14. package/dist/admin/chunks/fr-BsXNdB-N.mjs.map +1 -0
  15. package/dist/admin/chunks/fr-rJIDC4Jx.js +10 -0
  16. package/dist/admin/chunks/fr-rJIDC4Jx.js.map +1 -0
  17. package/dist/admin/chunks/ko-BrDfWiIr.mjs +8 -0
  18. package/dist/admin/chunks/ko-BrDfWiIr.mjs.map +1 -0
  19. package/dist/admin/chunks/ko-CoJrUsj1.js +10 -0
  20. package/dist/admin/chunks/ko-CoJrUsj1.js.map +1 -0
  21. package/dist/admin/chunks/pl-6JvJwTZm.mjs +8 -0
  22. package/dist/admin/chunks/pl-6JvJwTZm.mjs.map +1 -0
  23. package/dist/admin/chunks/pl-DbPKh3_6.js +10 -0
  24. package/dist/admin/chunks/pl-DbPKh3_6.js.map +1 -0
  25. package/dist/admin/chunks/ru-B4OA2fUb.mjs +8 -0
  26. package/dist/admin/chunks/ru-B4OA2fUb.mjs.map +1 -0
  27. package/dist/admin/chunks/ru-CgCHTIu5.js +10 -0
  28. package/dist/admin/chunks/ru-CgCHTIu5.js.map +1 -0
  29. package/dist/admin/chunks/sv-DrckibdJ.js +10 -0
  30. package/dist/admin/chunks/sv-DrckibdJ.js.map +1 -0
  31. package/dist/admin/chunks/sv-OPAT8f7H.mjs +8 -0
  32. package/dist/admin/chunks/sv-OPAT8f7H.mjs.map +1 -0
  33. package/dist/admin/chunks/tr-C8CxtgGx.mjs +8 -0
  34. package/dist/admin/chunks/tr-C8CxtgGx.mjs.map +1 -0
  35. package/dist/admin/chunks/tr-DMgP5sU_.js +10 -0
  36. package/dist/admin/chunks/tr-DMgP5sU_.js.map +1 -0
  37. package/dist/admin/chunks/vi-CpPssghl.js +10 -0
  38. package/dist/admin/chunks/vi-CpPssghl.js.map +1 -0
  39. package/dist/admin/chunks/vi-D0rPKKIu.mjs +8 -0
  40. package/dist/admin/chunks/vi-D0rPKKIu.mjs.map +1 -0
  41. package/dist/admin/chunks/zh-MmnOh-xz.mjs +8 -0
  42. package/dist/admin/chunks/zh-MmnOh-xz.mjs.map +1 -0
  43. package/dist/admin/chunks/zh-TX10GrSY.js +10 -0
  44. package/dist/admin/chunks/zh-TX10GrSY.js.map +1 -0
  45. package/dist/admin/index.js +142 -133
  46. package/dist/admin/index.js.map +1 -0
  47. package/dist/admin/index.mjs +141 -135
  48. package/dist/admin/index.mjs.map +1 -0
  49. package/dist/server/index.js +126 -104
  50. package/dist/server/index.js.map +1 -0
  51. package/dist/server/index.mjs +115 -97
  52. package/dist/server/index.mjs.map +1 -0
  53. package/package.json +11 -10
  54. package/dist/_chunks/dk-D9TLFbt6.mjs +0 -8
  55. package/dist/_chunks/dk-NQyAzZiU.js +0 -8
  56. package/dist/_chunks/en-CegwVP3M.mjs +0 -8
  57. package/dist/_chunks/en-bbgXRWo3.js +0 -8
  58. package/dist/_chunks/es-31ok883l.js +0 -8
  59. package/dist/_chunks/es-DxC1UwjP.mjs +0 -8
  60. package/dist/_chunks/fr-6Xd8HjNA.js +0 -8
  61. package/dist/_chunks/fr-BRlwHIG8.mjs +0 -8
  62. package/dist/_chunks/ko-C_MXyOM9.mjs +0 -8
  63. package/dist/_chunks/ko-DdXSFVkr.js +0 -8
  64. package/dist/_chunks/pl-6hJT3Sda.mjs +0 -8
  65. package/dist/_chunks/pl-KE2e7O1o.js +0 -8
  66. package/dist/_chunks/ru-C41W13kt.js +0 -8
  67. package/dist/_chunks/ru-DnVqFddA.mjs +0 -8
  68. package/dist/_chunks/sv-DCUFAW2Z.js +0 -8
  69. package/dist/_chunks/sv-DjL9wmwK.mjs +0 -8
  70. package/dist/_chunks/tr-BKL2AN-d.mjs +0 -8
  71. package/dist/_chunks/tr-DgnL-Yfr.js +0 -8
  72. package/dist/_chunks/vi-DLBe31mD.mjs +0 -8
  73. package/dist/_chunks/vi-E2aG_wR_.js +0 -8
  74. package/dist/_chunks/zh-5kkOa7U5.mjs +0 -8
  75. package/dist/_chunks/zh-Uq7oN9Sz.js +0 -8
@@ -1,105 +1,123 @@
1
- import * as Sentry from "@sentry/node";
2
- const initSentryMiddleware = ({ strapi }) => {
3
- const sentryService = strapi.plugin("sentry").service("sentry");
4
- sentryService.init();
5
- const sentry2 = sentryService.getInstance();
6
- if (!sentry2) {
7
- return;
8
- }
9
- strapi.server.use(async (ctx, next) => {
10
- try {
11
- await next();
12
- } catch (error) {
13
- if (error instanceof Error) {
14
- sentryService.sendError(error, (scope) => {
15
- scope.addEventProcessor((event) => {
16
- return sentry2.Handlers.parseRequest(event, ctx.request, {
17
- // Don't parse the transaction name, we'll do it manually
18
- transaction: false
19
- });
20
- });
21
- scope.setTag("transaction", `${ctx.method} ${ctx._matchedRoute}`);
22
- scope.setTag("strapi_version", strapi.config.info.strapi);
23
- scope.setTag("method", ctx.method);
24
- });
25
- }
26
- throw error;
1
+ import * as Sentry from '@sentry/node';
2
+
3
+ /**
4
+ * Programmatic sentry middleware. We do not want to expose it in the plugin
5
+ */ var initSentryMiddleware = (({ strapi })=>{
6
+ const sentryService = strapi.plugin('sentry').service('sentry');
7
+ sentryService.init();
8
+ const sentry = sentryService.getInstance();
9
+ if (!sentry) {
10
+ // initialization failed
11
+ return;
27
12
  }
28
- });
29
- };
30
- const bootstrap = async ({ strapi }) => {
31
- initSentryMiddleware({ strapi });
32
- };
33
- const createSentryService = (strapi) => {
34
- let isReady = false;
35
- let instance = null;
36
- const config2 = strapi.config.get("plugin::sentry");
37
- return {
38
- /**
13
+ strapi.server.use(async (ctx, next)=>{
14
+ try {
15
+ await next();
16
+ } catch (error) {
17
+ if (error instanceof Error) {
18
+ sentryService.sendError(error, (scope)=>{
19
+ scope.addEventProcessor((event)=>{
20
+ // Parse Koa context to add error metadata
21
+ return sentry.Handlers.parseRequest(event, ctx.request, {
22
+ // Don't parse the transaction name, we'll do it manually
23
+ transaction: false
24
+ });
25
+ });
26
+ // Manually add transaction name
27
+ scope.setTag('transaction', `${ctx.method} ${ctx._matchedRoute}`);
28
+ // Manually add Strapi version
29
+ scope.setTag('strapi_version', strapi.config.info.strapi);
30
+ scope.setTag('method', ctx.method);
31
+ });
32
+ }
33
+ throw error;
34
+ }
35
+ });
36
+ });
37
+
38
+ var bootstrap = (async ({ strapi })=>{
39
+ // Initialize the Sentry service exposed by this plugin
40
+ initSentryMiddleware({
41
+ strapi
42
+ });
43
+ });
44
+
45
+ const createSentryService = (strapi)=>{
46
+ let isReady = false;
47
+ let instance = null;
48
+ // Retrieve user config and merge it with the default one
49
+ const config = strapi.config.get('plugin::sentry');
50
+ return {
51
+ /**
39
52
  * Initialize Sentry service
40
- */
41
- init() {
42
- if (instance != null) {
43
- return this;
44
- }
45
- if (!config2.dsn) {
46
- strapi.log.info("@strapi/plugin-sentry is disabled because no Sentry DSN was provided");
47
- return this;
48
- }
49
- try {
50
- Sentry.init({
51
- dsn: config2.dsn,
52
- environment: strapi.config.get("environment"),
53
- ...config2.init
54
- });
55
- instance = Sentry;
56
- isReady = true;
57
- } catch (error) {
58
- strapi.log.warn("Could not set up Sentry, make sure you entered a valid DSN");
59
- }
60
- return this;
61
- },
62
- /**
53
+ */ init () {
54
+ // Make sure there isn't a Sentry instance already running
55
+ if (instance != null) {
56
+ return this;
57
+ }
58
+ // Don't init Sentry if no DSN was provided
59
+ if (!config.dsn) {
60
+ strapi.log.info('@strapi/plugin-sentry is disabled because no Sentry DSN was provided');
61
+ return this;
62
+ }
63
+ try {
64
+ Sentry.init({
65
+ dsn: config.dsn,
66
+ environment: strapi.config.get('environment'),
67
+ ...config.init
68
+ });
69
+ // Store the successfully initialized Sentry instance
70
+ instance = Sentry;
71
+ isReady = true;
72
+ } catch (error) {
73
+ strapi.log.warn('Could not set up Sentry, make sure you entered a valid DSN');
74
+ }
75
+ return this;
76
+ },
77
+ /**
63
78
  * Expose Sentry instance through a getter
64
- */
65
- getInstance() {
66
- return instance;
67
- },
68
- /**
79
+ */ getInstance () {
80
+ return instance;
81
+ },
82
+ /**
69
83
  * Higher level method to send exception events to Sentry
70
- */
71
- sendError(error, configureScope) {
72
- if (!isReady || !instance) {
73
- strapi.log.warn("Sentry wasn't properly initialized, cannot send event");
74
- return;
75
- }
76
- instance.withScope((scope) => {
77
- if (configureScope && config2.sendMetadata) {
78
- configureScope(scope);
84
+ */ sendError (error, configureScope) {
85
+ // Make sure Sentry is ready
86
+ if (!isReady || !instance) {
87
+ strapi.log.warn("Sentry wasn't properly initialized, cannot send event");
88
+ return;
89
+ }
90
+ instance.withScope((scope)=>{
91
+ // Configure the Sentry scope using the provided callback
92
+ if (configureScope && config.sendMetadata) {
93
+ configureScope(scope);
94
+ }
95
+ // Actually send the Error to Sentry
96
+ instance?.captureException(error);
97
+ });
79
98
  }
80
- instance?.captureException(error);
81
- });
82
- }
83
- };
99
+ };
84
100
  };
85
- const sentry = ({ strapi }) => createSentryService(strapi);
86
- const services = {
87
- sentry
101
+ var sentry = (({ strapi })=>createSentryService(strapi));
102
+
103
+ var services = {
104
+ sentry
88
105
  };
89
- const config = {
90
- default: {
91
- dsn: null,
92
- sendMetadata: true,
93
- init: {}
94
- },
95
- validator() {
96
- }
97
- };
98
- const index = () => ({
99
- bootstrap,
100
- config,
101
- services
102
- });
103
- export {
104
- index as default
106
+
107
+ var config = {
108
+ default: {
109
+ dsn: null,
110
+ sendMetadata: true,
111
+ init: {}
112
+ },
113
+ validator () {}
105
114
  };
115
+
116
+ var index = (()=>({
117
+ bootstrap,
118
+ config,
119
+ services
120
+ }));
121
+
122
+ export { index as default };
123
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../server/src/middlewares/sentry.ts","../../server/src/bootstrap.ts","../../server/src/services/sentry.ts","../../server/src/services/index.ts","../../server/src/config.ts","../../server/src/index.ts"],"sourcesContent":["import type { Core } from '@strapi/strapi';\nimport type Sentry from '@sentry/node';\nimport type createSentryService from '../services/sentry';\n\n/**\n * Programmatic sentry middleware. We do not want to expose it in the plugin\n */\nexport default ({ strapi }: { strapi: Core.Strapi }) => {\n const sentryService: ReturnType<typeof createSentryService> = strapi\n .plugin('sentry')\n .service('sentry');\n sentryService.init();\n const sentry = sentryService.getInstance();\n\n if (!sentry) {\n // initialization failed\n return;\n }\n\n strapi.server.use(async (ctx, next) => {\n try {\n await next();\n } catch (error) {\n if (error instanceof Error) {\n sentryService.sendError(error, (scope: Sentry.Scope) => {\n scope.addEventProcessor((event) => {\n // Parse Koa context to add error metadata\n return sentry.Handlers.parseRequest(event, ctx.request as Sentry.Request, {\n // Don't parse the transaction name, we'll do it manually\n transaction: false,\n });\n });\n\n // Manually add transaction name\n scope.setTag('transaction', `${ctx.method} ${ctx._matchedRoute}`);\n // Manually add Strapi version\n scope.setTag('strapi_version', strapi.config.info.strapi);\n scope.setTag('method', ctx.method);\n });\n }\n\n throw error;\n }\n });\n};\n","import type { Core } from '@strapi/strapi';\nimport initSentryMiddleware from './middlewares/sentry';\n\nexport default async ({ strapi }: { strapi: Core.Strapi }) => {\n // Initialize the Sentry service exposed by this plugin\n initSentryMiddleware({ strapi });\n};\n","import type { Core } from '@strapi/strapi';\nimport type { Config } from 'src/config';\nimport * as Sentry from '@sentry/node';\n\nconst createSentryService = (strapi: Core.Strapi) => {\n let isReady = false;\n let instance: typeof Sentry | null = null;\n\n // Retrieve user config and merge it with the default one\n const config = strapi.config.get('plugin::sentry') as Config;\n\n return {\n /**\n * Initialize Sentry service\n */\n init() {\n // Make sure there isn't a Sentry instance already running\n if (instance != null) {\n return this;\n }\n\n // Don't init Sentry if no DSN was provided\n if (!config.dsn) {\n strapi.log.info('@strapi/plugin-sentry is disabled because no Sentry DSN was provided');\n return this;\n }\n\n try {\n Sentry.init({\n dsn: config.dsn,\n environment: strapi.config.get('environment'),\n ...config.init,\n });\n\n // Store the successfully initialized Sentry instance\n instance = Sentry;\n isReady = true;\n } catch (error) {\n strapi.log.warn('Could not set up Sentry, make sure you entered a valid DSN');\n }\n\n return this;\n },\n\n /**\n * Expose Sentry instance through a getter\n */\n getInstance() {\n return instance;\n },\n\n /**\n * Higher level method to send exception events to Sentry\n */\n sendError(error: Error, configureScope?: (scope: Sentry.Scope) => void) {\n // Make sure Sentry is ready\n if (!isReady || !instance) {\n strapi.log.warn(\"Sentry wasn't properly initialized, cannot send event\");\n return;\n }\n\n instance.withScope((scope) => {\n // Configure the Sentry scope using the provided callback\n if (configureScope && config.sendMetadata) {\n configureScope(scope);\n }\n\n // Actually send the Error to Sentry\n instance?.captureException(error);\n });\n },\n };\n};\n\nexport default ({ strapi }: { strapi: Core.Strapi }) => createSentryService(strapi);\n","import sentry from './sentry';\n\nexport default {\n sentry,\n};\n","import type { NodeOptions } from '@sentry/node';\n\nexport interface Config {\n dsn: string | null;\n sendMetadata: boolean;\n init: NodeOptions;\n}\n\nexport default {\n default: {\n dsn: null,\n sendMetadata: true,\n init: {},\n } satisfies Config,\n validator() {},\n};\n","import bootstrap from './bootstrap';\nimport services from './services';\nimport config from './config';\n\nexport default () => ({\n bootstrap,\n config,\n services,\n});\n"],"names":["strapi","sentryService","plugin","service","init","sentry","getInstance","server","use","ctx","next","error","Error","sendError","scope","addEventProcessor","event","Handlers","parseRequest","request","transaction","setTag","method","_matchedRoute","config","info","initSentryMiddleware","createSentryService","isReady","instance","get","dsn","log","Sentry","environment","warn","configureScope","withScope","sendMetadata","captureException","default","validator","bootstrap","services"],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-sentry",
3
- "version": "5.8.1",
3
+ "version": "5.10.0",
4
4
  "description": "Send Strapi error events to Sentry",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,26 +38,27 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "files": [
41
- "./dist",
42
- "strapi-server.js"
41
+ "./dist"
43
42
  ],
44
43
  "scripts": {
45
- "build": "strapi-plugin build",
44
+ "build": "run -T npm-run-all clean --parallel build:code build:types",
45
+ "build:code": "run -T rollup -c",
46
+ "build:types": "run -T run-p build:types:server build:types:admin",
47
+ "build:types:server": "run -T tsc -p server/tsconfig.build.json --emitDeclarationOnly",
48
+ "build:types:admin": "run -T tsc -p admin/tsconfig.build.json --emitDeclarationOnly",
46
49
  "clean": "run -T rimraf dist",
47
50
  "lint": "run -T eslint .",
48
51
  "test:unit": "run -T jest",
49
52
  "test:unit:watch": "run -T jest --watch",
50
- "watch": "strapi-plugin watch"
53
+ "watch": "run -T rollup -c -w"
51
54
  },
52
55
  "dependencies": {
53
56
  "@sentry/node": "7.112.2",
54
- "@strapi/design-system": "2.0.0-rc.14",
55
- "@strapi/icons": "2.0.0-rc.14"
57
+ "@strapi/design-system": "2.0.0-rc.16",
58
+ "@strapi/icons": "2.0.0-rc.16"
56
59
  },
57
60
  "devDependencies": {
58
- "@strapi/pack-up": "5.0.2",
59
- "@strapi/sdk-plugin": "^5.2.0",
60
- "@strapi/strapi": "5.8.1",
61
+ "@strapi/strapi": "5.10.0",
61
62
  "react": "18.3.1",
62
63
  "react-dom": "18.3.1",
63
64
  "react-router-dom": "6.22.3",
@@ -1,8 +0,0 @@
1
- const dk = {
2
- "plugin.description.long": "Send Strapi fejlevents til Sentry.",
3
- "plugin.description.short": "Send Strapi fejlevents til Sentry.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- dk as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const dk = {
4
- "plugin.description.long": "Send Strapi fejlevents til Sentry.",
5
- "plugin.description.short": "Send Strapi fejlevents til Sentry.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = dk;
@@ -1,8 +0,0 @@
1
- const en = {
2
- "plugin.description.long": "Send Strapi error events to Sentry.",
3
- "plugin.description.short": "Send Strapi error events to Sentry.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- en as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const en = {
4
- "plugin.description.long": "Send Strapi error events to Sentry.",
5
- "plugin.description.short": "Send Strapi error events to Sentry.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = en;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const es = {
4
- "plugin.description.long": "Envíe los eventos de error de Strapi a Sentry.",
5
- "plugin.description.short": "Envíe los eventos de error de Strapi a Sentry.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = es;
@@ -1,8 +0,0 @@
1
- const es = {
2
- "plugin.description.long": "Envíe los eventos de error de Strapi a Sentry.",
3
- "plugin.description.short": "Envíe los eventos de error de Strapi a Sentry.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- es as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const fr = {
4
- "plugin.description.long": "Envoie vos erreurs Strapi à Sentry.",
5
- "plugin.description.short": "Envoie vos erreurs Strapi à Sentry.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = fr;
@@ -1,8 +0,0 @@
1
- const fr = {
2
- "plugin.description.long": "Envoie vos erreurs Strapi à Sentry.",
3
- "plugin.description.short": "Envoie vos erreurs Strapi à Sentry.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- fr as default
8
- };
@@ -1,8 +0,0 @@
1
- const ko = {
2
- "plugin.description.long": "Strapi 에러 이벤트를 Sentry에 보냅니다.",
3
- "plugin.description.short": "Strapi 에러 이벤트를 Sentry에 보냅니다.",
4
- "plugin.name": "Sentry에"
5
- };
6
- export {
7
- ko as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const ko = {
4
- "plugin.description.long": "Strapi 에러 이벤트를 Sentry에 보냅니다.",
5
- "plugin.description.short": "Strapi 에러 이벤트를 Sentry에 보냅니다.",
6
- "plugin.name": "Sentry에"
7
- };
8
- exports.default = ko;
@@ -1,8 +0,0 @@
1
- const pl = {
2
- "plugin.description.long": "Wyślij zdarzenia z błędami ze Strapi do Sentry",
3
- "plugin.description.short": "Wyślij zdarzenia z błędami ze Strapi do Sentry.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- pl as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const pl = {
4
- "plugin.description.long": "Wyślij zdarzenia z błędami ze Strapi do Sentry",
5
- "plugin.description.short": "Wyślij zdarzenia z błędami ze Strapi do Sentry.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = pl;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const ru = {
4
- "plugin.description.long": "Отсылает записи об ошибках Strapi в Sentry. Иными словами, ведёт журнал событий с ошибками и отправляет их в Sentry.",
5
- "plugin.description.short": "Отсылает записи об ошибках Strapi в Sentry.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = ru;
@@ -1,8 +0,0 @@
1
- const ru = {
2
- "plugin.description.long": "Отсылает записи об ошибках Strapi в Sentry. Иными словами, ведёт журнал событий с ошибками и отправляет их в Sentry.",
3
- "plugin.description.short": "Отсылает записи об ошибках Strapi в Sentry.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- ru as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const sv = {
4
- "plugin.description.long": "Skicka felkoder från strapi som Sentry-events.",
5
- "plugin.description.short": "Skicka felkoder från strapi som Sentry-events.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = sv;
@@ -1,8 +0,0 @@
1
- const sv = {
2
- "plugin.description.long": "Skicka felkoder från strapi som Sentry-events.",
3
- "plugin.description.short": "Skicka felkoder från strapi som Sentry-events.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- sv as default
8
- };
@@ -1,8 +0,0 @@
1
- const tr = {
2
- "plugin.description.long": "Strapi hata olaylarını Sentry'e ilet.",
3
- "plugin.description.short": "Strapi hata olaylarını Sentry'e ilet.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- tr as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const tr = {
4
- "plugin.description.long": "Strapi hata olaylarını Sentry'e ilet.",
5
- "plugin.description.short": "Strapi hata olaylarını Sentry'e ilet.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = tr;
@@ -1,8 +0,0 @@
1
- const vi = {
2
- "plugin.description.long": "Gửi lỗi Strapi lên Sentry.",
3
- "plugin.description.short": "Gửi lỗi Strapi lên Sentry.",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- vi as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const vi = {
4
- "plugin.description.long": "Gửi lỗi Strapi lên Sentry.",
5
- "plugin.description.short": "Gửi lỗi Strapi lên Sentry.",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = vi;
@@ -1,8 +0,0 @@
1
- const zh = {
2
- "plugin.description.long": "將 Strapi 錯誤事件傳送至 Sentry。",
3
- "plugin.description.short": "將 Strapi 錯誤事件傳送至 Sentry。",
4
- "plugin.name": "Sentry"
5
- };
6
- export {
7
- zh as default
8
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const zh = {
4
- "plugin.description.long": "將 Strapi 錯誤事件傳送至 Sentry。",
5
- "plugin.description.short": "將 Strapi 錯誤事件傳送至 Sentry。",
6
- "plugin.name": "Sentry"
7
- };
8
- exports.default = zh;