@microsoft/1ds-post-js 3.2.14 → 3.2.16

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 (44) hide show
  1. package/README.md +1 -1
  2. package/bundle/{ms.post-3.2.14.gbl.js → ms.post-3.2.16.gbl.js} +33 -26
  3. package/bundle/ms.post-3.2.16.gbl.js.map +1 -0
  4. package/bundle/ms.post-3.2.16.gbl.min.js +7 -0
  5. package/bundle/ms.post-3.2.16.gbl.min.js.map +1 -0
  6. package/bundle/ms.post-3.2.16.integrity.json +46 -0
  7. package/bundle/{ms.post-3.2.14.js → ms.post-3.2.16.js} +33 -26
  8. package/bundle/{ms.post-3.2.14.gbl.js.map → ms.post-3.2.16.js.map} +1 -1
  9. package/bundle/ms.post-3.2.16.min.js +7 -0
  10. package/bundle/ms.post-3.2.16.min.js.map +1 -0
  11. package/bundle/ms.post.gbl.js +32 -25
  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 +32 -25
  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 +2 -2
  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.js +1 -1
  27. package/dist-esm/src/EventBatch.js +1 -1
  28. package/dist-esm/src/HttpManager.js +1 -1
  29. package/dist-esm/src/Index.js +1 -1
  30. package/dist-esm/src/InternalConstants.js +1 -1
  31. package/dist-esm/src/KillSwitch.js +1 -1
  32. package/dist-esm/src/PostChannel.js +2 -2
  33. package/dist-esm/src/PostChannel.js.map +1 -1
  34. package/dist-esm/src/RetryPolicy.js +1 -1
  35. package/dist-esm/src/Serializer.js +1 -1
  36. package/dist-esm/src/TimeoutOverrideWrapper.js +1 -1
  37. package/dist-esm/src/typings/XDomainRequest.js +1 -1
  38. package/package.json +3 -3
  39. package/bundle/ms.post-3.2.14.gbl.min.js +0 -7
  40. package/bundle/ms.post-3.2.14.gbl.min.js.map +0 -1
  41. package/bundle/ms.post-3.2.14.integrity.json +0 -46
  42. package/bundle/ms.post-3.2.14.js.map +0 -1
  43. package/bundle/ms.post-3.2.14.min.js +0 -7
  44. package/bundle/ms.post-3.2.14.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.14).
18
+ Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-post-js/overview/3.2.16).
19
19
 
20
20
  ## Basic Usage
21
21
 
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 3.2.14
2
+ * 1DS JS SDK POST plugin, 3.2.16
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
6
6
  (function (global, factory) {
7
- var nsKey, key, nm, theExports = {}, modName = "esm_ms_post_3_2_14", msMod="__ms$mod__";
8
- var mods={}, modDetail=mods[modName]={}, ver="3.2.14";
7
+ var nsKey, key, nm, theExports = {}, modName = "esm_ms_post_3_2_16", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.2.16";
9
9
  // Versioned namespace "oneDS3"
10
10
  var exportNs=global, nsKey="oneDS3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
11
11
  // Global namespace "oneDS"
@@ -108,7 +108,7 @@ function __extendsFn(d, b) {
108
108
  }
109
109
 
110
110
  /*!
111
- * Microsoft Dynamic Proto Utility, 1.1.9
111
+ * Microsoft Dynamic Proto Utility, 1.1.11
112
112
  * Copyright (c) Microsoft and contributors. All rights reserved.
113
113
  */
114
114
  var _a$2;
@@ -201,13 +201,16 @@ function _forEachProp(target, func) {
201
201
  }
202
202
  }
203
203
  function _isDynamicCandidate(target, funcName, skipOwn) {
204
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
204
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)) && funcName !== str__Proto$1 && funcName !== Prototype);
205
205
  }
206
206
  function _throwTypeError(message) {
207
207
  throw new TypeError("DynamicProto: " + message);
208
208
  }
