@microsoft/applicationinsights-web-basic 3.0.0-beta.2210-07 → 3.0.0-beta.2210-09

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.
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "aib",
3
+ "version": "3.0.0-beta.2210-09",
4
+ "ext": {
5
+ "@js": {
6
+ "file": "aib.3.0.0-beta.2210-09.js",
7
+ "type": "text/javascript; charset=utf-8",
8
+ "integrity": "sha256-UEsc0pPsWrJraVVPUHRFVcjASTQ1YPEnN9yB9WtrVuw= sha384-kwBhgQeXH4HRjZZMFWhSl5XS15V8X5rGODqwWMLyNJHguz3kL+W5e3syY3aI7fMS sha512-LxC0M1rSKjsDwBLB6xzXRyUdS2Z1Mn/NRKHXsyyLWI1iswquMZbGlTZTU/VNlpRz+Yg88JaogObR1KJv32yGpg==",
9
+ "hashes": {
10
+ "sha256": "UEsc0pPsWrJraVVPUHRFVcjASTQ1YPEnN9yB9WtrVuw=",
11
+ "sha384": "kwBhgQeXH4HRjZZMFWhSl5XS15V8X5rGODqwWMLyNJHguz3kL+W5e3syY3aI7fMS",
12
+ "sha512": "LxC0M1rSKjsDwBLB6xzXRyUdS2Z1Mn/NRKHXsyyLWI1iswquMZbGlTZTU/VNlpRz+Yg88JaogObR1KJv32yGpg=="
13
+ }
14
+ },
15
+ "@min.js": {
16
+ "file": "aib.3.0.0-beta.2210-09.min.js",
17
+ "type": "text/javascript; charset=utf-8",
18
+ "integrity": "sha256-bPsXQYIm+MNVctUAvqMlWLDNS3uL3A692ICQlu8sDLM= sha384-P47EclCkCLKs/2JDlrTkx+s4SQi/t21xz6N6WqAB3BhcCE1V4LzqWtjmMdfd/nhd sha512-o7IvKFGM+rSz4G7jOG0o8im7sAToadN+Hm6HUVdzOuB3aHRQbSZS3jxoxoDuxgAw9s6RGoQIcTadZV5vH9rnHg==",
19
+ "hashes": {
20
+ "sha256": "bPsXQYIm+MNVctUAvqMlWLDNS3uL3A692ICQlu8sDLM=",
21
+ "sha384": "P47EclCkCLKs/2JDlrTkx+s4SQi/t21xz6N6WqAB3BhcCE1V4LzqWtjmMdfd/nhd",
22
+ "sha512": "o7IvKFGM+rSz4G7jOG0o8im7sAToadN+Hm6HUVdzOuB3aHRQbSZS3jxoxoDuxgAw9s6RGoQIcTadZV5vH9rnHg=="
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2210-07
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2210-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1024,14 +1024,15 @@
1024
1024
  var _DYN_PROCESS_NEXT = "processNext";
1025
1025
  var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
1026
1026
  var _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
1027
- var _DYN_ADD_NOTIFICATION_LIS1 = "addNotificationListener";
1028
- var _DYN_REMOVE_NOTIFICATION_2 = "removeNotificationListener";
1029
- var _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs";
1027
+ var _DYN__NOTIFICATION_MANAGE1 = "NotificationManager";
1028
+ var _DYN_ADD_NOTIFICATION_LIS2 = "addNotificationListener";
1029
+ var _DYN_REMOVE_NOTIFICATION_3 = "removeNotificationListener";
1030
+ var _DYN_STOP_POLLING_INTERNA4 = "stopPollingInternalLogs";
1030
1031
  var _DYN_ON_COMPLETE = "onComplete";
1031
1032
  var _DYN_CALL = "call";
1032
1033
  var _DYN_GET_PLUGIN = "getPlugin";
1033
1034
  var _DYN_FLUSH = "flush";
1034
- var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
1035
+ var _DYN_LOGGING_LEVEL_CONSOL5 = "loggingLevelConsole";
1035
1036
  var _DYN__EXTENSIONS = "_extensions";
1036
1037
  var _DYN_TEARDOWN = "teardown";
1037
1038
  var _DYN_MESSAGE_ID = "messageId";
@@ -1049,7 +1050,7 @@
1049
1050
  var _DYN_SPLIT$1 = "split";
1050
1051
  var _DYN_NODE_TYPE = "nodeType";
1051
1052
  var _DYN_REPLACE = "replace";
1052
- var _DYN_ENABLE_DEBUG_EXCEPTI5 = "enableDebugExceptions";
1053
+ var _DYN_ENABLE_DEBUG_EXCEPTI6 = "enableDebugExceptions";
1053
1054
  var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
1054
1055
  var _DYN_TO_LOWER_CASE$1 = "toLowerCase";
1055
1056
  var _DYN_TYPE = "type";
@@ -1478,7 +1479,7 @@
1478
1479
  }
1479
1480
 
1480
1481
  var _objDefineProperty = ObjDefineProperty;
1481
- var version = "3.0.0-beta.2210-07";
1482
+ var version = "3.0.0-beta.2210-09";
1482
1483
  var instanceName = "." + newId(6);
1483
1484
  var _dataUid = 0;
1484
1485
  function _createAccessor(target, prop, value) {
@@ -1981,7 +1982,7 @@
1981
1982
  loggingLevelTelemetry: 1,
1982
1983
  maxMessageLimit: 25
1983
1984
  },
1984
- _a$4[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = false,
1985
+ _a$4[_DYN_ENABLE_DEBUG_EXCEPTI6 ] = false,
1985
1986
  _a$4);
1986
1987
  function _sanitizeDiagnosticText(text) {
1987
1988
  if (text) {
@@ -2038,7 +2039,7 @@
2038
2039
  _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
2039
2040
  _self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
2040
2041
  _self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
2041
- _self[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = function () { return _enableDebugExceptions; };
2042
+ _self[_DYN_ENABLE_DEBUG_EXCEPTI6 ] = function () { return _enableDebugExceptions; };
2042
2043
  _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
2043
2044
  if (isUserAct === void 0) { isUserAct = false; }
2044
2045
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
@@ -2115,10 +2116,10 @@
2115
2116
  var handler = createDynamicConfig(config, defaultValues$2, _self);
2116
2117
  handler[_DYN_WATCH ](function (details) {
2117
2118
  var config = details.cfg;
2118
- _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
2119
+ _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL5 ];
2119
2120
  _loggingLevelTelemetry = config.loggingLevelTelemetry;
2120
2121
  _maxInternalMessageLimit = config.maxMessageLimit;
2121
- _enableDebugExceptions = config[_DYN_ENABLE_DEBUG_EXCEPTI5 ];
2122
+ _enableDebugExceptions = config[_DYN_ENABLE_DEBUG_EXCEPTI6 ];
2122
2123
  });
2123
2124
  }
2124
2125
  function _areInternalMessagesThrottled() {
@@ -3236,10 +3237,10 @@
3236
3237
  perfEvtsSendAll = !!details.cfg.perfEvtsSendAll;
3237
3238
  });
3238
3239
  dynamicProto(NotificationManager, this, function (_self) {
3239
- _self[_DYN_ADD_NOTIFICATION_LIS1 ] = function (listener) {
3240
+ _self[_DYN_ADD_NOTIFICATION_LIS2 ] = function (listener) {
3240
3241
  _self.listeners[_DYN_PUSH$1 ](listener);
3241
3242
  };
3242
- _self[_DYN_REMOVE_NOTIFICATION_2 ] = function (listener) {
3243
+ _self[_DYN_REMOVE_NOTIFICATION_3 ] = function (listener) {
3243
3244
  var index = arrIndexOf(_self[_DYN_LISTENERS ], listener);
3244
3245
  while (index > -1) {
3245
3246
  _self.listeners[_DYN_SPLICE ](index, 1);
@@ -3676,10 +3677,8 @@
3676
3677
  }
3677
3678
  }));
3678
3679
  _notificationManager = notificationManager;
3679
- _self[strNotificationManager] = notificationManager;
3680
3680
  _initDebugListener();
3681
3681
  _initPerfManager();
3682
- _initExtConfig();
3683
3682
  _self[_DYN_LOGGER ] = logger || new DiagnosticLogger(config);
3684
3683
  _configHandler[_DYN_LOGGER ] = _self[_DYN_LOGGER ];
3685
3684
  var cfgExtensions = config[STR_EXTENSIONS ];
@@ -3732,17 +3731,16 @@
3732
3731
  _notificationManager = new NotificationManager(details.cfg);
3733
3732
  _self[strNotificationManager] = _notificationManager;
3734
3733
  }));
3734
+ _configHandler.cfg.extensionConfig[_DYN__NOTIFICATION_MANAGE1 ] = _notificationManager;
3735
3735
  }
