@@ -48,21 +48,21 @@ export class Configuration {
4848 public enabled : boolean = true ;
4949
5050 public services : {
51- environmentInfoCollector ?: IEnvironmentInfoCollector ,
52- errorParser ?: IErrorParser ,
53- lastReferenceIdManager : ILastReferenceIdManager ,
54- log : ILog ,
55- moduleCollector ?: IModuleCollector ,
56- requestInfoCollector ?: IRequestInfoCollector ,
57- submissionClient ?: ISubmissionClient ,
58- storage : IStorageProvider ,
59- queue : IEventQueue
60- } = {
51+ environmentInfoCollector ?: IEnvironmentInfoCollector ,
52+ errorParser ?: IErrorParser ,
53+ lastReferenceIdManager : ILastReferenceIdManager ,
54+ log : ILog ,
55+ moduleCollector ?: IModuleCollector ,
56+ requestInfoCollector ?: IRequestInfoCollector ,
57+ submissionClient ?: ISubmissionClient ,
58+ storage : IStorageProvider ,
59+ queue : IEventQueue
60+ } = {
6161 lastReferenceIdManager : new DefaultLastReferenceIdManager ( ) ,
6262 log : new NullLog ( ) ,
6363 storage : new InMemoryStorageProvider ( ) ,
6464 queue : new DefaultEventQueue ( this )
65- }
65+ } ;
6666
6767 /**
6868 * Maximum number of events that should be sent to the server together in a batch. (Defaults to 50)
@@ -117,13 +117,13 @@ export class Configuration {
117117 */
118118 private _dataExclusions : string [ ] = [ ] ;
119119
120- private _includePrivateInformation : boolean ;
121- private _includeUserName : boolean ;
122- private _includeMachineName : boolean ;
123- private _includeIpAddress : boolean ;
124- private _includeCookies : boolean ;
125- private _includePostData : boolean ;
126- private _includeQueryString : boolean ;
120+ private _includePrivateInformation : boolean = true ;
121+ private _includeUserName : boolean = true ;
122+ private _includeMachineName : boolean = true ;
123+ private _includeIpAddress : boolean = true ;
124+ private _includeCookies : boolean = true ;
125+ private _includePostData : boolean = true ;
126+ private _includeQueryString : boolean = true ;
127127
128128 /**
129129 * A list of user agent patterns.
@@ -305,7 +305,7 @@ export class Configuration {
305305 * @param value
306306 */
307307 public set includePrivateInformation ( value : boolean ) {
308- const val = value || false ;
308+ const val = value === true ;
309309 this . _includePrivateInformation = val ;
310310 this . _includeUserName = val ;
311311 this . _includeMachineName = val ;
@@ -330,7 +330,7 @@ export class Configuration {
330330 * @param value
331331 */
332332 public set includeUserName ( value : boolean ) {
333- this . _includeUserName = value || false ;
333+ this . _includeUserName = value === true ;
334334 this . changed ( ) ;
335335 }
336336
@@ -347,7 +347,7 @@ export class Configuration {
347347 * @param value
348348 */
349349 public set includeMachineName ( value : boolean ) {
350- this . _includeMachineName = value || false ;
350+ this . _includeMachineName = value === true ;
351351 this . changed ( ) ;
352352 }
353353
@@ -364,7 +364,7 @@ export class Configuration {
364364 * @param value
365365 */
366366 public set includeIpAddress ( value : boolean ) {
367- this . _includeIpAddress = value || false ;
367+ this . _includeIpAddress = value === true ;
368368 this . changed ( ) ;
369369 }
370370
@@ -383,7 +383,7 @@ export class Configuration {
383383 * @param value
384384 */
385385 public set includeCookies ( value : boolean ) {
386- this . _includeCookies = value || false ;
386+ this . _includeCookies = value === true ;
387387 this . changed ( ) ;
388388 }
389389
@@ -402,7 +402,7 @@ export class Configuration {
402402 * @param value
403403 */
404404 public set includePostData ( value : boolean ) {
405- this . _includePostData = value || false ;
405+ this . _includePostData = value === true ;
406406 this . changed ( ) ;
407407 }
408408
@@ -421,7 +421,7 @@ export class Configuration {
421421 * @param value
422422 */
423423 public set includeQueryString ( value : boolean ) {
424- this . _includeQueryString = value || false ;
424+ this . _includeQueryString = value === true ;
425425 this . changed ( ) ;
426426 }
427427
0 commit comments