209
+ function _newObject() {
210
+ return Object.create ? (function(obj) { var func = Object["create"]; if (func) { return func(obj); } if (obj == null) { return {}; } var type = typeof obj; if (type !== 'object' && type !== 'function') { throw new TypeError('Object prototype may only be an Object:' + obj); } function tmpFunc() {} tmpFunc.prototype = obj; return new tmpFunc(); })(null) : {};
211
+ }
209
212
  function _getInstanceFuncs(thisTarget) {
210
- var instFuncs = {};
213
+ var instFuncs = _newObject();
211
214
  _forEachProp(thisTarget, function (name) {
212
215
  if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
213
216
  instFuncs[name] = thisTarget[name];
@@ -236,7 +239,7 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
236
239
  return theFunc.apply(target, arguments);
237
240
  };
238
241
  }
239
- var baseFuncs = {};
242
+ var baseFuncs = _newObject();
240
243
  _forEachProp(instFuncs, function (name) {
241
244
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
242
245
  });
@@ -256,8 +259,8 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
256
259
  function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
257
260
  var instFunc = null;
258
261
  if (target && _hasOwnProperty(proto, DynClassName)) {
259
- var instFuncTable = target[DynInstFuncTable] || {};
260
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
262
+ var instFuncTable = target[DynInstFuncTable] || _newObject();
263
+ instFunc = (instFuncTable[proto[DynClassName]] || _newObject())[funcName];
261
264
  if (!instFunc) {
262
265
  _throwTypeError("Missing [" + funcName + "] " + strFunction);
263
266
  }
@@ -307,20 +310,24 @@ function _populatePrototype(proto, className, target, baseInstFuncs, setInstance
307
310
  return dynProtoProxy;
308
311
  }
309
312
  if (!_isObjectOrArrayPrototype(proto)) {
310
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
311
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
312
- if (instFuncTable[DynAllowInstChkTag] !== false) {
313
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
314
- }
315
- _forEachProp(target, function (name) {
316
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
317
- instFuncs_1[name] = target[name];
318
- delete target[name];
319
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
320
- proto[name] = _createDynamicPrototype(proto, name);
321
- }
313
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || _newObject();
314
+ if (!_isObjectOrArrayPrototype(instFuncTable)) {
315
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || _newObject());
316
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
317
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
318
+ }
319
+ if (!_isObjectOrArrayPrototype(instFuncs_1)) {
320
+ _forEachProp(target, function (name) {
321
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
322
+ instFuncs_1[name] = target[name];
323
+ delete target[name];
324
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
325
+ proto[name] = _createDynamicPrototype(proto, name);
326
+ }
327
+ }
328
+ });
322
329
  }
323
- });
330
+ }
324
331
  }
325
332
  }
326
333
  function _checkPrototype(classProto, thisTarget) {
@@ -1315,7 +1322,7 @@ function newId(maxLength) {
1315
1322
  }
1316
1323
 
1317
1324
  var _objDefineProperty = ObjDefineProperty;
1318
- var version = '2.8.16';
1325
+ var version = '2.8.17';
1319
1326
  var instanceName = "." + newId(6);
1320
1327
  var _dataUid = 0;
1321
1328
  function _createAccessor(target, prop, value) {
@@ -2208,7 +2215,7 @@ var BaseTelemetryPlugin = /** @class */ (function () {
2208
2215
  var STR_EMPTY$1 = "";
2209
2216
 
2210
2217
  var _a$1;
2211
- var Version = '3.2.14';
2218
+ var Version = '3.2.16';
2212
2219
  var FullVersionString = "1DS-Web-JS-" + Version;
2213
2220
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
2214
2221
  var strWithCredentials = "withCredentials";
@@ -3809,7 +3816,7 @@ var PostChannel = /** @class */ (function (_super) {
3809
3816
  var _this = _super.call(this) || this;
3810
3817
  _this.identifier = "PostChannel";
3811
3818
  _this.priority = 1011;
3812
- _this.version = '3.2.14';
3819
+ _this.version = '3.2.16';
3813
3820
  var _config;
3814
3821
  var _isTeardownCalled = false;
3815
3822
  var _flushCallbackQueue = [];
@@ -4540,4 +4547,4 @@ exports.PostChannel = PostChannel$1;
4540
4547
  exports.RT_PROFILE = RT_PROFILE;
4541
4548
 
4542
4549
  }));
4543
- //# sourceMappingURL=ms.post-3.2.14.gbl.js.map
4550
+ //# sourceMappingURL=ms.post-3.2.16.gbl.js.map