@microsoft/applicationinsights-channel-js 3.0.0-beta.2211-04 → 3.0.0-beta.2212-04

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.
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "applicationinsights-channel-js",
3
- "version": "3.0.0-beta.2211-04",
3
+ "version": "3.0.0-beta.2212-04",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-channel-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-skzshdP1Z7zeeNUeihR+zHt1NTvMPF/i4rpM2WptVyo= sha384-YoOJ7XmzJTF9Omp0bS3kRcFHkW0aO6lWpWwJwAEED9b0t186P5+gucgSrNsepKJY sha512-7Tz6fe6qC60BC+Q/BtDay8MQk/mA/1E09GgxOCr7er4FNs6sXBp+sxqQsPryqRKczRKagftRCN28xA+W9KccpQ==",
8
+ "integrity": "sha256-Kb3BRFzpJlLLYvX/OuMdd4KMc4tB0tClu0zU64wYumg= sha384-cWxSuIPdaLLpkjJOc6ZQtWhw3344fg4mxsWX4lYDvtCbiyEGWwsJBdZiV0mcw+3y sha512-UitASOfri2oXGKXBLFwpqB/DXjb8KJuciPeFfHOVeCbxOVrBQAYtw/O47vhYclW3+Wysa85GC7K0FVwaTV+a3g==",
9
9
  "hashes": {
10
- "sha256": "skzshdP1Z7zeeNUeihR+zHt1NTvMPF/i4rpM2WptVyo=",
11
- "sha384": "YoOJ7XmzJTF9Omp0bS3kRcFHkW0aO6lWpWwJwAEED9b0t186P5+gucgSrNsepKJY",
12
- "sha512": "7Tz6fe6qC60BC+Q/BtDay8MQk/mA/1E09GgxOCr7er4FNs6sXBp+sxqQsPryqRKczRKagftRCN28xA+W9KccpQ=="
10
+ "sha256": "Kb3BRFzpJlLLYvX/OuMdd4KMc4tB0tClu0zU64wYumg=",
11
+ "sha384": "cWxSuIPdaLLpkjJOc6ZQtWhw3344fg4mxsWX4lYDvtCbiyEGWwsJBdZiV0mcw+3y",
12
+ "sha512": "UitASOfri2oXGKXBLFwpqB/DXjb8KJuciPeFfHOVeCbxOVrBQAYtw/O47vhYclW3+Wysa85GC7K0FVwaTV+a3g=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-channel-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-hrnBze6M+22paMOnC5vITsKGHcjA/zChkockx9vVsy0= sha384-xhAM6suvXK/7X5eeZwxVIVm4XZrTGfTNRJ2yJrmxNHzF2Yjx+B3eW69Xvhgz4AH7 sha512-4lqQuCI3VzBOAYtDWd9jRzHJathKHgA5xmUEwvDmN0Vo13J6Egooy3DDdMSdmDYuMXPNTnTxRyEHbep1HmdB6w==",
18
+ "integrity": "sha256-jHZf3V1/bO4pFJX6/DogI3OThEpvIz8LEIuYBhP61Es= sha384-RhzWrRYXL+HDfJ4LJCPZvYJkRga6g+EdGQBBqAQqqpzCS8NGbGP/rh9ps92Wta8U sha512-241HHBgqzO++FIShVPl+LkXY9v8T9LuNK49aMERV0/SRHFl7MCZsFfmhIOOfachqzUNEoH9MGQ0OEzKsqRwNFA==",
19
19
  "hashes": {
20
- "sha256": "hrnBze6M+22paMOnC5vITsKGHcjA/zChkockx9vVsy0=",
21
- "sha384": "xhAM6suvXK/7X5eeZwxVIVm4XZrTGfTNRJ2yJrmxNHzF2Yjx+B3eW69Xvhgz4AH7",
22
- "sha512": "4lqQuCI3VzBOAYtDWd9jRzHJathKHgA5xmUEwvDmN0Vo13J6Egooy3DDdMSdmDYuMXPNTnTxRyEHbep1HmdB6w=="
20
+ "sha256": "jHZf3V1/bO4pFJX6/DogI3OThEpvIz8LEIuYBhP61Es=",
21
+ "sha384": "RhzWrRYXL+HDfJ4LJCPZvYJkRga6g+EdGQBBqAQqqpzCS8NGbGP/rh9ps92Wta8U",
22
+ "sha512": "241HHBgqzO++FIShVPl+LkXY9v8T9LuNK49aMERV0/SRHFl7MCZsFfmhIOOfachqzUNEoH9MGQ0OEzKsqRwNFA=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Channel, 3.0.0-beta.2211-04
2
+ * Application Insights JavaScript SDK - Channel, 3.0.0-beta.2212-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -566,114 +566,39 @@
566
566
  return registry.k[key];
567
567
  }
568
568
 
569
- function objSetPrototypeOf(obj, proto) {
570
- var fn = ObjClass["setPrototypeOf"] ||
571
- ({ __proto__: [] } instanceof Array && function (d, b) {
572
- d.__proto__ = b;
573
- }) ||
574
- function (d, b) {
575
- objForEachKey(b, function (key, value) {
576
- d[key] = value;
577
- });
578
- };
579
- return fn(obj, proto);
580
- }
581
-
582
- function _createCustomError(name, d, b) {
583
- objSetPrototypeOf(d, b);
584
- function __() {
585
- this.constructor = d;
586
- }
587
- __[PROTOTYPE] = b[PROTOTYPE];
588
- __[PROTOTYPE].name = name;
589
- d[PROTOTYPE] = new __();
590
- return d;
591
- }
592
- function createCustomError(name, constructCb) {
593
- var baseClass = Error;
594
- var customError = _createCustomError(name, function () {
595
- var _this = this;
596
- _this = baseClass.apply(_this, arguments) || _this;
597
- constructCb && constructCb(_this, arguments);
598
- return _this;
599
- }, baseClass);
600
- return customError;
601
- }
602
- var _unsupportedError;
603
- function throwUnsupported(message) {
604
- if (!_unsupportedError) {
605
- _unsupportedError = createCustomError("UnsupportedError");
606
- }
607
- throw new _unsupportedError(message);
608
- }
609
-
610
- function dumpObj(object, format) {
611
- var objectTypeDump = objToString(object);
612
- var propertyValueDump = "";
613
- if (objectTypeDump === "[object Error]") {
614
- propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
615
- }
616
- else {
617
- try {
618
- if (format) {
619
- if (isNumber(format)) {
620
- propertyValueDump = JSON.stringify(object, null, format);
621
- }
622
- else {
623
- propertyValueDump = JSON.stringify(object, null, 4);
624
- }
625
- }
626
- else {
627
- propertyValueDump = JSON.stringify(object);
628
- }
629
- }
630
- catch (e) {
631
- propertyValueDump = objToString(object) + " - " + dumpObj(e, format);
632
- }
633
- }
634
- return objectTypeDump + ": " + propertyValueDump;
635
- }
636
-
637
- var _objDefineProperty$1 = ObjClass["defineProperty"];
638
- function objDefineProp(target, key, descriptor) {
639
- if (_objDefineProperty$1) {
640
- _objDefineProperty$1(target, key, descriptor);
641
- return target;
642
- }
643
- throwUnsupported("Unable to define property [" + objToString(key) + "] on " + dumpObj(target));
569
+ var propMap = {
570
+ e: "enumerable",
571
+ c: "configurable",
572
+ v: VALUE,
573
+ w: "writable",
574
+ g: "get",
575
+ s: "set"
576
+ };
577
+ function _createProp(value) {
578
+ var prop = {};
579
+ prop[propMap["c"]] = true;
580
+ prop[propMap["e"]] = true;
581
+ objForEachKey(value, function (key, value) {
582
+ prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
583
+ });
584
+ return prop;
644
585
  }
645
- function objDefineGet(target, key, value, configurable) {
586
+ var objDefineProp = ObjClass.defineProperty;
587
+ function objDefineAccessors(target, prop, getProp, setProp, configurable, enumerable) {
646
588
  var desc = {
647
- enumerable: true,
648
- configurable: isUndefined(configurable) ? true : configurable
589
+ e: enumerable,
590
+ c: configurable
649
591
  };
650
- if (isFunction(value)) {
651
- desc.get = value;
592
+ if (getProp) {
593
+ desc.g = getProp;
652
594
  }
653
- else {
654
- desc[VALUE] = value;
595
+ if (setProp) {
596
+ desc.s = setProp;
655
597
  }
656
- return objDefineProp(target, key, desc);
598
+ return objDefineProp(target, prop, _createProp(desc));
657
599
  }
658
- function objDefineAccessors(target, prop, getProp, setProp, configurable) {
659
- if (_objDefineProperty$1) {
660
- try {
661
- var descriptor = {
662
- enumerable: true,
663
- configurable: isUndefined(configurable) ? true : configurable
664
- };
665
- if (getProp) {
666
- descriptor.get = getProp;
667
- }
668
- if (setProp) {
669
- descriptor.set = setProp;
670
- }
671
- return objDefineProp(target, prop, descriptor);
672
- }
673
- catch (e) {
674
- throwUnsupported("Unable to define accessors for [" + objToString(prop) + "] on " + dumpObj(target));
675
- }
676
- }
600
+ function objDefine(target, key, propDesc) {
601
+ return objDefineProp(target, key, _createProp(propDesc));
677
602
  }
678
603
 
679
604
  var _globalLazyTestHooks;
@@ -685,24 +610,21 @@
685
610
  var lazyValue = {};
686
611
  _fetchLazyTestHooks && _fetchLazyTestHooks();
687
612
  lazyValue.b = _globalLazyTestHooks.lzy;
688
- objDefineGet(lazyValue, "v", function () {
689
- var result = cb();
690
- if (!_globalLazyTestHooks.lzy) {
691
- objDefineProp(lazyValue, "v", {
692
- enumerable: true,
693
- configurable: true,
694
- writable: false,
695
- value: result
696
- });
697
- if (lazyValue.b) {
698
- delete lazyValue.b;
613
+ objDefine(lazyValue, "v", {
614
+ g: function () {
615
+ var result = cb();
616
+ if (!_globalLazyTestHooks.lzy) {
617
+ objDefine(lazyValue, "v", { v: result });
618
+ if (lazyValue.b) {
619
+ delete lazyValue.b;
620
+ }
699
621
  }
622
+ if (_globalLazyTestHooks.lzy && lazyValue.b !== _globalLazyTestHooks.lzy) {
623
+ lazyValue.b = _globalLazyTestHooks.lzy;
624
+ }
625
+ return result;
700
626
  }
701
- if (_globalLazyTestHooks.lzy && lazyValue.b !== _globalLazyTestHooks.lzy) {
702
- lazyValue.b = _globalLazyTestHooks.lzy;
703
- }
704
- return result;
705
- }, true);
627
+ });
706
628
  return lazyValue;
707
629
  }
708
630
 
@@ -805,6 +727,33 @@
805
727
  }
806
728
  }
807
729
 
730
+ function dumpObj(object, format) {
731
+ var objectTypeDump = objToString(object);
732
+ var propertyValueDump = "";
733
+ if (objectTypeDump === "[object Error]") {
734
+ propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
735
+ }
736
+ else {
737
+ try {
738
+ if (format) {
739
+ if (isNumber(format)) {
740
+ propertyValueDump = JSON.stringify(object, null, format);
741
+ }
742
+ else {
743
+ propertyValueDump = JSON.stringify(object, null, 4);
744
+ }
745
+ }
746
+ else {
747
+ propertyValueDump = JSON.stringify(object);
748
+ }
749
+ }
750
+ catch (e) {
751
+ propertyValueDump = objToString(object) + " - " + dumpObj(e, format);
752
+ }
753
+ }
754
+ return objectTypeDump + ": " + propertyValueDump;
755
+ }
756
+
808
757
  function _unwrapFunction(funcName) {
809
758
  return function (thisArg) {
810
759
  var args = [];
@@ -822,6 +771,40 @@
822
771
 
823
772
  var arrMap = _unwrapFunction("map");
824
773
 
774
+ function objSetPrototypeOf(obj, proto) {
775
+ var fn = ObjClass["setPrototypeOf"] ||
776
+ ({ __proto__: [] } instanceof Array && function (d, b) {
777
+ d.__proto__ = b;
778
+ }) ||
779
+ function (d, b) {
780
+ objForEachKey(b, function (key, value) {
781
+ d[key] = value;
782
+ });
783
+ };
784
+ return fn(obj, proto);
785
+ }
786
+
787
+ function _createCustomError(name, d, b) {
788
+ objSetPrototypeOf(d, b);
789
+ function __() {
790
+ this.constructor = d;
791
+ }
792
+ __[PROTOTYPE] = b[PROTOTYPE];
793
+ __[PROTOTYPE].name = name;
794
+ d[PROTOTYPE] = new __();
795
+ return d;
796
+ }
797
+ function createCustomError(name, constructCb) {
798
+ var baseClass = Error;
799
+ var customError = _createCustomError(name, function () {
800
+ var _this = this;
801
+ _this = baseClass.apply(_this, arguments) || _this;
802
+ constructCb && constructCb(_this, arguments);
803
+ return _this;
804
+ }, baseClass);
805
+ return customError;
806
+ }
807
+
825
808
  function utcNow() {
826
809
  return (Date.now || polyUtcNow)();
827
810
  }
@@ -1313,7 +1296,7 @@
1313
1296
  }
1314
1297
 
1315
1298
  var _objDefineProperty = ObjDefineProperty;
1316
- var version = "3.0.0-beta.2211-04";
1299
+ var version = "3.0.0-beta.2212-04";
1317
1300
  var instanceName = "." + newId(6);
1318
1301
  var _dataUid = 0;
1319
1302
  function _createAccessor(target, prop, value) {
@@ -4104,7 +4087,7 @@
4104
4087
  }
4105
4088
  }
4106
4089
  var EnvelopeCreator = {
4107
- Version: "3.0.0-beta.2211-04"
4090
+ Version: "3.0.0-beta.2212-04"
4108
4091
  };
4109
4092
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
4110
4093
  EnvelopeCreatorInit(logger, telemetryItem);