@microsoft/1ds-post-js 3.2.7 → 3.2.8

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 (57) hide show
  1. package/README.md +2 -1
  2. package/bundle/{ms.post-3.2.7.gbl.js → ms.post-3.2.8.gbl.js} +93 -60
  3. package/bundle/ms.post-3.2.8.gbl.js.map +1 -0
  4. package/bundle/ms.post-3.2.8.gbl.min.js +7 -0
  5. package/bundle/ms.post-3.2.8.gbl.min.js.map +1 -0
  6. package/bundle/ms.post-3.2.8.integrity.json +46 -0
  7. package/bundle/{ms.post-3.2.7.js → ms.post-3.2.8.js} +93 -60
  8. package/bundle/ms.post-3.2.8.js.map +1 -0
  9. package/bundle/ms.post-3.2.8.min.js +7 -0
  10. package/bundle/ms.post-3.2.8.min.js.map +1 -0
  11. package/bundle/ms.post.gbl.js +92 -59
  12. package/bundle/ms.post.gbl.js.map +1 -1
  13. package/bundle/ms.post.gbl.min.js +2 -2
  14. package/bundle/ms.post.gbl.min.js.map +1 -1
  15. package/bundle/ms.post.integrity.json +17 -17
  16. package/bundle/ms.post.js +92 -59
  17. package/bundle/ms.post.js.map +1 -1
  18. package/bundle/ms.post.min.js +2 -2
  19. package/bundle/ms.post.min.js.map +1 -1
  20. package/dist/ms.post.js +17 -12
  21. package/dist/ms.post.js.map +1 -1
  22. package/dist/ms.post.min.js +2 -2
  23. package/dist/ms.post.min.js.map +1 -1
  24. package/dist-esm/src/BatchNotificationActions.js +1 -1
  25. package/dist-esm/src/ClockSkewManager.js +1 -1
  26. package/dist-esm/src/DataModels.d.ts +5 -0
  27. package/dist-esm/src/DataModels.js +1 -1
  28. package/dist-esm/src/EventBatch.js +3 -3
  29. package/dist-esm/src/EventBatch.js.map +1 -1
  30. package/dist-esm/src/HttpManager.js +13 -9
  31. package/dist-esm/src/HttpManager.js.map +1 -1
  32. package/dist-esm/src/Index.js +1 -1
  33. package/dist-esm/src/InternalConstants.d.ts +1 -0
  34. package/dist-esm/src/InternalConstants.js +2 -1
  35. package/dist-esm/src/InternalConstants.js.map +1 -1
  36. package/dist-esm/src/KillSwitch.js +1 -1
  37. package/dist-esm/src/PostChannel.js +3 -3
  38. package/dist-esm/src/PostChannel.js.map +1 -1
  39. package/dist-esm/src/RetryPolicy.js +1 -1
  40. package/dist-esm/src/Serializer.js +3 -2
  41. package/dist-esm/src/Serializer.js.map +1 -1
  42. package/dist-esm/src/TimeoutOverrideWrapper.js +1 -1
  43. package/dist-esm/src/typings/XDomainRequest.js +1 -1
  44. package/package.json +4 -4
  45. package/src/DataModels.ts +7 -1
  46. package/src/EventBatch.ts +2 -2
  47. package/src/HttpManager.ts +12 -8
  48. package/src/InternalConstants.ts +1 -0
  49. package/src/PostChannel.ts +1 -1
  50. package/src/Serializer.ts +2 -1
  51. package/bundle/ms.post-3.2.7.gbl.js.map +0 -1
  52. package/bundle/ms.post-3.2.7.gbl.min.js +0 -7
  53. package/bundle/ms.post-3.2.7.gbl.min.js.map +0 -1
  54. package/bundle/ms.post-3.2.7.integrity.json +0 -46
  55. package/bundle/ms.post-3.2.7.js.map +0 -1
  56. package/bundle/ms.post-3.2.7.min.js +0 -7
  57. package/bundle/ms.post-3.2.7.min.js.map +0 -1
package/README.md CHANGED
@@ -15,7 +15,7 @@ ms.reviewedBy: ramthi
15
15
 
