@microsoft/1ds-core-js 4.3.3 → 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.3.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.3.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 +72 -69
  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.3.gbl.js.map +0 -1
  37. package/bundle/es5/ms.core-4.3.3.gbl.min.js +0 -7
  38. package/bundle/es5/ms.core-4.3.3.gbl.min.js.map +0 -1
  39. package/bundle/es5/ms.core-4.3.3.integrity.json +0 -46
  40. package/bundle/es5/ms.core-4.3.3.js.map +0 -1
  41. package/bundle/es5/ms.core-4.3.3.min.js +0 -7
  42. package/bundle/es5/ms.core-4.3.3.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK Core, 4.3.3
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
  */
@@ -16,7 +16,7 @@
16
16
  var ObjClass$1 = Object;
17
17
  var ObjProto$1 = ObjClass$1[strShimPrototype];
18
18
 
19
- /*! https://github.com/nevware21/ts-utils v0.11.3 */
19
+ /*! https://github.com/nevware21/ts-utils v0.11.4 */
20
20
  /*#__NO_SIDE_EFFECTS__*/
21
21
  function _pureAssign(func1, func2) {
22
22
  return func1 || func2;
@@ -90,6 +90,10 @@
90
90
  return typeof value === UNDEFINED || value === UNDEFINED;
91
91
  }
92
92
  /*#__NO_SIDE_EFFECTS__*/
93
+ function isStrictUndefined(arg) {
94
+ return !isDefined(arg);
95
+ }
96
+ /*#__NO_SIDE_EFFECTS__*/
93
97
  function isNullOrUndefined(value) {
94
98
  return value === NULL_VALUE || isUndefined(value);
95
99
  }
@@ -104,7 +108,7 @@
104
108
  /*#__NO_SIDE_EFFECTS__*/
105
109
  function isPrimitiveType(theType) {
106
110
  !_primitiveTypes && (_primitiveTypes = ["string", "number", "boolean", UNDEFINED, "symbol", "bigint"]);
107
- return theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1;
111
+ return !!(theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1);
108
112
  }
109
113
  var isString = ( /*#__PURE__*/_createIs("string"));
110
114
  var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
@@ -176,7 +180,7 @@
176
180
  }
177
181
  }
178
182
  objForEachKey(value, function (key, value) {
179
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
183
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
180
184
  });
181
185
  return prop;
182
186
  }
@@ -224,7 +228,7 @@
224
228
  }
225
229
  try {
226
230
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
227
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
231
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
228
232
  }
229
233
  catch (e) {
230
234
  propertyValueDump = " - " + dumpObj(e, format);
@@ -313,9 +317,9 @@
313
317
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
314
318
  /*#__NO_SIDE_EFFECTS__*/
315
319
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
316
- var clsFn = clsProto && clsProto[funcName];
320
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
317
321
  return function (thisArg) {
318
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
322
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
319
323
  if (theFunc || polyFunc) {
320
324
  var theArgs = arguments;
321
325
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -432,24 +436,37 @@
432
436
  var cachedValue;
433
437
  return function () {
434
438
  !_globalLazyTestHooks && _initTestHooks();
435
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
439
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
440
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
441
+ }
436
442
  return cachedValue.v;
437
443
  };
438
444
  }
439
- /*#__NO_SIDE_EFFECTS__*/
440
445
  function getGlobal(useCached) {
441
446
  !_globalLazyTestHooks && _initTestHooks();
442
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
447
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
448
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
449
+ }
443
450
  return _cachedGlobal.v;
444
451
  }
445
452
  /*#__NO_SIDE_EFFECTS__*/
446
453
  function getInst(name, useCached) {
447
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
454
+ var gbl;
455
+ if (!_cachedGlobal || useCached === false) {
456
+ gbl = getGlobal(useCached);
457
+ }
458
+ else {
459
+ gbl = _cachedGlobal.v;
460
+ }
448
461
  if (gbl && gbl[name]) {
449
462
  return gbl[name];
450
463
  }
451
464
  if (name === WINDOW) {
452
- return getWindow();
465
+ try {
466
+ return window;
467
+ }
468
+ catch (e) {
469
+ }
453
470
  }
454
471
  return NULL_VALUE;
455
472
  }
