@microsoft/1ds-post-js 4.4.2-nightly3.2605-07 → 4.4.2-nightly3.2605-11
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/bundle/es5/{ms.post-4.4.2-nightly3.2605-07.gbl.js → ms.post-4.4.2-nightly3.2605-11.gbl.js} +58 -31
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.gbl.js.map +1 -0
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.gbl.min.js +7 -0
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.gbl.min.js.map +1 -0
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.integrity.json +46 -0
- package/bundle/es5/{ms.post-4.4.2-nightly3.2605-07.js → ms.post-4.4.2-nightly3.2605-11.js} +58 -31
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.js.map +1 -0
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.min.js +7 -0
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.min.js.map +1 -0
- package/bundle/es5/ms.post.gbl.js +57 -30
- 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 +57 -30
- 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 +55 -28
- 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 +1 -1
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-07.gbl.js.map +0 -1
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-07.gbl.min.js +0 -7
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-07.gbl.min.js.map +0 -1
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-07.integrity.json +0 -46
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-07.js.map +0 -1
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-07.min.js +0 -7
- package/bundle/es5/ms.post-4.4.2-nightly3.2605-07.min.js.map +0 -1
package/bundle/es5/{ms.post-4.4.2-nightly3.2605-07.gbl.js → ms.post-4.4.2-nightly3.2605-11.gbl.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* 1DS JS SDK POST plugin, 4.4.2-nightly3.2605-
|
|
2
|
+
* 1DS JS SDK POST plugin, 4.4.2-nightly3.2605-11
|
|
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.2-nightly3.2605-
|
|
8
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_4_2_nightly3_2605_11", msMod="__ms$mod__";
|
|
9
|
+
var mods={}, modDetail=mods[modName]={}, ver="4.4.2-nightly3.2605-11";
|
|
10
10
|
// Versioned namespace "oneDS4"
|
|
11
11
|
var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
12
12
|
// Global namespace "oneDS"
|
|
@@ -928,9 +928,11 @@ var strFunction = 'function';
|
|
|
928
928
|
var DynInstFuncTable = '_dynInstFuncs';
|
|
929
929
|
var DynProxyTag = '_isDynProxy';
|
|
930
930
|
var DynClassName = '_dynClass';
|
|
931
|
+
var DynBaseProtoFuncs = '_dynBaseFuncs';
|
|
931
932
|
var DynClassNamePrefix = '_dynCls$';
|
|
932
933
|
var DynInstChkTag = '_dynInstChk';
|
|
933
934
|
var DynAllowInstChkTag = DynInstChkTag;
|
|
935
|
+
var DynResolvedCachePrefix = '_dyn_r$';
|
|
934
936
|
var DynProtoDefaultOptions = '_dfOpts';
|
|
935
937
|
var UnknownValue = '_unknown_';
|
|
936
938
|
var str__Proto = "__proto__";
|
|
@@ -1013,6 +1015,25 @@ function _hasVisited(values, value) {
|
|
|
1013
1015
|
}
|
|
1014
1016
|
return false;
|
|
1015
1017
|
}
|
|
1018
|
+
function _getBaseProtoFuncs(classProto) {
|
|
1019
|
+
if (objHasOwnProperty(classProto, DynBaseProtoFuncs)) {
|
|
1020
|
+
return classProto[DynBaseProtoFuncs];
|
|
1021
|
+
}
|
|
1022
|
+
var baseFuncSources = objCreate(null);
|
|
1023
|
+
var baseProto = _getObjProto(classProto);
|
|
1024
|
+
var visited = [];
|
|
1025
|
+
while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
|
|
1026
|
+
_forEachProp(baseProto, function (name) {
|
|
1027
|
+
if (!baseFuncSources[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
|
|
1028
|
+
baseFuncSources[name] = baseProto;
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
visited.push(baseProto);
|
|
1032
|
+
baseProto = _getObjProto(baseProto);
|
|
1033
|
+
}
|
|
1034
|
+
classProto[DynBaseProtoFuncs] = baseFuncSources;
|
|
1035
|
+
return baseFuncSources;
|
|
1036
|
+
}
|
|
1016
1037
|
function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
|
|
1017
1038
|
function _instFuncProxy(target, funcHost, funcName) {
|
|
1018
1039
|
var theFunc = funcHost[funcName];
|
|
@@ -1030,16 +1051,11 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
|
|
|
1030
1051
|
_forEachProp(instFuncs, function (name) {
|
|
1031
1052
|
baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
|
|
1032
1053
|
});
|
|
1033
|
-
var
|
|
1034
|
-
var
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
|
|
1039
|
-
}
|
|
1040
|
-
});
|
|
1041
|
-
visited.push(baseProto);
|
|
1042
|
-
baseProto = _getObjProto(baseProto);
|
|
1054
|
+
var baseFuncSources = _getBaseProtoFuncs(classProto);
|
|
1055
|
+
for (var name_2 in baseFuncSources) {
|
|
1056
|
+
if (!baseFuncs[name_2]) {
|
|
1057
|
+
baseFuncs[name_2] = _instFuncProxy(thisTarget, baseFuncSources[name_2], name_2);
|
|
1058
|
+
}
|
|
1043
1059
|
}
|
|
1044
1060
|
return baseFuncs;
|
|
1045
1061
|
}
|
|
@@ -1053,16 +1069,18 @@ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
|
|
|
1053
1069
|
}
|
|
1054
1070
|
if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
|
|
1055
1071
|
var canAddInst = !objHasOwnProperty(target, funcName);
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1072
|
+
if (canAddInst) {
|
|
1073
|
+
var objProto = _getObjProto(target);
|
|
1074
|
+
var visited = [];
|
|
1075
|
+
while (objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
|
|
1076
|
+
var protoFunc = objProto[funcName];
|
|
1077
|
+
if (protoFunc) {
|
|
1078
|
+
canAddInst = (protoFunc === currentDynProtoProxy);
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
visited.push(objProto);
|
|
1082
|
+
objProto = _getObjProto(objProto);
|
|
1063
1083
|
}
|
|
1064
|
-
visited.push(objProto);
|
|
1065
|
-
objProto = _getObjProto(objProto);
|
|
1066
1084
|
}
|
|
1067
1085
|
try {
|
|
1068
1086
|
if (canAddInst) {
|
|
@@ -1089,25 +1107,34 @@ function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
|
|
|
1089
1107
|
}
|
|
1090
1108
|
function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
|
|
1091
1109
|
function _createDynamicPrototype(proto, funcName) {
|
|
1110
|
+
var cacheKey = DynResolvedCachePrefix + className + "." + funcName;
|
|
1092
1111
|
var dynProtoProxy = function () {
|
|
1093
|
-
var
|
|
1112
|
+
var instFuncTable = this[DynInstFuncTable];
|
|
1113
|
+
var instFunc = instFuncTable ? instFuncTable[cacheKey] : undefined;
|
|
1114
|
+
if (!instFunc) {
|
|
1115
|
+
instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
|
|
1116
|
+
if (instFuncTable) {
|
|
1117
|
+
instFuncTable[cacheKey] = instFunc;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1094
1120
|
return instFunc.apply(this, arguments);
|
|
1095
1121
|
};
|
|
1096
1122
|
dynProtoProxy[DynProxyTag] = 1;
|
|
1097
1123
|
return dynProtoProxy;
|
|
1098
1124
|
}
|
|
1099
1125
|
if (!_isObjectOrArrayPrototype(proto)) {
|
|
1100
|
-
var
|
|
1101
|
-
if (!_isObjectOrArrayPrototype(
|
|
1102
|
-
var instFuncs_1 =
|
|
1103
|
-
if (
|
|
1104
|
-
|
|
1126
|
+
var instFuncTable_1 = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
|
|
1127
|
+
if (!_isObjectOrArrayPrototype(instFuncTable_1)) {
|
|
1128
|
+
var instFuncs_1 = instFuncTable_1[className] = (instFuncTable_1[className] || objCreate(null));
|
|
1129
|
+
if (instFuncTable_1[DynAllowInstChkTag] !== false) {
|
|
1130
|
+
instFuncTable_1[DynAllowInstChkTag] = !!setInstanceFunc;
|
|
1105
1131
|
}
|
|
1106
1132
|
if (!_isObjectOrArrayPrototype(instFuncs_1)) {
|
|
1107
1133
|
_forEachProp(target, function (name) {
|
|
1108
1134
|
if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
|
|
1109
1135
|
instFuncs_1[name] = target[name];
|
|
1110
1136
|
delete target[name];
|
|
1137
|
+
delete instFuncTable_1[DynResolvedCachePrefix + className + "." + name];
|
|
1111
1138
|
if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
|
|
1112
1139
|
proto[name] = _createDynamicPrototype(proto, name);
|
|
1113
1140
|
}
|
|
@@ -1982,7 +2009,7 @@ function newId(maxLength) {
|
|
|
1982
2009
|
return result;
|
|
1983
2010
|
}
|
|
1984
2011
|
|
|
1985
|
-
var version = "3.4.2-nightly3.2605-
|
|
2012
|
+
var version = "3.4.2-nightly3.2605-11";
|
|
1986
2013
|
var instanceName = "." + newId(6);
|
|
1987
2014
|
var _dataUid = 0;
|
|
1988
2015
|
function _canAcceptData(target) {
|
|
@@ -5990,7 +6017,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
5990
6017
|
var _this = _super.call(this) || this;
|
|
5991
6018
|
_this.identifier = "PostChannel";
|
|
5992
6019
|
_this.priority = 1011;
|
|
5993
|
-
_this.version = '4.4.2-nightly3.2605-
|
|
6020
|
+
_this.version = '4.4.2-nightly3.2605-11';
|
|
5994
6021
|
var _postConfig;
|
|
5995
6022
|
var _isTeardownCalled = false;
|
|
5996
6023
|
var _flushCallbackQueue = [];
|
|
@@ -6778,4 +6805,4 @@ exports.PostChannel = PostChannel;
|
|
|
6778
6805
|
exports.RT_PROFILE = RT_PROFILE;
|
|
6779
6806
|
|
|
6780
6807
|
}));
|
|
6781
|
-
//# sourceMappingURL=ms.post-4.4.2-nightly3.2605-
|
|
6808
|
+
//# sourceMappingURL=ms.post-4.4.2-nightly3.2605-11.gbl.js.map
|