16
16
  ## npm
17
17
 
18
- Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-post-js/overview/3.2.7).
18
+ Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-post-js/overview/3.2.8).
19
19
 
20
20
  ## Basic Usage
21
21
 
@@ -75,6 +75,7 @@ appInsightsCore.initialize(coreConfig, []);
75
75
  | alwaysUseXhrOverride<br /><sub><i>(Since 3.1.11+)</i></sub> | [Optional] By default during unload (or when you specify to use sendBeacon() or sync fetch (with keep-alive) for an event) the SDK ignores any provided httpXhrOverride and attempts to use sendBeacon() or fetch(with keep-alive) when they are available. When this configuration option is true any provided httpXhrOverride will always be used, so any provided httpXhrOverride will also need to "handle" the synchronous unload scenario. | boolean<br /> Default: false
76
76
  | maxEventRetryAttempts<br /><sub><i>(Since 3.1.11+)</i></sub> | [Optional] Identifies the number of times any single event will be retried if it receives a failed (retirable) response, this causes the event to be internally "requeued" and resent in the next batch. As each normal batched send request is retried at least once before starting to increase the internal backoff send interval, normally batched events will generally be attempted the next nearest even number of times. This means that the total number of actual send attempts will almost always be even (setting to 5 will cause 6 requests), unless using manual synchronous flushing (calling flush(false)) which is not subject to request level retry attempts. | number<br/>Default: 6
77
77
  | maxUnloadEventRetryAttempts<br /><sub><i>(Since 3.1.11+)</i></sub> | [Optional] Identifies the number of times any single event will be retried if it receives a failed (retriable) response as part of processing / flushing events once a page unload state has been detected, this causes the event to be internally "requeued" and resent in the next batch, which during page unload. Unlike the normal batching process, send requests are never retried, so the value listed here is always the maximum number of attempts for any single event.<br/>Notes: The SDK by default will use the sendBeacon() API if it exists which is treated as a fire and forget successful response, so for environments that support or supply this API the events won't be retried (because they will be deeded to be successfully sent). When an environment (IE) doesn't support sendBeacon(), this will cause multiple synchronous (by default) XMLHttpRequests to be sent, which will block the UI until a response is received. You can disable ALL synchronous XHR requests by setting the 'disableXhrSync' configuration setting and/or changing this value to 0 or 1. | number<br/>Default: 2
78
+ | addNoResponse <br /><sub><i>(Since 3.2.8+)</i></sub> | [Optional] flag to indicate whether the sendBeacon and fetch (with keep-alive flag) should add the "NoResponseBody" query string value to indicate that the server should return a 204 for successful requests. | boolean<br/>Default: true
78
79
 
79
80
  ### [IXHROverride](https://1dsdocs.azurewebsites.net/api/webSDK/chnl/post/3.0/f/interfaces/ixhroverride.html)
80
81
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 3.2.7
2
+ * 1DS JS SDK POST plugin, 3.2.8
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -21,21 +21,23 @@
21
21
  var _cachedGlobal = null;
