@microsoft/1ds-core-js 4.3.6-nightly3.2502-04 → 4.3.6-nightly3.2502-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.
Files changed (41) hide show
  1. package/bundle/es5/{ms.core-4.3.6-nightly3.2502-04.gbl.js → ms.core-4.3.6-nightly3.2502-07.gbl.js} +29 -19
  2. package/bundle/es5/ms.core-4.3.6-nightly3.2502-07.gbl.js.map +1 -0
  3. package/bundle/es5/{ms.core-4.3.6-nightly3.2502-04.gbl.min.js → ms.core-4.3.6-nightly3.2502-07.gbl.min.js} +3 -3
  4. package/bundle/es5/ms.core-4.3.6-nightly3.2502-07.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.core-4.3.6-nightly3.2502-07.integrity.json +46 -0
  6. package/bundle/es5/{ms.core-4.3.6-nightly3.2502-04.js → ms.core-4.3.6-nightly3.2502-07.js} +29 -19
  7. package/bundle/es5/ms.core-4.3.6-nightly3.2502-07.js.map +1 -0
  8. package/bundle/es5/{ms.core-4.3.6-nightly3.2502-04.min.js → ms.core-4.3.6-nightly3.2502-07.min.js} +3 -3
  9. package/bundle/es5/ms.core-4.3.6-nightly3.2502-07.min.js.map +1 -0
  10. package/bundle/es5/ms.core.gbl.js +28 -18
  11. package/bundle/es5/ms.core.gbl.js.map +1 -1
  12. package/bundle/es5/ms.core.gbl.min.js +2 -2
  13. package/bundle/es5/ms.core.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.core.integrity.json +17 -17
  15. package/bundle/es5/ms.core.js +28 -18
  16. package/bundle/es5/ms.core.js.map +1 -1
  17. package/bundle/es5/ms.core.min.js +2 -2
  18. package/bundle/es5/ms.core.min.js.map +1 -1
  19. package/dist/es5/ms.core.js +26 -16
  20. package/dist/es5/ms.core.js.map +1 -1
  21. package/dist/es5/ms.core.min.js +2 -2
  22. package/dist/es5/ms.core.min.js.map +1 -1
  23. package/dist-es5/AppInsightsCore.js +1 -1
  24. package/dist-es5/BaseCore.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/Enums.js +1 -1
  27. package/dist-es5/Index.js +1 -1
  28. package/dist-es5/InternalConstants.js +1 -1
  29. package/dist-es5/Utils.js +2 -2
  30. package/dist-es5/Utils.js.map +1 -1
  31. package/dist-es5/ValueSanitizer.js +26 -14
  32. package/dist-es5/ValueSanitizer.js.map +1 -1
  33. package/dist-es5/__DynamicConstants.js +1 -1
  34. package/package.json +2 -2
  35. package/types/1ds-core-js.d.ts +2 -2
  36. package/types/1ds-core-js.namespaced.d.ts +2 -2
  37. package/bundle/es5/ms.core-4.3.6-nightly3.2502-04.gbl.js.map +0 -1
  38. package/bundle/es5/ms.core-4.3.6-nightly3.2502-04.gbl.min.js.map +0 -1
  39. package/bundle/es5/ms.core-4.3.6-nightly3.2502-04.integrity.json +0 -46
  40. package/bundle/es5/ms.core-4.3.6-nightly3.2502-04.js.map +0 -1
  41. package/bundle/es5/ms.core-4.3.6-nightly3.2502-04.min.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * 1DS JS SDK Core, 4.3.6-nightly3.2502-04
2
+ * 1DS JS SDK Core, 4.3.6-nightly3.2502-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 = "es5_ms_core_4_3_6_nightly3_2502_04", msMod="__ms$mod__";
9
- var mods={}, modDetail=mods[modName]={}, ver="4.3.6-nightly3.2502-04";
8
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_3_6_nightly3_2502_07", msMod="__ms$mod__";
9
+ var mods={}, modDetail=mods[modName]={}, ver="4.3.6-nightly3.2502-07";
10
10
  // Versioned namespace "oneDS4"
11
11
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
12
12
  // Global namespace "oneDS"
@@ -2346,7 +2346,7 @@ function newId(maxLength) {
2346
2346
  return result;
2347
2347
  }
2348
2348
 
2349
- var version = '3.3.6-nightly3.2502-04';
2349
+ var version = '3.3.6-nightly3.2502-07';
2350
2350
  var instanceName = "." + newId(6);
2351
2351
  var _dataUid = 0;
