@mirai/core 0.4.47 → 0.4.48

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7b50913c-7fa3-5346-855a-c5b9a95fa1b5")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8871d638-dacf-5e17-8c61-55ebf5ac2caf")}catch(e){}}();
3
3
 
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
@@ -13,7 +13,14 @@ const loadSentry = (dsn, release) => {
13
13
  if (!dsn || !release) return;
14
14
  Sentry.init({
15
15
  allowUrls: [/https?:\/\/((static)\.)?mirai\.com/],
16
- denyUrls: [/elementor/g, /mirai-loader/g, /mirai-room-selection/g, /mirai-club-login/g],
16
+ beforeSend: (event, hint) => {
17
+ console.log({
18
+ event,
19
+ hint
20
+ });
21
+ return event;
22
+ },
23
+ denyUrls: [/elementor/g, /mirai-loader/g, /mirai-room-selection/g, /mirai-club-login/g, /amplify/g, /pushtech/g],
17
24
  dsn,
18
25
  ignoreErrors: ['Non-Error exception captured', 'Non-Error promise rejection captured', 'Event `Event` (type=error) captured as promise rejection'],
19
26
  release,
@@ -28,4 +35,4 @@ const loadSentry = (dsn, release) => {
28
35
  };
29
36
  exports.loadSentry = loadSentry;
30
37
  //# sourceMappingURL=loadSentry.js.map
31
- //# debugId=7b50913c-7fa3-5346-855a-c5b9a95fa1b5
38
+ //# debugId=8871d638-dacf-5e17-8c61-55ebf5ac2caf
@@ -1 +1 @@
1
- {"version":3,"file":"loadSentry.js","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 denyUrls: [/elementor/g, /mirai-loader/g, /mirai-room-selection/g, /mirai-club-login/g],\n dsn,\n ignoreErrors: [\n 'Non-Error exception captured',\n 'Non-Error promise rejection captured',\n 'Event `Event` (type=error) captured as promise rejection',\n ],\n release,\n integrations: [new Sentry.Replay()],\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"],"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","denyUrls","ignoreErrors","integrations","Replay","tracesSampleRate","replaysSessionSampleRate","replaysOnErrorSampleRate","exports"],"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,IA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;EAEF,OAAOnC,MAAM;AACf,CAAC;AAACoC,OAAA,CAAAZ,UAAA,GAAAA,UAAA","debug_id":"7b50913c-7fa3-5346-855a-c5b9a95fa1b5"}
1
+ {"version":3,"file":"loadSentry.js","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 console.log({ event, hint });\n return event;\n },\n denyUrls: [/elementor/g, /mirai-loader/g, /mirai-room-selection/g, /mirai-club-login/g, /amplify/g, /pushtech/g],\n dsn,\n ignoreErrors: [\n 'Non-Error exception captured',\n 'Non-Error promise rejection captured',\n 'Event `Event` (type=error) captured as promise rejection',\n ],\n release,\n integrations: [new Sentry.Replay()],\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"],"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","denyUrls","ignoreErrors","integrations","Replay","tracesSampleRate","replaysSessionSampleRate","replaysOnErrorSampleRate","exports"],"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,KAAA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MAC5B,OAAOD,KAAK;IACd,CAAC;IACDI,QAAQ,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,CAAC;IAChHT,GAAG;IACHU,YAAY,EAAE,CACZ,8BAA8B,EAC9B,sCAAsC,EACtC,0DAA0D,CAC3D;IACDT,OAAO;IACPU,YAAY,EAAE,CAAC,IAAIpC,MAAM,CAACqC,MAAM,CAAC,CAAC,CAAC;IACnCC,gBAAgB,EAAE,GAAG;IAAE;IACvBC,wBAAwB,EAAE,GAAG;IAAE;IAC/BC,wBAAwB,EAAE,GAAG,CAAE;EACjC,CAAC,CAAC;EAEF,OAAOxC,MAAM;AACf,CAAC;AAACyC,OAAA,CAAAjB,UAAA,GAAAA,UAAA","debug_id":"8871d638-dacf-5e17-8c61-55ebf5ac2caf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/core",
3
- "version": "0.4.47",
3
+ "version": "0.4.48",
4
4
  "source": "src/index.js",
5
5
  "repository": "https://gitlab.com/miraicorp/dev/frontend/core",
6
6
  "author": "JΛVI <hello@soyjavi.com>",