pcm-agents 0.6.68 → 0.6.69-beta.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/cjs/{app-globals-BIO4q6tX.js → app-globals-CNDATihX.js} +222 -223
- package/dist/cjs/{components-position-selector_28.cjs.entry.js → components-position-selector_29.cjs.entry.js} +607 -299
- package/dist/cjs/error-event-J_ZWIqWF.js +0 -3
- package/dist/cjs/{exports-Dc-pQh4A.js → exports-OuZMDgn-.js} +462 -435
- package/dist/cjs/index-BPVB0c5y.js +6259 -0
- package/dist/cjs/{index-CUcnakjY.js → index-CPekdII4.js} +113 -31
- package/dist/cjs/index.cjs.js +2 -5
- package/dist/cjs/loader.cjs.js +4 -7
- package/dist/cjs/{message-utils-OP5WQarf.js → message-utils-BA61WHbO.js} +214 -208
- package/dist/cjs/message.service-DGUsA-FY.js +0 -3
- package/dist/cjs/oem-htws-modal.cjs.entry.js +19 -18
- package/dist/cjs/oem-jd-modal.cjs.entry.js +20 -19
- package/dist/cjs/oem-jlpp-modal.cjs.entry.js +19 -18
- package/dist/cjs/oem-jlsx-modal.cjs.entry.js +26 -25
- package/dist/cjs/oem-jlzz-modal.cjs.entry.js +22 -19
- package/dist/cjs/oem-mnct-modal.cjs.entry.js +19 -18
- package/dist/cjs/oem-qgqjl-modal.cjs.entry.js +20 -19
- package/dist/cjs/oem-zygh-modal.cjs.entry.js +19 -18
- package/dist/cjs/pcm-agents.cjs.js +33 -9
- package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +21 -20
- package/dist/cjs/pcm-mnms-modal.cjs.entry.js +20 -19
- package/dist/cjs/pcm-zygh-v2-modal.cjs.entry.js +19 -18
- package/dist/cjs/{sentry-reporter-CmUYD9TR.js → sentry-reporter-9qH37xVB.js} +2 -5
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/components-position-selector/components-position-selector.css +411 -411
- package/dist/collection/components/components-position-selector/components-position-selector.js +10 -10
- package/dist/collection/components/oem-htws-modal/oem-htws-modal.css +160 -160
- package/dist/collection/components/oem-htws-modal/oem-htws-modal.js +27 -24
- package/dist/collection/components/oem-jd-modal/oem-jd-modal.css +312 -312
- package/dist/collection/components/oem-jd-modal/oem-jd-modal.js +27 -25
- package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.css +198 -198
- package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.js +30 -27
- package/dist/collection/components/oem-jlsx-modal/oem-jlsx-modal.css +1330 -1330
- package/dist/collection/components/oem-jlsx-modal/oem-jlsx-modal.js +31 -25
- package/dist/collection/components/oem-jlzz-modal/oem-jlzz-modal.css +152 -152
- package/dist/collection/components/oem-jlzz-modal/oem-jlzz-modal.js +23 -20
- package/dist/collection/components/oem-mnct-modal/oem-mnct-modal.css +135 -135
- package/dist/collection/components/oem-mnct-modal/oem-mnct-modal.js +32 -29
- package/dist/collection/components/oem-mnms-modal/oem-mnms-modal.css +201 -201
- package/dist/collection/components/oem-mnms-modal/oem-mnms-modal.js +43 -39
- package/dist/collection/components/oem-qgqjl-modal/oem-qgqjl-modal.css +142 -142
- package/dist/collection/components/oem-qgqjl-modal/oem-qgqjl-modal.js +31 -28
- package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.css +188 -188
- package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.js +28 -26
- package/dist/collection/components/pcm-1zhanshi-mnms-modal/pcm-1zhanshi-mnms-modal.js +35 -31
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.css +1036 -1036
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +48 -46
- package/dist/collection/components/pcm-ats-mnms-modal/pcm-ats-mnms-modal.css +0 -0
- package/dist/collection/components/pcm-ats-mnms-modal/pcm-ats-mnms-modal.js +754 -0
- package/dist/collection/components/pcm-button/pcm-button.css +199 -199
- package/dist/collection/components/pcm-button/pcm-button.js +19 -20
- package/dist/collection/components/pcm-card/pcm-card.css +259 -259
- package/dist/collection/components/pcm-card/pcm-card.js +12 -13
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.css +554 -554
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +19 -20
- package/dist/collection/components/pcm-confirm-modal/pcm-confirm-modal.css +243 -243
- package/dist/collection/components/pcm-confirm-modal/pcm-confirm-modal.js +9 -10
- package/dist/collection/components/pcm-digital-human/pcm-digital-human.css +64 -64
- package/dist/collection/components/pcm-digital-human/pcm-digital-human.js +9 -10
- package/dist/collection/components/pcm-drawer/pcm-drawer.css +114 -114
- package/dist/collection/components/pcm-drawer/pcm-drawer.js +7 -8
- package/dist/collection/components/pcm-export-records-modal/pcm-export-records-modal.css +389 -389
- package/dist/collection/components/pcm-export-records-modal/pcm-export-records-modal.js +5 -6
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.css +854 -854
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +33 -30
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.css +95 -95
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +29 -26
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js +28 -25
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.css +312 -312
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js +27 -25
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js +30 -27
- package/dist/collection/components/pcm-jlsx-modal/pcm-jlsx-modal.css +1158 -1158
- package/dist/collection/components/pcm-jlsx-modal/pcm-jlsx-modal.js +28 -23
- package/dist/collection/components/pcm-jlzz-modal/pcm-jlzz-modal.css +152 -152
- package/dist/collection/components/pcm-jlzz-modal/pcm-jlzz-modal.js +28 -25
- package/dist/collection/components/pcm-message/pcm-message.css +64 -64
- package/dist/collection/components/pcm-message/pcm-message.js +5 -6
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.css +1 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js +30 -27
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +43 -39
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js +43 -39
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.css +139 -139
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js +5 -8
- package/dist/collection/components/pcm-mobile-input-btn/uploadNumberSDK.js +0 -1
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.css +126 -126
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js +5 -9
- package/dist/collection/components/pcm-mobile-upload-btn/uploadNumberSDK.js +0 -1
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js +28 -25
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.css +9 -9
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js +32 -29
- package/dist/collection/components/pcm-upload/pcm-upload.css +10 -10
- package/dist/collection/components/pcm-upload/pcm-upload.js +15 -18
- package/dist/collection/components/pcm-virtual-chat-modal/pcm-virtual-chat-modal.css +1136 -1136
- package/dist/collection/components/pcm-virtual-chat-modal/pcm-virtual-chat-modal.js +33 -30
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.css +966 -966
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js +23 -23
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.css +68 -68
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +29 -27
- package/dist/collection/components/pcm-zygh-v2-modal/pcm-zygh-v2-modal.css +125 -125
- package/dist/collection/components/pcm-zygh-v2-modal/pcm-zygh-v2-modal.js +29 -27
- package/dist/collection/global/global.css +534 -534
- package/dist/collection/global/host.css +60 -60
- package/dist/collection/global/markdown.css +1233 -1233
- package/dist/collection/global/message.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/interfaces/chat.js +0 -1
- package/dist/collection/interfaces/events.js +0 -1
- package/dist/collection/services/message.service.js +0 -1
- package/dist/collection/utils/env.js +0 -1
- package/dist/collection/utils/error-event.js +0 -1
- package/dist/collection/utils/init.js +0 -1
- package/dist/collection/utils/message-utils.js +0 -1
- package/dist/collection/utils/sentry-reporter.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/components-position-selector.js +1 -9
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -5487
- package/dist/components/oem-htws-modal.js +1 -416
- package/dist/components/oem-jd-modal.js +1 -576
- package/dist/components/oem-jlpp-modal.js +1 -473
- package/dist/components/oem-jlsx-modal.js +1 -1228
- package/dist/components/oem-jlzz-modal.js +1 -400
- package/dist/components/oem-mnct-modal.js +1 -382
- package/dist/components/oem-mnms-modal.js +1 -562
- package/dist/components/oem-qgqjl-modal.js +1 -460
- package/dist/components/oem-zygh-modal.js +1 -456
- package/dist/components/p-B-8WYuAE.js +1 -0
- package/dist/components/p-B4mosCjI.js +1 -0
- package/dist/components/p-BH3b46Xn.js +25 -2296
- package/dist/components/p-BbVKc2At.js +1 -0
- package/dist/components/p-Be4DUSmj.js +1 -0
- package/dist/components/p-Bgli5RFz.js +1 -0
- package/dist/components/p-Bk0huK8R.js +1 -0
- package/dist/components/p-BkXDtsrb.js +1 -0
- package/dist/components/p-BncePgYc.js +1 -0
- package/dist/components/p-BpP6bEq3.js +1 -0
- package/dist/components/p-C0FYX2-Z.js +1 -31
- package/dist/components/p-C9ZXyuZW.js +1 -0
- package/dist/components/p-CJK3cNTI.js +1 -24
- package/dist/components/p-CNfm8Oey.js +1 -0
- package/dist/components/p-DIO4dKkj.js +1 -0
- package/dist/components/p-DXVhHj6-.js +1 -133
- package/dist/components/p-DYwj8JXt.js +1 -0
- package/dist/components/p-GydUDoBs.js +7 -0
- package/dist/components/p-X32pHBlk.js +1 -0
- package/dist/components/p-bXhyvnsD.js +2 -0
- package/dist/components/p-rneeFwxC.js +1 -0
- package/dist/components/p-yP54jHKu.js +1 -0
- package/dist/components/pcm-1zhanshi-mnms-modal.js +1 -330
- package/dist/components/pcm-app-chat-modal.js +1 -9
- package/dist/components/pcm-ats-mnms-modal.d.ts +11 -0
- package/dist/components/pcm-ats-mnms-modal.js +1 -0
- package/dist/components/pcm-button.js +1 -140
- package/dist/components/pcm-card.js +1 -202
- package/dist/components/pcm-chat-message.js +1 -9
- package/dist/components/pcm-confirm-modal.js +1 -9
- package/dist/components/pcm-digital-human.js +1 -9
- package/dist/components/pcm-drawer.js +1 -9
- package/dist/components/pcm-export-records-modal.js +1 -9
- package/dist/components/pcm-hr-chat-modal.js +1 -1404
- package/dist/components/pcm-htws-modal.js +1 -346
- package/dist/components/pcm-hyzj-modal.js +1 -355
- package/dist/components/pcm-jd-modal.js +1 -577
- package/dist/components/pcm-jlpp-modal.js +1 -341
- package/dist/components/pcm-jlsx-modal.js +1 -1207
- package/dist/components/pcm-jlzz-modal.js +1 -566
- package/dist/components/pcm-message.js +1 -9
- package/dist/components/pcm-mnct-modal.js +1 -402
- package/dist/components/pcm-mnms-modal.js +1 -432
- package/dist/components/pcm-mnms-zp-modal.js +1 -432
- package/dist/components/pcm-mobile-input-btn.js +1 -9
- package/dist/components/pcm-mobile-upload-btn.js +1 -9
- package/dist/components/pcm-msbg-modal.js +1 -376
- package/dist/components/pcm-qgqjl-modal.js +1 -444
- package/dist/components/pcm-upload.js +1 -9
- package/dist/components/pcm-virtual-chat-modal.js +1 -9
- package/dist/components/pcm-zsk-chat-modal.js +1 -950
- package/dist/components/pcm-zygh-modal.js +1 -330
- package/dist/components/pcm-zygh-v2-modal.js +1 -347
- package/dist/esm/{app-globals-Chti62re.js → app-globals-C4jxMOjs.js} +222 -223
- package/dist/esm/{components-position-selector_28.entry.js → components-position-selector_29.entry.js} +607 -300
- package/dist/esm/error-event-C0FYX2-Z.js +0 -3
- package/dist/esm/{exports-Bs-zO1WZ.js → exports-DRpmW2Yt.js} +461 -435
- package/dist/esm/index-BDaXZC2A.js +6227 -0
- package/dist/esm/{index-DC178vjZ.js → index-C7HBVLXu.js} +113 -31
- package/dist/esm/index.js +2 -5
- package/dist/esm/loader.js +5 -8
- package/dist/esm/{message-utils-CwVqDK3R.js → message-utils-CF6Tlk5g.js} +214 -208
- package/dist/esm/message.service-DXVhHj6-.js +0 -3
- package/dist/esm/oem-htws-modal.entry.js +19 -18
- package/dist/esm/oem-jd-modal.entry.js +20 -19
- package/dist/esm/oem-jlpp-modal.entry.js +19 -18
- package/dist/esm/oem-jlsx-modal.entry.js +26 -25
- package/dist/esm/oem-jlzz-modal.entry.js +22 -19
- package/dist/esm/oem-mnct-modal.entry.js +19 -18
- package/dist/esm/oem-qgqjl-modal.entry.js +20 -19
- package/dist/esm/oem-zygh-modal.entry.js +19 -18
- package/dist/esm/pcm-agents.js +34 -10
- package/dist/esm/pcm-hr-chat-modal.entry.js +21 -20
- package/dist/esm/pcm-mnms-modal.entry.js +20 -19
- package/dist/esm/pcm-zygh-v2-modal.entry.js +19 -18
- package/dist/esm/{sentry-reporter-xOrIs2DL.js → sentry-reporter-d9ZMkFRQ.js} +2 -5
- package/dist/pcm-agents/index.esm.js +1 -2
- package/dist/pcm-agents/p-0939bde2.entry.js +1 -0
- package/dist/pcm-agents/p-09ebee3f.entry.js +1 -0
- package/dist/pcm-agents/p-0f9caf07.entry.js +253 -0
- package/dist/pcm-agents/p-1Srgenut.js +1 -0
- package/dist/pcm-agents/p-6755e500.entry.js +1 -0
- package/dist/pcm-agents/p-6e02e6be.entry.js +1 -0
- package/dist/pcm-agents/p-8a24ebd8.entry.js +1 -0
- package/dist/pcm-agents/p-92edf911.entry.js +1 -0
- package/dist/pcm-agents/p-94f6453b.entry.js +1 -0
- package/dist/pcm-agents/p-BDaXZC2A.js +2 -0
- package/dist/pcm-agents/p-C0FYX2-Z.js +1 -2
- package/dist/pcm-agents/p-CF6Tlk5g.js +1 -0
- package/dist/pcm-agents/p-CbVusEaa.js +1 -0
- package/dist/pcm-agents/p-ClfI6pEX.js +1 -0
- package/dist/pcm-agents/p-DRpmW2Yt.js +1 -0
- package/dist/pcm-agents/p-DXVhHj6-.js +1 -2
- package/dist/pcm-agents/p-d0d92381.entry.js +1 -0
- package/dist/pcm-agents/p-d259ee1d.entry.js +1 -0
- package/dist/pcm-agents/p-db3f7ee8.entry.js +1 -0
- package/dist/pcm-agents/p-fbffc447.entry.js +1 -0
- package/dist/pcm-agents/pcm-agents.esm.js +1 -2
- package/dist/store/auth.store.js +0 -1
- package/dist/store/config.store.js +0 -1
- package/dist/types/components/pcm-ats-mnms-modal/pcm-ats-mnms-modal.d.ts +132 -0
- package/dist/types/components.d.ts +1127 -64
- package/dist/types/stencil-public-runtime.d.ts +148 -11
- package/package.json +71 -71
- package/dist/cjs/app-globals-BIO4q6tX.js.map +0 -1
- package/dist/cjs/components-position-selector_28.cjs.entry.js.map +0 -1
- package/dist/cjs/error-event-J_ZWIqWF.js.map +0 -1
- package/dist/cjs/exports-Dc-pQh4A.js.map +0 -1
- package/dist/cjs/index-CUcnakjY.js.map +0 -1
- package/dist/cjs/index-C_qhED9Z.js +0 -1570
- package/dist/cjs/index-C_qhED9Z.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/message-utils-OP5WQarf.js.map +0 -1
- package/dist/cjs/message.service-DGUsA-FY.js.map +0 -1
- package/dist/cjs/oem-htws-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/oem-htws-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/oem-jd-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/oem-jd-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/oem-jlpp-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/oem-jlpp-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/oem-jlsx-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/oem-jlsx-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/oem-jlzz-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/oem-jlzz-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/oem-mnct-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/oem-mnct-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/oem-qgqjl-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/oem-qgqjl-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/oem-zygh-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/oem-zygh-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-agents.cjs.js.map +0 -1
- package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-hr-chat-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-mnms-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-mnms-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-zygh-v2-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-zygh-v2-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/sentry-reporter-CmUYD9TR.js.map +0 -1
- package/dist/collection/components/components-position-selector/components-position-selector.js.map +0 -1
- package/dist/collection/components/oem-htws-modal/oem-htws-modal.js.map +0 -1
- package/dist/collection/components/oem-jd-modal/oem-jd-modal.js.map +0 -1
- package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.js.map +0 -1
- package/dist/collection/components/oem-jlsx-modal/oem-jlsx-modal.js.map +0 -1
- package/dist/collection/components/oem-jlzz-modal/oem-jlzz-modal.js.map +0 -1
- package/dist/collection/components/oem-mnct-modal/oem-mnct-modal.js.map +0 -1
- package/dist/collection/components/oem-mnms-modal/oem-mnms-modal.js.map +0 -1
- package/dist/collection/components/oem-qgqjl-modal/oem-qgqjl-modal.js.map +0 -1
- package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.js.map +0 -1
- package/dist/collection/components/pcm-1zhanshi-mnms-modal/pcm-1zhanshi-mnms-modal.js.map +0 -1
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +0 -1
- package/dist/collection/components/pcm-button/pcm-button.js.map +0 -1
- package/dist/collection/components/pcm-card/pcm-card.js.map +0 -1
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js.map +0 -1
- package/dist/collection/components/pcm-confirm-modal/pcm-confirm-modal.js.map +0 -1
- package/dist/collection/components/pcm-digital-human/pcm-digital-human.js.map +0 -1
- package/dist/collection/components/pcm-drawer/pcm-drawer.js.map +0 -1
- package/dist/collection/components/pcm-export-records-modal/pcm-export-records-modal.js.map +0 -1
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +0 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js.map +0 -1
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js.map +0 -1
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js.map +0 -1
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +0 -1
- package/dist/collection/components/pcm-jlsx-modal/pcm-jlsx-modal.js.map +0 -1
- package/dist/collection/components/pcm-jlzz-modal/pcm-jlzz-modal.js.map +0 -1
- package/dist/collection/components/pcm-message/pcm-message.js.map +0 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js.map +0 -1
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +0 -1
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js.map +0 -1
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js.map +0 -1
- package/dist/collection/components/pcm-mobile-input-btn/uploadNumberSDK.js.map +0 -1
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js.map +0 -1
- package/dist/collection/components/pcm-mobile-upload-btn/uploadNumberSDK.js.map +0 -1
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js.map +0 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js.map +0 -1
- package/dist/collection/components/pcm-upload/pcm-upload.js.map +0 -1
- package/dist/collection/components/pcm-virtual-chat-modal/pcm-virtual-chat-modal.js.map +0 -1
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js.map +0 -1
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +0 -1
- package/dist/collection/components/pcm-zygh-v2-modal/pcm-zygh-v2-modal.js.map +0 -1
- package/dist/collection/global/message.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/interfaces/chat.js.map +0 -1
- package/dist/collection/interfaces/events.js.map +0 -1
- package/dist/collection/services/message.service.js.map +0 -1
- package/dist/collection/utils/env.js.map +0 -1
- package/dist/collection/utils/error-event.js.map +0 -1
- package/dist/collection/utils/init.js.map +0 -1
- package/dist/collection/utils/message-utils.js.map +0 -1
- package/dist/collection/utils/sentry-reporter.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/components-position-selector.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/oem-htws-modal.js.map +0 -1
- package/dist/components/oem-jd-modal.js.map +0 -1
- package/dist/components/oem-jlpp-modal.js.map +0 -1
- package/dist/components/oem-jlsx-modal.js.map +0 -1
- package/dist/components/oem-jlzz-modal.js.map +0 -1
- package/dist/components/oem-mnct-modal.js.map +0 -1
- package/dist/components/oem-mnms-modal.js.map +0 -1
- package/dist/components/oem-qgqjl-modal.js.map +0 -1
- package/dist/components/oem-zygh-modal.js.map +0 -1
- package/dist/components/p-0JWThH-A.js +0 -168
- package/dist/components/p-0JWThH-A.js.map +0 -1
- package/dist/components/p-75J0r72D.js +0 -4017
- package/dist/components/p-75J0r72D.js.map +0 -1
- package/dist/components/p-BH3b46Xn.js.map +0 -1
- package/dist/components/p-BWdC1N4V.js +0 -226
- package/dist/components/p-BWdC1N4V.js.map +0 -1
- package/dist/components/p-B_-12Bju.js +0 -205
- package/dist/components/p-B_-12Bju.js.map +0 -1
- package/dist/components/p-Bf-kPmQ1.js +0 -264
- package/dist/components/p-Bf-kPmQ1.js.map +0 -1
- package/dist/components/p-Bz_gQ-XD.js +0 -330
- package/dist/components/p-Bz_gQ-XD.js.map +0 -1
- package/dist/components/p-C0FYX2-Z.js.map +0 -1
- package/dist/components/p-CB-l8OLH.js +0 -251
- package/dist/components/p-CB-l8OLH.js.map +0 -1
- package/dist/components/p-CJK3cNTI.js.map +0 -1
- package/dist/components/p-CR7WLzmM.js +0 -1303
- package/dist/components/p-CR7WLzmM.js.map +0 -1
- package/dist/components/p-CnK5J7Yw.js +0 -2621
- package/dist/components/p-CnK5J7Yw.js.map +0 -1
- package/dist/components/p-CsZbzXvz.js +0 -2023
- package/dist/components/p-CsZbzXvz.js.map +0 -1
- package/dist/components/p-D-vhTSlS.js +0 -99
- package/dist/components/p-D-vhTSlS.js.map +0 -1
- package/dist/components/p-DC-AWTHS.js +0 -70
- package/dist/components/p-DC-AWTHS.js.map +0 -1
- package/dist/components/p-DDMpcDv6.js +0 -306
- package/dist/components/p-DDMpcDv6.js.map +0 -1
- package/dist/components/p-DUQ46MUh.js +0 -259
- package/dist/components/p-DUQ46MUh.js.map +0 -1
- package/dist/components/p-DWXutWSC.js +0 -769
- package/dist/components/p-DWXutWSC.js.map +0 -1
- package/dist/components/p-DXVhHj6-.js.map +0 -1
- package/dist/components/p-DtPNHwVz.js +0 -1786
- package/dist/components/p-DtPNHwVz.js.map +0 -1
- package/dist/components/p-cJS6G4Vr.js +0 -1364
- package/dist/components/p-cJS6G4Vr.js.map +0 -1
- package/dist/components/p-uBbOKCP7.js +0 -208
- package/dist/components/p-uBbOKCP7.js.map +0 -1
- package/dist/components/pcm-1zhanshi-mnms-modal.js.map +0 -1
- package/dist/components/pcm-app-chat-modal.js.map +0 -1
- package/dist/components/pcm-button.js.map +0 -1
- package/dist/components/pcm-card.js.map +0 -1
- package/dist/components/pcm-chat-message.js.map +0 -1
- package/dist/components/pcm-confirm-modal.js.map +0 -1
- package/dist/components/pcm-digital-human.js.map +0 -1
- package/dist/components/pcm-drawer.js.map +0 -1
- package/dist/components/pcm-export-records-modal.js.map +0 -1
- package/dist/components/pcm-hr-chat-modal.js.map +0 -1
- package/dist/components/pcm-htws-modal.js.map +0 -1
- package/dist/components/pcm-hyzj-modal.js.map +0 -1
- package/dist/components/pcm-jd-modal.js.map +0 -1
- package/dist/components/pcm-jlpp-modal.js.map +0 -1
- package/dist/components/pcm-jlsx-modal.js.map +0 -1
- package/dist/components/pcm-jlzz-modal.js.map +0 -1
- package/dist/components/pcm-message.js.map +0 -1
- package/dist/components/pcm-mnct-modal.js.map +0 -1
- package/dist/components/pcm-mnms-modal.js.map +0 -1
- package/dist/components/pcm-mnms-zp-modal.js.map +0 -1
- package/dist/components/pcm-mobile-input-btn.js.map +0 -1
- package/dist/components/pcm-mobile-upload-btn.js.map +0 -1
- package/dist/components/pcm-msbg-modal.js.map +0 -1
- package/dist/components/pcm-qgqjl-modal.js.map +0 -1
- package/dist/components/pcm-upload.js.map +0 -1
- package/dist/components/pcm-virtual-chat-modal.js.map +0 -1
- package/dist/components/pcm-zsk-chat-modal.js.map +0 -1
- package/dist/components/pcm-zygh-modal.js.map +0 -1
- package/dist/components/pcm-zygh-v2-modal.js.map +0 -1
- package/dist/esm/app-globals-Chti62re.js.map +0 -1
- package/dist/esm/components-position-selector_28.entry.js.map +0 -1
- package/dist/esm/error-event-C0FYX2-Z.js.map +0 -1
- package/dist/esm/exports-Bs-zO1WZ.js.map +0 -1
- package/dist/esm/index-Bq0K-WqZ.js +0 -1560
- package/dist/esm/index-Bq0K-WqZ.js.map +0 -1
- package/dist/esm/index-DC178vjZ.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/message-utils-CwVqDK3R.js.map +0 -1
- package/dist/esm/message.service-DXVhHj6-.js.map +0 -1
- package/dist/esm/oem-htws-modal.entry.js.map +0 -1
- package/dist/esm/oem-jd-modal.entry.js.map +0 -1
- package/dist/esm/oem-jlpp-modal.entry.js.map +0 -1
- package/dist/esm/oem-jlsx-modal.entry.js.map +0 -1
- package/dist/esm/oem-jlzz-modal.entry.js.map +0 -1
- package/dist/esm/oem-mnct-modal.entry.js.map +0 -1
- package/dist/esm/oem-qgqjl-modal.entry.js.map +0 -1
- package/dist/esm/oem-zygh-modal.entry.js.map +0 -1
- package/dist/esm/pcm-agents.js.map +0 -1
- package/dist/esm/pcm-hr-chat-modal.entry.js.map +0 -1
- package/dist/esm/pcm-mnms-modal.entry.js.map +0 -1
- package/dist/esm/pcm-zygh-v2-modal.entry.js.map +0 -1
- package/dist/esm/sentry-reporter-xOrIs2DL.js.map +0 -1
- package/dist/pcm-agents/index.esm.js.map +0 -1
- package/dist/pcm-agents/loader.esm.js.map +0 -1
- package/dist/pcm-agents/oem-htws-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/oem-jd-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/oem-jlpp-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/oem-jlsx-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/oem-jlzz-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/oem-mnct-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/oem-qgqjl-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/oem-zygh-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/p-04eae84b.entry.js +0 -2
- package/dist/pcm-agents/p-04eae84b.entry.js.map +0 -1
- package/dist/pcm-agents/p-04ee7d53.entry.js +0 -2
- package/dist/pcm-agents/p-04ee7d53.entry.js.map +0 -1
- package/dist/pcm-agents/p-625f600d.entry.js +0 -2
- package/dist/pcm-agents/p-625f600d.entry.js.map +0 -1
- package/dist/pcm-agents/p-7e8ee65a.entry.js +0 -251
- package/dist/pcm-agents/p-7e8ee65a.entry.js.map +0 -1
- package/dist/pcm-agents/p-8b15ae1b.entry.js +0 -2
- package/dist/pcm-agents/p-8b15ae1b.entry.js.map +0 -1
- package/dist/pcm-agents/p-8b49aa96.entry.js +0 -2
- package/dist/pcm-agents/p-8b49aa96.entry.js.map +0 -1
- package/dist/pcm-agents/p-999a09fa.entry.js +0 -2
- package/dist/pcm-agents/p-999a09fa.entry.js.map +0 -1
- package/dist/pcm-agents/p-9ab131d1.entry.js +0 -2
- package/dist/pcm-agents/p-9ab131d1.entry.js.map +0 -1
- package/dist/pcm-agents/p-Bq0K-WqZ.js +0 -3
- package/dist/pcm-agents/p-Bq0K-WqZ.js.map +0 -1
- package/dist/pcm-agents/p-Bs-zO1WZ.js +0 -2
- package/dist/pcm-agents/p-Bs-zO1WZ.js.map +0 -1
- package/dist/pcm-agents/p-C0FYX2-Z.js.map +0 -1
- package/dist/pcm-agents/p-CeRTfvY9.js +0 -2
- package/dist/pcm-agents/p-CeRTfvY9.js.map +0 -1
- package/dist/pcm-agents/p-CwVqDK3R.js +0 -2
- package/dist/pcm-agents/p-CwVqDK3R.js.map +0 -1
- package/dist/pcm-agents/p-DOkjrEUH.js +0 -2
- package/dist/pcm-agents/p-DOkjrEUH.js.map +0 -1
- package/dist/pcm-agents/p-DXVhHj6-.js.map +0 -1
- package/dist/pcm-agents/p-DnE7F84c.js +0 -2
- package/dist/pcm-agents/p-DnE7F84c.js.map +0 -1
- package/dist/pcm-agents/p-c4ffa951.entry.js +0 -2
- package/dist/pcm-agents/p-c4ffa951.entry.js.map +0 -1
- package/dist/pcm-agents/p-d5c9b9da.entry.js +0 -2
- package/dist/pcm-agents/p-d5c9b9da.entry.js.map +0 -1
- package/dist/pcm-agents/p-f6200320.entry.js +0 -2
- package/dist/pcm-agents/p-f6200320.entry.js.map +0 -1
- package/dist/pcm-agents/p-f93f1e2d.entry.js +0 -2
- package/dist/pcm-agents/p-f93f1e2d.entry.js.map +0 -1
- package/dist/pcm-agents/pcm-agents.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-hr-chat-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-mnms-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-zygh-v2-modal.entry.esm.js.map +0 -1
- package/dist/store/auth.store.js.map +0 -1
- package/dist/store/config.store.js.map +0 -1
- package/dist/types/code/agents-sdk/packages/pcm-agents/.stencil/store/auth.store.d.ts +0 -10
- package/dist/types/code/agents-sdk/packages/pcm-agents/.stencil/store/config.store.d.ts +0 -16
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var exports$1 = require('./exports-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Parse a sample rate from a given value.
|
|
7
|
-
* This will either return a boolean or number sample rate, if the sample rate is valid (between 0 and 1).
|
|
8
|
-
* If a string is passed, we try to convert it to a number.
|
|
9
|
-
*
|
|
10
|
-
* Any invalid sample rate will return `undefined`.
|
|
11
|
-
*/
|
|
12
|
-
function parseSampleRate(sampleRate) {
|
|
13
|
-
if (typeof sampleRate === 'boolean') {
|
|
14
|
-
return Number(sampleRate);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const rate = typeof sampleRate === 'string' ? parseFloat(sampleRate) : sampleRate;
|
|
18
|
-
if (typeof rate !== 'number' || isNaN(rate) || rate < 0 || rate > 1) {
|
|
19
|
-
return undefined;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return rate;
|
|
23
|
-
}
|
|
3
|
+
var exports$1 = require('./exports-OuZMDgn-.js');
|
|
24
4
|
|
|
25
5
|
// We keep the handlers globally
|
|
26
6
|
const handlers = {};
|
|
@@ -39,7 +19,7 @@ function maybeInstrument(type, instrumentFn) {
|
|
|
39
19
|
try {
|
|
40
20
|
instrumentFn();
|
|
41
21
|
} catch (e) {
|
|
42
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
22
|
+
exports$1.DEBUG_BUILD && exports$1.debug.error(`Error while instrumenting ${type}`, e);
|
|
43
23
|
}
|
|
44
24
|
}
|
|
45
25
|
}
|
|
@@ -56,7 +36,7 @@ function triggerHandlers(type, data) {
|
|
|
56
36
|
handler(data);
|
|
57
37
|
} catch (e) {
|
|
58
38
|
exports$1.DEBUG_BUILD &&
|
|
59
|
-
exports$1.
|
|
39
|
+
exports$1.debug.error(
|
|
60
40
|
`Error while triggering instrumentation handler.\nType: ${type}\nName: ${exports$1.getFunctionName(handler)}\nError:`,
|
|
61
41
|
e,
|
|
62
42
|
);
|
|
@@ -146,6 +126,26 @@ function instrumentUnhandledRejection() {
|
|
|
146
126
|
exports$1.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;
|
|
147
127
|
}
|
|
148
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Parse a sample rate from a given value.
|
|
131
|
+
* This will either return a boolean or number sample rate, if the sample rate is valid (between 0 and 1).
|
|
132
|
+
* If a string is passed, we try to convert it to a number.
|
|
133
|
+
*
|
|
134
|
+
* Any invalid sample rate will return `undefined`.
|
|
135
|
+
*/
|
|
136
|
+
function parseSampleRate(sampleRate) {
|
|
137
|
+
if (typeof sampleRate === 'boolean') {
|
|
138
|
+
return Number(sampleRate);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const rate = typeof sampleRate === 'string' ? parseFloat(sampleRate) : sampleRate;
|
|
142
|
+
if (typeof rate !== 'number' || isNaN(rate) || rate < 0 || rate > 1) {
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return rate;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
149
|
/**
|
|
150
150
|
* Creates an envelope.
|
|
151
151
|
* Make sure to always explicitly provide the generic to this function
|
|
@@ -224,7 +224,7 @@ function serializeEnvelope(envelope) {
|
|
|
224
224
|
let stringifiedPayload;
|
|
225
225
|
try {
|
|
226
226
|
stringifiedPayload = JSON.stringify(payload);
|
|
227
|
-
} catch
|
|
227
|
+
} catch {
|
|
228
228
|
// In case, despite all our efforts to keep `payload` circular-dependency-free, `JSON.stringify()` still
|
|
229
229
|
// fails, we try again after normalizing it again with infinite normalization depth. This of course has a
|
|
230
230
|
// performance impact but in this case a performance hit is better than throwing.
|
|
@@ -525,7 +525,7 @@ function afterSetupIntegrations(client, integrations) {
|
|
|
525
525
|
/** Setup a single integration. */
|
|
526
526
|
function setupIntegration(client, integration, integrationIndex) {
|
|
527
527
|
if (integrationIndex[integration.name]) {
|
|
528
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
528
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log(`Integration skipped because it was already installed: ${integration.name}`);
|
|
529
529
|
return;
|
|
530
530
|
}
|
|
531
531
|
integrationIndex[integration.name] = integration;
|
|
@@ -556,7 +556,7 @@ function setupIntegration(client, integration, integrationIndex) {
|
|
|
556
556
|
client.addEventProcessor(processor);
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
559
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log(`Integration installed: ${integration.name}`);
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
/**
|
|
@@ -567,6 +567,26 @@ function defineIntegration(fn) {
|
|
|
567
567
|
return fn;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
+
/**
|
|
571
|
+
* Creates client report envelope
|
|
572
|
+
* @param discarded_events An array of discard events
|
|
573
|
+
* @param dsn A DSN that can be set on the header. Optional.
|
|
574
|
+
*/
|
|
575
|
+
function createClientReportEnvelope(
|
|
576
|
+
discarded_events,
|
|
577
|
+
dsn,
|
|
578
|
+
timestamp,
|
|
579
|
+
) {
|
|
580
|
+
const clientReportItem = [
|
|
581
|
+
{ type: 'client_report' },
|
|
582
|
+
{
|
|
583
|
+
timestamp: exports$1.dateTimestampInSeconds(),
|
|
584
|
+
discarded_events,
|
|
585
|
+
},
|
|
586
|
+
];
|
|
587
|
+
return createEnvelope(dsn ? { dsn } : {}, [clientReportItem]);
|
|
588
|
+
}
|
|
589
|
+
|
|
570
590
|
/**
|
|
571
591
|
* Get a list of possible event messages from a Sentry event.
|
|
572
592
|
*/
|
|
@@ -586,7 +606,7 @@ function getPossibleEventMessages(event) {
|
|
|
586
606
|
possibleMessages.push(`${lastException.type}: ${lastException.value}`);
|
|
587
607
|
}
|
|
588
608
|
}
|
|
589
|
-
} catch
|
|
609
|
+
} catch {
|
|
590
610
|
// ignore errors here
|
|
591
611
|
}
|
|
592
612
|
|
|
@@ -645,26 +665,6 @@ function convertSpanJsonToTransactionEvent(span) {
|
|
|
645
665
|
};
|
|
646
666
|
}
|
|
647
667
|
|
|
648
|
-
/**
|
|
649
|
-
* Creates client report envelope
|
|
650
|
-
* @param discarded_events An array of discard events
|
|
651
|
-
* @param dsn A DSN that can be set on the header. Optional.
|
|
652
|
-
*/
|
|
653
|
-
function createClientReportEnvelope(
|
|
654
|
-
discarded_events,
|
|
655
|
-
dsn,
|
|
656
|
-
timestamp,
|
|
657
|
-
) {
|
|
658
|
-
const clientReportItem = [
|
|
659
|
-
{ type: 'client_report' },
|
|
660
|
-
{
|
|
661
|
-
timestamp: exports$1.dateTimestampInSeconds(),
|
|
662
|
-
discarded_events,
|
|
663
|
-
},
|
|
664
|
-
];
|
|
665
|
-
return createEnvelope(dsn ? { dsn } : {}, [clientReportItem]);
|
|
666
|
-
}
|
|
667
|
-
|
|
668
668
|
/* eslint-disable max-lines */
|
|
669
669
|
|
|
670
670
|
const ALREADY_SEEN_ERROR = "Not capturing exception because it's already been captured.";
|
|
@@ -755,7 +755,7 @@ class Client {
|
|
|
755
755
|
if (options.dsn) {
|
|
756
756
|
this._dsn = exports$1.makeDsn(options.dsn);
|
|
757
757
|
} else {
|
|
758
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
758
|
+
exports$1.DEBUG_BUILD && exports$1.debug.warn('No DSN provided, client will not send events.');
|
|
759
759
|
}
|
|
760
760
|
|
|
761
761
|
if (this._dsn) {
|
|
@@ -783,7 +783,7 @@ class Client {
|
|
|
783
783
|
|
|
784
784
|
// ensure we haven't captured this very object before
|
|
785
785
|
if (exports$1.checkOrSetAlreadyCaught(exception)) {
|
|
786
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
786
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log(ALREADY_SEEN_ERROR);
|
|
787
787
|
return eventId;
|
|
788
788
|
}
|
|
789
789
|
|
|
@@ -838,7 +838,7 @@ class Client {
|
|
|
838
838
|
|
|
839
839
|
// ensure we haven't captured this very object before
|
|
840
840
|
if (hint?.originalException && exports$1.checkOrSetAlreadyCaught(hint.originalException)) {
|
|
841
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
841
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log(ALREADY_SEEN_ERROR);
|
|
842
842
|
return eventId;
|
|
843
843
|
}
|
|
844
844
|
|
|
@@ -1029,7 +1029,7 @@ class Client {
|
|
|
1029
1029
|
if ('aggregates' in session) {
|
|
1030
1030
|
const sessionAttrs = session.attrs || {};
|
|
1031
1031
|
if (!sessionAttrs.release && !clientReleaseOption) {
|
|
1032
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1032
|
+
exports$1.DEBUG_BUILD && exports$1.debug.warn(MISSING_RELEASE_FOR_SESSION_ERROR);
|
|
1033
1033
|
return;
|
|
1034
1034
|
}
|
|
1035
1035
|
sessionAttrs.release = sessionAttrs.release || clientReleaseOption;
|
|
@@ -1037,7 +1037,7 @@ class Client {
|
|
|
1037
1037
|
session.attrs = sessionAttrs;
|
|
1038
1038
|
} else {
|
|
1039
1039
|
if (!session.release && !clientReleaseOption) {
|
|
1040
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1040
|
+
exports$1.DEBUG_BUILD && exports$1.debug.warn(MISSING_RELEASE_FOR_SESSION_ERROR);
|
|
1041
1041
|
return;
|
|
1042
1042
|
}
|
|
1043
1043
|
session.release = session.release || clientReleaseOption;
|
|
@@ -1065,7 +1065,7 @@ class Client {
|
|
|
1065
1065
|
// would be `Partial<Record<SentryRequestType, Partial<Record<Outcome, number>>>>`
|
|
1066
1066
|
// With typescript 4.1 we could even use template literal types
|
|
1067
1067
|
const key = `${reason}:${category}`;
|
|
1068
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1068
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log(`Recording outcome: "${key}"${count > 1 ? ` (${count} times)` : ''}`);
|
|
1069
1069
|
this._outcomes[key] = (this._outcomes[key] || 0) + count;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
@@ -1119,12 +1119,12 @@ class Client {
|
|
|
1119
1119
|
|
|
1120
1120
|
if (this._isEnabled() && this._transport) {
|
|
1121
1121
|
return this._transport.send(envelope).then(null, reason => {
|
|
1122
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1122
|
+
exports$1.DEBUG_BUILD && exports$1.debug.error('Error while sending envelope:', reason);
|
|
1123
1123
|
return reason;
|
|
1124
1124
|
});
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1127
|
+
exports$1.DEBUG_BUILD && exports$1.debug.error('Transport disabled');
|
|
1128
1128
|
|
|
1129
1129
|
return exports$1.resolvedSyncPromise({});
|
|
1130
1130
|
}
|
|
@@ -1274,7 +1274,7 @@ class Client {
|
|
|
1274
1274
|
isolationScope = exports$1.getIsolationScope(),
|
|
1275
1275
|
) {
|
|
1276
1276
|
if (exports$1.DEBUG_BUILD && isErrorEvent(event)) {
|
|
1277
|
-
exports$1.
|
|
1277
|
+
exports$1.debug.log(`Captured error event \`${getPossibleEventMessages(event)[0] || '<unknown>'}\``);
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
1280
|
return this._processEvent(event, hint, currentScope, isolationScope).then(
|
|
@@ -1284,11 +1284,11 @@ class Client {
|
|
|
1284
1284
|
reason => {
|
|
1285
1285
|
if (exports$1.DEBUG_BUILD) {
|
|
1286
1286
|
if (_isDoNotSendEventError(reason)) {
|
|
1287
|
-
exports$1.
|
|
1287
|
+
exports$1.debug.log(reason.message);
|
|
1288
1288
|
} else if (_isInternalError(reason)) {
|
|
1289
|
-
exports$1.
|
|
1289
|
+
exports$1.debug.warn(reason.message);
|
|
1290
1290
|
} else {
|
|
1291
|
-
exports$1.
|
|
1291
|
+
exports$1.debug.warn(reason);
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
return undefined;
|
|
@@ -1449,22 +1449,22 @@ class Client {
|
|
|
1449
1449
|
* Sends client reports as an envelope.
|
|
1450
1450
|
*/
|
|
1451
1451
|
_flushOutcomes() {
|
|
1452
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1452
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log('Flushing outcomes...');
|
|
1453
1453
|
|
|
1454
1454
|
const outcomes = this._clearOutcomes();
|
|
1455
1455
|
|
|
1456
1456
|
if (outcomes.length === 0) {
|
|
1457
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1457
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log('No outcomes to send');
|
|
1458
1458
|
return;
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
1461
|
// This is really the only place where we want to check for a DSN and only send outcomes then
|
|
1462
1462
|
if (!this._dsn) {
|
|
1463
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1463
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log('No dsn provided, will not send outcomes');
|
|
1464
1464
|
return;
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1467
|
+
exports$1.DEBUG_BUILD && exports$1.debug.log('Sending outcomes:', outcomes);
|
|
1468
1468
|
|
|
1469
1469
|
const envelope = createClientReportEnvelope(outcomes, this._options.tunnel && exports$1.dsnToString(this._dsn));
|
|
1470
1470
|
|
|
@@ -1625,9 +1625,6 @@ function createLogEnvelope(
|
|
|
1625
1625
|
return createEnvelope(headers, [createLogContainerEnvelopeItem(logs)]);
|
|
1626
1626
|
}
|
|
1627
1627
|
|
|
1628
|
-
// The reference to the Client <> LogBuffer map is stored to ensure it's always the same
|
|
1629
|
-
exports$1.GLOBAL_OBJ._sentryClientToLogBufferMap = new WeakMap();
|
|
1630
|
-
|
|
1631
1628
|
/**
|
|
1632
1629
|
* Flushes the logs buffer to Sentry.
|
|
1633
1630
|
*
|
|
@@ -1647,7 +1644,7 @@ function _INTERNAL_flushLogsBuffer(client, maybeLogBuffer) {
|
|
|
1647
1644
|
const envelope = createLogEnvelope(logBuffer, clientOptions._metadata, clientOptions.tunnel, client.getDsn());
|
|
1648
1645
|
|
|
1649
1646
|
// Clear the log buffer after envelopes have been constructed.
|
|
1650
|
-
|
|
1647
|
+
_getBufferMap().set(client, []);
|
|
1651
1648
|
|
|
1652
1649
|
client.emit('flushLogs');
|
|
1653
1650
|
|
|
@@ -1665,7 +1662,12 @@ function _INTERNAL_flushLogsBuffer(client, maybeLogBuffer) {
|
|
|
1665
1662
|
* @returns The log buffer for the given client.
|
|
1666
1663
|
*/
|
|
1667
1664
|
function _INTERNAL_getLogBuffer(client) {
|
|
1668
|
-
return
|
|
1665
|
+
return _getBufferMap().get(client);
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
function _getBufferMap() {
|
|
1669
|
+
// The reference to the Client <> LogBuffer map is stored on the carrier to ensure it's always the same
|
|
1670
|
+
return exports$1.getGlobalSingleton('clientToLogBufferMap', () => new WeakMap());
|
|
1669
1671
|
}
|
|
1670
1672
|
|
|
1671
1673
|
/** A class object that can instantiate Client objects. */
|
|
@@ -1683,9 +1685,9 @@ function initAndBind(
|
|
|
1683
1685
|
) {
|
|
1684
1686
|
if (options.debug === true) {
|
|
1685
1687
|
if (exports$1.DEBUG_BUILD) {
|
|
1686
|
-
exports$1.
|
|
1688
|
+
exports$1.debug.enable();
|
|
1687
1689
|
} else {
|
|
1688
|
-
// use `console.warn` rather than `
|
|
1690
|
+
// use `console.warn` rather than `debug.warn` since by non-debug bundles have all `debug.x` statements stripped
|
|
1689
1691
|
exports$1.consoleSandbox(() => {
|
|
1690
1692
|
// eslint-disable-next-line no-console
|
|
1691
1693
|
console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');
|
|
@@ -1961,7 +1963,7 @@ function createTransport(
|
|
|
1961
1963
|
response => {
|
|
1962
1964
|
// We don't want to throw on NOK responses, but we want to at least log them
|
|
1963
1965
|
if (response.statusCode !== undefined && (response.statusCode < 200 || response.statusCode >= 300)) {
|
|
1964
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1966
|
+
exports$1.DEBUG_BUILD && exports$1.debug.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
|
|
1965
1967
|
}
|
|
1966
1968
|
|
|
1967
1969
|
rateLimits = updateRateLimits(rateLimits, response);
|
|
@@ -1969,7 +1971,7 @@ function createTransport(
|
|
|
1969
1971
|
},
|
|
1970
1972
|
error => {
|
|
1971
1973
|
recordEnvelopeLoss('network_error');
|
|
1972
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1974
|
+
exports$1.DEBUG_BUILD && exports$1.debug.error('Encountered error running transport request:', error);
|
|
1973
1975
|
throw error;
|
|
1974
1976
|
},
|
|
1975
1977
|
);
|
|
@@ -1978,7 +1980,7 @@ function createTransport(
|
|
|
1978
1980
|
result => result,
|
|
1979
1981
|
error => {
|
|
1980
1982
|
if (error === SENTRY_BUFFER_FULL_ERROR) {
|
|
1981
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
1983
|
+
exports$1.DEBUG_BUILD && exports$1.debug.error('Skipped sending event because buffer is full.');
|
|
1982
1984
|
recordEnvelopeLoss('queue_overflow');
|
|
1983
1985
|
return exports$1.resolvedSyncPromise({});
|
|
1984
1986
|
} else {
|
|
@@ -2235,14 +2237,14 @@ function _shouldDropEvent$1(event, options) {
|
|
|
2235
2237
|
// Filter errors
|
|
2236
2238
|
if (_isIgnoredError(event, options.ignoreErrors)) {
|
|
2237
2239
|
exports$1.DEBUG_BUILD &&
|
|
2238
|
-
exports$1.
|
|
2240
|
+
exports$1.debug.warn(
|
|
2239
2241
|
`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${exports$1.getEventDescription(event)}`,
|
|
2240
2242
|
);
|
|
2241
2243
|
return true;
|
|
2242
2244
|
}
|
|
2243
2245
|
if (_isUselessError(event)) {
|
|
2244
2246
|
exports$1.DEBUG_BUILD &&
|
|
2245
|
-
exports$1.
|
|
2247
|
+
exports$1.debug.warn(
|
|
2246
2248
|
`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${exports$1.getEventDescription(
|
|
2247
2249
|
event,
|
|
2248
2250
|
)}`,
|
|
@@ -2251,7 +2253,7 @@ function _shouldDropEvent$1(event, options) {
|
|
|
2251
2253
|
}
|
|
2252
2254
|
if (_isDeniedUrl(event, options.denyUrls)) {
|
|
2253
2255
|
exports$1.DEBUG_BUILD &&
|
|
2254
|
-
exports$1.
|
|
2256
|
+
exports$1.debug.warn(
|
|
2255
2257
|
`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${exports$1.getEventDescription(
|
|
2256
2258
|
event,
|
|
2257
2259
|
)}.\nUrl: ${_getEventFilterUrl(event)}`,
|
|
@@ -2260,7 +2262,7 @@ function _shouldDropEvent$1(event, options) {
|
|
|
2260
2262
|
}
|
|
2261
2263
|
if (!_isAllowedUrl(event, options.allowUrls)) {
|
|
2262
2264
|
exports$1.DEBUG_BUILD &&
|
|
2263
|
-
exports$1.
|
|
2265
|
+
exports$1.debug.warn(
|
|
2264
2266
|
`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${exports$1.getEventDescription(
|
|
2265
2267
|
event,
|
|
2266
2268
|
)}.\nUrl: ${_getEventFilterUrl(event)}`,
|
|
@@ -2272,7 +2274,7 @@ function _shouldDropEvent$1(event, options) {
|
|
|
2272
2274
|
|
|
2273
2275
|
if (_isIgnoredTransaction(event, options.ignoreTransactions)) {
|
|
2274
2276
|
exports$1.DEBUG_BUILD &&
|
|
2275
|
-
exports$1.
|
|
2277
|
+
exports$1.debug.warn(
|
|
2276
2278
|
`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${exports$1.getEventDescription(event)}`,
|
|
2277
2279
|
);
|
|
2278
2280
|
return true;
|
|
@@ -2335,8 +2337,8 @@ function _getEventFilterUrl(event) {
|
|
|
2335
2337
|
.find(value => value.mechanism?.parent_id === undefined && value.stacktrace?.frames?.length);
|
|
2336
2338
|
const frames = rootException?.stacktrace?.frames;
|
|
2337
2339
|
return frames ? _getLastValidUrl(frames) : null;
|
|
2338
|
-
} catch
|
|
2339
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
2340
|
+
} catch {
|
|
2341
|
+
exports$1.DEBUG_BUILD && exports$1.debug.error(`Cannot extract url for event ${exports$1.getEventDescription(event)}`);
|
|
2340
2342
|
return null;
|
|
2341
2343
|
}
|
|
2342
2344
|
}
|
|
@@ -2543,10 +2545,10 @@ const _dedupeIntegration = (() => {
|
|
|
2543
2545
|
// Juuust in case something goes wrong
|
|
2544
2546
|
try {
|
|
2545
2547
|
if (_shouldDropEvent(currentEvent, previousEvent)) {
|
|
2546
|
-
exports$1.DEBUG_BUILD && exports$1.
|
|
2548
|
+
exports$1.DEBUG_BUILD && exports$1.debug.warn('Event dropped due to being a duplicate of previously captured event.');
|
|
2547
2549
|
return null;
|
|
2548
2550
|
}
|
|
2549
|
-
} catch
|
|
2551
|
+
} catch {} // eslint-disable-line no-empty
|
|
2550
2552
|
|
|
2551
2553
|
return (previousEvent = currentEvent);
|
|
2552
2554
|
},
|
|
@@ -2689,13 +2691,13 @@ function _isSameFingerprint(currentEvent, previousEvent) {
|
|
|
2689
2691
|
// Otherwise, compare the two
|
|
2690
2692
|
try {
|
|
2691
2693
|
return !!(currentFingerprint.join('') === previousFingerprint.join(''));
|
|
2692
|
-
} catch
|
|
2694
|
+
} catch {
|
|
2693
2695
|
return false;
|
|
2694
2696
|
}
|
|
2695
2697
|
}
|
|
2696
2698
|
|
|
2697
2699
|
function _getExceptionFromEvent(event) {
|
|
2698
|
-
return event.exception?.values
|
|
2700
|
+
return event.exception?.values?.[0];
|
|
2699
2701
|
}
|
|
2700
2702
|
|
|
2701
2703
|
/**
|
|
@@ -2767,7 +2769,7 @@ function _isFetchSupported() {
|
|
|
2767
2769
|
new Request('http://www.example.com');
|
|
2768
2770
|
new Response();
|
|
2769
2771
|
return true;
|
|
2770
|
-
} catch
|
|
2772
|
+
} catch {
|
|
2771
2773
|
return false;
|
|
2772
2774
|
}
|
|
2773
2775
|
}
|
|
@@ -2817,8 +2819,7 @@ function supportsNativeFetch() {
|
|
|
2817
2819
|
}
|
|
2818
2820
|
doc.head.removeChild(sandbox);
|
|
2819
2821
|
} catch (err) {
|
|
2820
|
-
exports$1.DEBUG_BUILD &&
|
|
2821
|
-
exports$1.logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);
|
|
2822
|
+
exports$1.DEBUG_BUILD && exports$1.debug.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);
|
|
2822
2823
|
}
|
|
2823
2824
|
}
|
|
2824
2825
|
|
|
@@ -3013,7 +3014,7 @@ function getHeadersFromFetchArgs(fetchArgs) {
|
|
|
3013
3014
|
* constants, which can be overridden during build. By guarding certain pieces of code with functions that return these
|
|
3014
3015
|
* constants, we can control whether or not they appear in the final bundle. (Any code guarded by a false condition will
|
|
3015
3016
|
* never run, and will hence be dropped during treeshaking.) The two primary uses for this are stripping out calls to
|
|
3016
|
-
* `
|
|
3017
|
+
* `debug` and preventing node-related code from appearing in browser bundles.
|
|
3017
3018
|
*
|
|
3018
3019
|
* Attention:
|
|
3019
3020
|
* This file should not be used to define constants/flags that are intended to be used for tree-shaking conducted by
|
|
@@ -3104,7 +3105,7 @@ function wrap(
|
|
|
3104
3105
|
if (exports$1.getOriginalFunction(fn)) {
|
|
3105
3106
|
return fn;
|
|
3106
3107
|
}
|
|
3107
|
-
} catch
|
|
3108
|
+
} catch {
|
|
3108
3109
|
// Just accessing custom props in some Selenium environments
|
|
3109
3110
|
// can cause a "Permission denied" exception (see raven-js#495).
|
|
3110
3111
|
// Bail on wrapping and return the function as-is (defers to window.onerror).
|
|
@@ -3301,7 +3302,7 @@ function parseStackFrames(
|
|
|
3301
3302
|
|
|
3302
3303
|
try {
|
|
3303
3304
|
return stackParser(stacktrace, skipLines, framesToPop);
|
|
3304
|
-
} catch
|
|
3305
|
+
} catch {
|
|
3305
3306
|
// no-empty
|
|
3306
3307
|
}
|
|
3307
3308
|
|
|
@@ -3573,7 +3574,7 @@ function getObjectClassName(obj) {
|
|
|
3573
3574
|
try {
|
|
3574
3575
|
const prototype = Object.getPrototypeOf(obj);
|
|
3575
3576
|
return prototype ? prototype.constructor.name : undefined;
|
|
3576
|
-
} catch
|
|
3577
|
+
} catch {
|
|
3577
3578
|
// ignore errors here
|
|
3578
3579
|
}
|
|
3579
3580
|
}
|
|
@@ -3592,13 +3593,12 @@ function getErrorPropertyFromObject(obj) {
|
|
|
3592
3593
|
return undefined;
|
|
3593
3594
|
}
|
|
3594
3595
|
|
|
3595
|
-
const DEFAULT_FLUSH_INTERVAL = 5000;
|
|
3596
|
-
|
|
3597
3596
|
/**
|
|
3598
|
-
*
|
|
3599
|
-
* @see @sentry/core Options for more information.
|
|
3597
|
+
* A magic string that build tooling can leverage in order to inject a release value into the SDK.
|
|
3600
3598
|
*/
|
|
3601
3599
|
|
|
3600
|
+
const DEFAULT_FLUSH_INTERVAL = 5000;
|
|
3601
|
+
|
|
3602
3602
|
/**
|
|
3603
3603
|
* The Sentry Browser SDK Client.
|
|
3604
3604
|
*
|
|
@@ -3613,51 +3613,48 @@ class BrowserClient extends Client {
|
|
|
3613
3613
|
* @param options Configuration options for this SDK.
|
|
3614
3614
|
*/
|
|
3615
3615
|
constructor(options) {
|
|
3616
|
-
const opts =
|
|
3617
|
-
// We default this to true, as it is the safer scenario
|
|
3618
|
-
parentSpanIsAlwaysRootSpan: true,
|
|
3619
|
-
...options,
|
|
3620
|
-
};
|
|
3616
|
+
const opts = applyDefaultOptions(options);
|
|
3621
3617
|
const sdkSource = WINDOW$1.SENTRY_SDK_SOURCE || getSDKSource();
|
|
3622
3618
|
applySdkMetadata(opts, 'browser', ['browser'], sdkSource);
|
|
3623
3619
|
|
|
3624
3620
|
super(opts);
|
|
3625
3621
|
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
const
|
|
3629
|
-
const enableLogs = _experiments?.enableLogs;
|
|
3622
|
+
const { sendDefaultPii, sendClientReports, enableLogs, _experiments } = this._options;
|
|
3623
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
3624
|
+
const shouldEnableLogs = enableLogs ?? _experiments?.enableLogs;
|
|
3630
3625
|
|
|
3631
|
-
if (
|
|
3626
|
+
if (WINDOW$1.document && (sendClientReports || shouldEnableLogs)) {
|
|
3632
3627
|
WINDOW$1.document.addEventListener('visibilitychange', () => {
|
|
3633
3628
|
if (WINDOW$1.document.visibilityState === 'hidden') {
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3629
|
+
if (sendClientReports) {
|
|
3630
|
+
this._flushOutcomes();
|
|
3631
|
+
}
|
|
3632
|
+
if (shouldEnableLogs) {
|
|
3633
|
+
_INTERNAL_flushLogsBuffer(this);
|
|
3637
3634
|
}
|
|
3638
3635
|
}
|
|
3639
3636
|
});
|
|
3640
3637
|
}
|
|
3641
3638
|
|
|
3642
|
-
if (
|
|
3643
|
-
|
|
3644
|
-
_INTERNAL_flushLogsBuffer(
|
|
3639
|
+
if (shouldEnableLogs) {
|
|
3640
|
+
this.on('flush', () => {
|
|
3641
|
+
_INTERNAL_flushLogsBuffer(this);
|
|
3645
3642
|
});
|
|
3646
3643
|
|
|
3647
|
-
|
|
3648
|
-
if (
|
|
3649
|
-
clearTimeout(
|
|
3644
|
+
this.on('afterCaptureLog', () => {
|
|
3645
|
+
if (this._logFlushIdleTimeout) {
|
|
3646
|
+
clearTimeout(this._logFlushIdleTimeout);
|
|
3650
3647
|
}
|
|
3651
3648
|
|
|
3652
|
-
|
|
3653
|
-
_INTERNAL_flushLogsBuffer(
|
|
3649
|
+
this._logFlushIdleTimeout = setTimeout(() => {
|
|
3650
|
+
_INTERNAL_flushLogsBuffer(this);
|
|
3654
3651
|
}, DEFAULT_FLUSH_INTERVAL);
|
|
3655
3652
|
});
|
|
3656
3653
|
}
|
|
3657
3654
|
|
|
3658
3655
|
if (sendDefaultPii) {
|
|
3659
|
-
|
|
3660
|
-
|
|
3656
|
+
this.on('postprocessEvent', addAutoIpAddressToUser);
|
|
3657
|
+
this.on('beforeSendSession', addAutoIpAddressToSession);
|
|
3661
3658
|
}
|
|
3662
3659
|
}
|
|
3663
3660
|
|
|
@@ -3694,6 +3691,20 @@ class BrowserClient extends Client {
|
|
|
3694
3691
|
}
|
|
3695
3692
|
}
|
|
3696
3693
|
|
|
3694
|
+
/** Exported only for tests. */
|
|
3695
|
+
function applyDefaultOptions(optionsArg) {
|
|
3696
|
+
return {
|
|
3697
|
+
release:
|
|
3698
|
+
typeof __SENTRY_RELEASE__ === 'string' // This allows build tooling to find-and-replace __SENTRY_RELEASE__ to inject a release value
|
|
3699
|
+
? __SENTRY_RELEASE__
|
|
3700
|
+
: WINDOW$1.SENTRY_RELEASE?.id, // This supports the variable that sentry-webpack-plugin injects
|
|
3701
|
+
sendClientReports: true,
|
|
3702
|
+
// We default this to true, as it is the safer scenario
|
|
3703
|
+
parentSpanIsAlwaysRootSpan: true,
|
|
3704
|
+
...optionsArg,
|
|
3705
|
+
};
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3697
3708
|
/**
|
|
3698
3709
|
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
3699
3710
|
*
|
|
@@ -3766,7 +3777,7 @@ function instrumentDOM() {
|
|
|
3766
3777
|
}
|
|
3767
3778
|
|
|
3768
3779
|
handlerForType.refCount++;
|
|
3769
|
-
} catch
|
|
3780
|
+
} catch {
|
|
3770
3781
|
// Accessing dom properties is always fragile.
|
|
3771
3782
|
// Also allows us to skip `addEventListeners` calls with no proper `this` context.
|
|
3772
3783
|
}
|
|
@@ -3800,7 +3811,7 @@ function instrumentDOM() {
|
|
|
3800
3811
|
delete this.__sentry_instrumentation_handlers__;
|
|
3801
3812
|
}
|
|
3802
3813
|
}
|
|
3803
|
-
} catch
|
|
3814
|
+
} catch {
|
|
3804
3815
|
// Accessing dom properties is always fragile.
|
|
3805
3816
|
// Also allows us to skip `addEventListeners` calls with no proper `this` context.
|
|
3806
3817
|
}
|
|
@@ -3828,7 +3839,7 @@ function isSimilarToLastCapturedEvent(event) {
|
|
|
3828
3839
|
if (!event.target || (event.target )._sentryId !== lastCapturedEventTargetId) {
|
|
3829
3840
|
return false;
|
|
3830
3841
|
}
|
|
3831
|
-
} catch
|
|
3842
|
+
} catch {
|
|
3832
3843
|
// just accessing `target` property can throw an exception in some rare circumstances
|
|
3833
3844
|
// see: https://github.com/getsentry/sentry-javascript/issues/838
|
|
3834
3845
|
}
|
|
@@ -3916,7 +3927,7 @@ function makeDOMEventHandler(
|
|
|
3916
3927
|
function getEventTarget(event) {
|
|
3917
3928
|
try {
|
|
3918
3929
|
return event.target ;
|
|
3919
|
-
} catch
|
|
3930
|
+
} catch {
|
|
3920
3931
|
// just accessing `target` property can throw an exception in some rare circumstances
|
|
3921
3932
|
// see: https://github.com/getsentry/sentry-javascript/issues/838
|
|
3922
3933
|
return null;
|
|
@@ -4051,7 +4062,7 @@ function getNativeImplementation(
|
|
|
4051
4062
|
document.head.removeChild(sandbox);
|
|
4052
4063
|
} catch (e) {
|
|
4053
4064
|
// Could not create sandbox iframe, just use window.xxx
|
|
4054
|
-
DEBUG_BUILD$1 && exports$1.
|
|
4065
|
+
DEBUG_BUILD$1 && exports$1.debug.warn(`Could not create sandbox iframe for ${name} check, bailing to window.${name}: `, e);
|
|
4055
4066
|
}
|
|
4056
4067
|
}
|
|
4057
4068
|
|
|
@@ -4144,7 +4155,7 @@ function instrumentXHR() {
|
|
|
4144
4155
|
// touching statusCode in some platforms throws
|
|
4145
4156
|
// an exception
|
|
4146
4157
|
xhrInfo.status_code = xhrOpenThisArg.status;
|
|
4147
|
-
} catch
|
|
4158
|
+
} catch {
|
|
4148
4159
|
/* do nothing */
|
|
4149
4160
|
}
|
|
4150
4161
|
|
|
@@ -4282,7 +4293,7 @@ function makeFetchTransport(
|
|
|
4282
4293
|
}
|
|
4283
4294
|
|
|
4284
4295
|
try {
|
|
4285
|
-
//
|
|
4296
|
+
// Note: We do not need to suppress tracing here, becasue we are using the native fetch, instead of our wrapped one.
|
|
4286
4297
|
return nativeFetch(options.url, requestOptions).then(response => {
|
|
4287
4298
|
pendingBodySize -= requestSize;
|
|
4288
4299
|
pendingCount--;
|
|
@@ -4544,7 +4555,7 @@ function _getDomBreadcrumbHandler(
|
|
|
4544
4555
|
typeof dom === 'object' && typeof dom.maxStringLength === 'number' ? dom.maxStringLength : undefined;
|
|
4545
4556
|
if (maxStringLength && maxStringLength > MAX_ALLOWED_STRING_LENGTH) {
|
|
4546
4557
|
DEBUG_BUILD &&
|
|
4547
|
-
exports$1.
|
|
4558
|
+
exports$1.debug.warn(
|
|
4548
4559
|
`\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${maxStringLength} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`,
|
|
4549
4560
|
);
|
|
4550
4561
|
maxStringLength = MAX_ALLOWED_STRING_LENGTH;
|
|
@@ -4561,7 +4572,7 @@ function _getDomBreadcrumbHandler(
|
|
|
4561
4572
|
|
|
4562
4573
|
target = exports$1.htmlTreeAsString(element, { keyAttrs, maxStringLength });
|
|
4563
4574
|
componentName = exports$1.getComponentName(element);
|
|
4564
|
-
} catch
|
|
4575
|
+
} catch {
|
|
4565
4576
|
target = '<unknown>';
|
|
4566
4577
|
}
|
|
4567
4578
|
|
|
@@ -4822,6 +4833,7 @@ const _browserApiErrorsIntegration = ((options = {}) => {
|
|
|
4822
4833
|
requestAnimationFrame: true,
|
|
4823
4834
|
setInterval: true,
|
|
4824
4835
|
setTimeout: true,
|
|
4836
|
+
unregisterOriginalCallbacks: false,
|
|
4825
4837
|
...options,
|
|
4826
4838
|
};
|
|
4827
4839
|
|
|
@@ -4849,7 +4861,7 @@ const _browserApiErrorsIntegration = ((options = {}) => {
|
|
|
4849
4861
|
const eventTargetOption = _options.eventTarget;
|
|
4850
4862
|
if (eventTargetOption) {
|
|
4851
4863
|
const eventTarget = Array.isArray(eventTargetOption) ? eventTargetOption : DEFAULT_EVENT_TARGET;
|
|
4852
|
-
eventTarget.forEach(_wrapEventTarget);
|
|
4864
|
+
eventTarget.forEach(target => _wrapEventTarget(target, _options));
|
|
4853
4865
|
}
|
|
4854
4866
|
},
|
|
4855
4867
|
};
|
|
@@ -4927,7 +4939,7 @@ function _wrapXHR(originalSend) {
|
|
|
4927
4939
|
};
|
|
4928
4940
|
}
|
|
4929
4941
|
|
|
4930
|
-
function _wrapEventTarget(target) {
|
|
4942
|
+
function _wrapEventTarget(target, integrationOptions) {
|
|
4931
4943
|
const globalObject = WINDOW$1 ;
|
|
4932
4944
|
const proto = globalObject[target]?.prototype;
|
|
4933
4945
|
|
|
@@ -4964,6 +4976,10 @@ function _wrapEventTarget(target) {
|
|
|
4964
4976
|
// can sometimes get 'Permission denied to access property "handle Event'
|
|
4965
4977
|
}
|
|
4966
4978
|
|
|
4979
|
+
if (integrationOptions.unregisterOriginalCallbacks) {
|
|
4980
|
+
unregisterOriginalCallback(this, eventName, fn);
|
|
4981
|
+
}
|
|
4982
|
+
|
|
4967
4983
|
return original.apply(this, [
|
|
4968
4984
|
eventName,
|
|
4969
4985
|
wrap(fn, {
|
|
@@ -5008,7 +5024,7 @@ function _wrapEventTarget(target) {
|
|
|
5008
5024
|
if (originalEventHandler) {
|
|
5009
5025
|
originalRemoveEventListener.call(this, eventName, originalEventHandler, options);
|
|
5010
5026
|
}
|
|
5011
|
-
} catch
|
|
5027
|
+
} catch {
|
|
5012
5028
|
// ignore, accessing __sentry_wrapped__ will throw in some Selenium environments
|
|
5013
5029
|
}
|
|
5014
5030
|
return originalRemoveEventListener.call(this, eventName, fn, options);
|
|
@@ -5020,6 +5036,17 @@ function isEventListenerObject(obj) {
|
|
|
5020
5036
|
return typeof (obj ).handleEvent === 'function';
|
|
5021
5037
|
}
|
|
5022
5038
|
|
|
5039
|
+
function unregisterOriginalCallback(target, eventName, fn) {
|
|
5040
|
+
if (
|
|
5041
|
+
target &&
|
|
5042
|
+
typeof target === 'object' &&
|
|
5043
|
+
'removeEventListener' in target &&
|
|
5044
|
+
typeof target.removeEventListener === 'function'
|
|
5045
|
+
) {
|
|
5046
|
+
target.removeEventListener(eventName, fn);
|
|
5047
|
+
}
|
|
5048
|
+
}
|
|
5049
|
+
|
|
5023
5050
|
/**
|
|
5024
5051
|
* When added, automatically creates sessions which allow you to track adoption and crashes (crash free rate) in your Releases in Sentry.
|
|
5025
5052
|
* More information: https://docs.sentry.io/product/releases/health/
|
|
@@ -5032,7 +5059,7 @@ const browserSessionIntegration = defineIntegration(() => {
|
|
|
5032
5059
|
setupOnce() {
|
|
5033
5060
|
if (typeof WINDOW$1.document === 'undefined') {
|
|
5034
5061
|
DEBUG_BUILD &&
|
|
5035
|
-
exports$1.
|
|
5062
|
+
exports$1.debug.warn('Using the `browserSessionIntegration` in non-browser environments is not supported.');
|
|
5036
5063
|
return;
|
|
5037
5064
|
}
|
|
5038
5065
|
|
|
@@ -5222,7 +5249,7 @@ function _enhanceEventWithInitialFrame(
|
|
|
5222
5249
|
}
|
|
5223
5250
|
|
|
5224
5251
|
function globalHandlerLog(type) {
|
|
5225
|
-
DEBUG_BUILD && exports$1.
|
|
5252
|
+
DEBUG_BUILD && exports$1.debug.log(`Global Handler attached: ${type}`);
|
|
5226
5253
|
}
|
|
5227
5254
|
|
|
5228
5255
|
function getOptions() {
|
|
@@ -5294,6 +5321,57 @@ const _linkedErrorsIntegration = ((options = {}) => {
|
|
|
5294
5321
|
*/
|
|
5295
5322
|
const linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);
|
|
5296
5323
|
|
|
5324
|
+
/**
|
|
5325
|
+
* Returns true if the SDK is running in an embedded browser extension.
|
|
5326
|
+
* Stand-alone browser extensions (which do not share the same data as the main browser page) are fine.
|
|
5327
|
+
*/
|
|
5328
|
+
function checkAndWarnIfIsEmbeddedBrowserExtension() {
|
|
5329
|
+
if (_isEmbeddedBrowserExtension()) {
|
|
5330
|
+
if (DEBUG_BUILD) {
|
|
5331
|
+
exports$1.consoleSandbox(() => {
|
|
5332
|
+
// eslint-disable-next-line no-console
|
|
5333
|
+
console.error(
|
|
5334
|
+
'[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/',
|
|
5335
|
+
);
|
|
5336
|
+
});
|
|
5337
|
+
}
|
|
5338
|
+
|
|
5339
|
+
return true;
|
|
5340
|
+
}
|
|
5341
|
+
|
|
5342
|
+
return false;
|
|
5343
|
+
}
|
|
5344
|
+
|
|
5345
|
+
function _isEmbeddedBrowserExtension() {
|
|
5346
|
+
if (typeof WINDOW$1.window === 'undefined') {
|
|
5347
|
+
// No need to show the error if we're not in a browser window environment (e.g. service workers)
|
|
5348
|
+
return false;
|
|
5349
|
+
}
|
|
5350
|
+
|
|
5351
|
+
const _window = WINDOW$1 ;
|
|
5352
|
+
|
|
5353
|
+
// Running the SDK in NW.js, which appears like a browser extension but isn't, is also fine
|
|
5354
|
+
// see: https://github.com/getsentry/sentry-javascript/issues/12668
|
|
5355
|
+
if (_window.nw) {
|
|
5356
|
+
return false;
|
|
5357
|
+
}
|
|
5358
|
+
|
|
5359
|
+
const extensionObject = _window['chrome'] || _window['browser'];
|
|
5360
|
+
|
|
5361
|
+
if (!extensionObject?.runtime?.id) {
|
|
5362
|
+
return false;
|
|
5363
|
+
}
|
|
5364
|
+
|
|
5365
|
+
const href = exports$1.getLocationHref();
|
|
5366
|
+
const extensionProtocols = ['chrome-extension', 'moz-extension', 'ms-browser-extension', 'safari-web-extension'];
|
|
5367
|
+
|
|
5368
|
+
// Running the SDK in a dedicated extension page and calling Sentry.init is fine; no risk of data leakage
|
|
5369
|
+
const isDedicatedExtensionPage =
|
|
5370
|
+
WINDOW$1 === WINDOW$1.top && extensionProtocols.some(protocol => href.startsWith(`${protocol}://`));
|
|
5371
|
+
|
|
5372
|
+
return !isDedicatedExtensionPage;
|
|
5373
|
+
}
|
|
5374
|
+
|
|
5297
5375
|
/** Get the default integrations for the browser SDK. */
|
|
5298
5376
|
function getDefaultIntegrations(_options) {
|
|
5299
5377
|
/**
|
|
@@ -5315,40 +5393,6 @@ function getDefaultIntegrations(_options) {
|
|
|
5315
5393
|
];
|
|
5316
5394
|
}
|
|
5317
5395
|
|
|
5318
|
-
/** Exported only for tests. */
|
|
5319
|
-
function applyDefaultOptions(optionsArg = {}) {
|
|
5320
|
-
const defaultOptions = {
|
|
5321
|
-
defaultIntegrations: getDefaultIntegrations(),
|
|
5322
|
-
release:
|
|
5323
|
-
typeof __SENTRY_RELEASE__ === 'string' // This allows build tooling to find-and-replace __SENTRY_RELEASE__ to inject a release value
|
|
5324
|
-
? __SENTRY_RELEASE__
|
|
5325
|
-
: WINDOW$1.SENTRY_RELEASE?.id, // This supports the variable that sentry-webpack-plugin injects
|
|
5326
|
-
sendClientReports: true,
|
|
5327
|
-
};
|
|
5328
|
-
|
|
5329
|
-
return {
|
|
5330
|
-
...defaultOptions,
|
|
5331
|
-
...dropTopLevelUndefinedKeys(optionsArg),
|
|
5332
|
-
};
|
|
5333
|
-
}
|
|
5334
|
-
|
|
5335
|
-
/**
|
|
5336
|
-
* In contrast to the regular `dropUndefinedKeys` method,
|
|
5337
|
-
* this one does not deep-drop keys, but only on the top level.
|
|
5338
|
-
*/
|
|
5339
|
-
function dropTopLevelUndefinedKeys(obj) {
|
|
5340
|
-
const mutatetedObj = {};
|
|
5341
|
-
|
|
5342
|
-
for (const k of Object.getOwnPropertyNames(obj)) {
|
|
5343
|
-
const key = k ;
|
|
5344
|
-
if (obj[key] !== undefined) {
|
|
5345
|
-
mutatetedObj[key] = obj[key];
|
|
5346
|
-
}
|
|
5347
|
-
}
|
|
5348
|
-
|
|
5349
|
-
return mutatetedObj;
|
|
5350
|
-
}
|
|
5351
|
-
|
|
5352
5396
|
/**
|
|
5353
5397
|
* The Sentry Browser SDK Client.
|
|
5354
5398
|
*
|
|
@@ -5395,70 +5439,27 @@ function dropTopLevelUndefinedKeys(obj) {
|
|
|
5395
5439
|
*
|
|
5396
5440
|
* @see {@link BrowserOptions} for documentation on configuration options.
|
|
5397
5441
|
*/
|
|
5398
|
-
function init(
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
}
|
|
5442
|
+
function init$1(options = {}) {
|
|
5443
|
+
const shouldDisableBecauseIsBrowserExtenstion =
|
|
5444
|
+
!options.skipBrowserExtensionCheck && checkAndWarnIfIsEmbeddedBrowserExtension();
|
|
5402
5445
|
|
|
5403
|
-
const options = applyDefaultOptions(browserOptions);
|
|
5404
5446
|
const clientOptions = {
|
|
5405
5447
|
...options,
|
|
5448
|
+
enabled: shouldDisableBecauseIsBrowserExtenstion ? false : options.enabled,
|
|
5406
5449
|
stackParser: exports$1.stackParserFromStackParserOptions(options.stackParser || defaultStackParser),
|
|
5407
|
-
integrations: getIntegrationsToSetup(
|
|
5450
|
+
integrations: getIntegrationsToSetup({
|
|
5451
|
+
integrations: options.integrations,
|
|
5452
|
+
defaultIntegrations:
|
|
5453
|
+
options.defaultIntegrations == null ? getDefaultIntegrations() : options.defaultIntegrations,
|
|
5454
|
+
}),
|
|
5408
5455
|
transport: options.transport || makeFetchTransport,
|
|
5409
5456
|
};
|
|
5410
|
-
|
|
5411
5457
|
return initAndBind(BrowserClient, clientOptions);
|
|
5412
5458
|
}
|
|
5413
5459
|
|
|
5414
|
-
function
|
|
5415
|
-
if (typeof WINDOW$1.window === 'undefined') {
|
|
5416
|
-
// No need to show the error if we're not in a browser window environment (e.g. service workers)
|
|
5417
|
-
return false;
|
|
5418
|
-
}
|
|
5419
|
-
|
|
5420
|
-
const _window = WINDOW$1 ;
|
|
5421
|
-
|
|
5422
|
-
// Running the SDK in NW.js, which appears like a browser extension but isn't, is also fine
|
|
5423
|
-
// see: https://github.com/getsentry/sentry-javascript/issues/12668
|
|
5424
|
-
if (_window.nw) {
|
|
5425
|
-
return false;
|
|
5426
|
-
}
|
|
5427
|
-
|
|
5428
|
-
const extensionObject = _window['chrome'] || _window['browser'];
|
|
5429
|
-
|
|
5430
|
-
if (!extensionObject?.runtime?.id) {
|
|
5431
|
-
return false;
|
|
5432
|
-
}
|
|
5433
|
-
|
|
5434
|
-
const href = exports$1.getLocationHref();
|
|
5435
|
-
const extensionProtocols = ['chrome-extension', 'moz-extension', 'ms-browser-extension', 'safari-web-extension'];
|
|
5436
|
-
|
|
5437
|
-
// Running the SDK in a dedicated extension page and calling Sentry.init is fine; no risk of data leakage
|
|
5438
|
-
const isDedicatedExtensionPage =
|
|
5439
|
-
WINDOW$1 === WINDOW$1.top && extensionProtocols.some(protocol => href.startsWith(`${protocol}://`));
|
|
5440
|
-
|
|
5441
|
-
return !isDedicatedExtensionPage;
|
|
5442
|
-
}
|
|
5443
|
-
|
|
5444
|
-
function _checkForBrowserExtension() {
|
|
5445
|
-
if (_isEmbeddedBrowserExtension()) {
|
|
5446
|
-
if (DEBUG_BUILD) {
|
|
5447
|
-
exports$1.consoleSandbox(() => {
|
|
5448
|
-
// eslint-disable-next-line no-console
|
|
5449
|
-
console.error(
|
|
5450
|
-
'[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/',
|
|
5451
|
-
);
|
|
5452
|
-
});
|
|
5453
|
-
}
|
|
5454
|
-
|
|
5455
|
-
return true;
|
|
5456
|
-
}
|
|
5457
|
-
}
|
|
5458
|
-
|
|
5459
|
-
async function appGlobalScript () {
|
|
5460
|
+
async function init () {
|
|
5460
5461
|
return await new Promise((resolve) => {
|
|
5461
|
-
init({
|
|
5462
|
+
init$1({
|
|
5462
5463
|
dsn: "https://d4dd33313afbf480bb76f965a5dcc733@sentry.ylzhaopin.com/9",
|
|
5463
5464
|
integrations: [],
|
|
5464
5465
|
beforeSend(event) {
|
|
@@ -5479,9 +5480,7 @@ async function appGlobalScript () {
|
|
|
5479
5480
|
});
|
|
5480
5481
|
}
|
|
5481
5482
|
|
|
5483
|
+
const appGlobalScript = init || (() => {});
|
|
5482
5484
|
const globalScripts = appGlobalScript;
|
|
5483
5485
|
|
|
5484
5486
|
exports.globalScripts = globalScripts;
|
|
5485
|
-
//# sourceMappingURL=app-globals-BIO4q6tX.js.map
|
|
5486
|
-
|
|
5487
|
-
//# sourceMappingURL=app-globals-BIO4q6tX.js.map
|