export default class SentryScopeProxy { event : any ; hint : any ; extra : Record < string , any > ; fingerprint : ( string | number ) [ ] | undefined ; constructor ( ) { this . extra = { } ; } static processEvent ( event , hint ) { if ( hint . originalException . sentryScope ) { hint . originalException . sentryScope . addTo ( event ) ; } return event ; } setExtra ( key , value ) { this . extra [ key ] = value ; } setFingerprint ( fingerprint ) { this . fingerprint = fingerprint ; } addTo ( event ) { event . extra = Object . assign ( event . extra , this . extra ) ; if ( this . fingerprint ) { event . fingerprint = this . fingerprint ; } } }