@microsoft/applicationinsights-core-js 2.8.12-nightly.2303-06 → 2.8.12-nightly.2304-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.
Files changed (70) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +7 -7
  3. package/browser/applicationinsights-core-js.js.map +1 -1
  4. package/browser/applicationinsights-core-js.min.js +2 -2
  5. package/browser/applicationinsights-core-js.min.js.map +1 -1
  6. package/dist/applicationinsights-core-js.api.json +27 -0
  7. package/dist/applicationinsights-core-js.api.md +1 -0
  8. package/dist/applicationinsights-core-js.d.ts +5 -1
  9. package/dist/applicationinsights-core-js.js +7 -7
  10. package/dist/applicationinsights-core-js.js.map +1 -1
  11. package/dist/applicationinsights-core-js.min.js +2 -2
  12. package/dist/applicationinsights-core-js.min.js.map +1 -1
  13. package/dist/applicationinsights-core-js.rollup.d.ts +5 -1
  14. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
  15. package/dist-esm/JavaScriptSDK/BaseCore.js +1 -1
  16. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  17. package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
  18. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  19. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  20. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  21. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  22. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  23. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +5 -5
  24. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
  25. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  26. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  27. package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
  28. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  29. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  30. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  31. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  32. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  33. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  34. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  35. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  36. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  37. package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
  38. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  39. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  40. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  41. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  42. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  43. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  44. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  45. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  46. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  47. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  48. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  49. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  50. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  65. package/dist-esm/__DynamicConstants.js +1 -1
  66. package/dist-esm/applicationinsights-core-js.js +1 -1
  67. package/package.json +4 -3
  68. package/src/JavaScriptSDK/DiagnosticLogger.ts +4 -4
  69. package/src/JavaScriptSDK.Interfaces/IConfiguration.ts +5 -0
  70. package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +4 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-core-js",
3
3
  "author": "Microsoft Application Insights Team",
4
- "version": "2.8.12-nightly.2303-06",
4
+ "version": "2.8.12-nightly.2304-09",
5
5
  "description": "Microsoft Application Insights Core Javascript SDK",
6
6
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
7
7
  "keywords": [
@@ -29,7 +29,8 @@
29
29
  "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Core Javascript SDK\"",
30
30
  "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
31
31
  "ai-min": "grunt core-min",
32
- "ai-restore": "grunt core-restore"
32
+ "ai-restore": "grunt core-restore",
33
+ "npm-pack": "npm pack"
33
34
  },
34
35
  "repository": {
35
36
  "type": "git",
@@ -65,7 +66,7 @@
65
66
  },
66
67
  "dependencies": {
67
68
  "@microsoft/applicationinsights-shims": "2.0.2",
68
- "@microsoft/dynamicproto-js": "^1.1.7"
69
+ "@microsoft/dynamicproto-js": "^1.1.9"
69
70
  },
70
71
  "publishConfig": {
71
72
  "tag": "nightly"
@@ -101,7 +101,7 @@ export class DiagnosticLogger implements IDiagnosticLogger {
101
101
  let _loggingLevelConsole: number;
102
102
  let _loggingLevelTelemetry: number;
103
103
  let _maxInternalMessageLimit: number;
104
- let _enableDebugExceptions: boolean;
104
+ let _enableDebug: boolean;
105
105
 
106
106
  dynamicProto(DiagnosticLogger, this, (_self) => {
107
107
  _setDefaultsFromConfig(config || {});
@@ -112,7 +112,7 @@ export class DiagnosticLogger implements IDiagnosticLogger {
112
112
 
113
113
  _self.maxInternalMessageLimit = () => _maxInternalMessageLimit;
114
114
 
115
- _self.enableDebugExceptions = () => _enableDebugExceptions;
115
+ _self.enableDebugExceptions = () => _enableDebug;
116
116
 
117
117
  /**
118
118
  * This method will throw exceptions in debug mode or attempt to log the error as a console warning.
@@ -122,7 +122,7 @@ export class DiagnosticLogger implements IDiagnosticLogger {
122
122
  _self.throwInternal = (severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct = false) => {
123
123
  const message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
124
124
 
125
- if (_enableDebugExceptions) {
125
+ if (_enableDebug) {
126
126
  throw dumpObj(message);
127
127
  } else {
128
128
  // Get the logging function and fallback to warnToConsole of for some reason errorToConsole doesn't exist
@@ -226,7 +226,7 @@ export class DiagnosticLogger implements IDiagnosticLogger {
226
226
  _loggingLevelConsole = getCfgValue(config.loggingLevelConsole, 0);
227
227
  _loggingLevelTelemetry = getCfgValue(config.loggingLevelTelemetry, 1)
228
228
  _maxInternalMessageLimit = getCfgValue(config.maxMessageLimit, 25);
229
- _enableDebugExceptions = getCfgValue(config.enableDebugExceptions, false);
229
+ _enableDebug = getCfgValue(config.enableDebug, getCfgValue(config.enableDebugExceptions, false));
230
230
  }
231
231
 
232
232
  function _areInternalMessagesThrottled(): boolean {
@@ -59,6 +59,11 @@ export interface IConfiguration {
59
59
  */
60
60
  loggingLevelTelemetry?: number
61
61
 
62
+ /**
63
+ * If enabled, uncaught exceptions will be thrown to help with debugging
64
+ */
65
+ enableDebug?: boolean;
66
+
62
67
  /**
63
68
  * If enabled, uncaught exceptions will be thrown to help with debugging
64
69
  */
@@ -48,6 +48,10 @@ export interface IConfiguration {
48
48
  * 2: logs to iKey: severity >= WARNING
49
49
  */
50
50
  loggingLevelTelemetry?: number;
51
+ /**
52
+ * If enabled, uncaught exceptions will be thrown to help with debugging
53
+ */
54
+ enableDebug?: boolean;
51
55
  /**
52
56
  * If enabled, uncaught exceptions will be thrown to help with debugging
53
57
  */