@microsoft/applicationinsights-common 3.0.2-nightly3.2305-11 → 3.0.2
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/README.md +4 -3
- package/browser/es5/applicationinsights-common.cjs.js +12 -13
- 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 +14 -15
- 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 +14 -15
- 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 +12 -13
- 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/ConnectionStringParser.js +1 -1
- package/dist-es5/Constants.js +1 -1
- package/dist-es5/DomHelperFuncs.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +1 -1
- package/dist-es5/Interfaces/Context/IApplication.js +1 -1
- package/dist-es5/Interfaces/Context/IDevice.js +1 -1
- package/dist-es5/Interfaces/Context/IInternal.js +1 -1
- package/dist-es5/Interfaces/Context/ILocation.js +1 -1
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-es5/Interfaces/Context/ISample.js +1 -1
- package/dist-es5/Interfaces/Context/ISession.js +1 -1
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-es5/Interfaces/Context/IUser.js +1 -1
- package/dist-es5/Interfaces/Context/IWeb.js +1 -1
- package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
- package/dist-es5/Interfaces/Contracts/IData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +1 -1
- package/dist-es5/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
- package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPartC.js +1 -1
- package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-es5/Interfaces/IRequestContext.js +1 -1
- package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
- package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
- package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-es5/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-es5/RequestResponseHeaders.js +1 -1
- package/dist-es5/StorageHelperFuncs.js +1 -1
- package/dist-es5/Telemetry/Common/Data.js +1 -1
- package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
- package/dist-es5/Telemetry/Common/DataSanitizer.js +12 -12
- package/dist-es5/Telemetry/Common/DataSanitizer.js.map +1 -1
- package/dist-es5/Telemetry/Common/Envelope.js +1 -1
- package/dist-es5/Telemetry/Event.js +1 -1
- package/dist-es5/Telemetry/Exception.js +1 -1
- package/dist-es5/Telemetry/Metric.js +1 -1
- package/dist-es5/Telemetry/PageView.js +1 -1
- package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
- package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-es5/Telemetry/Trace.js +1 -1
- package/dist-es5/TelemetryItemCreator.js +1 -1
- package/dist-es5/ThrottleMgr.js +2 -2
- package/dist-es5/ThrottleMgr.js.map +1 -1
- package/dist-es5/UrlHelperFuncs.js +1 -1
- package/dist-es5/Util.js +1 -1
- package/dist-es5/__DynamicConstants.js +2 -3
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/applicationinsights-common.js +1 -1
- package/package.json +60 -63
- 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.0.2
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 3.0.2
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
6
6
|
var undef = "undefined";
|
|
7
|
-
var nsKey, key, nm, theExports = {}, modName = "
|
|
8
|
-
var mods={}, modDetail=mods[modName]={}, ver="3.0.2
|
|
7
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_common_3_0_2", msMod="__ms$mod__";
|
|
8
|
+
var mods={}, modDetail=mods[modName]={}, ver="3.0.2";
|
|
9
9
|
var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
|
|
10
10
|
// Versioned namespace "Microsoft.ApplicationInsights3"
|
|
11
11
|
var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
@@ -1273,7 +1273,7 @@ function newId(maxLength) {
|
|
|
1273
1273
|
return result;
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
|
-
var version =
|
|
1276
|
+
var version = '3.0.2';
|
|
1277
1277
|
var instanceName = "." + newId(6);
|
|
1278
1278
|
var _dataUid = 0;
|
|
1279
1279
|
function createUniqueNamespace(name, includeVersion) {
|
|
@@ -2301,7 +2301,6 @@ var _DYN_FILE_NAME = "fileName";
|
|
|
2301
2301
|
var _DYN_LINE = "line";
|
|
2302
2302
|
var _DYN_DURATION = "duration";
|
|
2303
2303
|
var _DYN_RECEIVED_RESPONSE = "receivedResponse";
|
|
2304
|
-
var _DYN_SUBSTRING = "substring";
|
|
2305
2304
|
|
|
2306
2305
|
function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
2307
2306
|
var origLength = key[_DYN_LENGTH ];
|
|
@@ -2311,7 +2310,7 @@ function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
|
2311
2310
|
var uniqueField = field;
|
|
2312
2311
|
while (map[uniqueField] !== undefined) {
|
|
2313
2312
|
i++;
|
|
2314
|
-
uniqueField = field
|
|
2313
|
+
uniqueField = strSubstring(field, 0, 150 - 3) + dsPadNumber(i);
|
|
2315
2314
|
}
|
|
2316
2315
|
field = uniqueField;
|
|
2317
2316
|
}
|
|
@@ -2320,9 +2319,9 @@ function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
|
2320
2319
|
function dataSanitizeKey(logger, name) {
|
|
2321
2320
|
var nameTrunc;
|
|
2322
2321
|
if (name) {
|
|
2323
|
-
name = strTrim(name
|
|
2322
|
+
name = strTrim(asString(name));
|
|
2324
2323
|
if (name[_DYN_LENGTH ] > 150 ) {
|
|
2325
|
-
nameTrunc = name
|
|
2324
|
+
nameTrunc = strSubstring(name, 0, 150 );
|
|
2326
2325
|
_throwInternal(logger, 2 , 57 , "name is too long. It has been truncated to " + 150 + " characters.", { name: name }, true);
|
|
2327
2326
|
}
|
|
2328
2327
|
}
|
|
@@ -2333,9 +2332,9 @@ function dataSanitizeString(logger, value, maxLength) {
|
|
|
2333
2332
|
var valueTrunc;
|
|
2334
2333
|
if (value) {
|
|
2335
2334
|
maxLength = maxLength ? maxLength : 1024 ;
|
|
2336
|
-
value = strTrim(value
|
|
2335
|
+
value = strTrim(asString(value));
|
|
2337
2336
|
if (value[_DYN_LENGTH ] > maxLength) {
|
|
2338
|
-
valueTrunc = value
|
|
2337
|
+
valueTrunc = strSubstring(value, 0, maxLength);
|
|
2339
2338
|
_throwInternal(logger, 2 , 61 , "string value is too long. It has been truncated to " + maxLength + " characters.", { value: value }, true);
|
|
2340
2339
|
}
|
|
2341
2340
|
}
|
|
@@ -2348,7 +2347,7 @@ function dataSanitizeMessage(logger, message) {
|
|
|
2348
2347
|
var messageTrunc;
|
|
2349
2348
|
if (message) {
|
|
2350
2349
|
if (message[_DYN_LENGTH ] > 32768 ) {
|
|
2351
|
-
messageTrunc = message
|
|
2350
|
+
messageTrunc = strSubstring(message, 0, 32768 );
|
|
2352
2351
|
_throwInternal(logger, 2 , 56 , "message is too long, it has been truncated to " + 32768 + " characters.", { message: message }, true);
|
|
2353
2352
|
}
|
|
2354
2353
|
}
|
|
@@ -2359,7 +2358,7 @@ function dataSanitizeException(logger, exception) {
|
|
|
2359
2358
|
if (exception) {
|
|
2360
2359
|
var value = "" + exception;
|
|
2361
2360
|
if (value[_DYN_LENGTH ] > 32768 ) {
|
|
2362
|
-
exceptionTrunc = value
|
|
2361
|
+
exceptionTrunc = strSubstring(value, 0, 32768 );
|
|
2363
2362
|
_throwInternal(logger, 2 , 52 , "exception is too long, it has been truncated to " + 32768 + " characters.", { exception: exception }, true);
|
|
2364
2363
|
}
|
|
2365
2364
|
}
|
|
@@ -2402,9 +2401,9 @@ function dataSanitizeId(logger, id) {
|
|
|
2402
2401
|
function dataSanitizeInput(logger, input, maxLength, _msgId) {
|
|
2403
2402
|
var inputTrunc;
|
|
2404
2403
|
if (input) {
|
|
2405
|
-
input = strTrim(input
|
|
2404
|
+
input = strTrim(asString(input));
|
|
2406
2405
|
if (input[_DYN_LENGTH ] > maxLength) {
|
|
2407
|
-
inputTrunc = input
|
|
2406
|
+
inputTrunc = strSubstring(input, 0, maxLength);
|
|
2408
2407
|
_throwInternal(logger, 2 , _msgId, "input is too long, it has been truncated to " + maxLength + " characters.", { data: input }, true);
|
|
2409
2408
|
}
|
|
2410
2409
|
}
|
|
@@ -2906,7 +2905,7 @@ var ThrottleMgr = /** @class */ (function () {
|
|
|
2906
2905
|
_namePrefix = isNotNullOrUndefined(namePrefix) ? namePrefix : "";
|
|
2907
2906
|
unloadHookContainer = unloadHookContainer || createUnloadHookContainer();
|
|
2908
2907
|
config = createDynamicConfig(config || {}, null, _logger).cfg;
|
|
2909
|
-
var unloadHook = onConfigChange(
|
|
2908
|
+
var unloadHook = onConfigChange(config, function () {
|
|
2910
2909
|
var _a, _b;
|
|
2911
2910
|
_canUseLocalStorage = utlCanUseLocalStorage();
|
|
2912
2911
|
var configMgr = config || {};
|