22
22
  function getGlobal(useCached) {
23
23
  if (useCached === void 0) { useCached = true; }
24
- if (!_cachedGlobal || !useCached) {
25
- if (typeof globalThis !== strShimUndefined && globalThis) {
26
- _cachedGlobal = globalThis;
24
+ var result = useCached === false ? null : _cachedGlobal;
25
+ if (!result) {
26
+ if (typeof globalThis !== strShimUndefined) {
27
+ result = globalThis;
27
28
  }
28
- if (typeof self !== strShimUndefined && self) {
29
- _cachedGlobal = self;
29
+ if (!result && typeof self !== strShimUndefined) {
30
+ result = self;
30
31
  }
31
- if (typeof window !== strShimUndefined && window) {
32
- _cachedGlobal = window;
32
+ if (!result && typeof window !== strShimUndefined) {
33
+ result = window;
33
34
  }
34
- if (typeof global !== strShimUndefined && global) {
35
- _cachedGlobal = global;
35
+ if (!result && typeof global !== strShimUndefined) {
36
+ result = global;
36
37
  }
38
+ _cachedGlobal = result;
37
39
  }
38
- return _cachedGlobal;
40
+ return result;
39
41
  }
40
42
  function throwTypeError(message) {
41
43
  throw new TypeError(message);
@@ -61,7 +63,9 @@
61
63
  (getGlobal() || {})["Reflect"];
62
64
  var extendStaticsFn = function (d, b) {
63
65
  extendStaticsFn = ObjClass["setPrototypeOf"] ||
64
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
66
+ ({ __proto__: [] } instanceof Array && function (d, b) {
67
+ d.__proto__ = b;
68
+ }) ||
65
69
  function (d, b) {
66
70
  for (var p in b) {
67
71
  if (b[strShimHasOwnProperty](p)) {
@@ -76,14 +80,18 @@
76
80
  throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
77
81
  }
78
82
  extendStaticsFn(d, b);
79
- function __() { this.constructor = d; }
83
+ function __() {
84
+ this.constructor = d;
85
+ }
80
86
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
81
87
  }
82
88
 
83
89
  /*!
84
- * Microsoft Dynamic Proto Utility, 1.1.6
90
+ * Microsoft Dynamic Proto Utility, 1.1.7
85
91
  * Copyright (c) Microsoft and contributors. All rights reserved.
86
92
  */
93
+ var _a$2;
94
+ var UNDEFINED = "undefined";
87
95
  var Constructor = 'constructor';
88
96
  var Prototype = 'prototype';
89
97
  var strFunction = 'function';
@@ -97,13 +105,37 @@
97
105
  var UnknownValue = '_unknown_';
98
106
  var str__Proto$1 = "__proto__";
99
107
  var DynProtoBaseProto = "_dyn" + str__Proto$1;
108
+ var DynProtoGlobalSettings = "__dynProto$Gbl";
100
109
  var DynProtoCurrent = "_dynInstProto";
101
110
  var strUseBaseInst = 'useBaseInst';
102
111
  var strSetInstFuncs = 'setInstFuncs';
103
112
  var Obj = Object;
104
113
  var _objGetPrototypeOf$1 = Obj["getPrototypeOf"];
105
114
  var _objGetOwnProps = Obj["getOwnPropertyNames"];
106
- var _dynamicNames = 0;
115
+ function _getGlobal() {
116
+ var result;
117
+ if (typeof globalThis !== UNDEFINED) {
118
+ result = globalThis;
119
+ }
120
+ if (!result && typeof self !== UNDEFINED) {
121
+ result = self;
122
+ }
123
+ if (!result && typeof window !== UNDEFINED) {
124
+ result = window;
125
+ }
126
+ if (!result && typeof global !== UNDEFINED) {
127
+ result = global;
128
+ }
129
+ return result || {};
130
+ }
131
+ var _gbl = _getGlobal();
132
+ var _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {
133
+ o: (_a$2 = {},
134
+ _a$2[strSetInstFuncs] = true,
135
+ _a$2[strUseBaseInst] = true,
136
+ _a$2),
137
+ n: 1000
138
+ });
107
139
  function _hasOwnProperty(obj, prop) {
108
140
  return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
109
141
  }
@@ -297,15 +329,15 @@
297
329
  }
298
330
  var classProto = theClass[Prototype];
299
331
  if (!_checkPrototype(classProto, target)) {
300
- _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
332
+ _throwTypeError("[" + _getObjName(theClass) + "] not in hierarchy of [" + _getObjName(target) + "]");
301
333
  }
302
334
  var className = null;
303
335
  if (_hasOwnProperty(classProto, DynClassName)) {
304
336
  className = classProto[DynClassName];
305
337
  }
306
338
  else {
307
- className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
308
- _dynamicNames++;
339
+ className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _gblInst.n;
340
+ _gblInst.n++;
309
341
  classProto[DynClassName] = className;
310
342
  }
311
343
  var perfOptions = dynamicProto[DynProtoDefaultOptions];
@@ -322,11 +354,7 @@
322
354
  }
323
355
  _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
324
356
  }
325
- var perfDefaults = {
326
- setInstFuncs: true,
327
- useBaseInst: true
328
- };
329
- dynamicProto[DynProtoDefaultOptions] = perfDefaults;
357
+ dynamicProto[DynProtoDefaultOptions] = _gblInst.o;
330
358
 
331
359
  var _DYN_INITIALIZE = "initialize";
332
360
  var _DYN_NAME = "name";
@@ -368,7 +396,7 @@
368
396
  var _DYN_SET_CTX = "setCtx";
369
397
  var _DYN_COMPLETE = "complete";
370
398
 
371
- var STR_EMPTY$1 = "";
399
+ var STR_EMPTY$2 = "";
372
400
  var STR_CORE = "core";
373
401
  var STR_DISABLED = "disabled";
374
402
  var STR_EXTENSION_CONFIG = "extensionConfig";
@@ -537,7 +565,7 @@
537
565
  }
538
566
  function strTrim(str) {
539
567
  if (str) {
540
- str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE ] ? str[_DYN_REPLACE ](/^\s+|\s+$/g, STR_EMPTY$1) : str);
568
+ str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE ] ? str[_DYN_REPLACE ](/^\s+|(?=\s)\s+$/g, STR_EMPTY$2) : str);
541
569
  }