2352
2352
  function _canAcceptData(target) {
@@ -6464,7 +6464,7 @@ var _DYN_RM_FIELD_SANITIZER = "rmFieldSanitizer";
6464
6464
  var _DYN_CAN_HANDLE = "canHandle";
6465
6465
 
6466
6466
  var _a;
6467
- var Version = '4.3.6-nightly3.2502-04';
6467
+ var Version = '4.3.6-nightly3.2502-07';
6468
6468
  var FullVersionString = "1DS-Web-JS-" + Version;
6469
6469
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
6470
6470
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
@@ -6826,6 +6826,9 @@ var TraceLevel = createEnumStyle({
6826
6826
  INFORMATION: 3
6827
6827
  });
6828
6828
 
6829
+ function _isSpecialName(name) {
6830
+ return (name == "__proto__" || name == "constructor" || name == "prototype");
6831
+ }
6829
6832
  var ValueSanitizer = /** @class */ (function () {
6830
6833
  function ValueSanitizer(fieldSanitizerProvider) {
6831
6834
  var _self = this;
@@ -6836,6 +6839,7 @@ var ValueSanitizer = /** @class */ (function () {
6836
6839
  _fieldSanitizers.push(fieldSanitizerProvider);
6837
6840
  }
6838
6841
  function _getFieldSanitizer(path, name) {
6842
+ var _a, _b, _c;
6839
6843
  var result;
6840
6844
  var fieldLookup = _sanitizerMap[path];
6841
6845
  if (fieldLookup) {
@@ -6846,36 +6850,42 @@ var ValueSanitizer = /** @class */ (function () {
6846
6850
  if (_fieldSanitizers[_DYN_LENGTH ] > 0) {
6847
6851
  for (var lp = 0; lp < _fieldSanitizers[_DYN_LENGTH ]; lp++) {
6848
6852
  if (_fieldSanitizers[lp][_DYN_HANDLE_FIELD ](path, name)) {
6849
- result = {
6850
- canHandle: true,
6851
- fieldHandler: _fieldSanitizers[lp]
6852
- };
6853
+ result = (_a = {},
6854
+ _a[_DYN_CAN_HANDLE ] = true,
6855
+ _a.fieldHandler = _fieldSanitizers[lp],
6856
+ _a);
6853
6857
  break;
6854
6858
  }
6855
6859
  }
6856
6860
  }
6857
6861
  else if (_sanitizers[_DYN_LENGTH ] === 0) {
6858
- result = {
6859
- canHandle: true
6860
- };
6862
+ result = (_b = {},
6863
+ _b[_DYN_CAN_HANDLE ] = true,
6864
+ _b);
6861
6865
  }
6862
6866
  }
6863
6867
  if (!result && result !== null) {
6864
6868
  result = null;
6865
6869
  for (var lp = 0; lp < _sanitizers[_DYN_LENGTH ]; lp++) {
6866
6870
  if (_sanitizers[lp][_DYN_HANDLE_FIELD ](path, name)) {
6867
- result = {
6868
- canHandle: true,
6869
- handler: _sanitizers[lp],
6870
- fieldHandler: null
6871
- };
6871
+ result = (_c = {},
6872
+ _c[_DYN_CAN_HANDLE ] = true,
6873
+ _c.handler = _sanitizers[lp],
6874
+ _c.fieldHandler = null,
6875
+ _c);
6872
6876
  break;
6873
6877
  }
6874
6878
  }
6875
6879
  }
6876
6880
  if (!fieldLookup) {
6881
+ if (_isSpecialName(path)) {
6882
+ return null;
6883
+ }
6877
6884
  fieldLookup = _sanitizerMap[path] = {};
6878
6885
  }
6886
+ if (_isSpecialName(name)) {
6887
+ return null;
6888
+ }
6879
6889
  fieldLookup[name] = result;
6880
6890
  }
6881
6891
  return result;
@@ -6933,7 +6943,7 @@ var ValueSanitizer = /** @class */ (function () {
6933
6943
  _self[_DYN_VALUE ] = function (path, name, value, stringifyObjects) {
6934
6944
  var mapValue = _getFieldSanitizer(path, name);
6935
6945
  if (mapValue && mapValue[_DYN_CAN_HANDLE ]) {
6936
- if (!mapValue || !mapValue[_DYN_CAN_HANDLE ]) {
6946
+ if (!mapValue[_DYN_CAN_HANDLE ]) {
6937
6947
  return null;
6938
6948
  }
6939
6949
  if (mapValue.handler) {