@microsoft/applicationinsights-common 3.4.0-nightly3.2603-06 → 3.4.0-nightly3.2604-03

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Common, 3.4.0-nightly3.2603-06
2
+ * Application Insights JavaScript SDK - Common, 3.4.0-nightly3.2604-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -1526,9 +1526,13 @@ function redactQueryParameters(url, config) {
1526
1526
  if (questionMarkIndex === -1) {
1527
1527
  return url;
1528
1528
  }
1529
- if (config && config.redactQueryParams) {
1529
+ var option = config ? config.redactUrls : undefined;
1530
+ if (option === 3 ) {
1530
1531
  sensitiveParams = DEFAULT_SENSITIVE_PARAMS[_DYN_CONCAT ](config.redactQueryParams);
1531
1532
  }
1533
+ else if (option === 4 ) {
1534
+ sensitiveParams = config.redactQueryParams;
1535
+ }
1532
1536
  else {
1533
1537
  sensitiveParams = DEFAULT_SENSITIVE_PARAMS;
1534
1538
  }
@@ -1599,7 +1603,8 @@ function fieldRedaction(input, config) {
1599
1603
  if (!input || !isString(input) || strIndexOf(input, " ") !== -1) {
1600
1604
  return input;
1601
1605
  }
1602
- var isRedactionDisabled = config && config.redactUrls === false;
1606
+ var option = config ? config.redactUrls : undefined;
1607
+ var isRedactionDisabled = option === false || option === 2 ;
1603
1608
  if (isRedactionDisabled) {
1604
1609
  return input;
1605
1610
  }
@@ -1608,6 +1613,12 @@ function fieldRedaction(input, config) {
1608
1613
  if (!hasCredentials && !hasQueryParams) {
1609
1614
  return input;
1610
1615
  }
1616
+ if (option === 5 ) {
1617
+ hasQueryParams = false;
1618
+ }
1619
+ if (option === 6 ) {
1620
+ hasCredentials = false;
1621
+ }
1611
1622
  try {
1612
1623
  var result = input;
1613
1624
  if (hasCredentials) {
@@ -1699,7 +1710,7 @@ function newId(maxLength) {
1699
1710
  return result;
1700
1711
  }
1701
1712
 
1702
- var version = '3.4.0-nightly3.2603-06';
1713
+ var version = '3.4.0-nightly3.2604-03';
1703
1714
  var instanceName = "." + newId(6);
1704
1715
  var _dataUid = 0;
1705
1716
  function _canAcceptData(target) {