@strapi/plugin-sentry 5.0.0-beta.1 → 5.0.0-beta.10
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/_chunks/{dk-Ht5BJvwV.mjs → dk-D9TLFbt6.mjs} +1 -1
- package/dist/_chunks/dk-D9TLFbt6.mjs.map +1 -0
- package/dist/_chunks/{dk-ACiZv75I.js → dk-NQyAzZiU.js} +1 -1
- package/dist/_chunks/dk-NQyAzZiU.js.map +1 -0
- package/dist/_chunks/{en--hlKpBzk.mjs → en-CegwVP3M.mjs} +1 -1
- package/dist/_chunks/en-CegwVP3M.mjs.map +1 -0
- package/dist/_chunks/{en-vyox7ZSC.js → en-bbgXRWo3.js} +1 -1
- package/dist/_chunks/en-bbgXRWo3.js.map +1 -0
- package/dist/_chunks/{es-tPYrS3N2.js → es-31ok883l.js} +1 -1
- package/dist/_chunks/es-31ok883l.js.map +1 -0
- package/dist/_chunks/{es-21jfFVzQ.mjs → es-DxC1UwjP.mjs} +1 -1
- package/dist/_chunks/es-DxC1UwjP.mjs.map +1 -0
- package/dist/_chunks/{fr-2usi50FD.js → fr-6Xd8HjNA.js} +1 -1
- package/dist/_chunks/fr-6Xd8HjNA.js.map +1 -0
- package/dist/_chunks/{fr-8muIKZms.mjs → fr-BRlwHIG8.mjs} +1 -1
- package/dist/_chunks/fr-BRlwHIG8.mjs.map +1 -0
- package/dist/_chunks/{ko-NdEnkB5D.mjs → ko-C_MXyOM9.mjs} +1 -1
- package/dist/_chunks/ko-C_MXyOM9.mjs.map +1 -0
- package/dist/_chunks/{ko-nuQP7I5M.js → ko-DdXSFVkr.js} +1 -1
- package/dist/_chunks/ko-DdXSFVkr.js.map +1 -0
- package/dist/_chunks/{pl-5DTLh5PW.mjs → pl-6hJT3Sda.mjs} +1 -1
- package/dist/_chunks/pl-6hJT3Sda.mjs.map +1 -0
- package/dist/_chunks/{pl-cdsG7ySn.js → pl-KE2e7O1o.js} +1 -1
- package/dist/_chunks/pl-KE2e7O1o.js.map +1 -0
- package/dist/_chunks/{ru-KtwsGCNm.js → ru-C41W13kt.js} +1 -1
- package/dist/_chunks/ru-C41W13kt.js.map +1 -0
- package/dist/_chunks/{ru-_BJx1_V5.mjs → ru-DnVqFddA.mjs} +1 -1
- package/dist/_chunks/ru-DnVqFddA.mjs.map +1 -0
- package/dist/_chunks/{sv-QDPLOKcT.js → sv-DCUFAW2Z.js} +1 -1
- package/dist/_chunks/sv-DCUFAW2Z.js.map +1 -0
- package/dist/_chunks/{sv-YocrQXH3.mjs → sv-DjL9wmwK.mjs} +1 -1
- package/dist/_chunks/sv-DjL9wmwK.mjs.map +1 -0
- package/dist/_chunks/{tr-nkbjyt2S.mjs → tr-BKL2AN-d.mjs} +1 -1
- package/dist/_chunks/tr-BKL2AN-d.mjs.map +1 -0
- package/dist/_chunks/{tr-W6PupknE.js → tr-DgnL-Yfr.js} +1 -1
- package/dist/_chunks/tr-DgnL-Yfr.js.map +1 -0
- package/dist/_chunks/{vi-10CsgDK2.mjs → vi-DLBe31mD.mjs} +1 -1
- package/dist/_chunks/vi-DLBe31mD.mjs.map +1 -0
- package/dist/_chunks/{vi-hEp1hNio.js → vi-E2aG_wR_.js} +1 -1
- package/dist/_chunks/vi-E2aG_wR_.js.map +1 -0
- package/dist/_chunks/{zh-WWNi5hqs.mjs → zh-5kkOa7U5.mjs} +1 -1
- package/dist/_chunks/zh-5kkOa7U5.mjs.map +1 -0
- package/dist/_chunks/{zh-uRG2X3qF.js → zh-Uq7oN9Sz.js} +1 -1
- package/dist/_chunks/zh-Uq7oN9Sz.js.map +1 -0
- package/dist/admin/index.js +14 -13
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +14 -13
- package/dist/admin/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +1 -1
- package/dist/server/src/middlewares/sentry.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +1 -1
- package/dist/server/src/services/sentry.d.ts.map +1 -1
- package/package.json +14 -13
- package/dist/_chunks/dk-ACiZv75I.js.map +0 -1
- package/dist/_chunks/dk-Ht5BJvwV.mjs.map +0 -1
- package/dist/_chunks/en--hlKpBzk.mjs.map +0 -1
- package/dist/_chunks/en-vyox7ZSC.js.map +0 -1
- package/dist/_chunks/es-21jfFVzQ.mjs.map +0 -1
- package/dist/_chunks/es-tPYrS3N2.js.map +0 -1
- package/dist/_chunks/fr-2usi50FD.js.map +0 -1
- package/dist/_chunks/fr-8muIKZms.mjs.map +0 -1
- package/dist/_chunks/ko-NdEnkB5D.mjs.map +0 -1
- package/dist/_chunks/ko-nuQP7I5M.js.map +0 -1
- package/dist/_chunks/pl-5DTLh5PW.mjs.map +0 -1
- package/dist/_chunks/pl-cdsG7ySn.js.map +0 -1
- package/dist/_chunks/ru-KtwsGCNm.js.map +0 -1
- package/dist/_chunks/ru-_BJx1_V5.mjs.map +0 -1
- package/dist/_chunks/sv-QDPLOKcT.js.map +0 -1
- package/dist/_chunks/sv-YocrQXH3.mjs.map +0 -1
- package/dist/_chunks/tr-W6PupknE.js.map +0 -1
- package/dist/_chunks/tr-nkbjyt2S.mjs.map +0 -1
- package/dist/_chunks/vi-10CsgDK2.mjs.map +0 -1
- package/dist/_chunks/vi-hEp1hNio.js.map +0 -1
- package/dist/_chunks/zh-WWNi5hqs.mjs.map +0 -1
- package/dist/_chunks/zh-uRG2X3qF.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dk-D9TLFbt6.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dk-NQyAzZiU.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-CegwVP3M.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-bbgXRWo3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es-31ok883l.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es-DxC1UwjP.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr-6Xd8HjNA.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr-BRlwHIG8.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ko-C_MXyOM9.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ko-DdXSFVkr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pl-6hJT3Sda.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pl-KE2e7O1o.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ru-C41W13kt.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ru-DnVqFddA.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sv-DCUFAW2Z.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sv-DjL9wmwK.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tr-BKL2AN-d.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tr-DgnL-Yfr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vi-DLBe31mD.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vi-E2aG_wR_.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-5kkOa7U5.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-Uq7oN9Sz.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/admin/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
const name$1 = "@strapi/plugin-sentry";
|
|
12
|
-
const version = "5.0.0-beta.
|
|
12
|
+
const version = "5.0.0-beta.9";
|
|
13
13
|
const description = "Send Strapi error events to Sentry";
|
|
14
14
|
const repository = {
|
|
15
15
|
type: "git",
|
|
@@ -51,32 +51,33 @@ const files = [
|
|
|
51
51
|
"strapi-server.js"
|
|
52
52
|
];
|
|
53
53
|
const scripts = {
|
|
54
|
-
build: "strapi
|
|
54
|
+
build: "strapi-plugin build",
|
|
55
55
|
clean: "run -T rimraf dist",
|
|
56
56
|
lint: "run -T eslint .",
|
|
57
57
|
"test:unit": "run -T jest",
|
|
58
58
|
"test:unit:watch": "run -T jest --watch",
|
|
59
|
-
watch: "strapi
|
|
59
|
+
watch: "strapi-plugin watch"
|
|
60
60
|
};
|
|
61
61
|
const dependencies = {
|
|
62
|
-
"@sentry/node": "
|
|
63
|
-
"@strapi/design-system": "
|
|
64
|
-
"@strapi/icons": "
|
|
62
|
+
"@sentry/node": "7.112.2",
|
|
63
|
+
"@strapi/design-system": "2.0.0-beta.6",
|
|
64
|
+
"@strapi/icons": "2.0.0-beta.6"
|
|
65
65
|
};
|
|
66
66
|
const devDependencies = {
|
|
67
|
-
"@strapi/pack-up": "5.0.0
|
|
68
|
-
"@strapi/
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
"@strapi/pack-up": "5.0.0",
|
|
68
|
+
"@strapi/sdk-plugin": "^5.0.0",
|
|
69
|
+
"@strapi/strapi": "5.0.0-beta.9",
|
|
70
|
+
react: "18.3.1",
|
|
71
|
+
"react-dom": "18.3.1",
|
|
71
72
|
"react-router-dom": "6.22.3",
|
|
72
|
-
"styled-components": "
|
|
73
|
+
"styled-components": "6.1.8"
|
|
73
74
|
};
|
|
74
75
|
const peerDependencies = {
|
|
75
76
|
"@strapi/strapi": "^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rc",
|
|
76
77
|
react: "^17.0.0 || ^18.0.0",
|
|
77
78
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
78
79
|
"react-router-dom": "^6.0.0",
|
|
79
|
-
"styled-components": "^
|
|
80
|
+
"styled-components": "^6.0.0"
|
|
80
81
|
};
|
|
81
82
|
const engines = {
|
|
82
83
|
node: ">=18.0.0 <=20.x.x",
|
|
@@ -128,7 +129,7 @@ const index = {
|
|
|
128
129
|
async registerTrads({ locales }) {
|
|
129
130
|
const importedTrads = await Promise.all(
|
|
130
131
|
locales.map((locale) => {
|
|
131
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => Promise.resolve().then(() => require("../_chunks/dk-
|
|
132
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => Promise.resolve().then(() => require("../_chunks/dk-NQyAzZiU.js")), "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-bbgXRWo3.js")), "./translations/es.json": () => Promise.resolve().then(() => require("../_chunks/es-31ok883l.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("../_chunks/fr-6Xd8HjNA.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("../_chunks/ko-DdXSFVkr.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("../_chunks/pl-KE2e7O1o.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("../_chunks/ru-C41W13kt.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("../_chunks/sv-DCUFAW2Z.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("../_chunks/tr-DgnL-Yfr.js")), "./translations/vi.json": () => Promise.resolve().then(() => require("../_chunks/vi-E2aG_wR_.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("../_chunks/zh-Uq7oN9Sz.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
|
|
132
133
|
return {
|
|
133
134
|
data: prefixPluginTranslations(data, pluginId),
|
|
134
135
|
locale
|
package/dist/admin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'sentry';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'sentry';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"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,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,EAAA,CAAA,GAAA,kBAAA,MAAA,OAAA,EACnC,KAAK,CAAC,EAAE,SAAS,KAAA,MAAW;AACpB,iBAAA;AAAA,YACL,MAAM,yBAAyB,MAAM,QAAQ;AAAA,YAC7C;AAAA,UAAA;AAAA,QACF,CACD,EACA,MAAM,MAAM;AACJ,iBAAA;AAAA,YACL,MAAM,CAAC;AAAA,YACP;AAAA,UAAA;AAAA,QACF,CACD;AAAA,MAAA,CACJ;AAAA,IAAA;AAGI,WAAA,QAAQ,QAAQ,aAAa;AAAA,EACtC;AACF;;"}
|
package/dist/admin/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
const name$1 = "@strapi/plugin-sentry";
|
|
11
|
-
const version = "5.0.0-beta.
|
|
11
|
+
const version = "5.0.0-beta.9";
|
|
12
12
|
const description = "Send Strapi error events to Sentry";
|
|
13
13
|
const repository = {
|
|
14
14
|
type: "git",
|
|
@@ -50,32 +50,33 @@ const files = [
|
|
|
50
50
|
"strapi-server.js"
|
|
51
51
|
];
|
|
52
52
|
const scripts = {
|
|
53
|
-
build: "strapi
|
|
53
|
+
build: "strapi-plugin build",
|
|
54
54
|
clean: "run -T rimraf dist",
|
|
55
55
|
lint: "run -T eslint .",
|
|
56
56
|
"test:unit": "run -T jest",
|
|
57
57
|
"test:unit:watch": "run -T jest --watch",
|
|
58
|
-
watch: "strapi
|
|
58
|
+
watch: "strapi-plugin watch"
|
|
59
59
|
};
|
|
60
60
|
const dependencies = {
|
|
61
|
-
"@sentry/node": "
|
|
62
|
-
"@strapi/design-system": "
|
|
63
|
-
"@strapi/icons": "
|
|
61
|
+
"@sentry/node": "7.112.2",
|
|
62
|
+
"@strapi/design-system": "2.0.0-beta.6",
|
|
63
|
+
"@strapi/icons": "2.0.0-beta.6"
|
|
64
64
|
};
|
|
65
65
|
const devDependencies = {
|
|
66
|
-
"@strapi/pack-up": "5.0.0
|
|
67
|
-
"@strapi/
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
"@strapi/pack-up": "5.0.0",
|
|
67
|
+
"@strapi/sdk-plugin": "^5.0.0",
|
|
68
|
+
"@strapi/strapi": "5.0.0-beta.9",
|
|
69
|
+
react: "18.3.1",
|
|
70
|
+
"react-dom": "18.3.1",
|
|
70
71
|
"react-router-dom": "6.22.3",
|
|
71
|
-
"styled-components": "
|
|
72
|
+
"styled-components": "6.1.8"
|
|
72
73
|
};
|
|
73
74
|
const peerDependencies = {
|
|
74
75
|
"@strapi/strapi": "^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rc",
|
|
75
76
|
react: "^17.0.0 || ^18.0.0",
|
|
76
77
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
77
78
|
"react-router-dom": "^6.0.0",
|
|
78
|
-
"styled-components": "^
|
|
79
|
+
"styled-components": "^6.0.0"
|
|
79
80
|
};
|
|
80
81
|
const engines = {
|
|
81
82
|
node: ">=18.0.0 <=20.x.x",
|
|
@@ -127,7 +128,7 @@ const index = {
|
|
|
127
128
|
async registerTrads({ locales }) {
|
|
128
129
|
const importedTrads = await Promise.all(
|
|
129
130
|
locales.map((locale) => {
|
|
130
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => import("../_chunks/dk-
|
|
131
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => import("../_chunks/dk-D9TLFbt6.mjs"), "./translations/en.json": () => import("../_chunks/en-CegwVP3M.mjs"), "./translations/es.json": () => import("../_chunks/es-DxC1UwjP.mjs"), "./translations/fr.json": () => import("../_chunks/fr-BRlwHIG8.mjs"), "./translations/ko.json": () => import("../_chunks/ko-C_MXyOM9.mjs"), "./translations/pl.json": () => import("../_chunks/pl-6hJT3Sda.mjs"), "./translations/ru.json": () => import("../_chunks/ru-DnVqFddA.mjs"), "./translations/sv.json": () => import("../_chunks/sv-DjL9wmwK.mjs"), "./translations/tr.json": () => import("../_chunks/tr-BKL2AN-d.mjs"), "./translations/vi.json": () => import("../_chunks/vi-DLBe31mD.mjs"), "./translations/zh.json": () => import("../_chunks/zh-5kkOa7U5.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
|
|
131
132
|
return {
|
|
132
133
|
data: prefixPluginTranslations(data, pluginId),
|
|
133
134
|
locale
|
package/dist/admin/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'sentry';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'sentry';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,WAAW;ACExB,MAAM,2BAA2B,CAAC,MAAmBA,cAAkC;AACrF,MAAI,CAACA,WAAU;AACP,UAAA,IAAI,UAAU,yBAAyB;AAAA,EAC/C;AACA,SAAO,OAAO,KAAK,IAAI,EAAE,OAAO,CAAC,KAAK,YAAY;AAChD,QAAI,GAAGA,SAAQ,IAAI,OAAO,EAAE,IAAI,KAAK,OAAO;AACrC,WAAA;AAAA,EACT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file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;qCAGT;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;AAAzD,wBAGE"}
|
|
@@ -16,7 +16,7 @@ declare const _default: () => {
|
|
|
16
16
|
}) => {
|
|
17
17
|
init(): any;
|
|
18
18
|
getInstance(): typeof import("@sentry/node") | null;
|
|
19
|
-
sendError(error: Error, configureScope?: ((scope: import("@sentry/
|
|
19
|
+
sendError(error: Error, configureScope?: ((scope: import("@sentry/core").Scope) => void) | undefined): void;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.d.ts","sourceRoot":"","sources":["../../../../server/src/middlewares/sentry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAI3C;;GAEG
|
|
1
|
+
{"version":3,"file":"sentry.d.ts","sourceRoot":"","sources":["../../../../server/src/middlewares/sentry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAI3C;;GAEG;qCACyB;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;AAAnD,wBAqCE"}
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
}) => {
|
|
5
5
|
init(): any;
|
|
6
6
|
getInstance(): typeof import("@sentry/node") | null;
|
|
7
|
-
sendError(error: Error, configureScope?: ((scope: import("@sentry/
|
|
7
|
+
sendError(error: Error, configureScope?: ((scope: import("@sentry/core").Scope) => void) | undefined): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.d.ts","sourceRoot":"","sources":["../../../../server/src/services/sentry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"sentry.d.ts","sourceRoot":"","sources":["../../../../server/src/services/sentry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;qCAwEX;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;IA9D/C;;OAEG;;IA8BH;;OAEG;;IAKH;;OAEG;;;AAqBP,wBAAoF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-sentry",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.10",
|
|
4
4
|
"description": "Send Strapi error events to Sentry",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,32 +42,33 @@
|
|
|
42
42
|
"strapi-server.js"
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
45
|
-
"build": "strapi
|
|
45
|
+
"build": "strapi-plugin build",
|
|
46
46
|
"clean": "run -T rimraf dist",
|
|
47
47
|
"lint": "run -T eslint .",
|
|
48
48
|
"test:unit": "run -T jest",
|
|
49
49
|
"test:unit:watch": "run -T jest --watch",
|
|
50
|
-
"watch": "strapi
|
|
50
|
+
"watch": "strapi-plugin watch"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@sentry/node": "
|
|
54
|
-
"@strapi/design-system": "
|
|
55
|
-
"@strapi/icons": "
|
|
53
|
+
"@sentry/node": "7.112.2",
|
|
54
|
+
"@strapi/design-system": "2.0.0-beta.6",
|
|
55
|
+
"@strapi/icons": "2.0.0-beta.6"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@strapi/pack-up": "5.0.0
|
|
59
|
-
"@strapi/
|
|
60
|
-
"
|
|
61
|
-
"react
|
|
58
|
+
"@strapi/pack-up": "5.0.0",
|
|
59
|
+
"@strapi/sdk-plugin": "^5.0.0",
|
|
60
|
+
"@strapi/strapi": "5.0.0-beta.10",
|
|
61
|
+
"react": "18.3.1",
|
|
62
|
+
"react-dom": "18.3.1",
|
|
62
63
|
"react-router-dom": "6.22.3",
|
|
63
|
-
"styled-components": "
|
|
64
|
+
"styled-components": "6.1.8"
|
|
64
65
|
},
|
|
65
66
|
"peerDependencies": {
|
|
66
67
|
"@strapi/strapi": "^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rc",
|
|
67
68
|
"react": "^17.0.0 || ^18.0.0",
|
|
68
69
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
69
70
|
"react-router-dom": "^6.0.0",
|
|
70
|
-
"styled-components": "^
|
|
71
|
+
"styled-components": "^6.0.0"
|
|
71
72
|
},
|
|
72
73
|
"engines": {
|
|
73
74
|
"node": ">=18.0.0 <=20.x.x",
|
|
@@ -79,5 +80,5 @@
|
|
|
79
80
|
"description": "Send Strapi error events to Sentry.",
|
|
80
81
|
"kind": "plugin"
|
|
81
82
|
},
|
|
82
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "d4542f0dccfa2eecb55026dbd795042e7d0004ba"
|
|
83
84
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dk-ACiZv75I.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dk-Ht5BJvwV.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en--hlKpBzk.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-vyox7ZSC.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"es-21jfFVzQ.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"es-tPYrS3N2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fr-2usi50FD.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fr-8muIKZms.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ko-NdEnkB5D.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ko-nuQP7I5M.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pl-5DTLh5PW.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pl-cdsG7ySn.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-KtwsGCNm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ru-_BJx1_V5.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sv-QDPLOKcT.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sv-YocrQXH3.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tr-W6PupknE.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tr-nkbjyt2S.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vi-10CsgDK2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vi-hEp1hNio.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh-WWNi5hqs.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh-uRG2X3qF.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|