@microsoft/1ds-core-js 3.2.15 → 3.2.17

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 (46) hide show
  1. package/README.md +1 -1
  2. package/bundle/{ms.core-3.2.15.gbl.js → ms.core-3.2.17.gbl.js} +34 -25
  3. package/bundle/ms.core-3.2.17.gbl.js.map +1 -0
  4. package/bundle/ms.core-3.2.17.gbl.min.js +7 -0
  5. package/bundle/ms.core-3.2.17.gbl.min.js.map +1 -0
  6. package/bundle/ms.core-3.2.17.integrity.json +46 -0
  7. package/bundle/{ms.core-3.2.15.js → ms.core-3.2.17.js} +34 -25
  8. package/bundle/ms.core-3.2.17.js.map +1 -0
  9. package/bundle/ms.core-3.2.17.min.js +7 -0
  10. package/bundle/ms.core-3.2.17.min.js.map +1 -0
  11. package/bundle/ms.core.gbl.js +33 -24
  12. package/bundle/ms.core.gbl.js.map +1 -1
  13. package/bundle/ms.core.gbl.min.js +2 -2
  14. package/bundle/ms.core.gbl.min.js.map +1 -1
  15. package/bundle/ms.core.integrity.json +17 -17
  16. package/bundle/ms.core.js +33 -24
  17. package/bundle/ms.core.js.map +1 -1
  18. package/bundle/ms.core.min.js +2 -2
  19. package/bundle/ms.core.min.js.map +1 -1
  20. package/dist/ms.core.js +4 -2
  21. package/dist/ms.core.js.map +1 -1
  22. package/dist/ms.core.min.js +2 -2
  23. package/dist/ms.core.min.js.map +1 -1
  24. package/dist-esm/src/AppInsightsCore.js +1 -1
  25. package/dist-esm/src/BaseCore.js +1 -1
  26. package/dist-esm/src/DataModels.js +1 -1
  27. package/dist-esm/src/ESPromise.js +1 -1
  28. package/dist-esm/src/ESPromiseScheduler.js +1 -1
  29. package/dist-esm/src/Enums.d.ts +8 -0
  30. package/dist-esm/src/Enums.js +3 -1
  31. package/dist-esm/src/Enums.js.map +1 -1
  32. package/dist-esm/src/Index.js +1 -1
  33. package/dist-esm/src/InternalConstants.js +1 -1
  34. package/dist-esm/src/Utils.d.ts +1 -1
  35. package/dist-esm/src/Utils.js +2 -2
  36. package/dist-esm/src/Utils.js.map +1 -1
  37. package/dist-esm/src/ValueSanitizer.js +1 -1
  38. package/package.json +3 -3
  39. package/src/Enums.ts +12 -0
  40. package/bundle/ms.core-3.2.15.gbl.js.map +0 -1
  41. package/bundle/ms.core-3.2.15.gbl.min.js +0 -7
  42. package/bundle/ms.core-3.2.15.gbl.min.js.map +0 -1
  43. package/bundle/ms.core-3.2.15.integrity.json +0 -46
  44. package/bundle/ms.core-3.2.15.js.map +0 -1
  45. package/bundle/ms.core-3.2.15.min.js +0 -7
  46. package/bundle/ms.core-3.2.15.min.js.map +0 -1
package/README.md CHANGED
@@ -16,7 +16,7 @@ ms.reviewedBy: ramthi
16
16
 
17
17
  ## npm
18
18
 
19
- Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-core-js/overview/3.2.15).
19
+ Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-core-js/overview/3.2.17).
20
20
 
21
21
  ## Basic Usage
22
22
 
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * 1DS JS SDK Core, 3.2.15
2
+ * 1DS JS SDK Core, 3.2.17
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_core_3_2_15", msMod="__ms$mod__";
8
- var mods={}, modDetail=mods[modName]={}, ver="3.2.15";
7
+ var nsKey, key, nm, theExports = {}, modName = "esm_ms_core_3_2_17", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.2.17";
9
9
  // Versioned namespace "oneDS3"
10
10
  var exportNs=global, nsKey="oneDS3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
11
11
  // Global namespace "oneDS"
@@ -731,7 +731,7 @@ var EventsDiscardedReason = createEnumStyle({
731
731
  });
732
732
 
733
733
  /*!
734
- * Microsoft Dynamic Proto Utility, 1.1.9
734
+ * Microsoft Dynamic Proto Utility, 1.1.11
735
735
  * Copyright (c) Microsoft and contributors. All rights reserved.
736
736
  */
737
737
  var _a$2;
