@@ -13,6 +13,27 @@ var predicates = require('./predicates');
1313var sharedPredicates = require ( '../predicates' ) ;
1414var errorParser = require ( '../errorParser' ) ;
1515
16+ var defaults = require ( '../defaults' ) ;
17+ var scrubFields = require ( './defaults/scrubFields' ) ;
18+
19+ var defaultOptions = {
20+ version : defaults . version ,
21+ scrubFields : scrubFields . scrubFields ,
22+ logLevel : defaults . logLevel ,
23+ reportLevel : defaults . reportLevel ,
24+ uncaughtErrorLevel : defaults . uncaughtErrorLevel ,
25+ endpoint : defaults . endpoint ,
26+ verbose : false ,
27+ enabled : true ,
28+ transmit : true ,
29+ sendConfig : false ,
30+ includeItemsInTelemetry : true ,
31+ captureIp : true ,
32+ inspectAnonymousErrors : true ,
33+ ignoreDuplicateErrors : true ,
34+ wrapGlobalEventHandlers : false
35+ } ;
36+
1637function Rollbar ( options , client ) {
1738 this . options = _ . handleOptions ( defaultOptions , options , null , logger ) ;
1839 this . options . _configuredOptions = options ;
@@ -537,25 +558,4 @@ function _gWindow() {
537558 return ( ( typeof window != 'undefined' ) && window ) || ( ( typeof self != 'undefined' ) && self ) ;
538559}
539560
540- var defaults = require ( '../defaults' ) ;
541- var scrubFields = require ( './defaults/scrubFields' ) ;
542-
543- var defaultOptions = {
544- version : defaults . version ,
545- scrubFields : scrubFields . scrubFields ,
546- logLevel : defaults . logLevel ,
547- reportLevel : defaults . reportLevel ,
548- uncaughtErrorLevel : defaults . uncaughtErrorLevel ,
549- endpoint : defaults . endpoint ,
550- verbose : false ,
551- enabled : true ,
552- transmit : true ,
553- sendConfig : false ,
554- includeItemsInTelemetry : true ,
555- captureIp : true ,
556- inspectAnonymousErrors : true ,
557- ignoreDuplicateErrors : true ,
558- wrapGlobalEventHandlers : false
559- } ;
560-
561561module . exports = Rollbar ;
0 commit comments