542
570
  return str;
543
571
  }
@@ -850,14 +878,14 @@
850
878
  var nav = getNavigator();
851
879
  if (nav && (nav[_DYN_USER_AGENT ] !== _navUserAgentCheck || _isTrident === null)) {
852
880
  _navUserAgentCheck = nav[_DYN_USER_AGENT ];
853
- var userAgent = (_navUserAgentCheck || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ]();
881
+ var userAgent = (_navUserAgentCheck || STR_EMPTY$2)[_DYN_TO_LOWER_CASE ]();
854
882
  _isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));
855
883
  }
856
884
  return _isTrident;
857
885
  }
858
886
  function dumpObj(object) {
859
887
  var objectTypeDump = Object[strShimPrototype].toString[_DYN_CALL ](object);
860
- var propertyValueDump = STR_EMPTY$1;
888
+ var propertyValueDump = STR_EMPTY$2;
861
889
  if (objectTypeDump === "[object Error]") {
862
890
  propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object[_DYN_NAME ] + "'";
863
891
  }
@@ -926,9 +954,9 @@
926
954
  var AIInternalMessagePrefix = "AITR_";
927
955
  function _sanitizeDiagnosticText(text) {
928
956
  if (text) {
929
- return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY$1) + "\"";
957
+ return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY$2) + "\"";
930
958
  }
931
- return STR_EMPTY$1;
959
+ return STR_EMPTY$2;
932
960
  }
933
961
  function _logToConsole(func, message) {
934
962
  var theConsole = getConsole();
@@ -950,12 +978,12 @@
950
978
  _self[_DYN_MESSAGE ] =
951
979
  (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
952
980
  msgId;
953
- var strProps = STR_EMPTY$1;
981
+ var strProps = STR_EMPTY$2;
954
982
  if (hasJSON()) {
955
983
  strProps = getJSON().stringify(properties);
956
984
  }
957
- var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY$1) +
958
- (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY$1);
985
+ var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY$2) +
986
+ (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY$2);
959
987
  _self[_DYN_MESSAGE ] += diagnosticText;
960
988
  }
961
989
  _InternalLogMessage.dataType = "MessageData";
@@ -1252,7 +1280,7 @@
1252
1280
  var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1253
1281
  var number = random32() >>> 0;
1254
1282
  var chars = 0;
1255
- var result = STR_EMPTY$1;
1283
+ var result = STR_EMPTY$2;
1256
1284
  while (result[_DYN_LENGTH ] < maxLength) {
1257
1285
  chars++;
1258
1286
  result += base64chars.charAt(number & 0x3F);
@@ -1266,7 +1294,7 @@
1266
1294
  }
1267
1295
 
1268
1296
  var _objDefineProperty = ObjDefineProperty;
1269
- var version = '2.8.8';
1297
+ var version = '2.8.9';
1270
1298
  var instanceName = "." + newId(6);