@@ -824,13 +824,16 @@ function _forEachProp(target, func) {
824
824
  }
825
825
  }
826
826
  function _isDynamicCandidate(target, funcName, skipOwn) {
827
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
827
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)) && funcName !== str__Proto && funcName !== Prototype);
828
828
  }
829
829
  function _throwTypeError(message) {
830
830
  throw new TypeError("DynamicProto: " + message);
831
831
  }
832
+ function _newObject() {
833
+ 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) : {};
834
+ }
832
835
  function _getInstanceFuncs(thisTarget) {
833
- var instFuncs = {};
836
+ var instFuncs = _newObject();
834
837
  _forEachProp(thisTarget, function (name) {
835
838
  if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
836
839
  instFuncs[name] = thisTarget[name];
@@ -859,7 +862,7 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
859
862
  return theFunc.apply(target, arguments);
860
863
  };
861
864
  }
862
- var baseFuncs = {};
865
+ var baseFuncs = _newObject();
863
866
  _forEachProp(instFuncs, function (name) {
864
867
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
865
868
  });
@@ -879,8 +882,8 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
879
882
  function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
880
883
  var instFunc = null;
881
884
  if (target && _hasOwnProperty(proto, DynClassName)) {
882
- var instFuncTable = target[DynInstFuncTable] || {};
883
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
885
+ var instFuncTable = target[DynInstFuncTable] || _newObject();
886
+ instFunc = (instFuncTable[proto[DynClassName]] || _newObject())[funcName];
884
887
  if (!instFunc) {
885
888
  _throwTypeError("Missing [" + funcName + "] " + strFunction);
886
889
  }
@@ -930,20 +933,24 @@ function _populatePrototype(proto, className, target, baseInstFuncs, setInstance
930
933
  return dynProtoProxy;
931
934
  }
932
935
  if (!_isObjectOrArrayPrototype(proto)) {
933
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
934
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
935
- if (instFuncTable[DynAllowInstChkTag] !== false) {
936
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
937
- }
938
- _forEachProp(target, function (name) {
939
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
940
- instFuncs_1[name] = target[name];
941
- delete target[name];
942
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
943
- proto[name] = _createDynamicPrototype(proto, name);
944
- }
936
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || _newObject();
937
+ if (!_isObjectOrArrayPrototype(instFuncTable)) {
938
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || _newObject());
939
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
940
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
941
+ }
942
+ if (!_isObjectOrArrayPrototype(instFuncs_1)) {
943
+ _forEachProp(target, function (name) {
944
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
945
+ instFuncs_1[name] = target[name];
946
+ delete target[name];
947
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
948
+ proto[name] = _createDynamicPrototype(proto, name);
949
+ }
950
+ }
951
+ });
945
952
  }
946
- });
953
+ }
947
954
  }
948
955
  }
949
956
  function _checkPrototype(classProto, thisTarget) {
@@ -1678,7 +1685,7 @@ function newId(maxLength) {
1678
1685
  }
1679
1686
 
1680
1687
  var _objDefineProperty = ObjDefineProperty;
1681
- var version = '2.8.16';
1688
+ var version = '2.8.18';
1682
1689
  var instanceName = "." + newId(6);
1683
1690
  var _dataUid = 0;
1684
1691
  function _createAccessor(target, prop, value) {
@@ -4123,6 +4130,8 @@ var ValueKind = createEnumStyle({
4123
4130
  Pii_Uri: 11 ,
4124
4131
  Pii_Fqdn: 12 ,
4125
4132
  Pii_IPV4AddressLegacy: 13 ,
4133
+ Pii_IPv6ScrubLastHextets: 14 ,
4134
+ Pii_DropValue: 15 ,
4126
4135
  CustomerContent_GenericContent: 32
4127
4136
  });
4128
4137
  var EventLatency = createEnumStyle({
@@ -4182,7 +4191,7 @@ var STR_VERSION = "version";
4182
4191
  var STR_PROPERTIES = "properties";
4183
4192
 
4184
4193
  var _a;
4185
- var Version = '3.2.15';
4194
+ var Version = '3.2.17';
4186
4195
  var FullVersionString = "1DS-Web-JS-" + Version;
4187
4196
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
4188
4197
  var strWithCredentials = "withCredentials";
@@ -5399,4 +5408,4 @@ exports.toISOString = toISOString;
5399
5408
  exports.useXDomainRequest = useXDomainRequest;
5400
5409
 
5401
5410
  }));
5402
- //# sourceMappingURL=ms.core-3.2.15.gbl.js.map
5411
+ //# sourceMappingURL=ms.core-3.2.17.gbl.js.map