@microsoft/applicationinsights-common 3.0.0-beta.2302-06 → 3.0.0-beta.2303-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/applicationinsights-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +83 -38
- package/browser/applicationinsights-common.js.map +1 -1
- package/browser/applicationinsights-common.min.js +2 -2
- package/browser/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.d.ts +1 -1
- package/dist/applicationinsights-common.js +83 -38
- package/dist/applicationinsights-common.js.map +1 -1
- package/dist/applicationinsights-common.min.js +2 -2
- package/dist/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.rollup.d.ts +1 -1
- package/dist-esm/ConnectionStringParser.js +1 -1
- package/dist-esm/Constants.js +1 -1
- package/dist-esm/DomHelperFuncs.js +1 -1
- package/dist-esm/Enums.js +1 -1
- package/dist-esm/HelperFuncs.js +1 -1
- package/dist-esm/Interfaces/ConnectionString.js +1 -1
- package/dist-esm/Interfaces/Context/IApplication.js +1 -1
- package/dist-esm/Interfaces/Context/IDevice.js +1 -1
- package/dist-esm/Interfaces/Context/IInternal.js +1 -1
- package/dist-esm/Interfaces/Context/ILocation.js +1 -1
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-esm/Interfaces/Context/ISample.js +1 -1
- package/dist-esm/Interfaces/Context/ISession.js +1 -1
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-esm/Interfaces/Context/IUser.js +1 -1
- package/dist-esm/Interfaces/Context/IWeb.js +1 -1
- package/dist-esm/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
- package/dist-esm/Interfaces/Contracts/IData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-esm/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-esm/Interfaces/IAppInsights.js +1 -1
- package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
- package/dist-esm/Interfaces/IConfig.js +1 -1
- package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
- package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPartC.js +1 -1
- package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-esm/Interfaces/IRequestContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
- package/dist-esm/Interfaces/IThrottleMgr.js +1 -1
- package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-esm/Interfaces/PartAExtensions.js +1 -1
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-esm/RequestResponseHeaders.js +1 -1
- package/dist-esm/StorageHelperFuncs.js +1 -1
- package/dist-esm/Telemetry/Common/Data.js +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +1 -1
- package/dist-esm/Telemetry/Event.js +1 -1
- package/dist-esm/Telemetry/Exception.js +1 -1
- package/dist-esm/Telemetry/Metric.js +1 -1
- package/dist-esm/Telemetry/PageView.js +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-esm/Telemetry/Trace.js +1 -1
- package/dist-esm/TelemetryItemCreator.js +1 -1
- package/dist-esm/ThrottleMgr.js +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-common.js +1 -1
- package/package.json +3 -3
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applicationinsights-common",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.2303-02",
|
|
4
4
|
"ext": {
|
|
5
5
|
"@js": {
|
|
6
6
|
"file": "applicationinsights-common.js",
|
|
7
7
|
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-
|
|
8
|
+
"integrity": "sha256-4VEOcN5fcu6SkTknpPpZVRv5zcCP0ZGKobVYSzvU/MA= sha384-3DA77EVjvT954yaNc3nDor1TeSB+dy1mzs3FpLH7CPqEK7k/SknYtAHL4dWK3Cjf sha512-2hksL6Rw8eB5xgAdnnFM98TtWyrbA7N5h5UHMhifsON/esW7QHp3yP2GlWWCgU4+t0zCx4RJPTn+BrDixxiQ3g==",
|
|
9
9
|
"hashes": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"sha384": "
|
|
12
|
-
"sha512": "
|
|
10
|
+
"sha256": "4VEOcN5fcu6SkTknpPpZVRv5zcCP0ZGKobVYSzvU/MA=",
|
|
11
|
+
"sha384": "3DA77EVjvT954yaNc3nDor1TeSB+dy1mzs3FpLH7CPqEK7k/SknYtAHL4dWK3Cjf",
|
|
12
|
+
"sha512": "2hksL6Rw8eB5xgAdnnFM98TtWyrbA7N5h5UHMhifsON/esW7QHp3yP2GlWWCgU4+t0zCx4RJPTn+BrDixxiQ3g=="
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"@min.js": {
|
|
16
16
|
"file": "applicationinsights-common.min.js",
|
|
17
17
|
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-
|
|
18
|
+
"integrity": "sha256-Gv0Sr7edRk45aghQsmvMPkcbqkJ/jz3jtlP9Jb55Eh4= sha384-Z738FCSJLUAx8di4slT6WdLZug7Ahifq7jUMeCbAg9bSCkadrrT81is5fUfN0IUN sha512-1lwX842gM6y+QlK+bD8qYcT+bEvUtgFGNANfRMao72rL+WBCVSnCcBpmp4mG9oTKx79fS9arUbU/c6q3WBHg4A==",
|
|
19
19
|
"hashes": {
|
|
20
|
-
"sha256": "
|
|
21
|
-
"sha384": "
|
|
22
|
-
"sha512": "
|
|
20
|
+
"sha256": "Gv0Sr7edRk45aghQsmvMPkcbqkJ/jz3jtlP9Jb55Eh4=",
|
|
21
|
+
"sha384": "Z738FCSJLUAx8di4slT6WdLZug7Ahifq7jUMeCbAg9bSCkadrrT81is5fUfN0IUN",
|
|
22
|
+
"sha512": "1lwX842gM6y+QlK+bD8qYcT+bEvUtgFGNANfRMao72rL+WBCVSnCcBpmp4mG9oTKx79fS9arUbU/c6q3WBHg4A=="
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 3.0.0-beta.
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-02
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
})(this, (function (exports) { 'use strict';
|
|
10
10
|
|
|
11
11
|
/*!
|
|
12
|
-
* NevWare21 - ts-utils, 0.8.
|
|
12
|
+
* NevWare21 - ts-utils, 0.8.1
|
|
13
13
|
* https://github.com/nevware21/ts-utils
|
|
14
14
|
* Copyright (c) NevWare21 and contributors. All rights reserved.
|
|
15
15
|
* Licensed under the MIT license.
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
var INDEX_OF = "indexOf";
|
|
30
30
|
var LENGTH = "length";
|
|
31
31
|
var VALUE = "value";
|
|
32
|
+
var NAME = "name";
|
|
32
33
|
var ObjClass$1 = Object;
|
|
33
34
|
var ObjProto$1 = ObjClass$1[PROTOTYPE];
|
|
34
35
|
var StrCls = String;
|
|
@@ -427,22 +428,37 @@
|
|
|
427
428
|
};
|
|
428
429
|
return fn(obj, proto);
|
|
429
430
|
}
|
|
430
|
-
function _createCustomError(name, d,
|
|
431
|
-
objSetPrototypeOf(d,
|
|
431
|
+
function _createCustomError(name, d, baseClass) {
|
|
432
|
+
objSetPrototypeOf(d, baseClass);
|
|
432
433
|
function __() {
|
|
433
434
|
this.constructor = d;
|
|
435
|
+
this[NAME] = name;
|
|
434
436
|
}
|
|
435
|
-
__[PROTOTYPE] =
|
|
436
|
-
__[PROTOTYPE].name = name;
|
|
437
|
+
__[PROTOTYPE] = baseClass[PROTOTYPE];
|
|
437
438
|
d[PROTOTYPE] = new __();
|
|
438
439
|
return d;
|
|
439
440
|
}
|
|
441
|
+
var _safeSetName = function (baseClass, name) {
|
|
442
|
+
try {
|
|
443
|
+
baseClass[PROTOTYPE][NAME] = name;
|
|
444
|
+
}
|
|
445
|
+
catch (e) {
|
|
446
|
+
}
|
|
447
|
+
};
|
|
440
448
|
function createCustomError(name, constructCb) {
|
|
441
449
|
var baseClass = Error;
|
|
450
|
+
var orgName = baseClass[PROTOTYPE][NAME];
|
|
442
451
|
var customError = _createCustomError(name, function () {
|
|
443
452
|
var _this = this;
|
|
444
|
-
|
|
445
|
-
|
|
453
|
+
try {
|
|
454
|
+
_safeSetName(baseClass, name);
|
|
455
|
+
_this = baseClass.apply(_this, arguments) || _this;
|
|
456
|
+
_this[NAME] = name;
|
|
457
|
+
constructCb && constructCb(_this, arguments);
|
|
458
|
+
}
|
|
459
|
+
finally {
|
|
460
|
+
_safeSetName(baseClass, orgName);
|
|
461
|
+
}
|
|
446
462
|
return _this;
|
|
447
463
|
}, baseClass);
|
|
448
464
|
return customError;
|
|
@@ -504,49 +520,77 @@
|
|
|
504
520
|
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
505
521
|
var TRIM = "trim";
|
|
506
522
|
var strTrim = _unwrapFunction(TRIM, UNDEF_VALUE, polyStrTrim);
|
|
523
|
+
var REF = "ref";
|
|
524
|
+
var UNREF = "un" + REF;
|
|
525
|
+
var HAS_REF = "hasRef";
|
|
526
|
+
var ENABLED = "enabled";
|
|
507
527
|
function _createTimerHandler(startTimer, refreshFn, cancelFn) {
|
|
528
|
+
var _a;
|
|
508
529
|
var ref = true;
|
|
509
530
|
var timerId = startTimer ? refreshFn(null) : null;
|
|
510
|
-
|
|
531
|
+
var theTimerHandler;
|
|
532
|
+
var _unref = function () {
|
|
511
533
|
ref = false;
|
|
512
|
-
timerId && timerId[
|
|
513
|
-
return
|
|
514
|
-
}
|
|
515
|
-
function
|
|
534
|
+
timerId && timerId[UNREF] && timerId[UNREF]();
|
|
535
|
+
return theTimerHandler;
|
|
536
|
+
};
|
|
537
|
+
var _ref = function () {
|
|
516
538
|
ref = true;
|
|
517
|
-
timerId && timerId[
|
|
518
|
-
return
|
|
519
|
-
}
|
|
520
|
-
function
|
|
521
|
-
if (timerId && timerId[
|
|
522
|
-
return timerId[
|
|
539
|
+
timerId && timerId[REF] && timerId[REF]();
|
|
540
|
+
return theTimerHandler;
|
|
541
|
+
};
|
|
542
|
+
var _hasRef = function () {
|
|
543
|
+
if (timerId && timerId[HAS_REF]) {
|
|
544
|
+
return timerId[HAS_REF]();
|
|
523
545
|
}
|
|
524
546
|
return ref;
|
|
525
|
-
}
|
|
526
|
-
var
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
547
|
+
};
|
|
548
|
+
var _refresh = function () {
|
|
549
|
+
timerId = refreshFn(timerId);
|
|
550
|
+
if (!ref) {
|
|
551
|
+
_unref();
|
|
552
|
+
}
|
|
553
|
+
return theTimerHandler;
|
|
554
|
+
};
|
|
555
|
+
var _cancel = function () {
|
|
556
|
+
timerId && cancelFn(timerId);
|
|
557
|
+
timerId = null;
|
|
558
|
+
};
|
|
559
|
+
var _setEnabled = function (value) {
|
|
560
|
+
!value && timerId && _cancel();
|
|
561
|
+
value && !timerId && _refresh();
|
|
562
|
+
};
|
|
563
|
+
theTimerHandler = (_a = {
|
|
564
|
+
cancel: _cancel,
|
|
565
|
+
refresh: _refresh
|
|
537
566
|
},
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
567
|
+
_a[HAS_REF] = _hasRef,
|
|
568
|
+
_a[REF] = _ref,
|
|
569
|
+
_a[UNREF] = _unref,
|
|
570
|
+
_a[ENABLED] = false,
|
|
571
|
+
_a);
|
|
572
|
+
objDefineProp(theTimerHandler, ENABLED, {
|
|
573
|
+
get: function () { return !!timerId; },
|
|
574
|
+
set: _setEnabled
|
|
575
|
+
});
|
|
576
|
+
return {
|
|
577
|
+
h: theTimerHandler,
|
|
578
|
+
dn: function () {
|
|
579
|
+
timerId = null;
|
|
580
|
+
}
|
|
541
581
|
};
|
|
542
|
-
return timer;
|
|
543
582
|
}
|
|
544
583
|
function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
|
|
545
584
|
var isArr = isArray(overrideFn);
|
|
546
585
|
var len = isArr ? overrideFn.length : 0;
|
|
547
586
|
var setFn = (len > 0 ? overrideFn[0] : (!isArr ? overrideFn : UNDEF_VALUE)) || setTimeout;
|
|
548
587
|
var clearFn = (len > 1 ? overrideFn[1] : UNDEF_VALUE) || clearTimeout;
|
|
549
|
-
|
|
588
|
+
var timerFn = theArgs[0];
|
|
589
|
+
theArgs[0] = function () {
|
|
590
|
+
handler.dn();
|
|
591
|
+
timerFn.apply(self, arguments);
|
|
592
|
+
};
|
|
593
|
+
var handler = _createTimerHandler(startTimer, function (timerId) {
|
|
550
594
|
if (timerId) {
|
|
551
595
|
if (timerId.refresh) {
|
|
552
596
|
timerId.refresh();
|
|
@@ -558,6 +602,7 @@
|
|
|
558
602
|
}, function (timerId) {
|
|
559
603
|
clearFn.call(self, timerId);
|
|
560
604
|
});
|
|
605
|
+
return handler.h;
|
|
561
606
|
}
|
|
562
607
|
function scheduleTimeout(callback, timeout) {
|
|
563
608
|
return _createTimeoutWith(this, true, UNDEF_VALUE, _extractArgs(arguments, 0));
|
|
@@ -701,7 +746,7 @@
|
|
|
701
746
|
}
|
|
702
747
|
|
|
703
748
|
/*!
|
|
704
|
-
* Microsoft Dynamic Proto Utility, 1.1.
|
|
749
|
+
* Microsoft Dynamic Proto Utility, 1.1.8
|
|
705
750
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
706
751
|
*/
|
|
707
752
|
var _a$1;
|
|
@@ -1172,7 +1217,7 @@
|
|
|
1172
1217
|
return result;
|
|
1173
1218
|
}
|
|
1174
1219
|
|
|
1175
|
-
var version = "3.0.0-beta.
|
|
1220
|
+
var version = "3.0.0-beta.2303-02";
|
|
1176
1221
|
var instanceName = "." + newId(6);
|
|
1177
1222
|
var _dataUid = 0;
|
|
1178
1223
|
function createUniqueNamespace(name, includeVersion) {
|