@microsoft/applicationinsights-properties-js 3.0.6-nightly3.2311-01 → 3.0.6-nightly3.2311-04

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.
Files changed (49) hide show
  1. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.cjs.js → ai.props.3.0.6-nightly3.2311-04.cjs.js} +11 -6
  2. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.cjs.js.map → ai.props.3.0.6-nightly3.2311-04.cjs.js.map} +1 -1
  3. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.cjs.min.js → ai.props.3.0.6-nightly3.2311-04.cjs.min.js} +3 -3
  4. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.cjs.min.js.map → ai.props.3.0.6-nightly3.2311-04.cjs.min.js.map} +1 -1
  5. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.gbl.js → ai.props.3.0.6-nightly3.2311-04.gbl.js} +13 -8
  6. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.gbl.js.map → ai.props.3.0.6-nightly3.2311-04.gbl.js.map} +1 -1
  7. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.gbl.min.js → ai.props.3.0.6-nightly3.2311-04.gbl.min.js} +3 -3
  8. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.gbl.min.js.map → ai.props.3.0.6-nightly3.2311-04.gbl.min.js.map} +1 -1
  9. package/browser/es5/ai.props.3.0.6-nightly3.2311-04.integrity.json +66 -0
  10. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.js → ai.props.3.0.6-nightly3.2311-04.js} +13 -8
  11. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.js.map → ai.props.3.0.6-nightly3.2311-04.js.map} +1 -1
  12. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.min.js → ai.props.3.0.6-nightly3.2311-04.min.js} +3 -3
  13. package/browser/es5/{ai.props.3.0.6-nightly3.2311-01.min.js.map → ai.props.3.0.6-nightly3.2311-04.min.js.map} +1 -1
  14. package/browser/es5/ai.props.3.cjs.js +10 -5
  15. package/browser/es5/ai.props.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.props.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.props.3.gbl.js +12 -7
  19. package/browser/es5/ai.props.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.props.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.props.3.integrity.json +25 -25
  23. package/browser/es5/ai.props.3.js +12 -7
  24. package/browser/es5/ai.props.3.js.map +1 -1
  25. package/browser/es5/ai.props.3.min.js +2 -2
  26. package/browser/es5/ai.props.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-properties-js.js +10 -5
  28. package/dist/es5/applicationinsights-properties-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-properties-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
  31. package/dist-es5/Context/Application.js +1 -1
  32. package/dist-es5/Context/Device.js +1 -1
  33. package/dist-es5/Context/Internal.js +2 -2
  34. package/dist-es5/Context/Internal.js.map +1 -1
  35. package/dist-es5/Context/Location.js +1 -1
  36. package/dist-es5/Context/Session.js +1 -1
  37. package/dist-es5/Context/TelemetryTrace.js +1 -1
  38. package/dist-es5/Context/User.js +1 -1
  39. package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
  40. package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
  41. package/dist-es5/PropertiesPlugin.js +8 -3
  42. package/dist-es5/PropertiesPlugin.js.map +1 -1
  43. package/dist-es5/TelemetryContext.js +1 -1
  44. package/dist-es5/__DynamicConstants.js +1 -1
  45. package/dist-es5/applicationinsights-properties-js.js +1 -1
  46. package/package.json +3 -3
  47. package/types/applicationinsights-properties-js.d.ts +1 -1
  48. package/types/applicationinsights-properties-js.namespaced.d.ts +1 -1
  49. package/browser/es5/ai.props.3.0.6-nightly3.2311-01.integrity.json +0 -66
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,11 +1,11 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
6
6
 
7
7
  import { onConfigChange } from "@microsoft/applicationinsights-core-js";