3736
3736
  return _notificationManager;
3737
3737
  };
3738
- _self[_DYN_ADD_NOTIFICATION_LIS1 ] = function (listener) {
3739
- if (_notificationManager) {
3740
- _notificationManager[_DYN_ADD_NOTIFICATION_LIS1 ](listener);
3741
- }
3738
+ _self[_DYN_ADD_NOTIFICATION_LIS2 ] = function (listener) {
3739
+ _self[_DYN_GET_NOTIFY_MGR ]()[_DYN_ADD_NOTIFICATION_LIS2 ](listener);
3742
3740
  };
3743
- _self[_DYN_REMOVE_NOTIFICATION_2 ] = function (listener) {
3741
+ _self[_DYN_REMOVE_NOTIFICATION_3 ] = function (listener) {
3744
3742
  if (_notificationManager) {
3745
- _notificationManager[_DYN_REMOVE_NOTIFICATION_2 ](listener);
3743
+ _notificationManager[_DYN_REMOVE_NOTIFICATION_3 ](listener);
3746
3744
  }
3747
3745
  };
3748
3746
  _self.getCookieMgr = function () {
@@ -3800,7 +3798,7 @@
3800
3798
  }));
3801
3799
  return _internalLogPoller;
3802
3800
  };
3803
- _self[_DYN_STOP_POLLING_INTERNA3 ] = function () {
3801
+ _self[_DYN_STOP_POLLING_INTERNA4 ] = function () {
3804
3802
  if (_internalLogPoller) {
3805
3803
  clearInterval(_internalLogPoller);
3806
3804
  _internalLogPoller = 0;
@@ -3842,7 +3840,7 @@
3842
3840
  unloadState.flushComplete = flushComplete;
3843
3841
  _isUnloading = true;
3844
3842
  _unloadHandlers.run(processUnloadCtx, unloadState);
3845
- _self[_DYN_STOP_POLLING_INTERNA3 ]();
3843
+ _self[_DYN_STOP_POLLING_INTERNA4 ]();
3846
3844
  processUnloadCtx[_DYN_PROCESS_NEXT ](unloadState);
3847
3845
  }
3848
3846
  if (!_flushChannels(isAsync, _doUnload, 6 , cbTimeout)) {
@@ -3907,6 +3905,7 @@
3907
3905
  newConfig[STR_CHANNELS ] = cfg[STR_CHANNELS ];
3908
3906
  _configHandler._block(function (details) {
3909
3907
  var theConfig = details.cfg;
3908
+ var notificationManager = theConfig.extensionConfig[_DYN__NOTIFICATION_MANAGE1 ];
3910
3909
  _deepMergeConfig(details, theConfig, newConfig, mergeExisting);
3911
3910
  if (!mergeExisting) {
3912
3911
  objForEachKey(theConfig, function (key) {
@@ -3916,7 +3915,7 @@
3916
3915
  });
3917
3916
  }
3918
3917
  details[_DYN_SET_DF ](theConfig, defaultConfig);
3919
- _initExtConfig();
3918
+ theConfig.extensionConfig[_DYN__NOTIFICATION_MANAGE1 ] = notificationManager;
3920
3919
  });
3921
3920
  _configHandler[_DYN_NOTIFY ]();
3922
3921
  _doUpdate(updateState);
@@ -3954,7 +3953,7 @@
3954
3953
  var _a;
3955
3954
  _isInitialized = false;
3956
3955
  _configHandler = createDynamicConfig({}, defaultConfig, _self[_DYN_LOGGER ]);
3957
- _configHandler.cfg[_DYN_LOGGING_LEVEL_CONSOL4 ] = 1 ;
3956
+ _configHandler.cfg[_DYN_LOGGING_LEVEL_CONSOL5 ] = 1 ;
3958
3957
  objDefineProp(_self, "config", (_a = {},
3959
3958
  _a[_DYN_CONFIGURABLE ] = true,
3960
3959
  _a[_DYN_ENUMERABLE ] = true,
@@ -4141,15 +4140,16 @@
4141
4140
  return true;
4142
4141
  }
4143
4142
  function _initDebugListener() {
4143
+ !_notificationManager && _self[_DYN_GET_NOTIFY_MGR ]();
4144
4144
  _addUnloadHook(_configHandler[_DYN_WATCH ](function (details) {
4145
4145
  var disableDbgExt = details.cfg.disableDbgExt;
4146
4146
  if (disableDbgExt === true && _debugListener) {
4147
- _notificationManager[_DYN_REMOVE_NOTIFICATION_2 ](_debugListener);
4147
+ _notificationManager[_DYN_REMOVE_NOTIFICATION_3 ](_debugListener);
4148
4148
  _debugListener = null;
4149
4149
  }
4150
4150
  if (_notificationManager && !_debugListener && disableDbgExt !== true) {
4151
4151
  _debugListener = getDebugListener(details.cfg);
4152
- _notificationManager[_DYN_ADD_NOTIFICATION_LIS1 ](_debugListener);
4152
+ _notificationManager[_DYN_ADD_NOTIFICATION_LIS2 ](_debugListener);
4153
4153
  }
4154
4154
  }));
4155
4155
  }
@@ -4164,9 +4164,6 @@
4164
4164
  }
4165
4165
  }));
4166
4166
  }
4167
- function _initExtConfig() {
4168
- _configHandler.cfg[STR_EXTENSION_CONFIG ].NotificationManager = _notificationManager;
4169
- }
4170
4167
  function _doUpdate(updateState) {
4171
4168
  var updateCtx = createProcessTelemetryUpdateContext(_getPluginChain(), _self);
4172
4169
  if (!_self._updateHook || _self._updateHook(updateCtx, updateState) !== true) {
@@ -5662,7 +5659,7 @@
5662
5659
  }
5663
5660
  }
5664
5661
  var EnvelopeCreator = {
5665
- Version: "3.0.0-beta.2210-07"
5662
+ Version: "3.0.0-beta.2210-09"
5666
5663
  };
5667
5664
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5668
5665
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -7110,4 +7107,4 @@
7110
7107
  Object.defineProperty(exports, '__esModule', { value: true });
7111
7108
 
7112
7109
  }));
7113
- //# sourceMappingURL=aib.3.0.0-beta.2210-07.js.map
7110
+ //# sourceMappingURL=aib.3.0.0-beta.2210-09.js.map