@microsoft/1ds-core-js 4.3.4-nightly3.2409-15 → 4.3.4-nightly3.2409-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 (42) hide show
  1. package/bundle/es5/{ms.core-4.3.4-nightly3.2409-15.gbl.js → ms.core-4.3.4-nightly3.2409-17.gbl.js} +51 -28
  2. package/bundle/es5/ms.core-4.3.4-nightly3.2409-17.gbl.js.map +1 -0
  3. package/bundle/es5/ms.core-4.3.4-nightly3.2409-17.gbl.min.js +7 -0
  4. package/bundle/es5/ms.core-4.3.4-nightly3.2409-17.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.core-4.3.4-nightly3.2409-17.integrity.json +46 -0
  6. package/bundle/es5/{ms.core-4.3.4-nightly3.2409-15.js → ms.core-4.3.4-nightly3.2409-17.js} +51 -28
  7. package/bundle/es5/ms.core-4.3.4-nightly3.2409-17.js.map +1 -0
  8. package/bundle/es5/ms.core-4.3.4-nightly3.2409-17.min.js +7 -0
  9. package/bundle/es5/ms.core-4.3.4-nightly3.2409-17.min.js.map +1 -0
  10. package/bundle/es5/ms.core.gbl.js +50 -27
  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 +50 -27
  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 +48 -25
  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 +1 -1
  32. package/dist-es5/__DynamicConstants.js +1 -1
  33. package/package.json +2 -2
  34. package/types/1ds-core-js.d.ts +2 -2
  35. package/types/1ds-core-js.namespaced.d.ts +2 -2
  36. package/bundle/es5/ms.core-4.3.4-nightly3.2409-15.gbl.js.map +0 -1
  37. package/bundle/es5/ms.core-4.3.4-nightly3.2409-15.gbl.min.js +0 -7
  38. package/bundle/es5/ms.core-4.3.4-nightly3.2409-15.gbl.min.js.map +0 -1
  39. package/bundle/es5/ms.core-4.3.4-nightly3.2409-15.integrity.json +0 -46
  40. package/bundle/es5/ms.core-4.3.4-nightly3.2409-15.js.map +0 -1
  41. package/bundle/es5/ms.core-4.3.4-nightly3.2409-15.min.js +0 -7
  42. package/bundle/es5/ms.core-4.3.4-nightly3.2409-15.min.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * 1DS JS SDK Core, 4.3.4-nightly3.2409-15
2
+ * 1DS JS SDK Core, 4.3.4-nightly3.2409-17
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_4_nightly3_2409_15", msMod="__ms$mod__";
9
- var mods={}, modDetail=mods[modName]={}, ver="4.3.4-nightly3.2409-15";
8
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_3_4_nightly3_2409_17", msMod="__ms$mod__";
9
+ var mods={}, modDetail=mods[modName]={}, ver="4.3.4-nightly3.2409-17";
10
10
  // Versioned namespace "oneDS4"
11
11
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
12
12
  // Global namespace "oneDS"
@@ -33,7 +33,7 @@ var strShimPrototype = "prototype";
33
33
  var ObjClass$1 = Object;
34
34
  var ObjProto$1 = ObjClass$1[strShimPrototype];
35
35
 
36
- /*! https://github.com/nevware21/ts-utils v0.11.3 */
36
+ /*! https://github.com/nevware21/ts-utils v0.11.4 */
37
37
  /*#__NO_SIDE_EFFECTS__*/
38
38
  function _pureAssign(func1, func2) {
39
39
  return func1 || func2;
@@ -107,6 +107,10 @@ function isUndefined(value) {
107
107
  return typeof value === UNDEFINED || value === UNDEFINED;
108
108
  }
109
109
  /*#__NO_SIDE_EFFECTS__*/
110
+ function isStrictUndefined(arg) {
111
+ return !isDefined(arg);
112
+ }
113
+ /*#__NO_SIDE_EFFECTS__*/
110
114
  function isNullOrUndefined(value) {
111
115
  return value === NULL_VALUE || isUndefined(value);
112
116
  }
@@ -121,7 +125,7 @@ function isDefined(arg) {
121
125
  /*#__NO_SIDE_EFFECTS__*/
122
126
  function isPrimitiveType(theType) {
123
127
  !_primitiveTypes && (_primitiveTypes = ["string", "number", "boolean", UNDEFINED, "symbol", "bigint"]);
124
- return theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1;
128
+ return !!(theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1);
125
129
  }
126
130
  var isString = ( /*#__PURE__*/_createIs("string"));
127
131
  var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
@@ -193,7 +197,7 @@ function _createProp(value) {
193
197
  }
194
198
  }
195
199
  objForEachKey(value, function (key, value) {
196
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
200
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
197
201
  });
198
202
  return prop;
199
203
  }
@@ -241,7 +245,7 @@ function dumpObj(object, format) {
241
245
  }
242
246
  try {
243
247
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
244
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
248
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
245
249
  }
