@microsoft/applicationinsights-properties-js 3.0.2-nightly3.2305-11 → 3.0.2-nightly3.2305-12
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/{ai.props.3.0.2-nightly3.2305-11.cjs.js → ai.props.3.0.2-nightly3.2305-12.cjs.js} +12 -13
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.cjs.js.map → ai.props.3.0.2-nightly3.2305-12.cjs.js.map} +1 -1
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.cjs.min.js → ai.props.3.0.2-nightly3.2305-12.cjs.min.js} +3 -3
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.cjs.min.js.map → ai.props.3.0.2-nightly3.2305-12.cjs.min.js.map} +1 -1
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.gbl.js → ai.props.3.0.2-nightly3.2305-12.gbl.js} +14 -15
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.gbl.js.map → ai.props.3.0.2-nightly3.2305-12.gbl.js.map} +1 -1
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.gbl.min.js → ai.props.3.0.2-nightly3.2305-12.gbl.min.js} +3 -3
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.gbl.min.js.map → ai.props.3.0.2-nightly3.2305-12.gbl.min.js.map} +1 -1
- package/browser/es5/ai.props.3.0.2-nightly3.2305-12.integrity.json +66 -0
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.js → ai.props.3.0.2-nightly3.2305-12.js} +14 -15
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.js.map → ai.props.3.0.2-nightly3.2305-12.js.map} +1 -1
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.min.js → ai.props.3.0.2-nightly3.2305-12.min.js} +3 -3
- package/browser/es5/{ai.props.3.0.2-nightly3.2305-11.min.js.map → ai.props.3.0.2-nightly3.2305-12.min.js.map} +1 -1
- package/browser/es5/ai.props.3.cjs.js +11 -12
- package/browser/es5/ai.props.3.cjs.js.map +1 -1
- package/browser/es5/ai.props.3.cjs.min.js +2 -2
- package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
- package/browser/es5/ai.props.3.gbl.js +13 -14
- package/browser/es5/ai.props.3.gbl.js.map +1 -1
- package/browser/es5/ai.props.3.gbl.min.js +2 -2
- package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
- package/browser/es5/ai.props.3.js +13 -14
- package/browser/es5/ai.props.3.js.map +1 -1
- package/browser/es5/ai.props.3.min.js +2 -2
- package/browser/es5/ai.props.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-properties-js.js +11 -12
- package/dist/es5/applicationinsights-properties-js.js.map +1 -1
- package/dist/es5/applicationinsights-properties-js.min.js +2 -2
- package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
- package/dist-es5/Context/Application.js +1 -1
- package/dist-es5/Context/Device.js +1 -1
- package/dist-es5/Context/Internal.js +2 -2
- package/dist-es5/Context/Internal.js.map +1 -1
- package/dist-es5/Context/Location.js +1 -1
- package/dist-es5/Context/Session.js +1 -1
- package/dist-es5/Context/TelemetryTrace.js +1 -1
- package/dist-es5/Context/User.js +1 -1
- package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
- package/dist-es5/PropertiesPlugin.js +1 -1
- package/dist-es5/TelemetryContext.js +3 -3
- package/dist-es5/TelemetryContext.js.map +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-properties-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-properties-js.d.ts +1 -1
- package/types/applicationinsights-properties-js.namespaced.d.ts +1 -1
- package/browser/es5/ai.props.3.0.2-nightly3.2305-11.integrity.json +0 -66
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.2-nightly3.2305-
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.2-nightly3.2305-12
|
|
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-nightly3.2305-
|
|
7
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_ai_props_3_0_2_nightly3_2305_12", msMod="__ms$mod__";
|
|
8
|
+
var mods={}, modDetail=mods[modName]={}, ver="3.0.2-nightly3.2305-12";
|
|
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]||{});
|
|
@@ -1294,7 +1294,7 @@ function newId(maxLength) {
|
|
|
1294
1294
|
return result;
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
|
-
var version = "3.0.2-nightly3.2305-
|
|
1297
|
+
var version = "3.0.2-nightly3.2305-12";
|
|
1298
1298
|
var instanceName = "." + newId(6);
|
|
1299
1299
|
var _dataUid = 0;
|
|
1300
1300
|
function _canAcceptData(target) {
|
|
@@ -3178,7 +3178,6 @@ var _DYN_STRINGIFY = "stringify";
|
|
|
3178
3178
|
var _DYN_PROPERTIES = "properties";
|
|
3179
3179
|
var _DYN_MEASUREMENTS = "measurements";
|
|
3180
3180
|
var _DYN_DURATION = "duration";
|
|
3181
|
-
var _DYN_SUBSTRING = "substring";
|
|
3182
3181
|
|
|
3183
3182
|
function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
3184
3183
|
var origLength = key[_DYN_LENGTH$1 ];
|
|
@@ -3188,7 +3187,7 @@ function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
|
3188
3187
|
var uniqueField = field;
|
|
3189
3188
|
while (map[uniqueField] !== undefined) {
|
|
3190
3189
|
i++;
|
|
3191
|
-
uniqueField = field
|
|
3190
|
+
uniqueField = strSubstring(field, 0, 150 - 3) + dsPadNumber(i);
|
|
3192
3191
|
}
|
|
3193
3192
|
field = uniqueField;
|
|
3194
3193
|
}
|
|
@@ -3197,9 +3196,9 @@ function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
|
|
|
3197
3196
|
function dataSanitizeKey(logger, name) {
|
|
3198
3197
|
var nameTrunc;
|
|
3199
3198
|
if (name) {
|
|
3200
|
-
name = strTrim(name
|
|
3199
|
+
name = strTrim(asString(name));
|
|
3201
3200
|
if (name[_DYN_LENGTH$1 ] > 150 ) {
|
|
3202
|
-
nameTrunc = name
|
|
3201
|
+
nameTrunc = strSubstring(name, 0, 150 );
|
|
3203
3202
|
_throwInternal(logger, 2 , 57 , "name is too long. It has been truncated to " + 150 + " characters.", { name: name }, true);
|
|
3204
3203
|
}
|
|
3205
3204
|
}
|
|
@@ -3210,9 +3209,9 @@ function dataSanitizeString(logger, value, maxLength) {
|
|
|
3210
3209
|
var valueTrunc;
|
|
3211
3210
|
if (value) {
|
|
3212
3211
|
maxLength = maxLength ? maxLength : 1024 ;
|
|
3213
|
-
value = strTrim(value
|
|
3212
|
+
value = strTrim(asString(value));
|
|
3214
3213
|
if (value[_DYN_LENGTH$1 ] > maxLength) {
|
|
3215
|
-
valueTrunc = value
|
|
3214
|
+
valueTrunc = strSubstring(value, 0, maxLength);
|
|
3216
3215
|
_throwInternal(logger, 2 , 61 , "string value is too long. It has been truncated to " + maxLength + " characters.", { value: value }, true);
|
|
3217
3216
|
}
|
|
3218
3217
|
}
|
|
@@ -3258,9 +3257,9 @@ function dataSanitizeId(logger, id) {
|
|
|
3258
3257
|
function dataSanitizeInput(logger, input, maxLength, _msgId) {
|
|
3259
3258
|
var inputTrunc;
|
|
3260
3259
|
if (input) {
|
|
3261
|
-
input = strTrim(input
|
|
3260
|
+
input = strTrim(asString(input));
|
|
3262
3261
|
if (input[_DYN_LENGTH$1 ] > maxLength) {
|
|
3263
|
-
inputTrunc = input
|
|
3262
|
+
inputTrunc = strSubstring(input, 0, maxLength);
|
|
3264
3263
|
_throwInternal(logger, 2 , _msgId, "input is too long, it has been truncated to " + maxLength + " characters.", { data: input }, true);
|
|
3265
3264
|
}
|
|
3266
3265
|
}
|
|
@@ -3546,7 +3545,7 @@ var Device = /** @class */ (function () {
|
|
|
3546
3545
|
return Device;
|
|
3547
3546
|
}());
|
|
3548
3547
|
|
|
3549
|
-
var Version = "3.0.2-nightly3.2305-
|
|
3548
|
+
var Version = "3.0.2-nightly3.2305-12";
|
|
3550
3549
|
var Internal = /** @class */ (function () {
|
|
3551
3550
|
function Internal(config, unloadHookContainer) {
|
|
3552
3551
|
var _this = this;
|
|
@@ -3925,7 +3924,7 @@ var TelemetryContext = /** @class */ (function () {
|
|
|
3925
3924
|
if (internal) {
|
|
3926
3925
|
var tags = getSetValue(evt, strTags);
|
|
3927
3926
|
setValue(tags, CtxTagKeys.internalAgentVersion, internal.agentVersion, isString);
|
|
3928
|
-
setValue(tags, CtxTagKeys.internalSdkVersion, internal.sdkVersion, isString);
|
|
3927
|
+
setValue(tags, CtxTagKeys.internalSdkVersion, dataSanitizeString(logger, internal.sdkVersion, 64), isString);
|
|
3929
3928
|
if (evt.baseType === _InternalLogMessage.dataType || evt.baseType === PageView.dataType) {
|
|
3930
3929
|
setValue(tags, CtxTagKeys.internalSnippet, internal.snippetVer, isString);
|
|
3931
3930
|
setValue(tags, CtxTagKeys.internalSdkSrc, internal.sdkSrc, isString);
|
|
@@ -4108,4 +4107,4 @@ exports.TelemetryContext = TelemetryContext;
|
|
|
4108
4107
|
exports.TelemetryTrace = TelemetryTrace;
|
|
4109
4108
|
|
|
4110
4109
|
}));
|
|
4111
|
-
//# sourceMappingURL=ai.props.3.0.2-nightly3.2305-
|
|
4110
|
+
//# sourceMappingURL=ai.props.3.0.2-nightly3.2305-12.gbl.js.map
|