sentry-uniapp 1.0.12 → 2.8.1
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/README.md +11 -9
- package/dist/client.d.ts +42 -40
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +62 -41
- package/dist/client.js.map +1 -1
- package/dist/crossPlatform.d.ts +1 -1
- package/dist/crossPlatform.d.ts.map +1 -1
- package/dist/crossPlatform.js +26 -10
- package/dist/crossPlatform.js.map +1 -1
- package/dist/debug.d.ts +4 -0
- package/dist/debug.d.ts.map +1 -0
- package/dist/debug.js +23 -0
- package/dist/debug.js.map +1 -0
- package/dist/eventbuilder.d.ts +9 -10
- package/dist/eventbuilder.d.ts.map +1 -1
- package/dist/eventbuilder.js +131 -58
- package/dist/eventbuilder.js.map +1 -1
- package/dist/flags.js +1 -0
- package/dist/flags.js.map +1 -1
- package/dist/index.d.ts +10 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +84 -21
- package/dist/index.js.map +1 -1
- package/dist/integrations/globalhandlers.d.ts +10 -44
- package/dist/integrations/globalhandlers.d.ts.map +1 -1
- package/dist/integrations/globalhandlers.js +101 -134
- package/dist/integrations/globalhandlers.js.map +1 -1
- package/dist/integrations/ignoreMpcrawlerErrors.d.ts +3 -18
- package/dist/integrations/ignoreMpcrawlerErrors.d.ts.map +1 -1
- package/dist/integrations/ignoreMpcrawlerErrors.js +28 -28
- package/dist/integrations/ignoreMpcrawlerErrors.js.map +1 -1
- package/dist/integrations/index.d.ts +4 -6
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +12 -10
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/router.d.ts +6 -24
- package/dist/integrations/router.d.ts.map +1 -1
- package/dist/integrations/router.js +39 -42
- package/dist/integrations/router.js.map +1 -1
- package/dist/integrations/system.d.ts +5 -16
- package/dist/integrations/system.d.ts.map +1 -1
- package/dist/integrations/system.js +62 -60
- package/dist/integrations/system.js.map +1 -1
- package/dist/parsers.d.ts +2 -2
- package/dist/parsers.d.ts.map +1 -1
- package/dist/parsers.js +27 -26
- package/dist/parsers.js.map +1 -1
- package/dist/polyfills.d.ts +5 -0
- package/dist/polyfills.d.ts.map +1 -0
- package/dist/polyfills.js +100 -0
- package/dist/polyfills.js.map +1 -0
- package/dist/sdk.d.ts +10 -85
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +69 -127
- package/dist/sdk.js.map +1 -1
- package/dist/tracekit.js +35 -33
- package/dist/tracekit.js.map +1 -1
- package/dist/transport.d.ts +7 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +75 -0
- package/dist/transport.js.map +1 -0
- package/dist/transports/index.d.ts +1 -2
- package/dist/transports/index.d.ts.map +1 -1
- package/dist/transports/index.js +4 -4
- package/dist/transports/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/dist/version.js.map +1 -1
- package/esm/client.d.ts +42 -40
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +59 -40
- package/esm/client.js.map +1 -1
- package/esm/crossPlatform.d.ts +1 -1
- package/esm/crossPlatform.d.ts.map +1 -1
- package/esm/crossPlatform.js +25 -10
- package/esm/crossPlatform.js.map +1 -1
- package/esm/debug.d.ts +4 -0
- package/esm/debug.d.ts.map +1 -0
- package/esm/debug.js +18 -0
- package/esm/debug.js.map +1 -0
- package/esm/eventbuilder.d.ts +9 -10
- package/esm/eventbuilder.d.ts.map +1 -1
- package/esm/eventbuilder.js +125 -52
- package/esm/eventbuilder.js.map +1 -1
- package/esm/flags.js +1 -1
- package/esm/flags.js.map +1 -1
- package/esm/index.d.ts +10 -9
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +13 -8
- package/esm/index.js.map +1 -1
- package/esm/integrations/globalhandlers.d.ts +10 -44
- package/esm/integrations/globalhandlers.d.ts.map +1 -1
- package/esm/integrations/globalhandlers.js +99 -133
- package/esm/integrations/globalhandlers.js.map +1 -1
- package/esm/integrations/ignoreMpcrawlerErrors.d.ts +3 -18
- package/esm/integrations/ignoreMpcrawlerErrors.d.ts.map +1 -1
- package/esm/integrations/ignoreMpcrawlerErrors.js +25 -26
- package/esm/integrations/ignoreMpcrawlerErrors.js.map +1 -1
- package/esm/integrations/index.d.ts +4 -6
- package/esm/integrations/index.d.ts.map +1 -1
- package/esm/integrations/index.js +5 -6
- package/esm/integrations/index.js.map +1 -1
- package/esm/integrations/router.d.ts +6 -24
- package/esm/integrations/router.d.ts.map +1 -1
- package/esm/integrations/router.js +37 -41
- package/esm/integrations/router.js.map +1 -1
- package/esm/integrations/system.d.ts +5 -16
- package/esm/integrations/system.d.ts.map +1 -1
- package/esm/integrations/system.js +60 -59
- package/esm/integrations/system.js.map +1 -1
- package/esm/parsers.d.ts +2 -2
- package/esm/parsers.d.ts.map +1 -1
- package/esm/parsers.js +20 -19
- package/esm/parsers.js.map +1 -1
- package/esm/polyfills.d.ts +5 -0
- package/esm/polyfills.d.ts.map +1 -0
- package/esm/polyfills.js +100 -0
- package/esm/polyfills.js.map +1 -0
- package/esm/sdk.d.ts +10 -85
- package/esm/sdk.d.ts.map +1 -1
- package/esm/sdk.js +63 -120
- package/esm/sdk.js.map +1 -1
- package/esm/tracekit.js +33 -31
- package/esm/tracekit.js.map +1 -1
- package/esm/transport.d.ts +7 -0
- package/esm/transport.d.ts.map +1 -0
- package/esm/transport.js +71 -0
- package/esm/transport.js.map +1 -0
- package/esm/transports/index.d.ts +1 -2
- package/esm/transports/index.d.ts.map +1 -1
- package/esm/transports/index.js +1 -2
- package/esm/transports/index.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.d.ts.map +1 -1
- package/esm/version.js +2 -3
- package/esm/version.js.map +1 -1
- package/package.json +23 -27
- package/dist/backend.d.ts +0 -41
- package/dist/backend.d.ts.map +0 -1
- package/dist/backend.js +0 -68
- package/dist/backend.js.map +0 -1
- package/dist/helpers.d.ts +0 -35
- package/dist/helpers.d.ts.map +0 -1
- package/dist/helpers.js +0 -236
- package/dist/helpers.js.map +0 -1
- package/dist/integrations/linkederrors.d.ts +0 -40
- package/dist/integrations/linkederrors.d.ts.map +0 -1
- package/dist/integrations/linkederrors.js +0 -65
- package/dist/integrations/linkederrors.js.map +0 -1
- package/dist/integrations/trycatch.d.ts +0 -26
- package/dist/integrations/trycatch.d.ts.map +0 -1
- package/dist/integrations/trycatch.js +0 -166
- package/dist/integrations/trycatch.js.map +0 -1
- package/dist/package.json +0 -52
- package/dist/sentry-uniapp.min.js +0 -3
- package/dist/sentry-uniapp.min.js.LICENSE.txt +0 -14
- package/dist/sentry-uniapp.min.js.map +0 -1
- package/dist/src/backend.d.ts +0 -41
- package/dist/src/backend.d.ts.map +0 -1
- package/dist/src/backend.js +0 -68
- package/dist/src/backend.js.map +0 -1
- package/dist/src/client.d.ts +0 -55
- package/dist/src/client.d.ts.map +0 -1
- package/dist/src/client.js +0 -51
- package/dist/src/client.js.map +0 -1
- package/dist/src/crossPlatform.d.ts +0 -18
- package/dist/src/crossPlatform.d.ts.map +0 -1
- package/dist/src/crossPlatform.js +0 -80
- package/dist/src/crossPlatform.js.map +0 -1
- package/dist/src/eventbuilder.d.ts +0 -11
- package/dist/src/eventbuilder.d.ts.map +0 -1
- package/dist/src/eventbuilder.js +0 -79
- package/dist/src/eventbuilder.js.map +0 -1
- package/dist/src/flags.d.ts +0 -3
- package/dist/src/flags.d.ts.map +0 -1
- package/dist/src/flags.js +0 -18
- package/dist/src/flags.js.map +0 -1
- package/dist/src/helpers.d.ts +0 -35
- package/dist/src/helpers.d.ts.map +0 -1
- package/dist/src/helpers.js +0 -236
- package/dist/src/helpers.js.map +0 -1
- package/dist/src/index.d.ts +0 -10
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -40
- package/dist/src/index.js.map +0 -1
- package/dist/src/integrations/globalhandlers.d.ts +0 -47
- package/dist/src/integrations/globalhandlers.d.ts.map +0 -1
- package/dist/src/integrations/globalhandlers.js +0 -153
- package/dist/src/integrations/globalhandlers.js.map +0 -1
- package/dist/src/integrations/ignoreMpcrawlerErrors.d.ts +0 -21
- package/dist/src/integrations/ignoreMpcrawlerErrors.d.ts.map +0 -1
- package/dist/src/integrations/ignoreMpcrawlerErrors.js +0 -40
- package/dist/src/integrations/ignoreMpcrawlerErrors.js.map +0 -1
- package/dist/src/integrations/index.d.ts +0 -7
- package/dist/src/integrations/index.d.ts.map +0 -1
- package/dist/src/integrations/index.js +0 -14
- package/dist/src/integrations/index.js.map +0 -1
- package/dist/src/integrations/linkederrors.d.ts +0 -40
- package/dist/src/integrations/linkederrors.d.ts.map +0 -1
- package/dist/src/integrations/linkederrors.js +0 -65
- package/dist/src/integrations/linkederrors.js.map +0 -1
- package/dist/src/integrations/router.d.ts +0 -28
- package/dist/src/integrations/router.d.ts.map +0 -1
- package/dist/src/integrations/router.js +0 -47
- package/dist/src/integrations/router.js.map +0 -1
- package/dist/src/integrations/system.d.ts +0 -17
- package/dist/src/integrations/system.d.ts.map +0 -1
- package/dist/src/integrations/system.js +0 -65
- package/dist/src/integrations/system.js.map +0 -1
- package/dist/src/integrations/trycatch.d.ts +0 -26
- package/dist/src/integrations/trycatch.d.ts.map +0 -1
- package/dist/src/integrations/trycatch.js +0 -166
- package/dist/src/integrations/trycatch.js.map +0 -1
- package/dist/src/parsers.d.ts +0 -21
- package/dist/src/parsers.d.ts.map +0 -1
- package/dist/src/parsers.js +0 -97
- package/dist/src/parsers.js.map +0 -1
- package/dist/src/sdk.d.ts +0 -99
- package/dist/src/sdk.d.ts.map +0 -1
- package/dist/src/sdk.js +0 -155
- package/dist/src/sdk.js.map +0 -1
- package/dist/src/tracekit.d.ts +0 -38
- package/dist/src/tracekit.d.ts.map +0 -1
- package/dist/src/tracekit.js +0 -222
- package/dist/src/tracekit.js.map +0 -1
- package/dist/src/transports/base.d.ts +0 -22
- package/dist/src/transports/base.d.ts.map +0 -1
- package/dist/src/transports/base.js +0 -28
- package/dist/src/transports/base.js.map +0 -1
- package/dist/src/transports/index.d.ts +0 -3
- package/dist/src/transports/index.d.ts.map +0 -1
- package/dist/src/transports/index.js +0 -6
- package/dist/src/transports/index.js.map +0 -1
- package/dist/src/transports/xhr.d.ts +0 -10
- package/dist/src/transports/xhr.d.ts.map +0 -1
- package/dist/src/transports/xhr.js +0 -42
- package/dist/src/transports/xhr.js.map +0 -1
- package/dist/src/version.d.ts +0 -3
- package/dist/src/version.d.ts.map +0 -1
- package/dist/src/version.js +0 -6
- package/dist/src/version.js.map +0 -1
- package/dist/transports/base.d.ts +0 -22
- package/dist/transports/base.d.ts.map +0 -1
- package/dist/transports/base.js +0 -28
- package/dist/transports/base.js.map +0 -1
- package/dist/transports/xhr.d.ts +0 -10
- package/dist/transports/xhr.d.ts.map +0 -1
- package/dist/transports/xhr.js +0 -42
- package/dist/transports/xhr.js.map +0 -1
- package/dist/utils/debug-build.d.ts +0 -7
- package/dist/utils/debug-build.d.ts.map +0 -1
- package/dist/utils/debug-build.js +0 -9
- package/dist/utils/debug-build.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -16
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -50
- package/dist/utils/logger.js.map +0 -1
- package/esm/backend.d.ts +0 -41
- package/esm/backend.d.ts.map +0 -1
- package/esm/backend.js +0 -66
- package/esm/backend.js.map +0 -1
- package/esm/helpers.d.ts +0 -35
- package/esm/helpers.d.ts.map +0 -1
- package/esm/helpers.js +0 -229
- package/esm/helpers.js.map +0 -1
- package/esm/integrations/linkederrors.d.ts +0 -40
- package/esm/integrations/linkederrors.d.ts.map +0 -1
- package/esm/integrations/linkederrors.js +0 -63
- package/esm/integrations/linkederrors.js.map +0 -1
- package/esm/integrations/trycatch.d.ts +0 -26
- package/esm/integrations/trycatch.d.ts.map +0 -1
- package/esm/integrations/trycatch.js +0 -164
- package/esm/integrations/trycatch.js.map +0 -1
- package/esm/package.json +0 -52
- package/esm/src/backend.d.ts +0 -41
- package/esm/src/backend.d.ts.map +0 -1
- package/esm/src/backend.js +0 -66
- package/esm/src/backend.js.map +0 -1
- package/esm/src/client.d.ts +0 -55
- package/esm/src/client.d.ts.map +0 -1
- package/esm/src/client.js +0 -49
- package/esm/src/client.js.map +0 -1
- package/esm/src/crossPlatform.d.ts +0 -18
- package/esm/src/crossPlatform.d.ts.map +0 -1
- package/esm/src/crossPlatform.js +0 -77
- package/esm/src/crossPlatform.js.map +0 -1
- package/esm/src/eventbuilder.d.ts +0 -11
- package/esm/src/eventbuilder.d.ts.map +0 -1
- package/esm/src/eventbuilder.js +0 -75
- package/esm/src/eventbuilder.js.map +0 -1
- package/esm/src/flags.d.ts +0 -3
- package/esm/src/flags.d.ts.map +0 -1
- package/esm/src/flags.js +0 -16
- package/esm/src/flags.js.map +0 -1
- package/esm/src/helpers.d.ts +0 -35
- package/esm/src/helpers.d.ts.map +0 -1
- package/esm/src/helpers.js +0 -229
- package/esm/src/helpers.js.map +0 -1
- package/esm/src/index.d.ts +0 -10
- package/esm/src/index.d.ts.map +0 -1
- package/esm/src/index.js +0 -9
- package/esm/src/index.js.map +0 -1
- package/esm/src/integrations/globalhandlers.d.ts +0 -47
- package/esm/src/integrations/globalhandlers.d.ts.map +0 -1
- package/esm/src/integrations/globalhandlers.js +0 -151
- package/esm/src/integrations/globalhandlers.js.map +0 -1
- package/esm/src/integrations/ignoreMpcrawlerErrors.d.ts +0 -21
- package/esm/src/integrations/ignoreMpcrawlerErrors.d.ts.map +0 -1
- package/esm/src/integrations/ignoreMpcrawlerErrors.js +0 -38
- package/esm/src/integrations/ignoreMpcrawlerErrors.js.map +0 -1
- package/esm/src/integrations/index.d.ts +0 -7
- package/esm/src/integrations/index.d.ts.map +0 -1
- package/esm/src/integrations/index.js +0 -7
- package/esm/src/integrations/index.js.map +0 -1
- package/esm/src/integrations/linkederrors.d.ts +0 -40
- package/esm/src/integrations/linkederrors.d.ts.map +0 -1
- package/esm/src/integrations/linkederrors.js +0 -63
- package/esm/src/integrations/linkederrors.js.map +0 -1
- package/esm/src/integrations/router.d.ts +0 -28
- package/esm/src/integrations/router.d.ts.map +0 -1
- package/esm/src/integrations/router.js +0 -45
- package/esm/src/integrations/router.js.map +0 -1
- package/esm/src/integrations/system.d.ts +0 -17
- package/esm/src/integrations/system.d.ts.map +0 -1
- package/esm/src/integrations/system.js +0 -63
- package/esm/src/integrations/system.js.map +0 -1
- package/esm/src/integrations/trycatch.d.ts +0 -26
- package/esm/src/integrations/trycatch.d.ts.map +0 -1
- package/esm/src/integrations/trycatch.js +0 -164
- package/esm/src/integrations/trycatch.js.map +0 -1
- package/esm/src/parsers.d.ts +0 -21
- package/esm/src/parsers.d.ts.map +0 -1
- package/esm/src/parsers.js +0 -91
- package/esm/src/parsers.js.map +0 -1
- package/esm/src/sdk.d.ts +0 -99
- package/esm/src/sdk.d.ts.map +0 -1
- package/esm/src/sdk.js +0 -147
- package/esm/src/sdk.js.map +0 -1
- package/esm/src/tracekit.d.ts +0 -38
- package/esm/src/tracekit.d.ts.map +0 -1
- package/esm/src/tracekit.js +0 -219
- package/esm/src/tracekit.js.map +0 -1
- package/esm/src/transports/base.d.ts +0 -22
- package/esm/src/transports/base.d.ts.map +0 -1
- package/esm/src/transports/base.js +0 -26
- package/esm/src/transports/base.js.map +0 -1
- package/esm/src/transports/index.d.ts +0 -3
- package/esm/src/transports/index.d.ts.map +0 -1
- package/esm/src/transports/index.js +0 -3
- package/esm/src/transports/index.js.map +0 -1
- package/esm/src/transports/xhr.d.ts +0 -10
- package/esm/src/transports/xhr.d.ts.map +0 -1
- package/esm/src/transports/xhr.js +0 -40
- package/esm/src/transports/xhr.js.map +0 -1
- package/esm/src/version.d.ts +0 -3
- package/esm/src/version.d.ts.map +0 -1
- package/esm/src/version.js +0 -4
- package/esm/src/version.js.map +0 -1
- package/esm/transports/base.d.ts +0 -22
- package/esm/transports/base.d.ts.map +0 -1
- package/esm/transports/base.js +0 -26
- package/esm/transports/base.js.map +0 -1
- package/esm/transports/xhr.d.ts +0 -10
- package/esm/transports/xhr.d.ts.map +0 -1
- package/esm/transports/xhr.js +0 -40
- package/esm/transports/xhr.js.map +0 -1
- package/esm/utils/debug-build.d.ts +0 -7
- package/esm/utils/debug-build.d.ts.map +0 -1
- package/esm/utils/debug-build.js +0 -7
- package/esm/utils/debug-build.js.map +0 -1
- package/esm/utils/logger.d.ts +0 -25
- package/esm/utils/logger.d.ts.map +0 -1
- package/esm/utils/logger.js +0 -42
- package/esm/utils/logger.js.map +0 -1
package/esm/eventbuilder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventbuilder.js","sourceRoot":"","sources":["../src/eventbuilder.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"eventbuilder.js","sourceRoot":"","sources":["../src/eventbuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE7H,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAkB,EAAE,IAAgB;IACrE,MAAM,kBAAkB,GAAG,CAAC,IAAI,IAAK,IAAY,CAAC,kBAAkB,CAAC,IAAI,SAAS,CAAC;IACnF,MAAM,KAAK,GAAG,qBAAqB,CAAC,SAAS,EAAE,kBAAkB,EAAE;QACjE,gBAAgB,EAAG,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,gBAAgB;KAClD,CAAC,CAAC;IAEH,qBAAqB,CAAC,KAAK,EAAE;QAC3B,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IAEH,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC;IAEtB,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAA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CAAC,GAAG;QACnB,QAAQ,EAAE,KAAK,CAAC,IAAI,IAAI,GAAG;QAC3B,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,KAAK,EAAE,KAAK,CAAC,MAAM;KACpB,CAAC,CAAC,CAAC;AACN,CAAC"}
|
package/esm/flags.js
CHANGED
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
* replaced.
|
|
13
13
|
*/
|
|
14
14
|
/** Flag that is true for debug builds, false otherwise. */
|
|
15
|
-
export
|
|
15
|
+
export const IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY_DEBUG__;
|
|
16
16
|
//# sourceMappingURL=flags.js.map
|
package/esm/flags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,2DAA2D;AAC3D,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,2DAA2D;AAC3D,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,gBAAgB,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC"}
|
package/esm/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { Breadcrumb, BreadcrumbHint, Request, SdkInfo, Event, EventHint,
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export type { Breadcrumb, BreadcrumbHint, Request, SdkInfo, Event, EventHint, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/core';
|
|
2
|
+
export { addBreadcrumb, addEventProcessor, captureCheckIn, captureException, captureEvent, captureFeedback, captureMessage, close, continueTrace, createTransport, flush, getClient, getCurrentScope, getGlobalScope, getIsolationScope, isInitialized, lastEventId, metrics, setContext, setExtra, setExtras, setTag, setTags, setUser, startSession, endSession, startSpan, startInactiveSpan, startSpanManual, withScope, withIsolationScope, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, moduleMetadataIntegration, requestDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, zodErrorsIntegration, } from '@sentry/core';
|
|
3
|
+
export { init, showReportDialog } from './sdk';
|
|
4
|
+
export { UniappClient } from './client';
|
|
5
|
+
export type { UniappOptions, ReportDialogOptions } from './client';
|
|
6
|
+
export { makeUniappTransport } from './transport';
|
|
7
|
+
export { globalHandlersIntegration, systemIntegration, routerIntegration, } from './integrations';
|
|
8
|
+
export { SDK_NAME, SDK_VERSION } from './version';
|
|
9
|
+
import * as Integrations from './integrations';
|
|
10
|
+
export { Integrations };
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,UAAU,EACV,cAAc,EACd,OAAO,EACP,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,UAAU,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,OAAO,GACR,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,KAAK,EACL,aAAa,EACb,eAAe,EACf,KAAK,EACL,SAAS,EACT,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,OAAO,EACP,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,YAAY,EACZ,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGlD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
1
|
+
// Core SDK exports
|
|
2
|
+
export { addBreadcrumb, addEventProcessor, captureCheckIn, captureException, captureEvent, captureFeedback, captureMessage, close, continueTrace, createTransport, flush, getClient, getCurrentScope, getGlobalScope, getIsolationScope, isInitialized, lastEventId, metrics, setContext, setExtra, setExtras, setTag, setTags, setUser, startSession, endSession, startSpan, startInactiveSpan, startSpanManual, withScope, withIsolationScope, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, moduleMetadataIntegration, requestDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, zodErrorsIntegration, } from '@sentry/core';
|
|
3
|
+
// SDK-specific exports
|
|
4
|
+
export { init, showReportDialog } from './sdk';
|
|
5
|
+
export { UniappClient } from './client';
|
|
6
|
+
export { makeUniappTransport } from './transport';
|
|
7
|
+
// Integrations
|
|
8
|
+
export { globalHandlersIntegration, systemIntegration, routerIntegration, } from './integrations';
|
|
9
|
+
// Version
|
|
10
|
+
export { SDK_NAME, SDK_VERSION } from './version';
|
|
11
|
+
// Re-export integrations namespace for compatibility
|
|
12
|
+
import * as Integrations from './integrations';
|
|
13
|
+
export { Integrations };
|
|
9
14
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAkBA,mBAAmB;AACnB,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,KAAK,EACL,aAAa,EACb,eAAe,EACf,KAAK,EACL,SAAS,EACT,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,OAAO,EACP,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,YAAY,EACZ,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EACjB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,uBAAuB;AACvB,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,eAAe;AACf,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAExB,UAAU;AACV,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAElD,qDAAqD;AACrD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,47 +1,13 @@
|
|
|
1
|
-
import { Integration } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
onmemorywarning: boolean;
|
|
8
|
-
}
|
|
9
|
-
/** Global handlers */
|
|
10
|
-
export declare class GlobalHandlers implements Integration {
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
static id: string;
|
|
19
|
-
/** JSDoc */
|
|
20
|
-
private readonly _options;
|
|
21
|
-
/** JSDoc */
|
|
22
|
-
private _onErrorHandlerInstalled;
|
|
23
|
-
/** JSDoc */
|
|
24
|
-
private _onUnhandledRejectionHandlerInstalled;
|
|
25
|
-
/** JSDoc */
|
|
26
|
-
private _onPageNotFoundHandlerInstalled;
|
|
27
|
-
/** JSDoc */
|
|
28
|
-
private _onMemoryWarningHandlerInstalled;
|
|
29
|
-
/** JSDoc */
|
|
30
|
-
constructor(options?: GlobalHandlersIntegrations);
|
|
31
|
-
/** JSDoc */
|
|
32
|
-
setExtraOptions(extraOptions?: any): void;
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
setupOnce(): void;
|
|
37
|
-
/** JSDoc */
|
|
38
|
-
private _installGlobalOnErrorHandler;
|
|
39
|
-
/** JSDoc */
|
|
40
|
-
private _installGlobalOnUnhandledRejectionHandler;
|
|
41
|
-
/** JSDoc */
|
|
42
|
-
private _installGlobalOnPageNotFoundHandler;
|
|
43
|
-
/** JSDoc */
|
|
44
|
-
private _installGlobalOnMemoryWarningHandler;
|
|
1
|
+
import type { Integration } from '@sentry/core';
|
|
2
|
+
interface GlobalHandlersOptions {
|
|
3
|
+
onerror?: boolean;
|
|
4
|
+
onunhandledrejection?: boolean;
|
|
5
|
+
onpagenotfound?: boolean;
|
|
6
|
+
onmemorywarning?: boolean;
|
|
45
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Global handlers integration - captures unhandled errors and rejections
|
|
10
|
+
*/
|
|
11
|
+
export declare const globalHandlersIntegration: (options?: GlobalHandlersOptions) => Integration;
|
|
46
12
|
export {};
|
|
47
13
|
//# sourceMappingURL=globalhandlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalhandlers.d.ts","sourceRoot":"","sources":["../../src/integrations/globalhandlers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"globalhandlers.d.ts","sourceRoot":"","sources":["../../src/integrations/globalhandlers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,cAAc,CAAC;AAM/D,UAAU,qBAAqB;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAkID;;GAEG;AACH,eAAO,MAAM,yBAAyB,kDAAgD,CAAC"}
|
|
@@ -1,151 +1,117 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
/** JSDoc */
|
|
24
|
-
GlobalHandlers.prototype.setExtraOptions = function (extraOptions) {
|
|
25
|
-
if (extraOptions) {
|
|
26
|
-
if (extraOptions.onerror !== undefined) {
|
|
27
|
-
this._options.onerror = !!extraOptions.onerror;
|
|
1
|
+
import { defineIntegration, captureException, captureMessage, getCurrentScope } from '@sentry/core';
|
|
2
|
+
import { logger } from '@sentry/core';
|
|
3
|
+
import { sdk } from '../crossPlatform';
|
|
4
|
+
const INTEGRATION_NAME = 'GlobalHandlers';
|
|
5
|
+
const _globalHandlersIntegration = ((options = {}) => {
|
|
6
|
+
const _options = {
|
|
7
|
+
onerror: true,
|
|
8
|
+
onunhandledrejection: true,
|
|
9
|
+
onpagenotfound: true,
|
|
10
|
+
onmemorywarning: true,
|
|
11
|
+
...options,
|
|
12
|
+
};
|
|
13
|
+
let _onErrorHandlerInstalled = false;
|
|
14
|
+
let _onUnhandledRejectionHandlerInstalled = false;
|
|
15
|
+
let _onPageNotFoundHandlerInstalled = false;
|
|
16
|
+
let _onMemoryWarningHandlerInstalled = false;
|
|
17
|
+
return {
|
|
18
|
+
name: INTEGRATION_NAME,
|
|
19
|
+
setup() {
|
|
20
|
+
if (_options.onerror) {
|
|
21
|
+
_installGlobalOnErrorHandler();
|
|
28
22
|
}
|
|
29
|
-
if (
|
|
30
|
-
|
|
23
|
+
if (_options.onunhandledrejection) {
|
|
24
|
+
_installGlobalOnUnhandledRejectionHandler();
|
|
31
25
|
}
|
|
32
|
-
if (
|
|
33
|
-
|
|
26
|
+
if (_options.onpagenotfound) {
|
|
27
|
+
_installGlobalOnPageNotFoundHandler();
|
|
34
28
|
}
|
|
35
|
-
if (
|
|
36
|
-
|
|
29
|
+
if (_options.onmemorywarning) {
|
|
30
|
+
_installGlobalOnMemoryWarningHandler();
|
|
37
31
|
}
|
|
38
|
-
}
|
|
32
|
+
},
|
|
39
33
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*/
|
|
43
|
-
GlobalHandlers.prototype.setupOnce = function () {
|
|
44
|
-
Error.stackTraceLimit = 50;
|
|
45
|
-
if (this._options.onerror) {
|
|
46
|
-
logger.log("Global Handler attached: onError");
|
|
47
|
-
this._installGlobalOnErrorHandler();
|
|
48
|
-
}
|
|
49
|
-
if (this._options.onunhandledrejection) {
|
|
50
|
-
logger.log("Global Handler attached: onunhandledrejection");
|
|
51
|
-
this._installGlobalOnUnhandledRejectionHandler();
|
|
52
|
-
}
|
|
53
|
-
if (this._options.onpagenotfound) {
|
|
54
|
-
logger.log("Global Handler attached: onPageNotFound");
|
|
55
|
-
this._installGlobalOnPageNotFoundHandler();
|
|
56
|
-
}
|
|
57
|
-
if (this._options.onmemorywarning) {
|
|
58
|
-
logger.log("Global Handler attached: onMemoryWarning");
|
|
59
|
-
this._installGlobalOnMemoryWarningHandler();
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
/** JSDoc */
|
|
63
|
-
GlobalHandlers.prototype._installGlobalOnErrorHandler = function () {
|
|
64
|
-
if (this._onErrorHandlerInstalled) {
|
|
34
|
+
function _installGlobalOnErrorHandler() {
|
|
35
|
+
if (_onErrorHandlerInstalled || !sdk.onError) {
|
|
65
36
|
return;
|
|
66
37
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
38
|
+
sdk.onError((err) => {
|
|
39
|
+
const error = typeof err === 'string' ? new Error(err) : err;
|
|
40
|
+
captureException(error, {
|
|
41
|
+
mechanism: {
|
|
42
|
+
type: 'onerror',
|
|
43
|
+
handled: false,
|
|
44
|
+
},
|
|
74
45
|
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (
|
|
46
|
+
});
|
|
47
|
+
_onErrorHandlerInstalled = true;
|
|
48
|
+
logger.log('Global Handler attached: onError');
|
|
49
|
+
}
|
|
50
|
+
function _installGlobalOnUnhandledRejectionHandler() {
|
|
51
|
+
if (_onUnhandledRejectionHandlerInstalled || !sdk.onUnhandledRejection) {
|
|
81
52
|
return;
|
|
82
53
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
currentHub_2.captureException(error, {
|
|
92
|
-
data: promise,
|
|
93
|
-
});
|
|
54
|
+
sdk.onUnhandledRejection((res) => {
|
|
55
|
+
const error = typeof res.reason === 'string' ? new Error(res.reason) : res.reason;
|
|
56
|
+
captureException(error, {
|
|
57
|
+
mechanism: {
|
|
58
|
+
type: 'onunhandledrejection',
|
|
59
|
+
handled: false,
|
|
60
|
+
},
|
|
61
|
+
data: { promise: res.promise },
|
|
94
62
|
});
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
if (
|
|
63
|
+
});
|
|
64
|
+
_onUnhandledRejectionHandlerInstalled = true;
|
|
65
|
+
logger.log('Global Handler attached: onUnhandledRejection');
|
|
66
|
+
}
|
|
67
|
+
function _installGlobalOnPageNotFoundHandler() {
|
|
68
|
+
if (_onPageNotFoundHandlerInstalled || !sdk.onPageNotFound) {
|
|
101
69
|
return;
|
|
102
70
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
71
|
+
sdk.onPageNotFound((res) => {
|
|
72
|
+
const scope = getCurrentScope();
|
|
73
|
+
const url = res.path.split('?')[0];
|
|
74
|
+
scope.setTag('pagenotfound', url);
|
|
75
|
+
scope.setContext('pagenotfound', res);
|
|
76
|
+
captureMessage(`Page not found: ${url}`, {
|
|
77
|
+
level: 'warning',
|
|
110
78
|
});
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
if (
|
|
79
|
+
});
|
|
80
|
+
_onPageNotFoundHandlerInstalled = true;
|
|
81
|
+
logger.log('Global Handler attached: onPageNotFound');
|
|
82
|
+
}
|
|
83
|
+
function _installGlobalOnMemoryWarningHandler() {
|
|
84
|
+
if (_onMemoryWarningHandlerInstalled || !sdk.onMemoryWarning) {
|
|
117
85
|
return;
|
|
118
86
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
currentHub_4.captureMessage("\u5185\u5B58\u4E0D\u8DB3\u544A\u8B66");
|
|
87
|
+
sdk.onMemoryWarning(({ level = -1 }) => {
|
|
88
|
+
let levelMessage = 'Unknown memory warning level';
|
|
89
|
+
switch (level) {
|
|
90
|
+
case 5:
|
|
91
|
+
levelMessage = 'TRIM_MEMORY_RUNNING_MODERATE';
|
|
92
|
+
break;
|
|
93
|
+
case 10:
|
|
94
|
+
levelMessage = 'TRIM_MEMORY_RUNNING_LOW';
|
|
95
|
+
break;
|
|
96
|
+
case 15:
|
|
97
|
+
levelMessage = 'TRIM_MEMORY_RUNNING_CRITICAL';
|
|
98
|
+
break;
|
|
99
|
+
default:
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const scope = getCurrentScope();
|
|
103
|
+
scope.setTag('memory-warning', String(level));
|
|
104
|
+
scope.setContext('memory-warning', { level, levelMessage });
|
|
105
|
+
captureMessage('Memory warning', {
|
|
106
|
+
level: 'warning',
|
|
140
107
|
});
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
export { GlobalHandlers };
|
|
108
|
+
});
|
|
109
|
+
_onMemoryWarningHandlerInstalled = true;
|
|
110
|
+
logger.log('Global Handler attached: onMemoryWarning');
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* Global handlers integration - captures unhandled errors and rejections
|
|
115
|
+
*/
|
|
116
|
+
export const globalHandlersIntegration = defineIntegration(_globalHandlersIntegration);
|
|
151
117
|
//# sourceMappingURL=globalhandlers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalhandlers.js","sourceRoot":"","sources":["../../src/integrations/globalhandlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"globalhandlers.js","sourceRoot":"","sources":["../../src/integrations/globalhandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpG,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAS1C,MAAM,0BAA0B,GAAG,CAAC,CAAC,UAAiC,EAAE,EAAE,EAAE;IAC1E,MAAM,QAAQ,GAAG;QACf,OAAO,EAAE,IAAI;QACb,oBAAoB,EAAE,IAAI;QAC1B,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,IAAI;QACrB,GAAG,OAAO;KACX,CAAC;IAEF,IAAI,wBAAwB,GAAG,KAAK,CAAC;IACrC,IAAI,qCAAqC,GAAG,KAAK,CAAC;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AE,EAAE;YACxD,IAAI,YAAY,GAAG,8BAA8B,CAAC;YAElD,QAAQ,KAAK,EAAE,CAAC;gBACd,KAAK,CAAC;oBACJ,YAAY,GAAG,8BAA8B,CAAC;oBAC9C,MAAM;gBACR,KAAK,EAAE;oBACL,YAAY,GAAG,yBAAyB,CAAC;oBACzC,MAAM;gBACR,KAAK,EAAE;oBACL,YAAY,GAAG,8BAA8B,CAAC;oBAC9C,MAAM;gBACR;oBACE,OAAO;YACX,CAAC;YAED,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;YAChC,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAC9C,KAAK,CAAC,UAAU,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;YAE5D,cAAc,CAAC,gBAAgB,EAAE;gBAC/B,KAAK,EAAE,SAAS;aACjB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,gCAAgC,GAAG,IAAI,CAAC;QACxC,MAAM,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IACzD,CAAC;AACH,CAAC,CAAyB,CAAC;AAE3B;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
import { Integration } from "@sentry/
|
|
1
|
+
import type { Integration } from "@sentry/core";
|
|
2
2
|
/**
|
|
3
|
-
* IgnoreMpcrawlerErrors
|
|
4
|
-
*
|
|
5
|
-
* https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/sitemap.html
|
|
3
|
+
* IgnoreMpcrawlerErrors integration - filters out WeChat miniprogram crawler errors
|
|
6
4
|
*/
|
|
7
|
-
export declare
|
|
8
|
-
/**
|
|
9
|
-
* @inheritDoc
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
static id: string;
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
setupOnce(): void;
|
|
20
|
-
}
|
|
5
|
+
export declare const ignoreMpcrawlerErrorsIntegration: () => Integration;
|
|
21
6
|
//# sourceMappingURL=ignoreMpcrawlerErrors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignoreMpcrawlerErrors.d.ts","sourceRoot":"","sources":["../../src/integrations/ignoreMpcrawlerErrors.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ignoreMpcrawlerErrors.d.ts","sourceRoot":"","sources":["../../src/integrations/ignoreMpcrawlerErrors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,WAAW,EAAiB,MAAM,cAAc,CAAC;AAuC9E;;GAEG;AACH,eAAO,MAAM,gCAAgC,mBAAuD,CAAC"}
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineIntegration } from "@sentry/core";
|
|
2
2
|
import { appName, sdk } from "../crossPlatform";
|
|
3
|
+
const INTEGRATION_NAME = 'IgnoreMpcrawlerErrors';
|
|
3
4
|
/**
|
|
4
5
|
* IgnoreMpcrawlerErrors
|
|
5
6
|
*
|
|
6
7
|
* https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/sitemap.html
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
IgnoreMpcrawlerErrors.prototype.setupOnce = function () {
|
|
19
|
-
addGlobalEventProcessor(function (event) {
|
|
20
|
-
if (getCurrentHub().getIntegration(IgnoreMpcrawlerErrors) &&
|
|
21
|
-
appName === "wechat" &&
|
|
9
|
+
const _ignoreMpcrawlerErrorsIntegration = (() => {
|
|
10
|
+
return {
|
|
11
|
+
name: INTEGRATION_NAME,
|
|
12
|
+
setupOnce() {
|
|
13
|
+
// Setup is now handled via processEvent
|
|
14
|
+
},
|
|
15
|
+
processEvent(event, _hint, _client) {
|
|
16
|
+
if (appName === "wechat" &&
|
|
22
17
|
sdk.getLaunchOptionsSync) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
try {
|
|
19
|
+
const options = sdk.getLaunchOptionsSync();
|
|
20
|
+
if (options.scene === 1129) {
|
|
21
|
+
// Ignore miniprogram crawler errors
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) {
|
|
26
|
+
// If we can't get launch options, just continue
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
return event;
|
|
29
|
-
}
|
|
30
|
+
},
|
|
30
31
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}());
|
|
37
|
-
export { IgnoreMpcrawlerErrors };
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* IgnoreMpcrawlerErrors integration - filters out WeChat miniprogram crawler errors
|
|
35
|
+
*/
|
|
36
|
+
export const ignoreMpcrawlerErrorsIntegration = defineIntegration(_ignoreMpcrawlerErrorsIntegration);
|
|
38
37
|
//# sourceMappingURL=ignoreMpcrawlerErrors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignoreMpcrawlerErrors.js","sourceRoot":"","sources":["../../src/integrations/ignoreMpcrawlerErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ignoreMpcrawlerErrors.js","sourceRoot":"","sources":["../../src/integrations/ignoreMpcrawlerErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,iCAAiC,GAAG,CAAC,GAAG,EAAE;IAC5C,OAAO;QACH,IAAI,EAAE,gBAAgB;QACtB,SAAS;YACL,wCAAwC;QAC5C,CAAC;QACD,YAAY,CAAC,KAAY,EAAE,KAAc,EAAE,OAAe;YACtD,IACI,OAAO,KAAK,QAAQ;gBACpB,GAAG,CAAC,oBAAoB,EAC1B,CAAC;gBACC,IAAI,CAAC;oBACD,MAAM,OAAO,GAAG,GAAG,CAAC,oBAAoB,EAAE,CAAC;oBAE3C,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;wBACzB,oCAAoC;wBACpC,OAAO,IAAI,CAAC;oBAChB,CAAC;gBACL,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACT,gDAAgD;gBACpD,CAAC;YACL,CAAC;YAED,OAAO,KAAK,CAAC;QACjB,CAAC;KACkB,CAAC;AAC5B,CAAC,CAAyB,CAAC;AAE3B;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB,CAAC,iCAAiC,CAAC,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { Router } from "./router";
|
|
6
|
-
export { IgnoreMpcrawlerErrors } from "./ignoreMpcrawlerErrors";
|
|
1
|
+
export { globalHandlersIntegration } from './globalhandlers';
|
|
2
|
+
export { routerIntegration } from './router';
|
|
3
|
+
export { systemIntegration } from './system';
|
|
4
|
+
export { inboundFiltersIntegration, functionToStringIntegration, linkedErrorsIntegration, dedupeIntegration, } from '@sentry/core';
|
|
7
5
|
//# sourceMappingURL=index.d.ts.map
|