@microsoft/applicationinsights-common 3.4.3 → 3.4.4-nightly3.2608-02
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.
- package/browser/es5/applicationinsights-common.cjs.js +16 -7
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.js +18 -9
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.integrity.json +25 -25
- package/browser/es5/applicationinsights-common.js +18 -9
- package/browser/es5/applicationinsights-common.js.map +1 -1
- package/browser/es5/applicationinsights-common.min.js +2 -2
- package/browser/es5/applicationinsights-common.min.js.map +1 -1
- package/dist/es5/applicationinsights-common.js +16 -7
- package/dist/es5/applicationinsights-common.js.map +1 -1
- package/dist/es5/applicationinsights-common.min.js +2 -2
- package/dist/es5/applicationinsights-common.min.js.map +1 -1
- package/dist-es5/applicationinsights-common.js +1 -1
- package/package.json +69 -66
- package/types/applicationinsights-common.d.ts +1 -1
- package/types/applicationinsights-common.namespaced.d.ts +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 3.4.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 3.4.4-nightly3.2608-02
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
/*! https://github.com/nevware21/ts-utils v0.
|
|
8
|
+
/*! https://github.com/nevware21/ts-utils v0.16.0 */
|
|
9
9
|
/*#__NO_SIDE_EFFECTS__*/
|
|
10
10
|
function _pureAssign(func1, func2) {
|
|
11
11
|
return func1 || func2;
|
|
@@ -431,6 +431,9 @@ function polyUtcNow() {
|
|
|
431
431
|
function fnApply(fn, thisArg, argArray) {
|
|
432
432
|
return fn.apply(thisArg, argArray);
|
|
433
433
|
}
|
|
434
|
+
function fnCall(fn, thisArg) {
|
|
435
|
+
return fn.apply(thisArg, ArrSlice[CALL](arguments, 2));
|
|
436
|
+
}
|
|
434
437
|
var _globalLazyTestHooks;
|
|
435
438
|
function _initTestHooks() {
|
|
436
439
|
_globalLazyTestHooks = _getGlobalConfig();
|
|
@@ -651,9 +654,10 @@ function createCustomError(name, constructCb, errorBase, superArgsFn) {
|
|
|
651
654
|
var theBaseClass = errorBase || Error;
|
|
652
655
|
var orgName = theBaseClass[PROTOTYPE][NAME];
|
|
653
656
|
var captureFn = Error.captureStackTrace;
|
|
654
|
-
|
|
657
|
+
var ctorFn = function () {
|
|
655
658
|
var _this = this;
|
|
656
659
|
var theArgs = arguments;
|
|
660
|
+
var isOwnInstance = _this[CONSTRUCTOR] === ctorFn;
|
|
657
661
|
try {
|
|
658
662
|
safe(_setName, [theBaseClass, name]);
|
|
659
663
|
var _self = fnApply(theBaseClass, _this, superArgsFn ? superArgsFn(theArgs) : ArrSlice[CALL](theArgs)) || _this;
|
|
@@ -663,14 +667,19 @@ function createCustomError(name, constructCb, errorBase, superArgsFn) {
|
|
|
663
667
|
objSetPrototypeOf(_self, orgProto);
|
|
664
668
|
}
|
|
665
669
|
}
|
|
666
|
-
|
|
667
|
-
|
|
670
|
+
if (isOwnInstance) {
|
|
671
|
+
captureFn && captureFn(_self, ctorFn);
|
|
672
|
+
}
|
|
673
|
+
if (constructCb) {
|
|
674
|
+
fnCall(constructCb, _self, _self, theArgs, isOwnInstance);
|
|
675
|
+
}
|
|
668
676
|
return _self;
|
|
669
677
|
}
|
|
670
678
|
finally {
|
|
671
679
|
safe(_setName, [theBaseClass, orgName]);
|
|
672
680
|
}
|
|
673
|
-
}
|
|
681
|
+
};
|
|
682
|
+
return _createCustomError(name, ctorFn, theBaseClass);
|
|
674
683
|
}
|
|
675
684
|
var strReplace = (/*#__PURE__*/_unwrapFunction("replace", StrProto));
|
|
676
685
|
/*#__NO_SIDE_EFFECTS__*/
|
|
@@ -1751,7 +1760,7 @@ function newId(maxLength) {
|
|
|
1751
1760
|
return result;
|
|
1752
1761
|
}
|
|
1753
1762
|
|
|
1754
|
-
var version = "3.4.
|
|
1763
|
+
var version = "3.4.4-nightly3.2608-02";
|
|
1755
1764
|
var instanceName = "." + newId(6);
|
|
1756
1765
|
var _dataUid = 0;
|
|
1757
1766
|
function _canAcceptData(target) {
|