1271
1299
  var _dataUid = 0;
1272
1300
  function _createAccessor(target, prop, value) {
@@ -1305,11 +1333,11 @@
1305
1333
  }
1306
1334
  function createUniqueNamespace(name, includeVersion) {
1307
1335
  if (includeVersion === void 0) { includeVersion = false; }
1308
- return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY$1) + instanceName);
1336
+ return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY$2) + instanceName);
1309
1337
  }
1310
1338
  function createElmNodeData(name) {
1311
1339
  var data = {
1312
- id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY$1) + "." + version),
1340
+ id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY$2) + "." + version),
1313
1341
  accept: function (target) {
1314
1342
  return _canAcceptData(target);
1315
1343
  },
@@ -1357,16 +1385,16 @@
1357
1385
  var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
1358
1386
  function _normalizeNamespace(name) {
1359
1387
  if (name && name[_DYN_REPLACE ]) {
1360
- return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY$1);
1388
+ return name[_DYN_REPLACE ](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g, STR_EMPTY$2);
1361
1389
  }
1362
1390
  return name;
1363
1391
  }
1364
1392
  function _getEvtNamespace(eventName, evtNamespace) {
1365
1393
  var _a;
1366
1394
  if (evtNamespace) {
1367
- var theNamespace_1 = STR_EMPTY$1;
1395
+ var theNamespace_1 = STR_EMPTY$2;
1368
1396
  if (isArray(evtNamespace)) {
1369
- theNamespace_1 = STR_EMPTY$1;
1397
+ theNamespace_1 = STR_EMPTY$2;
1370
1398
  arrForEach(evtNamespace, function (name) {
1371
1399
  name = _normalizeNamespace(name);
1372
1400
  if (name) {
@@ -1384,13 +1412,13 @@
1384
1412
  if (theNamespace_1[0] !== ".") {
1385
1413
  theNamespace_1 = "." + theNamespace_1;
1386
1414
  }
1387
- eventName = (eventName || STR_EMPTY$1) + theNamespace_1;
1415
+ eventName = (eventName || STR_EMPTY$2) + theNamespace_1;
1388
1416
  }
1389
1417
  }
1390
- var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY$1) || []);
1418
+ var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY$2) || []);
1391
1419
  return _a = {},
1392
1420
  _a[_DYN_TYPE ] = parsedEvent[1],
1393
- _a.ns = ((parsedEvent[2] || STR_EMPTY$1).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY$1)[_DYN_SPLIT ](".").sort()).join("."),
1421
+ _a.ns = ((parsedEvent[2] || STR_EMPTY$2).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY$2)[_DYN_SPLIT ](".").sort()).join("."),
1394
1422
  _a;
1395
1423
  }