@@ -528,7 +545,7 @@
528
545
  if (iter) {
529
546
  if (!isIterator(iter)) {
530
547
  !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
531
- iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;
548
+ iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
532
549
  }
533
550
  if (isIterator(iter)) {
534
551
  var err = UNDEF_VALUE;
@@ -598,7 +615,7 @@
598
615
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
599
616
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
600
617
  function arrSlice(theArray, start, end) {
601
- return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
618
+ return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
602
619
  }
603
620
  /*#__NO_SIDE_EFFECTS__*/
604
621
  function polyArrIncludes(theArray, searchElement, fromIndex) {
@@ -716,7 +733,7 @@
716
733
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
717
734
  proto = proto[CONSTRUCTOR];
718
735
  }
719
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
736
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
720
737
  }
721
738
  }
722
739
  catch (ex) {
@@ -761,12 +778,14 @@
761
778
  };
762
779
  var theType = typeof value;
763
780
  var isPlain = false;
764
- var isPrim = false;
765
- if (value && theType === OBJECT) {
766
- isPlain = isPlainObject(value);
767
- }
768
- else {
769
- isPrim = value === NULL_VALUE || isPrimitiveType(theType);
781
+ var isPrim = value === NULL_VALUE;
782
+ if (!isPrim) {
783
+ if (value && theType === OBJECT) {
784
+ isPlain = isPlainObject(value);
785
+ }
786
+ else {
787
+ isPrim = isPrimitiveType(theType);
788
+ }
770
789
  }
771
790
  var details = {
772
791
  type: theType,
@@ -876,7 +895,9 @@
876
895
  /*#__NO_SIDE_EFFECTS__*/
877
896
  function getPerformance() {
878
897
  !_globalLazyTestHooks && _initTestHooks();
879
- (!_perf || _globalLazyTestHooks.lzy) && (_perf = createCachedValue(safe((getInst), ["performance"]).v));
898
+ if (!_perf || _globalLazyTestHooks.lzy) {
899
+ _perf = createCachedValue(safe((getInst), ["performance"]).v);
900
+ }
880
901
  return _perf.v;
881
902
  }
882
903
  /*#__NO_SIDE_EFFECTS__*/
@@ -894,7 +915,7 @@
894
915
  throwTypeError("'" + dumpObj(value) + "' is not a string");
895
916
  }
896
917
  var searchValue = isString(searchString) ? searchString : asString(searchString);
897
- var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
918
+ var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
898
919
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
899
920
  }
900
921
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
@@ -995,6 +1016,8 @@
995
1016
  return _createTimeoutWith(false, UNDEF_VALUE, ArrSlice[CALL](arguments));
996
1017
  }
997
1018
 
1019
+ (getGlobal() || {})["Symbol"];
1020
+ (getGlobal() || {})["Reflect"];
998
1021
  var strHasOwnProperty = "hasOwnProperty";
999
1022
  var extendStaticsFn = function (d, b) {
1000
1023
  extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
@@ -2306,7 +2329,7 @@
2306
2329
  return result;
2307
2330
  }
2308
2331
 
2309
- var version = '3.3.3';
2332
+ var version = '3.3.4-nightly3.2409-17';
2310
2333
  var instanceName = "." + newId(6);
2311
2334
  var _dataUid = 0;
2312
2335
  function _canAcceptData(target) {
@@ -6424,7 +6447,7 @@
6424
6447
  var _DYN_CAN_HANDLE = "canHandle";
6425
6448
 
6426
6449
  var _a;
6427
- var Version = '4.3.3';
6450
+ var Version = '4.3.4-nightly3.2409-17';
6428
6451
  var FullVersionString = "1DS-Web-JS-" + Version;
6429
6452
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
6430
6453
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";