@microsoft/applicationinsights-properties-js 3.3.10-nightly3.2507-28 → 3.3.10-nightly3.2508-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.
Files changed (50) hide show
  1. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.js → ai.props.3.3.10-nightly3.2508-01.cjs.js} +134 -78
  2. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.gbl.js.map → ai.props.3.3.10-nightly3.2508-01.cjs.js.map} +1 -1
  3. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.cjs.min.js → ai.props.3.3.10-nightly3.2508-01.cjs.min.js} +3 -3
  4. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.cjs.min.js.map → ai.props.3.3.10-nightly3.2508-01.cjs.min.js.map} +1 -1
  5. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.gbl.js → ai.props.3.3.10-nightly3.2508-01.gbl.js} +136 -53
  6. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.cjs.js.map → ai.props.3.3.10-nightly3.2508-01.gbl.js.map} +1 -1
  7. package/browser/es5/ai.props.3.3.10-nightly3.2508-01.gbl.min.js +6 -0
  8. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.gbl.min.js.map → ai.props.3.3.10-nightly3.2508-01.gbl.min.js.map} +1 -1
  9. package/browser/es5/ai.props.3.3.10-nightly3.2508-01.integrity.json +66 -0
  10. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.cjs.js → ai.props.3.3.10-nightly3.2508-01.js} +161 -51
  11. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.js.map → ai.props.3.3.10-nightly3.2508-01.js.map} +1 -1
  12. package/browser/es5/ai.props.3.3.10-nightly3.2508-01.min.js +6 -0
  13. package/browser/es5/{ai.props.3.3.10-nightly3.2507-28.min.js.map → ai.props.3.3.10-nightly3.2508-01.min.js.map} +1 -1
  14. package/browser/es5/ai.props.3.cjs.js +133 -50
  15. package/browser/es5/ai.props.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.props.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.props.3.gbl.js +135 -52
  19. package/browser/es5/ai.props.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.props.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.props.3.integrity.json +25 -25
  23. package/browser/es5/ai.props.3.js +135 -52
  24. package/browser/es5/ai.props.3.js.map +1 -1
  25. package/browser/es5/ai.props.3.min.js +2 -2
  26. package/browser/es5/ai.props.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-properties-js.js +133 -50
  28. package/dist/es5/applicationinsights-properties-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-properties-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
  31. package/dist-es5/Context/Application.js +1 -1
  32. package/dist-es5/Context/Device.js +1 -1
  33. package/dist-es5/Context/Internal.js +2 -2
  34. package/dist-es5/Context/Internal.js.map +1 -1
  35. package/dist-es5/Context/Location.js +1 -1
  36. package/dist-es5/Context/Session.js +1 -1
  37. package/dist-es5/Context/TelemetryTrace.js +1 -1
  38. package/dist-es5/Context/User.js +1 -1
  39. package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
  40. package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
  41. package/dist-es5/PropertiesPlugin.js +1 -1
  42. package/dist-es5/TelemetryContext.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +1 -1
  44. package/dist-es5/applicationinsights-properties-js.js +1 -1
  45. package/package.json +3 -3
  46. package/types/applicationinsights-properties-js.d.ts +1 -1
  47. package/types/applicationinsights-properties-js.namespaced.d.ts +9 -1
  48. package/browser/es5/ai.props.3.3.10-nightly3.2507-28.gbl.min.js +0 -6
  49. package/browser/es5/ai.props.3.3.10-nightly3.2507-28.integrity.json +0 -66
  50. package/browser/es5/ai.props.3.3.10-nightly3.2507-28.min.js +0 -6
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "ai.props",
3
+ "version": "3.3.10-nightly3.2508-01",
4
+ "ext": {
5
+ "@cjs.js": {
6
+ "file": "ai.props.3.3.10-nightly3.2508-01.cjs.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-8zaEQZZ+lfp16mf+b2RbbY1xII9HvOD8j44MHtVDPSk= sha384-oV8G1Rm5rNH3kEqMIWM5MXSLHLl8xlD1S/934Bg6EbNRkgpo6hhvM5AzsZKqZT0N sha512-q6KEVPMQRpUyV4LNI9LF7FUI535HxKifQ2rB0TXZW+vV79Z0/+LmMKTk2vFJWkfJflcMaxWurxitZH1jI/n6Fg==",
9
+ "hashes": {
10
+ "sha256": "8zaEQZZ+lfp16mf+b2RbbY1xII9HvOD8j44MHtVDPSk=",
11
+ "sha384": "oV8G1Rm5rNH3kEqMIWM5MXSLHLl8xlD1S/934Bg6EbNRkgpo6hhvM5AzsZKqZT0N",
12
+ "sha512": "q6KEVPMQRpUyV4LNI9LF7FUI535HxKifQ2rB0TXZW+vV79Z0/+LmMKTk2vFJWkfJflcMaxWurxitZH1jI/n6Fg=="
13
+ }
14
+ },
15
+ "@cjs.min.js": {
16
+ "file": "ai.props.3.3.10-nightly3.2508-01.cjs.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-FD+k/XJOfACn5z/j1iQhlpMVlLtXURM/zT5xrKl1Cl4= sha384-iGcyb06lRAumeKhCXmgXTwGwpqev9ycDskgk7lrxEYUhBRaSSGBibKm2Fi2Anf9x sha512-3BedDY4WOZlXD/XcgyEF2/8EVwVm/VnyEomQfF6FvQPmHZdzktIDm8rl+/hAZsvYz0f7t4U+6KHcdvU2CqH3iQ==",
19
+ "hashes": {
20
+ "sha256": "FD+k/XJOfACn5z/j1iQhlpMVlLtXURM/zT5xrKl1Cl4=",
21
+ "sha384": "iGcyb06lRAumeKhCXmgXTwGwpqev9ycDskgk7lrxEYUhBRaSSGBibKm2Fi2Anf9x",
22
+ "sha512": "3BedDY4WOZlXD/XcgyEF2/8EVwVm/VnyEomQfF6FvQPmHZdzktIDm8rl+/hAZsvYz0f7t4U+6KHcdvU2CqH3iQ=="
23
+ }
24
+ },
25
+ "@gbl.js": {
26
+ "file": "ai.props.3.3.10-nightly3.2508-01.gbl.js",
27
+ "type": "text/javascript; charset=utf-8",
28
+ "integrity": "sha256-R5szUykuCM14rt0TFgg016eJ5I5RNR5IazuwUV1eEP8= sha384-A35sZVoSlxU75uJLxmrajFNq0BIqU9C1czz+SMmFVbTxHfnojn2Ww8YcLCzClt76 sha512-rEjwTix/RXhgikACKYs9y99bBQrSu/dTLG9aozY+WTIHGWHEMRVerZ/E1S/d28Eyk+1/MRv/LH48bUEAl/OzAQ==",
29
+ "hashes": {
30
+ "sha256": "R5szUykuCM14rt0TFgg016eJ5I5RNR5IazuwUV1eEP8=",
31
+ "sha384": "A35sZVoSlxU75uJLxmrajFNq0BIqU9C1czz+SMmFVbTxHfnojn2Ww8YcLCzClt76",
32
+ "sha512": "rEjwTix/RXhgikACKYs9y99bBQrSu/dTLG9aozY+WTIHGWHEMRVerZ/E1S/d28Eyk+1/MRv/LH48bUEAl/OzAQ=="
33
+ }
34
+ },
35
+ "@gbl.min.js": {
36
+ "file": "ai.props.3.3.10-nightly3.2508-01.gbl.min.js",
37
+ "type": "text/javascript; charset=utf-8",
38
+ "integrity": "sha256-H+Fm5EBBtZubP5+a3vgReJ29nNP2RAvADsaV+3mduM0= sha384-i+w7s90uz7bnwfXiomlLJPwuzqZy+nH7iRiWc1phMpMDuGijefOzBhtyrmuKjmFo sha512-evsYcNkfwqWSjeVF04ql+0/F2isnfiKmaaQSoUz1+gfOvtLUkW5eF6wJ4K0A9/I7i0OzznmEbz7AOlfvZUyVOQ==",
39
+ "hashes": {
40
+ "sha256": "H+Fm5EBBtZubP5+a3vgReJ29nNP2RAvADsaV+3mduM0=",
41
+ "sha384": "i+w7s90uz7bnwfXiomlLJPwuzqZy+nH7iRiWc1phMpMDuGijefOzBhtyrmuKjmFo",
42
+ "sha512": "evsYcNkfwqWSjeVF04ql+0/F2isnfiKmaaQSoUz1+gfOvtLUkW5eF6wJ4K0A9/I7i0OzznmEbz7AOlfvZUyVOQ=="
43
+ }
44
+ },
45
+ "@js": {
46
+ "file": "ai.props.3.3.10-nightly3.2508-01.js",
47
+ "type": "text/javascript; charset=utf-8",
48
+ "integrity": "sha256-+h7+yag041eDbkg5ExRSDzOVmgnD6zsZ/rP7hlSQPZE= sha384-jA/2JKvhkI2nZwHmoYFOuyZoGgDOF9IVvnXLq1lovKaE2YXz3guxHu17jk5twYyM sha512-ohMLE0Iy/9X2ZY0TPyZldewwW0gkBskryiwEaZV6vOq+f4cvCOtLcMfVCYnGgfwSdy6W0kRMZ5xGQuVcUXY1OQ==",
49
+ "hashes": {
50
+ "sha256": "+h7+yag041eDbkg5ExRSDzOVmgnD6zsZ/rP7hlSQPZE=",
51
+ "sha384": "jA/2JKvhkI2nZwHmoYFOuyZoGgDOF9IVvnXLq1lovKaE2YXz3guxHu17jk5twYyM",
52
+ "sha512": "ohMLE0Iy/9X2ZY0TPyZldewwW0gkBskryiwEaZV6vOq+f4cvCOtLcMfVCYnGgfwSdy6W0kRMZ5xGQuVcUXY1OQ=="
53
+ }
54
+ },
55
+ "@min.js": {
56
+ "file": "ai.props.3.3.10-nightly3.2508-01.min.js",
57
+ "type": "text/javascript; charset=utf-8",
58
+ "integrity": "sha256-CD1vxvLkQzd5qd6FIqupIbcAiGrduSFngRctEuuj774= sha384-oZ0Uymgd4fvv0e1gRu2N+VXqY2S8/ktSJMDSm/L0cHo6FsJr30EgtSYP86Z8A96M sha512-OMsOWNDBG8ILuLxrE6nah2KOxCsMwihZNjr8zmiBQ8JCk2tMGSCrKKXZrujf8UHVcmW7g1VRi3Pbo41hnYVC7Q==",
59
+ "hashes": {
60
+ "sha256": "CD1vxvLkQzd5qd6FIqupIbcAiGrduSFngRctEuuj774=",
61
+ "sha384": "oZ0Uymgd4fvv0e1gRu2N+VXqY2S8/ktSJMDSm/L0cHo6FsJr30EgtSYP86Z8A96M",
62
+ "sha512": "OMsOWNDBG8ILuLxrE6nah2KOxCsMwihZNjr8zmiBQ8JCk2tMGSCrKKXZrujf8UHVcmW7g1VRi3Pbo41hnYVC7Q=="
63
+ }
64
+ }
65
+ }
66
+ }
@@ -1,7 +1,32 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.3.10-nightly3.2507-28
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.3.10-nightly3.2508-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
+ (function (global, factory) {
6
+ var undef = "undefined";
7
+ typeof exports === "object" && typeof module !== undef ? factory(exports) :
8
+ typeof define === "function" && define.amd ? define(["exports"], factory) :
9
+ (function(global){
10
+ var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_3_10_nightly3_2508_01", msMod="__ms$mod__";
11
+ var mods={}, modDetail=mods[modName]={}, ver="3.3.10-nightly3.2508-01";
12
+ var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
13
+ // Versioned namespace "Microsoft.ApplicationInsights3"
14
+ var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
15
+ // Global namespace "Microsoft.ApplicationInsights"
16
+ var destNs=baseNs, nsKey="ApplicationInsights", destNs=destNs[nsKey]=(destNs[nsKey]||{});
17
+ var expNsDetail=(exportNs[msMod]=(exportNs[msMod] || {})), expNameVer=(expNsDetail["v"]=(expNsDetail["v"] || []));
18
+ var destNsDetail=(destNs[msMod]=(destNs[msMod] || {})), destNameVer=(destNsDetail["v"]=(destNsDetail["v"] || []));
19
+ (destNsDetail["o"]=(destNsDetail["o"] || [])).push(mods);
20
+ factory(theExports);
21
+ for(var key in theExports) {
22
+ // Always set the imported value into the "export" versioned namespace (last-write wins)
23
+ nm="x", exportNs[key]=theExports[key], expNameVer[key]=ver;
24
+ // Copy over any named element that is not already present (first-write wins)
25
+ typeof destNs[key]===undef ? (nm="n", destNs[key]=theExports[key]) && (destNameVer[key]=ver) : !destNameVer[key] && (destNameVer[key]="---");
26
+ (modDetail[nm] = (modDetail[nm] || [])).push(key);
27
+ }
28
+ })(typeof globalThis !== undef ? globalThis : global || self);
29
+ })(this, (function (exports) {
5
30
  'use strict';
6
31
 
7
32
 
@@ -1523,7 +1548,7 @@ function newId(maxLength) {
1523
1548
  return result;
1524
1549
  }
1525
1550
 
1526
- var version = '3.3.10-nightly3.2507-28';
1551
+ var version = '3.3.10-nightly3.2508-01';
1527
1552
  var instanceName = "." + newId(6);
1528
1553
  var _dataUid = 0;
1529
1554
  function _canAcceptData(target) {
@@ -2418,6 +2443,7 @@ var rootDefaultConfig = (_a$2 = {
2418
2443
  _b.enabled = UNDEFINED_VALUE,
2419
2444
  _b.ignoreCookies = UNDEFINED_VALUE,
2420
2445
  _b.blockedCookies = UNDEFINED_VALUE,
2446
+ _b.disableCookieDefer = false,
2421
2447
  _b)),
2422
2448
  cookieDomain: UNDEFINED_VALUE,
2423
2449
  cookiePath: UNDEFINED_VALUE
@@ -2497,16 +2523,99 @@ function createCookieMgr(rootConfig, logger) {
2497
2523
  var _getCookieFn;
2498
2524
  var _setCookieFn;
2499
2525
  var _delCookieFn;
2526
+ var _pendingCookies = [];
2527
+ function _formatDeletionValue(path) {
2528
+ var _a;
2529
+ var values = (_a = {},
2530
+ _a[STR_PATH] = path ? path : "/",
2531
+ _a[strExpires] = "Thu, 01 Jan 1970 00:00:01 GMT",
2532
+ _a);
2533
+ if (!isIE()) {
2534
+ values["max-age"] = "0";
2535
+ }
2536
+ return _formatCookieValue(STR_EMPTY, values);
2537
+ }
2538
+ function _formatSetCookieValue(value, maxAgeSec, domain, path) {
2539
+ var values = {};
2540
+ var theValue = strTrim(value || STR_EMPTY);
2541
+ var idx = strIndexOf(theValue, ";");
2542
+ if (idx !== -1) {
2543
+ theValue = strTrim(strLeft(value, idx));
2544
+ values = _extractParts(strSubstring(value, idx + 1));
2545
+ }
2546
+ setValue(values, STR_DOMAIN, domain || _domain, isTruthy, isUndefined);
2547
+ if (!isNullOrUndefined(maxAgeSec)) {
2548
+ var _isIE = isIE();
2549
+ if (isUndefined(values[strExpires])) {
2550
+ var nowMs = utcNow();
2551
+ var expireMs = nowMs + (maxAgeSec * 1000);
2552
+ if (expireMs > 0) {
2553
+ var expiry = new Date();
2554
+ expiry.setTime(expireMs);
2555
+ setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
2556
+ }
2557
+ }
2558
+ if (!_isIE) {
2559
+ setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
2560
+ }
2561
+ }
2562
+ var location = getLocation();
2563
+ if (location && location.protocol === "https:") {
2564
+ setValue(values, "secure", null, null, isUndefined);
2565
+ if (_allowUaSameSite === null) {
2566
+ _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
2567
+ }
2568
+ if (_allowUaSameSite) {
2569
+ setValue(values, "SameSite", "None", null, isUndefined);
2570
+ }
2571
+ }
2572
+ setValue(values, STR_PATH, path || _path, null, isUndefined);
2573
+ return _formatCookieValue(theValue, values);
2574
+ }
2575
+ function _removePendingCookie(name) {
2576
+ if (_pendingCookies) {
2577
+ for (var i = _pendingCookies[_DYN_LENGTH$1 ] - 1; i >= 0; i--) {
2578
+ if (_pendingCookies[i].n === name) {
2579
+ _pendingCookies[_DYN_SPLICE ](i, 1);
2580
+ }
2581
+ }
2582
+ }
2583
+ }
2584
+ function _flushPendingCookies() {
2585
+ if (areCookiesSupported(logger) && _pendingCookies) {
2586
+ arrForEach(_pendingCookies, function (pendingData) {
2587
+ if (!_isBlockedCookie(cookieMgrConfig, pendingData.n)) {
2588
+ if (pendingData.o === 0 ) {
2589
+ _setCookieFn(pendingData.n, pendingData.v);
2590
+ }
2591
+ else if (pendingData.o === 1 ) {
2592
+ _delCookieFn(pendingData.n, pendingData.v);
2593
+ }
2594
+ }
2595
+ });
2596
+ _pendingCookies = [];
2597
+ }
2598
+ }
2500
2599
  rootConfig = createDynamicConfig(rootConfig || _globalCookieConfig, null, logger).cfg;
2501
2600
  unloadHandler = onConfigChange(rootConfig, function (details) {
2502
2601
  details.setDf(details.cfg, rootDefaultConfig);
2503
2602
  cookieMgrConfig = details.ref(details.cfg, "cookieCfg");
2504
2603
  _path = cookieMgrConfig[STR_PATH ] || "/";
2505
2604
  _domain = cookieMgrConfig[STR_DOMAIN ];
2605
+ if (cookieMgrConfig.disableCookieDefer) {
2606
+ _pendingCookies = null;
2607
+ }
2608
+ else if (_pendingCookies === null) {
2609
+ _pendingCookies = [];
2610
+ }
2611
+ var wasEnabled = _enabled;
2506
2612
  _enabled = _isCfgEnabled(rootConfig, cookieMgrConfig) !== false;
2507
2613
  _getCookieFn = cookieMgrConfig.getCookie || _getCookieValue;
2508
2614
  _setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;
2509
2615
  _delCookieFn = cookieMgrConfig.delCookie || _setCookieValue;
2616
+ if (!wasEnabled && _enabled && _pendingCookies) {
2617
+ _flushPendingCookies();
2618
+ }
2510
2619
  }, logger);
2511
2620
  var cookieMgr = {
2512
2621
  isEnabled: function () {
@@ -2518,55 +2627,52 @@ function createCookieMgr(rootConfig, logger) {
2518
2627
  return enabled;
2519
2628
  },
2520
2629
  setEnabled: function (value) {
2521
- _enabled = value !== false;
2522
2630
  cookieMgrConfig[_DYN_ENABLED ] = value;
2631
+ if (!isUndefined(rootConfig[strDisableCookiesUsage])) {
2632
+ rootConfig[strDisableCookiesUsage] = !value;
2633
+ }
2523
2634
  },
2524
2635
  set: function (name, value, maxAgeSec, domain, path) {
2525
2636
  var result = false;
2526
- if (_isMgrEnabled(cookieMgr) && !_isBlockedCookie(cookieMgrConfig, name)) {
2527
- var values = {};
2528
- var theValue = strTrim(value || STR_EMPTY);
2529
- var idx = strIndexOf(theValue, ";");
2530
- if (idx !== -1) {
2531
- theValue = strTrim(strLeft(value, idx));
2532
- values = _extractParts(strSubstring(value, idx + 1));
2533
- }
2534
- setValue(values, STR_DOMAIN, domain || _domain, isTruthy, isUndefined);
2535
- if (!isNullOrUndefined(maxAgeSec)) {
2536
- var _isIE = isIE();
2537
- if (isUndefined(values[strExpires])) {
2538
- var nowMs = utcNow();
2539
- var expireMs = nowMs + (maxAgeSec * 1000);
2540
- if (expireMs > 0) {
2541
- var expiry = new Date();
2542
- expiry.setTime(expireMs);
2543
- setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
2544
- }
2545
- }
2546
- if (!_isIE) {
2547
- setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
2548
- }
2637
+ var isBlocked = _isBlockedCookie(cookieMgrConfig, name);
2638
+ if (!isBlocked) {
2639
+ var cookieValue = _formatSetCookieValue(value, maxAgeSec, domain, path);
2640
+ if (_isMgrEnabled(cookieMgr)) {
2641
+ _setCookieFn(name, cookieValue);
2642
+ result = true;
2549
2643
  }
2550
- var location_1 = getLocation();
2551
- if (location_1 && location_1.protocol === "https:") {
2552
- setValue(values, "secure", null, null, isUndefined);
2553
- if (_allowUaSameSite === null) {
2554
- _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT ]);
2555
- }
2556
- if (_allowUaSameSite) {
2557
- setValue(values, "SameSite", "None", null, isUndefined);
2558
- }
2644
+ else if (_pendingCookies) {
2645
+ _removePendingCookie(name);
2646
+ _pendingCookies[_DYN_PUSH ]({
2647
+ n: name,
2648
+ o: 0 ,
2649
+ v: cookieValue
2650
+ });
2651
+ result = true;
2559
2652
  }
2560
- setValue(values, STR_PATH, path || _path, null, isUndefined);
2561
- _setCookieFn(name, _formatCookieValue(theValue, values));
2562
- result = true;
2563
2653
  }
2564
2654
  return result;
2565
2655
  },
2566
2656
  get: function (name) {
2567
2657
  var value = STR_EMPTY;
2568
- if (_isMgrEnabled(cookieMgr) && !_isIgnoredCookie(cookieMgrConfig, name)) {
2569
- value = _getCookieFn(name);
2658
+ var isIgnored = _isIgnoredCookie(cookieMgrConfig, name);
2659
+ if (!isIgnored) {
2660
+ if (_isMgrEnabled(cookieMgr)) {
2661
+ value = _getCookieFn(name);
2662
+ }
2663
+ else if (_pendingCookies) {
2664
+ for (var i = _pendingCookies[_DYN_LENGTH$1 ] - 1; i >= 0; i--) {
2665
+ var pendingData = _pendingCookies[i];
2666
+ if (pendingData.n === name) {
2667
+ if (pendingData.o === 0 ) {
2668
+ var cookieValue = pendingData.v;
2669
+ var idx = strIndexOf(cookieValue, ";");
2670
+ value = idx !== -1 ? strTrim(strLeft(cookieValue, idx)) : strTrim(cookieValue);
2671
+ }
2672
+ break;
2673
+ }
2674
+ }
2675
+ }
2570
2676
  }
2571
2677
  return value;
2572
2678
  },
@@ -2575,20 +2681,21 @@ function createCookieMgr(rootConfig, logger) {
2575
2681
  if (_isMgrEnabled(cookieMgr)) {
2576
2682
  result = cookieMgr.purge(name, path);
2577
2683
  }
2684
+ else if (_pendingCookies) {
2685
+ _removePendingCookie(name);
2686
+ _pendingCookies[_DYN_PUSH ]({
2687
+ n: name,
2688
+ o: 1 ,
2689
+ v: _formatDeletionValue(path)
2690
+ });
2691
+ result = true;
2692
+ }
2578
2693
  return result;
2579
2694
  },
2580
2695
  purge: function (name, path) {
2581
- var _a;
2582
2696
  var result = false;
2583
2697
  if (areCookiesSupported(logger)) {
2584
- var values = (_a = {},
2585
- _a[STR_PATH] = path ? path : "/",
2586
- _a[strExpires] = "Thu, 01 Jan 1970 00:00:01 GMT",
2587
- _a);
2588
- if (!isIE()) {
2589
- values["max-age"] = "0";
2590
- }
2591
- _delCookieFn(name, _formatCookieValue(STR_EMPTY, values));
2698
+ _delCookieFn(name, _formatDeletionValue(path));
2592
2699
  result = true;
2593
2700
  }
2594
2701
  return result;
@@ -2596,6 +2703,7 @@ function createCookieMgr(rootConfig, logger) {
2596
2703
  unload: function (isAsync) {
2597
2704
  unloadHandler && unloadHandler.rm();
2598
2705
  unloadHandler = null;
2706
+ _pendingCookies = null;
2599
2707
  }
2600
2708
  };
2601
2709
  cookieMgr[strConfigCookieMgr] = cookieMgr;
@@ -3770,7 +3878,7 @@ var Device = /** @class */ (function () {
3770
3878
  return Device;
3771
3879
  }());
3772
3880
 
3773
- var Version = '3.3.10-nightly3.2507-28';
3881
+ var Version = '3.3.10-nightly3.2508-01';
3774
3882
  var Internal = /** @class */ (function () {
3775
3883
  function Internal(config, unloadHookContainer) {
3776
3884
  var _this = this;
@@ -4334,4 +4442,6 @@ exports.Session = Session;
4334
4442
  exports.SessionManager = _SessionManager;
4335
4443
  exports.TelemetryContext = TelemetryContext;
4336
4444
  exports.TelemetryTrace = TelemetryTrace;
4337
- //# sourceMappingURL=ai.props.3.3.10-nightly3.2507-28.cjs.js.map
4445
+
4446
+ }));
4447
+ //# sourceMappingURL=ai.props.3.3.10-nightly3.2508-01.js.map