246
250
  catch (e) {
247
251
  propertyValueDump = " - " + dumpObj(e, format);
@@ -330,9 +334,9 @@ function _getGlobalConfig() {
330
334
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
331
335
  /*#__NO_SIDE_EFFECTS__*/
332
336
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
333
- var clsFn = clsProto && clsProto[funcName];
337
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
334
338
  return function (thisArg) {
335
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
339
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
336
340
  if (theFunc || polyFunc) {
337
341
  var theArgs = arguments;
338
342
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -449,24 +453,37 @@ function _getGlobalInstFn(getFn, theArgs) {
449
453
  var cachedValue;
450
454
  return function () {
451
455
  !_globalLazyTestHooks && _initTestHooks();
452
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
456
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
457
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
458
+ }
453
459
  return cachedValue.v;
454
460
  };
455
461
  }
456
- /*#__NO_SIDE_EFFECTS__*/
457
462
  function getGlobal(useCached) {
458
463
  !_globalLazyTestHooks && _initTestHooks();
459
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
464
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
465
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
466
+ }
460
467
  return _cachedGlobal.v;
461
468
  }
462
469
  /*#__NO_SIDE_EFFECTS__*/
463
470
  function getInst(name, useCached) {
464
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
471
+ var gbl;
472
+ if (!_cachedGlobal || useCached === false) {
473
+ gbl = getGlobal(useCached);
474
+ }
475
+ else {
476
+ gbl = _cachedGlobal.v;
477
+ }
465
478
  if (gbl && gbl[name]) {
466
479
  return gbl[name];
467
480
  }
468
481
  if (name === WINDOW) {
469
- return getWindow();
482
+ try {
483
+ return window;
484
+ }
485
+ catch (e) {
486
+ }
470
487
  }
471
488
  return NULL_VALUE;
472
489
  }
@@ -545,7 +562,7 @@ function iterForOf(iter, callbackfn, thisArg) {
545
562
  if (iter) {
546
563
  if (!isIterator(iter)) {
547
564
  !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
548
- iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;
565
+ iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
549
566
  }
550
567
  if (isIterator(iter)) {
551
568
  var err = UNDEF_VALUE;
@@ -615,7 +632,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
615
632
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
616
633
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
617
634
  function arrSlice(theArray, start, end) {
618
- return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
635
+ return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
619
636
  }
620
637
  /*#__NO_SIDE_EFFECTS__*/
621
638
  function polyArrIncludes(theArray, searchElement, fromIndex) {
@@ -733,7 +750,7 @@ function isPlainObject(value) {
733
750
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
734
751
  proto = proto[CONSTRUCTOR];
735
752
  }
736
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
753
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
737
754
  }
738
755
  }
739
756
  catch (ex) {
@@ -778,12 +795,14 @@ function _deepCopy(visitMap, value, ctx, key) {
778
795
  };
779
796
  var theType = typeof value;
780
797
  var isPlain = false;
781
- var isPrim = false;
782
- if (value && theType === OBJECT) {
783
- isPlain = isPlainObject(value);
784
- }
785
- else {
786
- isPrim = value === NULL_VALUE || isPrimitiveType(theType);
798
+ var isPrim = value === NULL_VALUE;
799
+ if (!isPrim) {
800
+ if (value && theType === OBJECT) {
801
+ isPlain = isPlainObject(value);
802
+ }
803
+ else {
804
+ isPrim = isPrimitiveType(theType);
805
+ }
787
806
  }
788
807
  var details = {
789
808
  type: theType,
@@ -893,7 +912,9 @@ var _perf;
893
912
  /*#__NO_SIDE_EFFECTS__*/
894
913
  function getPerformance() {
895
914
  !_globalLazyTestHooks && _initTestHooks();
896
- (!_perf || _globalLazyTestHooks.lzy) && (_perf = createCachedValue(safe((getInst), ["performance"]).v));
915
+ if (!_perf || _globalLazyTestHooks.lzy) {
916
+ _perf = createCachedValue(safe((getInst), ["performance"]).v);
917
+ }
897
918
  return _perf.v;
898
919
  }
899
920
  /*#__NO_SIDE_EFFECTS__*/
@@ -911,7 +932,7 @@ function polyStrEndsWith(value, searchString, length) {
911
932
  throwTypeError("'" + dumpObj(value) + "' is not a string");
912
933
  }
913
934
  var searchValue = isString(searchString) ? searchString : asString(searchString);
914
- var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
935
+ var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
915
936
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
916
937
  }
917
938
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
@@ -1012,6 +1033,8 @@ function createTimeout(callback, timeout) {
1012
1033
  return _createTimeoutWith(false, UNDEF_VALUE, ArrSlice[CALL](arguments));
1013
1034
  }
1014
1035
 
1036
+ (getGlobal() || {})["Symbol"];
1037
+ (getGlobal() || {})["Reflect"];
1015
1038
  var strHasOwnProperty = "hasOwnProperty";
1016
1039
  var extendStaticsFn = function (d, b) {
1017
1040
  extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
@@ -2323,7 +2346,7 @@ function newId(maxLength) {
2323
2346
  return result;
2324
2347
  }
2325
2348
 
2326
- var version = '3.3.4-nightly3.2409-15';
2349
+ var version = '3.3.4-nightly3.2409-17';
2327
2350
  var instanceName = "." + newId(6);
2328
2351
  var _dataUid = 0;
2329
2352
  function _canAcceptData(target) {
@@ -6441,7 +6464,7 @@ var _DYN_RM_FIELD_SANITIZER = "rmFieldSanitizer";
6441
6464
  var _DYN_CAN_HANDLE = "canHandle";
6442
6465
 
6443
6466
  var _a;
6444
- var Version = '4.3.4-nightly3.2409-15';
6467
+ var Version = '4.3.4-nightly3.2409-17';
6445
6468
  var FullVersionString = "1DS-Web-JS-" + Version;
6446
6469
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
6447
6470
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
@@ -7188,4 +7211,4 @@ exports.toISOString = toISOString;
7188
7211
  exports.useXDomainRequest = useXDomainRequest;
7189
7212
 
7190
7213
  }));
7191
- //# sourceMappingURL=ms.core-4.3.4-nightly3.2409-15.gbl.js.map
7214
+ //# sourceMappingURL=ms.core-4.3.4-nightly3.2409-17.gbl.js.map