@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,5 +1,5 @@
|
|
|
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) {
|
|
@@ -1255,7 +1255,7 @@
|
|
|
1255
1255
|
return result;
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
|
-
var version =
|
|
1258
|
+
var version = '3.0.2';
|
|
1259
1259
|
var instanceName = "." + newId(6);
|
|
1260
1260
|
var _dataUid = 0;
|
|
1261
1261
|
function createUniqueNamespace(name, includeVersion) {
|
|
@@ -2283,7 +2283,6 @@
|
|
|
2283
2283
|
var _DYN_LINE = "line";
|
|
2284
2284
|
var _DYN_DURATION = "duration";
|
|
2285
2285
|
var _DYN_RECEIVED_RESPONSE = "receivedResponse";
|
|
2286
|
-
var _DYN_SUBSTRING = "substring";
|
|
2287
2286
|
|
|
2288
2287
|
function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
2289
2288
|
var origLength = key[_DYN_LENGTH ];
|
|
@@ -2293,7 +2292,7 @@
|
|
|
2293
2292
|
var uniqueField = field;
|
|
2294
2293
|
while (map[uniqueField] !== undefined) {
|
|
2295
2294
|
i++;
|
|
2296
|
-
uniqueField = field
|
|
2295
|
+
uniqueField = strSubstring(field, 0, 150 - 3) + dsPadNumber(i);
|
|
2297
2296
|
}
|
|
2298
2297
|
field = uniqueField;
|
|
2299
2298
|
}
|
|
@@ -2302,9 +2301,9 @@
|
|
|
2302
2301
|
function dataSanitizeKey(logger, name) {
|
|
2303
2302
|
var nameTrunc;
|
|
2304
2303
|
if (name) {
|
|
2305
|
-
name = strTrim(name
|
|
2304
|
+
name = strTrim(asString(name));
|
|
2306
2305
|
if (name[_DYN_LENGTH ] > 150 ) {
|
|
2307
|
-
nameTrunc = name
|
|
2306
|
+
nameTrunc = strSubstring(name, 0, 150 );
|
|
2308
2307
|
_throwInternal(logger, 2 , 57 , "name is too long. It has been truncated to " + 150 + " characters.", { name: name }, true);
|
|
2309
2308
|
}
|
|
2310
2309
|
}
|
|
@@ -2315,9 +2314,9 @@
|
|
|
2315
2314
|
var valueTrunc;
|
|
2316
2315
|
if (value) {
|
|
2317
2316
|
maxLength = maxLength ? maxLength : 1024 ;
|
|
2318
|
-
value = strTrim(value
|
|
2317
|
+
value = strTrim(asString(value));
|
|
2319
2318
|
if (value[_DYN_LENGTH ] > maxLength) {
|
|
2320
|
-
valueTrunc = value
|
|
2319
|
+
valueTrunc = strSubstring(value, 0, maxLength);
|
|
2321
2320
|
_throwInternal(logger, 2 , 61 , "string value is too long. It has been truncated to " + maxLength + " characters.", { value: value }, true);
|
|
2322
2321
|
}
|
|
2323
2322
|
}
|
|
@@ -2330,7 +2329,7 @@
|
|
|
2330
2329
|
var messageTrunc;
|
|
2331
2330
|
if (message) {
|
|
2332
2331
|
if (message[_DYN_LENGTH ] > 32768 ) {
|
|
2333
|
-
messageTrunc = message
|
|
2332
|
+
messageTrunc = strSubstring(message, 0, 32768 );
|
|
2334
2333
|
_throwInternal(logger, 2 , 56 , "message is too long, it has been truncated to " + 32768 + " characters.", { message: message }, true);
|
|
2335
2334
|
}
|
|
2336
2335
|
}
|
|
@@ -2341,7 +2340,7 @@
|
|
|
2341
2340
|
if (exception) {
|
|
2342
2341
|
var value = "" + exception;
|
|
2343
2342
|
if (value[_DYN_LENGTH ] > 32768 ) {
|
|
2344
|
-
exceptionTrunc = value
|
|
2343
|
+
exceptionTrunc = strSubstring(value, 0, 32768 );
|
|
2345
2344
|
_throwInternal(logger, 2 , 52 , "exception is too long, it has been truncated to " + 32768 + " characters.", { exception: exception }, true);
|
|
2346
2345
|
}
|
|
2347
2346
|
}
|
|
@@ -2384,9 +2383,9 @@
|
|
|
2384
2383
|
function dataSanitizeInput(logger, input, maxLength, _msgId) {
|
|
2385
2384
|
var inputTrunc;
|
|
2386
2385
|
if (input) {
|
|
2387
|
-
input = strTrim(input
|
|
2386
|
+
input = strTrim(asString(input));
|
|
2388
2387
|
if (input[_DYN_LENGTH ] > maxLength) {
|
|
2389
|
-
inputTrunc = input
|
|
2388
|
+
inputTrunc = strSubstring(input, 0, maxLength);
|
|
2390
2389
|
_throwInternal(logger, 2 , _msgId, "input is too long, it has been truncated to " + maxLength + " characters.", { data: input }, true);
|
|
2391
2390
|
}
|
|
2392
2391
|
}
|
|
@@ -2888,7 +2887,7 @@
|
|
|
2888
2887
|
_namePrefix = isNotNullOrUndefined(namePrefix) ? namePrefix : "";
|
|
2889
2888
|
unloadHookContainer = unloadHookContainer || createUnloadHookContainer();
|
|
2890
2889
|
config = createDynamicConfig(config || {}, null, _logger).cfg;
|
|
2891
|
-
var unloadHook = onConfigChange(
|
|
2890
|
+
var unloadHook = onConfigChange(config, function () {
|
|
2892
2891
|
var _a, _b;
|
|
2893
2892
|
_canUseLocalStorage = utlCanUseLocalStorage();
|
|
2894
2893
|
var configMgr = config || {};
|