@microsoft/applicationinsights-properties-js 2.8.8-nightly.2209-01 → 2.8.8-nightly.2209-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
- * Microsoft Application Insights properties plugin, 2.8.8-nightly.2209-01
2
+ * Microsoft Application Insights properties plugin, 2.8.8-nightly.2209-03
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, 2.8.8-nightly.2209-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 2.8.8-nightly.2209-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1219,7 +1219,7 @@
1219
1219
  }
1220
1220
 
1221
1221
  var _objDefineProperty = ObjDefineProperty;
1222
- var version = "2.8.8-nightly.2209-01";
1222
+ var version = "2.8.8-nightly.2209-03";
1223
1223
  var instanceName = "." + newId(6);
1224
1224
  var _dataUid = 0;
1225
1225
  function _createAccessor(target, prop, value) {
@@ -1334,6 +1334,20 @@
1334
1334
  }
1335
1335
  return cookieMgrCfg;
1336
1336
  }
1337
+ function _isIgnoredCookie(cookieMgrCfg, name) {
1338
+ if (name && cookieMgrCfg && isArray(cookieMgrCfg.ignoreCookies)) {
1339
+ return cookieMgrCfg.ignoreCookies[_DYN_INDEX_OF ](name) !== -1;
1340
+ }
1341
+ return false;
1342
+ }
1343
+ function _isBlockedCookie(cookieMgrCfg, name) {
1344
+ if (name && cookieMgrCfg && isArray(cookieMgrCfg.blockedCookies)) {
1345
+ if (cookieMgrCfg.blockedCookies[_DYN_INDEX_OF ](name) !== -1) {
1346
+ return true;
1347
+ }
1348
+ }
1349
+ return _isIgnoredCookie(cookieMgrCfg, name);
1350
+ }
1337
1351
  function safeGetCookieMgr(core, config) {
1338
1352
  var cookieMgr;
1339
1353
  if (core) {
@@ -1374,7 +1388,7 @@
1374
1388
  },
1375
1389
  _a.set = function (name, value, maxAgeSec, domain, path) {
1376
1390
  var result = false;
1377
- if (_isMgrEnabled(cookieMgr)) {
1391
+ if (_isMgrEnabled(cookieMgr) && !_isBlockedCookie(cookieMgrConfig, name)) {
1378
1392
  var values = {};
1379
1393
  var theValue = strTrim(value || STR_EMPTY);
1380
1394
  var idx = theValue[_DYN_INDEX_OF ](";");
@@ -1417,7 +1431,7 @@
1417
1431
  },
1418
1432
  _a.get = function (name) {
1419
1433
  var value = STR_EMPTY;
1420
- if (_isMgrEnabled(cookieMgr)) {
1434
+ if (_isMgrEnabled(cookieMgr) && !_isIgnoredCookie(cookieMgrConfig, name)) {
1421
1435
  value = (cookieMgrConfig.getCookie || _getCookieValue)(name);
1422
1436
  }
1423
1437
  return value;
@@ -2560,7 +2574,7 @@
2560
2574
  var _DYN_COOKIE_SEPARATOR = "cookieSeparator";
2561
2575
  var _DYN_AUTH_USER_COOKIE_NAM8 = "authUserCookieName";
2562
2576
 
2563
- var Version = "2.8.8-nightly.2209-01";
2577
+ var Version = "2.8.8-nightly.2209-03";
2564
2578
  var Internal = /** @class */ (function () {
2565
2579
  function Internal(config) {
2566
2580
  this.sdkVersion = (config[_DYN_SDK_EXTENSION ] && config[_DYN_SDK_EXTENSION ]() ? config[_DYN_SDK_EXTENSION ]() + "_" : "") + "javascript:" + Version;