@microsoft/applicationinsights-properties-js 3.0.0-beta.2209-01 → 3.0.0-beta.2210-01

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,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.29.2",
4
+ "toolVersion": "7.32.0",
5
5
  "schemaVersion": 1009,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -837,7 +837,7 @@
837
837
  {
838
838
  "kind": "Reference",
839
839
  "text": "_SessionManager",
840
- "canonicalReference": "@microsoft/applicationinsights-properties-js!_SessionManager:class"
840
+ "canonicalReference": "@microsoft/applicationinsights-properties-js!SessionManager:class"
841
841
  },
842
842
  {
843
843
  "kind": "Content",
@@ -1156,7 +1156,7 @@
1156
1156
  {
1157
1157
  "kind": "Reference",
1158
1158
  "text": "ITelemetryConfig",
1159
- "canonicalReference": "@microsoft/applicationinsights-properties-js!ITelemetryConfig:interface"
1159
+ "canonicalReference": "@microsoft/applicationinsights-properties-js!~ITelemetryConfig:interface"
1160
1160
  },
1161
1161
  {
1162
1162
  "kind": "Content",
@@ -1858,7 +1858,7 @@
1858
1858
  {
1859
1859
  "kind": "Reference",
1860
1860
  "text": "ITelemetryConfig",
1861
- "canonicalReference": "@microsoft/applicationinsights-properties-js!ITelemetryConfig:interface"
1861
+ "canonicalReference": "@microsoft/applicationinsights-properties-js!~ITelemetryConfig:interface"
1862
1862
  },
1863
1863
  {
1864
1864
  "kind": "Content",
@@ -2804,7 +2804,7 @@
2804
2804
  {
2805
2805
  "kind": "Reference",
2806
2806
  "text": "_SessionManager",
2807
- "canonicalReference": "@microsoft/applicationinsights-properties-js!_SessionManager:class"
2807
+ "canonicalReference": "@microsoft/applicationinsights-properties-js!SessionManager:class"
2808
2808
  },
2809
2809
  {
2810
2810
  "kind": "Content",
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights properties plugin, 3.0.0-beta.2209-01
2
+ * Microsoft Application Insights properties plugin, 3.0.0-beta.2210-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.0-beta.2209-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.0-beta.2210-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -452,14 +452,21 @@
452
452
  return _hasNavigator ? navigator : getInst(NAVIGATOR);
453
453
  }
454
454
 
455
+ var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
456
+
455
457
  function objHasOwnProperty(obj, prop) {
456
458
  return obj && ObjProto[HAS_OWN_PROPERTY].call(obj, prop);
457
459
  }
458
460
 
461
+ var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
462
+ function polyObjHasOwn(obj, prop) {
463
+ return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
464
+ }
465
+
459
466
  function objForEachKey(theObject, callbackfn, thisArg) {
460
467
  if (theObject && isObject(theObject)) {
461
468
  for (var prop in theObject) {
462
- if (objHasOwnProperty(theObject, prop)) {
469
+ if (objHasOwn(theObject, prop)) {
463
470
  if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
464
471
  break;
465
472
  }
@@ -707,6 +714,7 @@
707
714
  var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
708
715
  var _DYN_CREATE_NEW = "createNew";
709
716
  var _DYN_COOKIE_CFG = "cookieCfg";
717
+ var _DYN_INDEX_OF = "indexOf";
710
718
  var _DYN_SUBSTRING$1 = "substring";
711
719
  var _DYN_USER_AGENT = "userAgent";
712
720
  var _DYN_SPLIT = "split";
@@ -1325,7 +1333,7 @@
1325
1333
  }
1326
1334
 
1327
1335
  var _objDefineProperty = ObjDefineProperty;
1328
- var version = "3.0.0-beta.2209-01";
1336
+ var version = "3.0.0-beta.2210-01";
1329
1337
  var instanceName = "." + newId(6);
1330
1338
  var _dataUid = 0;
1331
1339
  function _createAccessor(target, prop, value) {
@@ -1827,6 +1835,20 @@
1827
1835
  }
1828
1836
  return cookieMgrCfg;
1829
1837
  }
1838
+ function _isIgnoredCookie(cookieMgrCfg, name) {
1839
+ if (name && cookieMgrCfg && isArray(cookieMgrCfg.ignoreCookies)) {
1840
+ return cookieMgrCfg.ignoreCookies[_DYN_INDEX_OF ](name) !== -1;
1841
+ }
1842
+ return false;
1843
+ }
1844
+ function _isBlockedCookie(cookieMgrCfg, name) {
1845
+ if (name && cookieMgrCfg && isArray(cookieMgrCfg.blockedCookies)) {
1846
+ if (cookieMgrCfg.blockedCookies[_DYN_INDEX_OF ](name) !== -1) {
1847
+ return true;
1848
+ }
1849
+ }
1850
+ return _isIgnoredCookie(cookieMgrCfg, name);
1851
+ }
1830
1852
  function safeGetCookieMgr(core, config) {
1831
1853
  var cookieMgr;
1832
1854
  if (core) {
@@ -1865,10 +1887,10 @@
1865
1887
  },
1866
1888
  set: function (name, value, maxAgeSec, domain, path) {
1867
1889
  var result = false;
1868
- if (_isMgrEnabled(cookieMgr)) {
1890
+ if (_isMgrEnabled(cookieMgr) && !_isBlockedCookie(cookieMgrConfig, name)) {
1869
1891
  var values = {};
1870
1892
  var theValue = strTrim(value || STR_EMPTY);
1871
- var idx = theValue.indexOf(";");
1893
+ var idx = theValue[_DYN_INDEX_OF ](";");
1872
1894
  if (idx !== -1) {
1873
1895
  theValue = strTrim(value[_DYN_SUBSTRING$1 ](0, idx));
1874
1896
  values = _extractParts(value[_DYN_SUBSTRING$1 ](idx + 1));
@@ -1908,7 +1930,7 @@
1908
1930
  },
1909
1931
  get: function (name) {
1910
1932
  var value = STR_EMPTY;
1911
- if (_isMgrEnabled(cookieMgr)) {
1933
+ if (_isMgrEnabled(cookieMgr) && !_isIgnoredCookie(cookieMgrConfig, name)) {
1912
1934
  value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
1913
1935
  }
1914
1936
  return value;
@@ -1961,7 +1983,7 @@
1961
1983
  arrForEach(parts, function (thePart) {
1962
1984
  thePart = strTrim(thePart || STR_EMPTY);
1963
1985
  if (thePart) {
1964
- var idx = thePart.indexOf("=");
1986
+ var idx = thePart[_DYN_INDEX_OF ]("=");
1965
1987
  if (idx === -1) {
1966
1988
  values[thePart] = null;
1967
1989
  }