http-app/node_modules/raven-js/dist/angular,console/raven.js
// since JSON is required to encode the payload
since JSON is required to encode the payload
since JSON is required to encode the payload
function Raven() {
  this._hasJSON = !!(typeof JSON === 'object' && JSON.stringify);
  this._hasDocument = !isUndefined(_document);
  this._hasNavigator = !isUndefined(_navigator);
  this._lastCapturedException = null;
  this._lastData = null;
  this._lastEventId = null;
  this._globalServer = null;
  this._globalKey = null;
  this._globalProject = null;
  this._globalContext = {};
  this._globalOptions = {
    release: _window.SENTRY_RELEASE && _window.SENTRY_RELEASE.id,
    logger: 'javascript',
    ignoreErrors: [],
    ignoreUrls: [],
    whitelistUrls: [],
    includePaths: [],
    headers: null,
    collectWindowErrors: true,
    captureUnhandledRejections: true,
    maxMessageLength: 0,
    maxUrlLength: 250,
    stackTraceLimit: 50,
    autoBreadcrumbs: true,
    instrument: true,
    sampleRate: 1,
    sanitizeKeys: []
  };
  this._fetchDefaults = {
    method: 'POST',
    referrerPolicy: supportsReferrerPolicy() ? 'origin' : ''
  };
  this._ignoreOnError = 0;
  this._isRavenInstalled = false;
  this._originalErrorStackTraceLimit = Error.stackTraceLimit;
  this._originalConsole = _window.console || {};
  this._originalConsoleMethods = {};
  this._plugins = [];
  this._startTime = now();
  this._wrappedBuiltIns = [];
  this._breadcrumbs = [];
  this._lastCapturedEvent = null;
  this._keypressTimeout;
  this._location = _window.location;
  this._lastHref = this._location && this._location.href;
  this._resetBackoff();
  for (var method in this._originalConsole) {
    this._originalConsoleMethods[method] = this._originalConsole[method];
  }
}
function Raven ( ) { this . _hasJSON = ! ! ( typeof JSON === 'object' && JSON . stringify ) ; this . _hasDocument = ! isUndefined ( _document ) ; this . _hasNavigator = ! isUndefined ( _navigator ) ; this . _lastCapturedException = null ; this . _lastData = null ; this . _lastEventId = null ; this . _globalServer = null ; this . _globalKey = null ; this . _globalProject = null ; this . _globalContext = { } ; this . _globalOptions = { release : _window . SENTRY_RELEASE && _window . SENTRY_RELEASE . id , logger : 'javascript' , ignoreErrors : [ ] , ignoreUrls : [ ] , whitelistUrls : [ ] , includePaths : [ ] , headers : null , collectWindowErrors : true , captureUnhandledRejections : true , maxMessageLength : 0 , maxUrlLength : 250 , stackTraceLimit : 50 , autoBreadcrumbs : true , instrument : true , sampleRate : 1 , sanitizeKeys : [ ] } ; this . _fetchDefaults = { method : 'POST' , referrerPolicy : supportsReferrerPolicy ( ) ? 'origin' : '' } ; this . _ignoreOnError = 0 ; this . _isRavenInstalled = false ; this . _originalErrorStackTraceLimit = Error . stackTraceLimit ; this . _originalConsole = _window . console || { } ; this . _originalConsoleMethods = { } ; this . _plugins = [ ] ; this . _startTime = now ( ) ; this . _wrappedBuiltIns = [ ] ; this . _breadcrumbs = [ ] ; this . _lastCapturedEvent = null ; this . _keypressTimeout ; this . _location = _window . location ; this . _lastHref = this . _location && this . _location . href ; this . _resetBackoff ( ) ; for ( var method in this . _originalConsole ) { this . _originalConsoleMethods [ method ] = this . _originalConsole [ method ] ; } }
since JSON is required to encode the payload
since JSON is required to encode the payload
// Raven can run in contexts where there's no document (react-native) // SENTRY_RELEASE can be injected by https://github.com/getsentry/sentry-webpack-plugin // By default, truncates URL values to 250 chars // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default // https://caniuse.com/#feat=referrer-policy // It doesn't. And it throw exception instead of ignoring this parameter... // REF: https://github.com/getsentry/raven-js/issues/1233 // capture references to window.console *and* all its methods first // before the console plugin has a chance to monkey patch // eslint-disable-next-line guard-for-in