1396
1424
  function _getRegisteredEvents(target, evtName, addDefault) {
@@ -1900,7 +1928,7 @@
1900
1928
  doPerf(itemCtx[STR_CORE ](), function () { return identifier + ":" + name; }, function () {
1901
1929
  hasRunContext[chainId] = true;
1902
1930
  try {
1903
- var nextId = nextProxy ? nextProxy._id : STR_EMPTY$1;
1931
+ var nextId = nextProxy ? nextProxy._id : STR_EMPTY$2;
1904
1932
  if (nextId) {
1905
1933
  hasRunContext[nextId] = false;
1906
1934
  }
@@ -2156,10 +2184,10 @@
2156
2184
  return BaseTelemetryPlugin;
2157
2185
  }());
2158
2186
 
2159
- var STR_EMPTY = "";
2187
+ var STR_EMPTY$1 = "";
2160
2188
 
2161
2189
  var _a$1;
2162
- var Version = '3.2.7';
2190
+ var Version = '3.2.8';
2163
2191
  var FullVersionString = "1DS-Web-JS-" + Version;
2164
2192
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
2165
2193
  var strWithCredentials = "withCredentials";
@@ -2176,7 +2204,7 @@
2176
2204
  Boolean(getDocument());
2177
2205
  Boolean(getWindow());
2178
2206
  function isValueAssigned(value) {
2179
- return !(value === STR_EMPTY || isNullOrUndefined(value));
2207
+ return !(value === STR_EMPTY$1 || isNullOrUndefined(value));
2180
2208
  }
2181
2209
  function getTenantId(apiKey) {
2182
2210
  if (apiKey) {
@@ -2185,7 +2213,7 @@
2185
2213
  return apiKey.substring(0, indexTenantId);
2186
2214
  }
2187
2215
  }
2188
- return STR_EMPTY;
2216
+ return STR_EMPTY$1;
2189
2217
  }
2190
2218
  function sanitizeProperty(name, property, stringifyObjects) {
2191
2219
  if ((!property && !isValueAssigned(property)) || typeof name !== "string") {
@@ -2199,7 +2227,7 @@
2199
2227
  property = { value: stringifyObjects ? JSON.stringify(property) : property };
2200
2228
  }
2201
2229
  else if (isNullOrUndefined(property.value)
2202
- || property.value === STR_EMPTY || (!isString(property.value)
2230
+ || property.value === STR_EMPTY$1 || (!isString(property.value)
2203
2231
  && !isNumber(property.value) && !isBoolean(property.value)
2204
2232
  && !isArray(property.value))) {
2205
2233
  return null;
@@ -2366,6 +2394,7 @@
2366
2394
  var NRT_PROFILE = "NEAR_REAL_TIME";
2367
2395
  var BE_PROFILE = "BEST_EFFORT";
2368
2396
 
2397
+ var STR_EMPTY = "";
2369
2398
  var STR_POST_METHOD = "POST";
2370
2399
  var STR_DISABLED_PROPERTY_NAME = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
2371
2400
  var STR_DROPPED = "drop";
@@ -2416,7 +2445,7 @@
2416
2445
  return iKey;
2417
2446
  };
2418
2447
  _self.Msfpc = function () {
2419
- return _msfpc || "";
2448
+ return _msfpc || STR_EMPTY;
2420
2449
  };
2421
2450
  _self.count = function () {
2422
2451
  return events.length;
@@ -2585,7 +2614,7 @@
2585
2614
  _self.createPayload = function (retryCnt, isTeardown, isSync, isReducedPayload, sendReason, sendType) {
2586
2615
  return {
2587
2616
  apiKeys: [],
2588
- payloadBlob: "",
2617
+ payloadBlob: STR_EMPTY,
2589
2618
  overflow: null,
2590
2619
  sizeExceed: [],
2591
2620
  failedEvts: [],
@@ -2841,7 +2870,7 @@
2841
2870
  }
2842
2871
  catch (e) {
2843
2872
  }
2844
- return "";
2873
+ return STR_EMPTY;
2845
2874
  }
2846
2875
  function _hasHeader(headers, header) {
2847
2876
  var hasHeader = false;
@@ -2909,6 +2938,7 @@
2909
2938
  var _disableXhrSync;
2910
2939
  var _disableFetchKeepAlive;
2911
2940
  var _canHaveReducedPayload;
2941
+ var _addNoResponse;
2912
2942
  dynamicProto(HttpManager, this, function (_self) {
2913
2943
  var _sendCredentials = true;
2914
2944
  _self.initialize = function (endpointUrl, core, postChannel, httpInterface, channelConfig) {
@@ -2932,6 +2962,7 @@
2932
2962
  _xhrTimeout = channelConfig.xhrTimeout;
2933
2963
  _disableXhrSync = !!channelConfig.disableXhrSync;
2934
2964
  _disableFetchKeepAlive = !!channelConfig.disableFetchKeepAlive;
2965
+ _addNoResponse = channelConfig.addNoResponse !== false;
2935
2966
  _useBeacons = !isReactNative();
2936
2967
  _serializer = new Serializer(_core, valueSanitizer, stringifyObjects, enableCompoundKey);
2937
2968
  if (!isNullOrUndefined(channelConfig.useSendBeacon)) {
@@ -3050,7 +3081,9 @@
3050
3081
  requestInit.keepalive = true;
3051
3082
  if (payload._sendReason === 2 ) {
3052
3083
  ignoreResponse = true;
3053
- theUrl += _noResponseQs;
3084
+ if (_addNoResponse) {
3085
+ theUrl += _noResponseQs;
3086
+ }
3054
3087
  }
3055
3088
  }
3056
3089
  if (_sendCredentials) {
@@ -3061,7 +3094,7 @@
3061
3094
  }
3062
3095
  fetch(theUrl, requestInit).then(function (response) {
3063
3096
  var headerMap = {};
3064
- var responseText = "";
3097
+ var responseText = STR_EMPTY;
3065
3098
  var headers = response.headers;
3066
3099
  if (headers) {
3067
3100
  headers["forEach"](function (value, name) {
@@ -3155,7 +3188,7 @@
3155
3188
  var internalPayloadData = payload;
3156
3189
  var status = 200;
3157
3190
  var thePayload = internalPayloadData._thePayload;
3158
- var theUrl = payload.urlString + _noResponseQs;
3191
+ var theUrl = payload.urlString + (_addNoResponse ? _noResponseQs : STR_EMPTY);
3159
3192
  try {
3160
3193
  var nav_1 = getNavigator();
3161
3194
  if (!nav_1.sendBeacon(theUrl, payload.data)) {
@@ -3187,7 +3220,7 @@
3187
3220
  status = 0;
3188
3221
  }
3189
3222
  finally {
3190
- _doOnComplete(oncomplete, status, {}, "");
3223
+ _doOnComplete(oncomplete, status, {}, STR_EMPTY);
3191
3224
  }
3192
3225
  }
3193
3226
  function _isBeaconPayload(sendType) {
@@ -3374,7 +3407,7 @@
3374
3407
  }
3375
3408
  _addRequestDetails(requestDetails, STR_CLIENT_ID, "NO_AUTH", useHeaders);
3376
3409
  _addRequestDetails(requestDetails, STR_CLIENT_VERSION, FullVersionString, useHeaders);
3377
- var apiQsKeys = "";
3410
+ var apiQsKeys = STR_EMPTY;
3378
3411
  arrForEach(thePayload.apiKeys, function (apiKey) {
3379
3412
  if (apiQsKeys.length > 0) {
3380
3413
  apiQsKeys += ",";
@@ -3656,7 +3689,7 @@
3656
3689
  return encodeURIComponent(msfpc);
3657
3690
  }
3658
3691
  }
3659
- return "";
3692
+ return STR_EMPTY;
3660
3693
  }
3661
3694
  function _handleCollectorResponse(responseText) {
3662
3695
  var responseHandlers = _self._responseHandlers;
@@ -3755,7 +3788,7 @@
3755
3788
  var _this = _super.call(this) || this;
3756
3789
  _this.identifier = "PostChannel";
3757
3790
  _this.priority = 1011;
3758
- _this.version = '3.2.7';
3791
+ _this.version = '3.2.8';
3759
3792
  var _config;
3760
3793
  var _isTeardownCalled = false;
3761
3794
  var _flushCallbackQueue = [];
@@ -3827,7 +3860,7 @@
3827
3860
  _httpManager.sendHook = _config.payloadPreprocessor;
3828
3861
  _httpManager.sendListener = _config.payloadListener;
3829
3862
  var endpointUrl = _config.overrideEndpointUrl ? _config.overrideEndpointUrl : coreConfig.endpointUrl;
3830
- _self._notificationManager = coreConfig.extensionConfig.NotificationManager;
3863
+ _self._notificationManager = core.getNotifyMgr();
3831
3864
  _httpManager.initialize(endpointUrl, _self.core, _self, _xhrOverride, _config);
3832
3865
  var excludePageUnloadEvents = coreConfig.disablePageUnloadEvents || [];
3833
3866
  addPageUnloadEventListener(_handleUnloadEvents, excludePageUnloadEvents, _evtNamespace);
@@ -4488,4 +4521,4 @@
4488
4521
  (function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
4489
4522
 
4490
4523
  })(this.oneDS = this.oneDS || {});
4491
- //# sourceMappingURL=ms.post-3.2.7.gbl.js.map
4524
+ //# sourceMappingURL=ms.post-3.2.8.gbl.js.map