@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.
- package/dist/admin/chunks/dk-2c1X5YD1.mjs +8 -0
- package/dist/admin/chunks/dk-2c1X5YD1.mjs.map +1 -0
- package/dist/admin/chunks/dk-C64Vk1_X.js +10 -0
- package/dist/admin/chunks/dk-C64Vk1_X.js.map +1 -0
- package/dist/admin/chunks/en-CzMdlTs0.js +10 -0
- package/dist/admin/chunks/en-CzMdlTs0.js.map +1 -0
- package/dist/admin/chunks/en-DDCHBy0-.mjs +8 -0
- package/dist/admin/chunks/en-DDCHBy0-.mjs.map +1 -0
- package/dist/admin/chunks/es-BnizV7-a.mjs +8 -0
- package/dist/admin/chunks/es-BnizV7-a.mjs.map +1 -0
- package/dist/admin/chunks/es-l4HaM-C0.js +10 -0
- package/dist/admin/chunks/es-l4HaM-C0.js.map +1 -0
- package/dist/admin/chunks/fr-BsXNdB-N.mjs +8 -0
- package/dist/admin/chunks/fr-BsXNdB-N.mjs.map +1 -0
- package/dist/admin/chunks/fr-rJIDC4Jx.js +10 -0
- package/dist/admin/chunks/fr-rJIDC4Jx.js.map +1 -0
- package/dist/admin/chunks/ko-BrDfWiIr.mjs +8 -0
- package/dist/admin/chunks/ko-BrDfWiIr.mjs.map +1 -0
- package/dist/admin/chunks/ko-CoJrUsj1.js +10 -0
- package/dist/admin/chunks/ko-CoJrUsj1.js.map +1 -0
- package/dist/admin/chunks/pl-6JvJwTZm.mjs +8 -0
- package/dist/admin/chunks/pl-6JvJwTZm.mjs.map +1 -0
- package/dist/admin/chunks/pl-DbPKh3_6.js +10 -0
- package/dist/admin/chunks/pl-DbPKh3_6.js.map +1 -0
- package/dist/admin/chunks/ru-B4OA2fUb.mjs +8 -0
- package/dist/admin/chunks/ru-B4OA2fUb.mjs.map +1 -0
- package/dist/admin/chunks/ru-CgCHTIu5.js +10 -0
- package/dist/admin/chunks/ru-CgCHTIu5.js.map +1 -0
- package/dist/admin/chunks/sv-DrckibdJ.js +10 -0
- package/dist/admin/chunks/sv-DrckibdJ.js.map +1 -0
- package/dist/admin/chunks/sv-OPAT8f7H.mjs +8 -0
- package/dist/admin/chunks/sv-OPAT8f7H.mjs.map +1 -0
- package/dist/admin/chunks/tr-C8CxtgGx.mjs +8 -0
- package/dist/admin/chunks/tr-C8CxtgGx.mjs.map +1 -0
- package/dist/admin/chunks/tr-DMgP5sU_.js +10 -0
- package/dist/admin/chunks/tr-DMgP5sU_.js.map +1 -0
- package/dist/admin/chunks/vi-CpPssghl.js +10 -0
- package/dist/admin/chunks/vi-CpPssghl.js.map +1 -0
- package/dist/admin/chunks/vi-D0rPKKIu.mjs +8 -0
- package/dist/admin/chunks/vi-D0rPKKIu.mjs.map +1 -0
- package/dist/admin/chunks/zh-MmnOh-xz.mjs +8 -0
- package/dist/admin/chunks/zh-MmnOh-xz.mjs.map +1 -0
- package/dist/admin/chunks/zh-TX10GrSY.js +10 -0
- package/dist/admin/chunks/zh-TX10GrSY.js.map +1 -0
- package/dist/admin/index.js +142 -133
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +141 -135
- package/dist/admin/index.mjs.map +1 -0
- package/dist/server/index.js +126 -104
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +115 -97
- package/dist/server/index.mjs.map +1 -0
- package/package.json +11 -10
- package/dist/_chunks/dk-D9TLFbt6.mjs +0 -8
- package/dist/_chunks/dk-NQyAzZiU.js +0 -8
- package/dist/_chunks/en-CegwVP3M.mjs +0 -8
- package/dist/_chunks/en-bbgXRWo3.js +0 -8
- package/dist/_chunks/es-31ok883l.js +0 -8
- package/dist/_chunks/es-DxC1UwjP.mjs +0 -8
- package/dist/_chunks/fr-6Xd8HjNA.js +0 -8
- package/dist/_chunks/fr-BRlwHIG8.mjs +0 -8
- package/dist/_chunks/ko-C_MXyOM9.mjs +0 -8
- package/dist/_chunks/ko-DdXSFVkr.js +0 -8
- package/dist/_chunks/pl-6hJT3Sda.mjs +0 -8
- package/dist/_chunks/pl-KE2e7O1o.js +0 -8
- package/dist/_chunks/ru-C41W13kt.js +0 -8
- package/dist/_chunks/ru-DnVqFddA.mjs +0 -8
- package/dist/_chunks/sv-DCUFAW2Z.js +0 -8
- package/dist/_chunks/sv-DjL9wmwK.mjs +0 -8
- package/dist/_chunks/tr-BKL2AN-d.mjs +0 -8
- package/dist/_chunks/tr-DgnL-Yfr.js +0 -8
- package/dist/_chunks/vi-DLBe31mD.mjs +0 -8
- package/dist/_chunks/vi-E2aG_wR_.js +0 -8
- package/dist/_chunks/zh-5kkOa7U5.mjs +0 -8
- package/dist/_chunks/zh-Uq7oN9Sz.js +0 -8
package/dist/server/index.mjs
CHANGED
|
@@ -1,105 +1,123 @@
|
|
|
1
|
-
import * as Sentry from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
/**
|
|
79
|
+
*/ getInstance () {
|
|
80
|
+
return instance;
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
69
83
|
* Higher level method to send exception events to Sentry
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
};
|
|
99
|
+
};
|
|
84
100
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
101
|
+
var sentry = (({ strapi })=>createSentryService(strapi));
|
|
102
|
+
|
|
103
|
+
var services = {
|
|
104
|
+
sentry
|
|
88
105
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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":";;AAIA;;AAEC,IACD,2BAAe,CAAA,CAAC,EAAEA,MAAM,EAA2B,GAAA;AACjD,IAAA,MAAMC,gBAAwDD,MAC3DE,CAAAA,MAAM,CAAC,QAAA,CAAA,CACPC,OAAO,CAAC,QAAA,CAAA;AACXF,IAAAA,aAAAA,CAAcG,IAAI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e,gBAAAA,QAAAA,EAAUU,gBAAiB5B,CAAAA,KAAAA,CAAAA;AAC7B,aAAA,CAAA;AACF;AACF,KAAA;AACF,CAAA;AAEA,aAAe,CAAA,CAAC,EAAEX,MAAM,EAA2B,GAAK2B,mBAAAA,CAAoB3B,OAAM;;ACxElF,eAAe;AACbK,IAAAA;AACF,CAAE;;ACIF,aAAe;IACbmC,OAAS,EAAA;QACPT,GAAK,EAAA,IAAA;QACLO,YAAc,EAAA,IAAA;AACdlC,QAAAA,IAAAA,EAAM;AACR,KAAA;IACAqC,SAAa,CAAA,GAAA;AACf,CAAE;;ACXF,YAAe,CAAA,KAAO;AACpBC,QAAAA,SAAAA;AACAlB,QAAAA,MAAAA;AACAmB,QAAAA;AACF,KAAA,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-sentry",
|
|
3
|
-
"version": "5.
|
|
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": "
|
|
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": "
|
|
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.
|
|
55
|
-
"@strapi/icons": "2.0.0-rc.
|
|
57
|
+
"@strapi/design-system": "2.0.0-rc.16",
|
|
58
|
+
"@strapi/icons": "2.0.0-rc.16"
|
|
56
59
|
},
|
|
57
60
|
"devDependencies": {
|
|
58
|
-
"@strapi/
|
|
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
|
-
"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
|
-
"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
|
-
"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
|
-
"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
|
-
"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
|
-
"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
|
-
"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
|
-
"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;
|