8
- var Version = '3.0.6-nightly3.2311-01';
8
+ var Version = '3.0.6-nightly3.2311-04';
9
9
  var Internal = /** @class */ (function () {
10
10
  /**
11
11
  * Constructs a new instance of the internal telemetry data class.
@@ -1 +1 @@
1
- {"version":3,"file":"Internal.js.map","sources":["Internal.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nvar Version = '3.0.6-nightly3.2311-01';\r\nvar Internal = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the internal telemetry data class.\r\n */\r\n function Internal(config, unloadHookContainer) {\r\n var _this = this;\r\n var unloadHook = onConfigChange((config), function () {\r\n var prefix = config.sdkExtension;\r\n _this.sdkVersion = (prefix ? prefix + \"_\" : \"\") + \"javascript:\" + Version;\r\n });\r\n unloadHookContainer && unloadHookContainer.add(unloadHook);\r\n }\r\n return Internal;\r\n}());\r\nexport { Internal };\r\n//# sourceMappingURL=Internal.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"Internal.js.map","sources":["Internal.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nvar Version = '3.0.6-nightly3.2311-04';\r\nvar Internal = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the internal telemetry data class.\r\n */\r\n function Internal(config, unloadHookContainer) {\r\n var _this = this;\r\n var unloadHook = onConfigChange((config), function () {\r\n var prefix = config.sdkExtension;\r\n _this.sdkVersion = (prefix ? prefix + \"_\" : \"\") + \"javascript:\" + Version;\r\n });\r\n unloadHookContainer && unloadHookContainer.add(unloadHook);\r\n }\r\n return Internal;\r\n}());\r\nexport { Internal };\r\n//# sourceMappingURL=Internal.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -42,6 +42,7 @@ var PropertiesPlugin = /** @class */ (function (_super) {
42
42
  var _distributedTraceCtx;
43
43
  var _previousTraceCtx;
44
44
  var _context;
45
+ var _disableUserInitMessage;
45
46
  dynamicProto(PropertiesPlugin, _this, function (_self, _base) {
46
47
  _initDefaults();
47
48
  objDefine(_self, "context", {
@@ -78,8 +79,10 @@ var PropertiesPlugin = /** @class */ (function (_super) {
78
79
  _processTelemetryInternal(event, itemCtx);
79
80
  if (userCtx && userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */]) {
80
81
  userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = false;
81
- var message = new _InternalLogMessage(72 /* _eInternalMessageId.SendBrowserInfoOnUserInit */, ((getNavigator() || {}).userAgent || ""));
82
- _logInternalMessage(itemCtx.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, message);
82
+ if (!_disableUserInitMessage) {
83
+ var message = new _InternalLogMessage(72 /* _eInternalMessageId.SendBrowserInfoOnUserInit */, ((getNavigator() || {}).userAgent || ""));
84
+ _logInternalMessage(itemCtx.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, message);
85
+ }
83
86
  }
84
87
  _self.processNext(event, itemCtx);
85
88
  }
@@ -99,6 +102,7 @@ var PropertiesPlugin = /** @class */ (function (_super) {
99
102
  _distributedTraceCtx = null;
100
103
  _previousTraceCtx = null;
101
104
  _context = null;
105
+ _disableUserInitMessage = false;
102
106
  }
103
107
  function _populateDefaults(config) {
104
108
  var identifier = _self.identifier;
@@ -109,6 +113,7 @@ var PropertiesPlugin = /** @class */ (function (_super) {
109
113
  if (config.storagePrefix) {
110
114
  utlSetStoragePrefix(config.storagePrefix);
111
115
  }
116
+ _disableUserInitMessage = config.disableUserInitMessage || false;
112
117
  _extensionConfig = ctx.getExtCfg(identifier, _defaultConfig);
113
118
  // Test hook to allow accessing the internal values -- explicitly not defined as an available property on the class
114
119
  _self["_extConfig"] = _extensionConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"PropertiesPlugin.js.map","sources":["PropertiesPlugin.js"],"sourcesContent":["/**\r\n* PropertiesPlugin.ts\r\n* @copyright Microsoft 2018\r\n*/\r\nvar _a;\r\nimport { __extends } from \"tslib\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { BreezeChannelIdentifier, PageView, PropertiesPluginIdentifier, createDistributedTraceContextFromTrace, utlSetStoragePrefix } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, _InternalLogMessage, _logInternalMessage, createProcessTelemetryContext, getNavigator, getSetValue, isNullOrUndefined, onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nimport { objDeepFreeze, objDefine } from \"@nevware21/ts-utils\";\r\nimport { TelemetryContext } from \"./TelemetryContext\";\r\nimport { _DYN_ACCOUNT_ID, _DYN_APPLY_APPLICATION_CO1, _DYN_APPLY_DEVICE_CONTEXT, _DYN_APPLY_INTERNAL_CONTE5, _DYN_APPLY_LOCATION_CONTE4, _DYN_APPLY_OPERATING_SYST3, _DYN_APPLY_OPERATION_CONT2, _DYN_APPLY_SESSION_CONTEX0, _DYN_APPLY_USER_CONTEXT, _DYN_GET_NEW_ID, _DYN_GET_SESSION_ID, _DYN_GET_TRACE_CTX, _DYN_ID_LENGTH, _DYN_IS_NEW_USER, _DYN_IS_USER_COOKIE_SET, _DYN_NAME_PREFIX, _DYN_SESSION_COOKIE_POSTF6, _DYN_SESSION_MANAGER, _DYN_TELEMETRY_TRACE, _DYN_UPDATE, _DYN_USER_COOKIE_POSTFIX } from \"./__DynamicConstants\";\r\nvar undefString;\r\nvar nullValue = null;\r\nvar _defaultConfig = objDeepFreeze((_a = {},\r\n _a[_DYN_ACCOUNT_ID /* @min:accountId */] = nullValue,\r\n _a.sessionRenewalMs = 30 * 60 * 1000,\r\n _a.samplingPercentage = 100,\r\n _a.sessionExpirationMs = 24 * 60 * 60 * 1000,\r\n _a.cookieDomain = nullValue,\r\n _a.sdkExtension = nullValue,\r\n _a.isBrowserLinkTrackingEnabled = false,\r\n _a.appId = nullValue,\r\n _a[_DYN_GET_SESSION_ID /* @min:getSessionId */] = nullValue,\r\n _a[_DYN_NAME_PREFIX /* @min:namePrefix */] = undefString,\r\n _a[_DYN_SESSION_COOKIE_POSTF6 /* @min:sessionCookiePostfix */] = undefString,\r\n _a[_DYN_USER_COOKIE_POSTFIX /* @min:userCookiePostfix */] = undefString,\r\n _a[_DYN_ID_LENGTH /* @min:idLength */] = 22,\r\n _a[_DYN_GET_NEW_ID /* @min:getNewId */] = nullValue,\r\n _a));\r\nvar PropertiesPlugin = /** @class */ (function (_super) {\r\n __extends(PropertiesPlugin, _super);\r\n function PropertiesPlugin() {\r\n var _this = _super.call(this) || this;\r\n _this.priority = 110;\r\n _this.identifier = PropertiesPluginIdentifier;\r\n var _extensionConfig;\r\n var _distributedTraceCtx;\r\n var _previousTraceCtx;\r\n var _context;\r\n dynamicProto(PropertiesPlugin, _this, function (_self, _base) {\r\n _initDefaults();\r\n objDefine(_self, \"context\", {\r\n g: function () {\r\n return _context;\r\n }\r\n });\r\n _self.initialize = function (config, core, extensions, pluginChain) {\r\n _base.initialize(config, core, extensions, pluginChain);\r\n _populateDefaults(config);\r\n };\r\n /**\r\n * Add Part A fields to the event\r\n * @param event - The event that needs to be processed\r\n */\r\n _self.processTelemetry = function (event, itemCtx) {\r\n if (!isNullOrUndefined(event)) {\r\n itemCtx = _self._getTelCtx(itemCtx);\r\n // If the envelope is PageView, reset the internal message count so that we can send internal telemetry for the new page.\r\n if (event.name === PageView.envelopeType) {\r\n itemCtx.diagLog().resetInternalMessageCount();\r\n }\r\n var theContext = (_context || {});\r\n if (theContext.session) {\r\n // If customer did not provide custom session id update the session manager\r\n if (typeof _context.session.id !== \"string\" && theContext[_DYN_SESSION_MANAGER /* @min:%2esessionManager */]) {\r\n theContext[_DYN_SESSION_MANAGER /* @min:%2esessionManager */][_DYN_UPDATE /* @min:%2eupdate */]();\r\n }\r\n }\r\n var userCtx = theContext.user;\r\n if (userCtx && !userCtx[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */]) {\r\n userCtx[_DYN_UPDATE /* @min:%2eupdate */](theContext.user.id);\r\n }\r\n _processTelemetryInternal(event, itemCtx);\r\n if (userCtx && userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */]) {\r\n userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = false;\r\n var message = new _InternalLogMessage(72 /* _eInternalMessageId.SendBrowserInfoOnUserInit */, ((getNavigator() || {}).userAgent || \"\"));\r\n _logInternalMessage(itemCtx.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, message);\r\n }\r\n _self.processNext(event, itemCtx);\r\n }\r\n };\r\n _self._doTeardown = function (unloadCtx, unloadState) {\r\n var core = (unloadCtx || {}).core();\r\n if (core && core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */]) {\r\n var traceCtx = core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */](false);\r\n if (traceCtx === _distributedTraceCtx) {\r\n core.setTraceCtx(_previousTraceCtx);\r\n }\r\n }\r\n _initDefaults();\r\n };\r\n function _initDefaults() {\r\n _extensionConfig = null;\r\n _distributedTraceCtx = null;\r\n _previousTraceCtx = null;\r\n _context = null;\r\n }\r\n function _populateDefaults(config) {\r\n var identifier = _self.identifier;\r\n var core = _self.core;\r\n // This function will be re-called whenever any referenced configuration is changed\r\n _self._addHook(onConfigChange(config, function () {\r\n var ctx = createProcessTelemetryContext(null, config, core);\r\n if (config.storagePrefix) {\r\n utlSetStoragePrefix(config.storagePrefix);\r\n }\r\n _extensionConfig = ctx.getExtCfg(identifier, _defaultConfig);\r\n // Test hook to allow accessing the internal values -- explicitly not defined as an available property on the class\r\n _self[\"_extConfig\"] = _extensionConfig;\r\n }));\r\n // This is outside of the onConfigChange as we don't want to update (replace) these values whenever a referenced config item changes\r\n _previousTraceCtx = core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */](false);\r\n _context = new TelemetryContext(core, _extensionConfig, _previousTraceCtx, _self._unloadHooks);\r\n _distributedTraceCtx = createDistributedTraceContextFromTrace(_self.context[_DYN_TELEMETRY_TRACE /* @min:%2etelemetryTrace */], _previousTraceCtx);\r\n core.setTraceCtx(_distributedTraceCtx);\r\n _self.context.appId = function () {\r\n var breezeChannel = core.getPlugin(BreezeChannelIdentifier);\r\n return breezeChannel ? breezeChannel.plugin[\"_appId\"] : null;\r\n };\r\n }\r\n function _processTelemetryInternal(evt, itemCtx) {\r\n // Set Part A fields\r\n getSetValue(evt, \"tags\", []);\r\n getSetValue(evt, \"ext\", {});\r\n var ctx = _self.context;\r\n ctx[_DYN_APPLY_SESSION_CONTEX0 /* @min:%2eapplySessionContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_APPLICATION_CO1 /* @min:%2eapplyApplicationContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_DEVICE_CONTEXT /* @min:%2eapplyDeviceContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_OPERATION_CONT2 /* @min:%2eapplyOperationContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_USER_CONTEXT /* @min:%2eapplyUserContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_OPERATING_SYST3 /* @min:%2eapplyOperatingSystemContxt */](evt, itemCtx);\r\n ctx.applyWebContext(evt, itemCtx);\r\n ctx[_DYN_APPLY_LOCATION_CONTE4 /* @min:%2eapplyLocationContext */](evt, itemCtx); // legacy tags\r\n ctx[_DYN_APPLY_INTERNAL_CONTE5 /* @min:%2eapplyInternalContext */](evt, itemCtx); // legacy tags\r\n ctx.cleanUp(evt, itemCtx);\r\n }\r\n });\r\n return _this;\r\n }\r\n PropertiesPlugin.prototype.initialize = function (config, core, extensions, pluginChain) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Add Part A fields to the event\r\n * @param event - The event that needs to be processed\r\n */\r\n PropertiesPlugin.prototype.processTelemetry = function (event, itemCtx) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n return PropertiesPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport default PropertiesPlugin;\r\n//# sourceMappingURL=PropertiesPlugin.js.map"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA,gFAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;gEASM,CAAC;;;;;4BACqB;AAC5B;AACA;AACA"}
1
+ {"version":3,"file":"PropertiesPlugin.js.map","sources":["PropertiesPlugin.js"],"sourcesContent":["/**\r\n* PropertiesPlugin.ts\r\n* @copyright Microsoft 2018\r\n*/\r\nvar _a;\r\nimport { __extends } from \"tslib\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { BreezeChannelIdentifier, PageView, PropertiesPluginIdentifier, createDistributedTraceContextFromTrace, utlSetStoragePrefix } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, _InternalLogMessage, _logInternalMessage, createProcessTelemetryContext, getNavigator, getSetValue, isNullOrUndefined, onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nimport { objDeepFreeze, objDefine } from \"@nevware21/ts-utils\";\r\nimport { TelemetryContext } from \"./TelemetryContext\";\r\nimport { _DYN_ACCOUNT_ID, _DYN_APPLY_APPLICATION_CO1, _DYN_APPLY_DEVICE_CONTEXT, _DYN_APPLY_INTERNAL_CONTE5, _DYN_APPLY_LOCATION_CONTE4, _DYN_APPLY_OPERATING_SYST3, _DYN_APPLY_OPERATION_CONT2, _DYN_APPLY_SESSION_CONTEX0, _DYN_APPLY_USER_CONTEXT, _DYN_GET_NEW_ID, _DYN_GET_SESSION_ID, _DYN_GET_TRACE_CTX, _DYN_ID_LENGTH, _DYN_IS_NEW_USER, _DYN_IS_USER_COOKIE_SET, _DYN_NAME_PREFIX, _DYN_SESSION_COOKIE_POSTF6, _DYN_SESSION_MANAGER, _DYN_TELEMETRY_TRACE, _DYN_UPDATE, _DYN_USER_COOKIE_POSTFIX } from \"./__DynamicConstants\";\r\nvar undefString;\r\nvar nullValue = null;\r\nvar _defaultConfig = objDeepFreeze((_a = {},\r\n _a[_DYN_ACCOUNT_ID /* @min:accountId */] = nullValue,\r\n _a.sessionRenewalMs = 30 * 60 * 1000,\r\n _a.samplingPercentage = 100,\r\n _a.sessionExpirationMs = 24 * 60 * 60 * 1000,\r\n _a.cookieDomain = nullValue,\r\n _a.sdkExtension = nullValue,\r\n _a.isBrowserLinkTrackingEnabled = false,\r\n _a.appId = nullValue,\r\n _a[_DYN_GET_SESSION_ID /* @min:getSessionId */] = nullValue,\r\n _a[_DYN_NAME_PREFIX /* @min:namePrefix */] = undefString,\r\n _a[_DYN_SESSION_COOKIE_POSTF6 /* @min:sessionCookiePostfix */] = undefString,\r\n _a[_DYN_USER_COOKIE_POSTFIX /* @min:userCookiePostfix */] = undefString,\r\n _a[_DYN_ID_LENGTH /* @min:idLength */] = 22,\r\n _a[_DYN_GET_NEW_ID /* @min:getNewId */] = nullValue,\r\n _a));\r\nvar PropertiesPlugin = /** @class */ (function (_super) {\r\n __extends(PropertiesPlugin, _super);\r\n function PropertiesPlugin() {\r\n var _this = _super.call(this) || this;\r\n _this.priority = 110;\r\n _this.identifier = PropertiesPluginIdentifier;\r\n var _extensionConfig;\r\n var _distributedTraceCtx;\r\n var _previousTraceCtx;\r\n var _context;\r\n var _disableUserInitMessage;\r\n dynamicProto(PropertiesPlugin, _this, function (_self, _base) {\r\n _initDefaults();\r\n objDefine(_self, \"context\", {\r\n g: function () {\r\n return _context;\r\n }\r\n });\r\n _self.initialize = function (config, core, extensions, pluginChain) {\r\n _base.initialize(config, core, extensions, pluginChain);\r\n _populateDefaults(config);\r\n };\r\n /**\r\n * Add Part A fields to the event\r\n * @param event - The event that needs to be processed\r\n */\r\n _self.processTelemetry = function (event, itemCtx) {\r\n if (!isNullOrUndefined(event)) {\r\n itemCtx = _self._getTelCtx(itemCtx);\r\n // If the envelope is PageView, reset the internal message count so that we can send internal telemetry for the new page.\r\n if (event.name === PageView.envelopeType) {\r\n itemCtx.diagLog().resetInternalMessageCount();\r\n }\r\n var theContext = (_context || {});\r\n if (theContext.session) {\r\n // If customer did not provide custom session id update the session manager\r\n if (typeof _context.session.id !== \"string\" && theContext[_DYN_SESSION_MANAGER /* @min:%2esessionManager */]) {\r\n theContext[_DYN_SESSION_MANAGER /* @min:%2esessionManager */][_DYN_UPDATE /* @min:%2eupdate */]();\r\n }\r\n }\r\n var userCtx = theContext.user;\r\n if (userCtx && !userCtx[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */]) {\r\n userCtx[_DYN_UPDATE /* @min:%2eupdate */](theContext.user.id);\r\n }\r\n _processTelemetryInternal(event, itemCtx);\r\n if (userCtx && userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */]) {\r\n userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = false;\r\n if (!_disableUserInitMessage) {\r\n var message = new _InternalLogMessage(72 /* _eInternalMessageId.SendBrowserInfoOnUserInit */, ((getNavigator() || {}).userAgent || \"\"));\r\n _logInternalMessage(itemCtx.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, message);\r\n }\r\n }\r\n _self.processNext(event, itemCtx);\r\n }\r\n };\r\n _self._doTeardown = function (unloadCtx, unloadState) {\r\n var core = (unloadCtx || {}).core();\r\n if (core && core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */]) {\r\n var traceCtx = core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */](false);\r\n if (traceCtx === _distributedTraceCtx) {\r\n core.setTraceCtx(_previousTraceCtx);\r\n }\r\n }\r\n _initDefaults();\r\n };\r\n function _initDefaults() {\r\n _extensionConfig = null;\r\n _distributedTraceCtx = null;\r\n _previousTraceCtx = null;\r\n _context = null;\r\n _disableUserInitMessage = false;\r\n }\r\n function _populateDefaults(config) {\r\n var identifier = _self.identifier;\r\n var core = _self.core;\r\n // This function will be re-called whenever any referenced configuration is changed\r\n _self._addHook(onConfigChange(config, function () {\r\n var ctx = createProcessTelemetryContext(null, config, core);\r\n if (config.storagePrefix) {\r\n utlSetStoragePrefix(config.storagePrefix);\r\n }\r\n _disableUserInitMessage = config.disableUserInitMessage || false;\r\n _extensionConfig = ctx.getExtCfg(identifier, _defaultConfig);\r\n // Test hook to allow accessing the internal values -- explicitly not defined as an available property on the class\r\n _self[\"_extConfig\"] = _extensionConfig;\r\n }));\r\n // This is outside of the onConfigChange as we don't want to update (replace) these values whenever a referenced config item changes\r\n _previousTraceCtx = core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */](false);\r\n _context = new TelemetryContext(core, _extensionConfig, _previousTraceCtx, _self._unloadHooks);\r\n _distributedTraceCtx = createDistributedTraceContextFromTrace(_self.context[_DYN_TELEMETRY_TRACE /* @min:%2etelemetryTrace */], _previousTraceCtx);\r\n core.setTraceCtx(_distributedTraceCtx);\r\n _self.context.appId = function () {\r\n var breezeChannel = core.getPlugin(BreezeChannelIdentifier);\r\n return breezeChannel ? breezeChannel.plugin[\"_appId\"] : null;\r\n };\r\n }\r\n function _processTelemetryInternal(evt, itemCtx) {\r\n // Set Part A fields\r\n getSetValue(evt, \"tags\", []);\r\n getSetValue(evt, \"ext\", {});\r\n var ctx = _self.context;\r\n ctx[_DYN_APPLY_SESSION_CONTEX0 /* @min:%2eapplySessionContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_APPLICATION_CO1 /* @min:%2eapplyApplicationContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_DEVICE_CONTEXT /* @min:%2eapplyDeviceContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_OPERATION_CONT2 /* @min:%2eapplyOperationContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_USER_CONTEXT /* @min:%2eapplyUserContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_OPERATING_SYST3 /* @min:%2eapplyOperatingSystemContxt */](evt, itemCtx);\r\n ctx.applyWebContext(evt, itemCtx);\r\n ctx[_DYN_APPLY_LOCATION_CONTE4 /* @min:%2eapplyLocationContext */](evt, itemCtx); // legacy tags\r\n ctx[_DYN_APPLY_INTERNAL_CONTE5 /* @min:%2eapplyInternalContext */](evt, itemCtx); // legacy tags\r\n ctx.cleanUp(evt, itemCtx);\r\n }\r\n });\r\n return _this;\r\n }\r\n PropertiesPlugin.prototype.initialize = function (config, core, extensions, pluginChain) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Add Part A fields to the event\r\n * @param event - The event that needs to be processed\r\n */\r\n PropertiesPlugin.prototype.processTelemetry = function (event, itemCtx) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n return PropertiesPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport default PropertiesPlugin;\r\n//# sourceMappingURL=PropertiesPlugin.js.map"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA,gFAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;gEASM,CAAC;;;;;4BACqB;AAC5B;AACA;AACA"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-01
2
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-properties-js",
3
- "version": "3.0.6-nightly3.2311-01",
3
+ "version": "3.0.6-nightly3.2311-04",
4
4
  "description": "Microsoft Application Insights properties (Part A) plugin",
5
5
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
6
  "author": "Microsoft Application Insights Team",
@@ -58,8 +58,8 @@
58
58
  "dependencies": {
59
59
  "@microsoft/dynamicproto-js": "^2.0.2",
60
60
  "@microsoft/applicationinsights-shims": "3.0.1",
61
- "@microsoft/applicationinsights-core-js": "3.0.6-nightly3.2311-01",
62
- "@microsoft/applicationinsights-common": "3.0.6-nightly3.2311-01",
61
+ "@microsoft/applicationinsights-core-js": "3.0.6-nightly3.2311-04",
62
+ "@microsoft/applicationinsights-common": "3.0.6-nightly3.2311-04",
63
63
  "@nevware21/ts-utils": ">= 0.10.1 < 2.x"
64
64
  },
65
65
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights properties plugin, 3.0.6-nightly3.2311-01
2
+ * Microsoft Application Insights properties plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights properties plugin, 3.0.6-nightly3.2311-01
2
+ * Microsoft Application Insights properties plugin, 3.0.6-nightly3.2311-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,66 +0,0 @@
1
- {
2
- "name": "ai.props",
3
- "version": "3.0.6-nightly3.2311-01",
4
- "ext": {
5
- "@cjs.js": {
6
- "file": "ai.props.3.0.6-nightly3.2311-01.cjs.js",
7
- "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-/r2UrPAArS6kgzizIm5wJEd60muT6EjgEdENRraKm4o= sha384-cvvX7b+B1W3Svdqo+SrhY4CepebcuptciuYtH661zPNAoTuQapD+RJHD2cmzi8zL sha512-+LH5a6YBWUqh17OFAxZ+OgrarVgMAJ2jlwR8ds+um8YfPRyRzDTQudqs6V/SluSgHLSNrS+E+sS30kpKARcMvQ==",
9
- "hashes": {
10
- "sha256": "/r2UrPAArS6kgzizIm5wJEd60muT6EjgEdENRraKm4o=",
11
- "sha384": "cvvX7b+B1W3Svdqo+SrhY4CepebcuptciuYtH661zPNAoTuQapD+RJHD2cmzi8zL",
12
- "sha512": "+LH5a6YBWUqh17OFAxZ+OgrarVgMAJ2jlwR8ds+um8YfPRyRzDTQudqs6V/SluSgHLSNrS+E+sS30kpKARcMvQ=="
13
- }
14
- },
15
- "@cjs.min.js": {
16
- "file": "ai.props.3.0.6-nightly3.2311-01.cjs.min.js",
17
- "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-/DyDrDQmVtiTAU+nIQEHzD00A1vPKRSYGLvQasP8Sm8= sha384-EPyCK6KMu/uPOM+XpZwqUf/3/qDYouwpxiJn6rPPMFCC/BAEkKB1fnvvz0437swz sha512-c1Ql8RsCYB8AOXl1JeYcN6YLwp0QtL8RZtIWh+lvj8s6m/2/87hj6MJCqMOjgmTBtYAxBsVpczJ15bQhHy7NVw==",
19
- "hashes": {
20
- "sha256": "/DyDrDQmVtiTAU+nIQEHzD00A1vPKRSYGLvQasP8Sm8=",
21
- "sha384": "EPyCK6KMu/uPOM+XpZwqUf/3/qDYouwpxiJn6rPPMFCC/BAEkKB1fnvvz0437swz",
22
- "sha512": "c1Ql8RsCYB8AOXl1JeYcN6YLwp0QtL8RZtIWh+lvj8s6m/2/87hj6MJCqMOjgmTBtYAxBsVpczJ15bQhHy7NVw=="
23
- }
24
- },
25
- "@gbl.js": {
26
- "file": "ai.props.3.0.6-nightly3.2311-01.gbl.js",
27
- "type": "text/javascript; charset=utf-8",
28
- "integrity": "sha256-6YA2HSDO4J1dYkSj9OqoeDpAWSWIAZ5q8am9mlzmzA0= sha384-xiiED4Yvh2uEOs/5o6bi991UDqYnZyzK8dGCfaFQzwYZ9aJSRwk7mYUIRIBBy0/w sha512-lSP8jiAb1locOLK7f7PV5Jhu0T9gDuFnu3l+wKKR9QNW7PAe0K3bP3SJMmxSXoz78Y8WxEtGodEA6MN7SyiUqg==",
29
- "hashes": {
30
- "sha256": "6YA2HSDO4J1dYkSj9OqoeDpAWSWIAZ5q8am9mlzmzA0=",
31
- "sha384": "xiiED4Yvh2uEOs/5o6bi991UDqYnZyzK8dGCfaFQzwYZ9aJSRwk7mYUIRIBBy0/w",
32
- "sha512": "lSP8jiAb1locOLK7f7PV5Jhu0T9gDuFnu3l+wKKR9QNW7PAe0K3bP3SJMmxSXoz78Y8WxEtGodEA6MN7SyiUqg=="
33
- }
34
- },
35
- "@gbl.min.js": {
36
- "file": "ai.props.3.0.6-nightly3.2311-01.gbl.min.js",
37
- "type": "text/javascript; charset=utf-8",
38
- "integrity": "sha256-SnjI8W7MaiO3J5bDTiX1mpn9ovOwPUMcmx0EAGzULYM= sha384-Znle/t1RtdgwMnBhyqIddrpdLmTgWjpUyUBUwk8ZG9tuaETce+vW9DUp8tg0Rvjm sha512-BPRGMjj+6KU2ZbFInYnqmzIiL9dQCoJNcuF1XFunvgfoy8ptlJSZkYppV2t9eOikCWPMU2RRTg1IAMtQPHelvQ==",
39
- "hashes": {
40
- "sha256": "SnjI8W7MaiO3J5bDTiX1mpn9ovOwPUMcmx0EAGzULYM=",
41
- "sha384": "Znle/t1RtdgwMnBhyqIddrpdLmTgWjpUyUBUwk8ZG9tuaETce+vW9DUp8tg0Rvjm",
42
- "sha512": "BPRGMjj+6KU2ZbFInYnqmzIiL9dQCoJNcuF1XFunvgfoy8ptlJSZkYppV2t9eOikCWPMU2RRTg1IAMtQPHelvQ=="
43
- }
44
- },
45
- "@js": {
46
- "file": "ai.props.3.0.6-nightly3.2311-01.js",
47
- "type": "text/javascript; charset=utf-8",
48
- "integrity": "sha256-bOx0NaU+kJTLaMR/kwm6JOaQxS9fYjeUZ6e/1Mnyq40= sha384-/Z3EEtkaYg1+xUnPJfs5PUnpOckP7Th11V7CNgcV0cp8MNZRfNUkvN8/X9Y+iFZ4 sha512-RoPpPpwwVWnMQZCyzfGsD1C3MYTbFZlCj/SSjKr2ErP6hrMzt/G2jZp1exqdi5ZahjDiIGdzC2EubcGLFf95SQ==",
49
- "hashes": {
50
- "sha256": "bOx0NaU+kJTLaMR/kwm6JOaQxS9fYjeUZ6e/1Mnyq40=",
51
- "sha384": "/Z3EEtkaYg1+xUnPJfs5PUnpOckP7Th11V7CNgcV0cp8MNZRfNUkvN8/X9Y+iFZ4",
52
- "sha512": "RoPpPpwwVWnMQZCyzfGsD1C3MYTbFZlCj/SSjKr2ErP6hrMzt/G2jZp1exqdi5ZahjDiIGdzC2EubcGLFf95SQ=="
53
- }
54
- },
55
- "@min.js": {
56
- "file": "ai.props.3.0.6-nightly3.2311-01.min.js",
57
- "type": "text/javascript; charset=utf-8",
58
- "integrity": "sha256-F2GwCeAtmhh3XEG0udF8E0O8LIAd6msqKbz/oa7F+V0= sha384-17aDEn90Pi5Y4DGRXH6yNrs7AL00csTEhDvQxRz7ZJzoFXlW0i0+N42ocRvx2Oex sha512-2VTBq4kYepnMR3VqFUXMMZY/DMk5GSkLEyHQZCedCZs4lOpIYnb0bXlY9e0FmGq3s0kbsaKwr+wc+ZJPkW4xyw==",
59
- "hashes": {
60
- "sha256": "F2GwCeAtmhh3XEG0udF8E0O8LIAd6msqKbz/oa7F+V0=",
61
- "sha384": "17aDEn90Pi5Y4DGRXH6yNrs7AL00csTEhDvQxRz7ZJzoFXlW0i0+N42ocRvx2Oex",
62
- "sha512": "2VTBq4kYepnMR3VqFUXMMZY/DMk5GSkLEyHQZCedCZs4lOpIYnb0bXlY9e0FmGq3s0kbsaKwr+wc+ZJPkW4xyw=="
63
- }
64
- }
65
- }
66
- }