@mirai/core 0.4.234 → 0.4.235
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.
|
@@ -17,11 +17,22 @@ const loadSentry = (dsn, release) => {
|
|
|
17
17
|
event,
|
|
18
18
|
hint
|
|
19
19
|
});
|
|
20
|
+
if (hint !== null) {
|
|
21
|
+
const {
|
|
22
|
+
originalException: {
|
|
23
|
+
message = '',
|
|
24
|
+
stack = ''
|
|
25
|
+
} = {}
|
|
26
|
+
} = hint || {};
|
|
27
|
+
if (message === "Cannot read properties of null (reading 'style')" && stack !== null && stack !== void 0 && stack.includes('HTMLLIElement.changeBackground')) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
20
31
|
return event;
|
|
21
32
|
},
|
|
22
33
|
dsn,
|
|
23
34
|
release,
|
|
24
|
-
ignoreErrors: [/^Object captured as exception with keys: code, message$/, /^null is not an object (evaluating 'document.getElementById("cartAbandonment123_send_mail_offer_button").click')$/, /^Java exception was raised during method invocation$/, /^
|
|
35
|
+
ignoreErrors: [/^Object captured as exception with keys: code, message$/, /^null is not an object (evaluating 'document.getElementById("cartAbandonment123_send_mail_offer_button").click')$/, /^Java exception was raised during method invocation$/, /^a.target.className.includes is not a function$/, /^undefined is not an object (evaluating 'window.webkit.messageHandlers')$/, /^Java bridge method invocation error$/],
|
|
25
36
|
integrations: [new Sentry.Replay({
|
|
26
37
|
networkDetailAllowUrls: /mirai/g
|
|
27
38
|
}), new Sentry.GlobalHandlers({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadSentry.js","names":["Sentry","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","loadSentry","dsn","release","init","allowUrls","beforeSend","event","hint","console","log","ignoreErrors","integrations","Replay","networkDetailAllowUrls","GlobalHandlers","onerror","onunhandledrejection","tracesSampleRate","replaysSessionSampleRate","replaysOnErrorSampleRate","exports"],"sources":["../../src/helpers/loadSentry.js"],"sourcesContent":["import * as Sentry from '@sentry/react';\n\nexport const loadSentry = (dsn, release) => {\n if (!dsn || !release) return;\n\n Sentry.init({\n allowUrls: [/https?:\\/\\/((static)\\.)?mirai\\.com/],\n beforeSend(event, hint) {\n // eslint-disable-next-line no-console\n console.log({ event, hint });\n\n return event;\n },\n dsn,\n release,\n ignoreErrors: [\n /^Object captured as exception with keys: code, message$/,\n /^null is not an object (evaluating 'document.getElementById(\"cartAbandonment123_send_mail_offer_button\").click')$/,\n /^Java exception was raised during method invocation$/,\n /^
|
|
1
|
+
{"version":3,"file":"loadSentry.js","names":["Sentry","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","loadSentry","dsn","release","init","allowUrls","beforeSend","event","hint","console","log","originalException","message","stack","includes","ignoreErrors","integrations","Replay","networkDetailAllowUrls","GlobalHandlers","onerror","onunhandledrejection","tracesSampleRate","replaysSessionSampleRate","replaysOnErrorSampleRate","exports"],"sources":["../../src/helpers/loadSentry.js"],"sourcesContent":["import * as Sentry from '@sentry/react';\n\nexport const loadSentry = (dsn, release) => {\n if (!dsn || !release) return;\n\n Sentry.init({\n allowUrls: [/https?:\\/\\/((static)\\.)?mirai\\.com/],\n beforeSend(event, hint) {\n // eslint-disable-next-line no-console\n console.log({ event, hint });\n\n if (hint !== null) {\n const { originalException: { message = '', stack = '' } = {} } = hint || {};\n if (\n message === `Cannot read properties of null (reading 'style')` &&\n stack?.includes('HTMLLIElement.changeBackground')\n ) {\n return null;\n }\n }\n return event;\n },\n dsn,\n release,\n ignoreErrors: [\n /^Object captured as exception with keys: code, message$/,\n /^null is not an object (evaluating 'document.getElementById(\"cartAbandonment123_send_mail_offer_button\").click')$/,\n /^Java exception was raised during method invocation$/,\n /^a.target.className.includes is not a function$/,\n /^undefined is not an object (evaluating 'window.webkit.messageHandlers')$/,\n /^Java bridge method invocation error$/,\n ],\n integrations: [\n new Sentry.Replay({ networkDetailAllowUrls: /mirai/g }),\n new Sentry.GlobalHandlers({ onerror: false, onunhandledrejection: false }),\n ],\n tracesSampleRate: 0.1, // Capture 100% of the transactions, reduce in production!\n replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.\n replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.\n });\n\n return Sentry;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAwC,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAA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