@microsoft/1ds-post-js 4.4.6-nightly3.2610-06 → 4.4.6-nightly3.2610-07
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.
- package/README.md +1 -1
- package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.gbl.js → ms.post-4.4.6-nightly3.2610-07.gbl.js} +19 -18
- package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.gbl.js.map → ms.post-4.4.6-nightly3.2610-07.gbl.js.map} +1 -1
- package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.gbl.min.js → ms.post-4.4.6-nightly3.2610-07.gbl.min.js} +3 -3
- package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.gbl.min.js.map → ms.post-4.4.6-nightly3.2610-07.gbl.min.js.map} +1 -1
- package/bundle/es5/ms.post-4.4.6-nightly3.2610-07.integrity.json +46 -0
- package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.js → ms.post-4.4.6-nightly3.2610-07.js} +19 -18
- package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.js.map → ms.post-4.4.6-nightly3.2610-07.js.map} +1 -1
- package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.min.js → ms.post-4.4.6-nightly3.2610-07.min.js} +3 -3
- package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.min.js.map → ms.post-4.4.6-nightly3.2610-07.min.js.map} +1 -1
- package/bundle/es5/ms.post.gbl.js +18 -17
- package/bundle/es5/ms.post.gbl.js.map +1 -1
- package/bundle/es5/ms.post.gbl.min.js +2 -2
- package/bundle/es5/ms.post.gbl.min.js.map +1 -1
- package/bundle/es5/ms.post.integrity.json +17 -17
- package/bundle/es5/ms.post.js +18 -17
- package/bundle/es5/ms.post.js.map +1 -1
- package/bundle/es5/ms.post.min.js +2 -2
- package/bundle/es5/ms.post.min.js.map +1 -1
- package/dist/es5/ms.post.js +16 -15
- package/dist/es5/ms.post.js.map +1 -1
- package/dist/es5/ms.post.min.js +2 -2
- package/dist/es5/ms.post.min.js.map +1 -1
- package/dist-es5/BatchNotificationActions.js +1 -1
- package/dist-es5/ClockSkewManager.js +1 -1
- package/dist-es5/DataModels.js +1 -1
- package/dist-es5/EventBatch.js +1 -1
- package/dist-es5/HttpManager.js +1 -1
- package/dist-es5/Index.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/KillSwitch.js +1 -1
- package/dist-es5/PostChannel.js +2 -2
- package/dist-es5/PostChannel.js.map +1 -1
- package/dist-es5/RetryPolicy.js +1 -1
- package/dist-es5/Serializer.js +1 -1
- package/dist-es5/TimeoutOverrideWrapper.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/typings/XDomainRequest.js +1 -1
- package/package.json +2 -2
- package/types/1ds-post-js.d.ts +1 -1
- package/types/1ds-post-js.namespaced.d.ts +4 -1
- package/bundle/es5/ms.post-4.4.6-nightly3.2610-06.integrity.json +0 -46
package/README.md
CHANGED
|
@@ -296,7 +296,7 @@ As the sendBeacon() API does not provide any response handling, any events sent
|
|
|
296
296
|
|
|
297
297
|
Events that cause a page navigation can cause a race condition that could result in either event loss or duplication. This happens when any previously batched events have been sent (the request is in-flight) and the browser subsequently cancels the request before a response is processed AND it also triggers the JavaScript "cancel" or "abort" event, normally only during the unload process.
|
|
298
298
|
|
|
299
|
-
The SDK listens to all supported "unload" events (```
|
|
299
|
+
The SDK listens to all supported "unload" events (```beforeunload```, ```pagehide``` and ```visibilitychange``` (hidden), with the deprecated ```unload``` event only used as a fallback when neither ```beforeunload``` nor ```pagehide``` could be hooked) and when any one of these are detected it will immediately send all (unsent) batched events via the "SendBeacon" (and fallback) methods above. This successfully mitigates the event loss case above, but it can compound the event duplication case for some scenarios as the SDK works to ensure that all events are sent and acknowledged.
|
|
300
300
|
|
|
301
301
|
This situation has become more prevalent with the enforcement by modern browsers to disallow, cancel or abort the usage of synchronous Xhr requests during page "unload" event.
|
|
302
302
|
|
package/bundle/es5/{ms.post-4.4.6-nightly3.2610-06.gbl.js → ms.post-4.4.6-nightly3.2610-07.gbl.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* 1DS JS SDK POST plugin, 4.4.6-nightly3.2610-
|
|
2
|
+
* 1DS JS SDK POST plugin, 4.4.6-nightly3.2610-07
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
var undef = "undefined";
|
|
8
|
-
var nsKey, key, nm, theExports = {}, modName = "
|
|
9
|
-
var mods={}, modDetail=mods[modName]={}, ver="4.4.6-nightly3.2610-
|
|
8
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_4_6_nightly3_2610_07", msMod="__ms$mod__";
|
|
9
|
+
var mods={}, modDetail=mods[modName]={}, ver="4.4.6-nightly3.2610-07";
|
|
10
10
|
// Versioned namespace "oneDS4"
|
|
11
11
|
var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
12
12
|
// Global namespace "oneDS"
|
|
@@ -2021,7 +2021,7 @@ function newId(maxLength) {
|
|
|
2021
2021
|
return result;
|
|
2022
2022
|
}
|
|
2023
2023
|
|
|
2024
|
-
var version = '3.4.6-nightly3.2610-
|
|
2024
|
+
var version = '3.4.6-nightly3.2610-07';
|
|
2025
2025
|
var instanceName = "." + newId(6);
|
|
2026
2026
|
var _dataUid = 0;
|
|
2027
2027
|
function _canAcceptData(target) {
|
|
@@ -4248,16 +4248,6 @@ function _addEventListeners(events, listener, excludeEvents, evtNamespace) {
|
|
|
4248
4248
|
}
|
|
4249
4249
|
return added;
|
|
4250
4250
|
}
|
|
4251
|
-
function addEventListeners(events, listener, excludeEvents, evtNamespace) {
|
|
4252
|
-
var added = false;
|
|
4253
|
-
if (listener && events && isArray(events)) {
|
|
4254
|
-
added = _addEventListeners(events, listener, excludeEvents, evtNamespace);
|
|
4255
|
-
if (!added && excludeEvents && excludeEvents[_DYN_LENGTH$1 ] > 0) {
|
|
4256
|
-
added = _addEventListeners(events, listener, null, evtNamespace);
|
|
4257
|
-
}
|
|
4258
|
-
}
|
|
4259
|
-
return added;
|
|
4260
|
-
}
|
|
4261
4251
|
function removeEventListeners(events, listener, evtNamespace) {
|
|
4262
4252
|
if (events && isArray(events)) {
|
|
4263
4253
|
arrForEach(events, function (name) {
|
|
@@ -4268,7 +4258,18 @@ function removeEventListeners(events, listener, evtNamespace) {
|
|
|
4268
4258
|
}
|
|
4269
4259
|
}
|
|
4270
4260
|
function addPageUnloadEventListener(listener, excludeEvents, evtNamespace) {
|
|
4271
|
-
|
|
4261
|
+
var added = false;
|
|
4262
|
+
if (listener) {
|
|
4263
|
+
added = _addEventListeners([strBeforeUnload, strPageHide], listener, excludeEvents, evtNamespace);
|
|
4264
|
+
if (!added) {
|
|
4265
|
+
added = _addEventListeners([strUnload], listener, excludeEvents, evtNamespace);
|
|
4266
|
+
}
|
|
4267
|
+
if (!added && excludeEvents && excludeEvents[_DYN_LENGTH$1 ] > 0) {
|
|
4268
|
+
added = _addEventListeners([strBeforeUnload, strPageHide], listener, null, evtNamespace) ||
|
|
4269
|
+
_addEventListeners([strUnload], listener, null, evtNamespace);
|
|
4270
|
+
}
|
|
4271
|
+
}
|
|
4272
|
+
return added;
|
|
4272
4273
|
}
|
|
4273
4274
|
function removePageUnloadEventListener(listener, evtNamespace) {
|
|
4274
4275
|
removeEventListeners([strBeforeUnload, strUnload, strPageHide], listener, evtNamespace);
|
|
@@ -4317,7 +4318,7 @@ function removePageShowEventListener(listener, evtNamespace) {
|
|
|
4317
4318
|
}
|
|
4318
4319
|
|
|
4319
4320
|
var _a$1;
|
|
4320
|
-
var ExtVersion = '4.4.6-nightly3.2610-
|
|
4321
|
+
var ExtVersion = '4.4.6-nightly3.2610-07';
|
|
4321
4322
|
var ExtFullVersionString = "1DS-Web-JS-" + ExtVersion;
|
|
4322
4323
|
var FullVersionString = ExtFullVersionString;
|
|
4323
4324
|
var ObjHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -6029,7 +6030,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
6029
6030
|
var _this = _super.call(this) || this;
|
|
6030
6031
|
_this.identifier = "PostChannel";
|
|
6031
6032
|
_this.priority = 1011;
|
|
6032
|
-
_this.version = '4.4.6-nightly3.2610-
|
|
6033
|
+
_this.version = '4.4.6-nightly3.2610-07';
|
|
6033
6034
|
var _postConfig;
|
|
6034
6035
|
var _isTeardownCalled = false;
|
|
6035
6036
|
var _flushCallbackQueue = [];
|
|
@@ -6845,4 +6846,4 @@ exports.PostChannel = PostChannel;
|
|
|
6845
6846
|
exports.RT_PROFILE = RT_PROFILE;
|
|
6846
6847
|
|
|
6847
6848
|
}));
|
|
6848
|
-
//# sourceMappingURL=ms.post-4.4.6-nightly3.2610-
|
|
6849
|
+
//# sourceMappingURL=ms.post-4.4.6-nightly3.2610-07.gbl.js.map
|