@microsoft/applicationinsights-core-js 2.8.0-beta.2203-16 → 2.8.0-nightly.2204-05

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 (86) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +311 -276
  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 +1357 -367
  7. package/dist/applicationinsights-core-js.api.md +46 -98
  8. package/dist/applicationinsights-core-js.d.ts +94 -116
  9. package/dist/applicationinsights-core-js.js +311 -276
  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 +94 -116
  14. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +2 -4
  15. package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
  16. package/dist-esm/JavaScriptSDK/BaseCore.js +3 -3
  17. package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
  18. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  19. package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
  20. package/dist-esm/JavaScriptSDK/Constants.js +1 -1
  21. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  22. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  23. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  24. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  25. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  26. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +21 -1
  27. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
  28. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  29. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  30. package/dist-esm/JavaScriptSDK/HelperFuncs.js +12 -21
  31. package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
  32. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  33. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  34. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  35. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  36. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  37. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  38. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  39. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  40. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  41. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +51 -0
  42. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js.map +1 -0
  43. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +10 -9
  44. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js.map +1 -1
  45. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +2 -2
  46. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js.map +1 -1
  47. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  48. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  49. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  50. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  69. package/dist-esm/applicationinsights-core-js.js +4 -3
  70. package/dist-esm/applicationinsights-core-js.js.map +1 -1
  71. package/package.json +2 -2
  72. package/src/JavaScriptSDK/AppInsightsCore.ts +2 -4
  73. package/src/JavaScriptSDK/BaseCore.ts +2 -2
  74. package/src/JavaScriptSDK/DataCacheHelper.ts +1 -1
  75. package/src/JavaScriptSDK/DiagnosticLogger.ts +22 -0
  76. package/src/JavaScriptSDK/HelperFuncs.ts +13 -22
  77. package/src/JavaScriptSDK.Enums/EnumHelperFuncs.ts +56 -0
  78. package/src/JavaScriptSDK.Enums/EventsDiscardedReason.ts +48 -8
  79. package/src/JavaScriptSDK.Enums/LoggingEnums.ts +3 -4
  80. package/types/JavaScriptSDK/DiagnosticLogger.d.ts +13 -0
  81. package/types/JavaScriptSDK/HelperFuncs.d.ts +10 -6
  82. package/types/JavaScriptSDK.Enums/EnumHelperFuncs.d.ts +34 -0
  83. package/types/JavaScriptSDK.Enums/EventsDiscardedReason.d.ts +14 -9
  84. package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +2 -88
  85. package/types/applicationinsights-core-js.d.ts +4 -3
  86. package/types/tsdoc-metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"LoggingEnums.js.map","sources":["LoggingEnums.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { createEnumStyle } from \"../JavaScriptSDK/HelperFuncs\";\r\nexport var LoggingSeverity = createEnumStyle({\r\n CRITICAL: 1 /* CRITICAL */,\r\n WARNING: 2 /* WARNING */\r\n});\r\n/**\r\n * Internal message ID. Please create a new one for every conceptually different message. Please keep alphabetically ordered\r\n */\r\nexport var _InternalMessageId = createEnumStyle({\r\n // Non user actionable\r\n BrowserDoesNotSupportLocalStorage: 0 /* BrowserDoesNotSupportLocalStorage */,\r\n BrowserCannotReadLocalStorage: 1 /* BrowserCannotReadLocalStorage */,\r\n BrowserCannotReadSessionStorage: 2 /* BrowserCannotReadSessionStorage */,\r\n BrowserCannotWriteLocalStorage: 3 /* BrowserCannotWriteLocalStorage */,\r\n BrowserCannotWriteSessionStorage: 4 /* BrowserCannotWriteSessionStorage */,\r\n BrowserFailedRemovalFromLocalStorage: 5 /* BrowserFailedRemovalFromLocalStorage */,\r\n BrowserFailedRemovalFromSessionStorage: 6 /* BrowserFailedRemovalFromSessionStorage */,\r\n CannotSendEmptyTelemetry: 7 /* CannotSendEmptyTelemetry */,\r\n ClientPerformanceMathError: 8 /* ClientPerformanceMathError */,\r\n ErrorParsingAISessionCookie: 9 /* ErrorParsingAISessionCookie */,\r\n ErrorPVCalc: 10 /* ErrorPVCalc */,\r\n ExceptionWhileLoggingError: 11 /* ExceptionWhileLoggingError */,\r\n FailedAddingTelemetryToBuffer: 12 /* FailedAddingTelemetryToBuffer */,\r\n FailedMonitorAjaxAbort: 13 /* FailedMonitorAjaxAbort */,\r\n FailedMonitorAjaxDur: 14 /* FailedMonitorAjaxDur */,\r\n FailedMonitorAjaxOpen: 15 /* FailedMonitorAjaxOpen */,\r\n FailedMonitorAjaxRSC: 16 /* FailedMonitorAjaxRSC */,\r\n FailedMonitorAjaxSend: 17 /* FailedMonitorAjaxSend */,\r\n FailedMonitorAjaxGetCorrelationHeader: 18 /* FailedMonitorAjaxGetCorrelationHeader */,\r\n FailedToAddHandlerForOnBeforeUnload: 19 /* FailedToAddHandlerForOnBeforeUnload */,\r\n FailedToSendQueuedTelemetry: 20 /* FailedToSendQueuedTelemetry */,\r\n FailedToReportDataLoss: 21 /* FailedToReportDataLoss */,\r\n FlushFailed: 22 /* FlushFailed */,\r\n MessageLimitPerPVExceeded: 23 /* MessageLimitPerPVExceeded */,\r\n MissingRequiredFieldSpecification: 24 /* MissingRequiredFieldSpecification */,\r\n NavigationTimingNotSupported: 25 /* NavigationTimingNotSupported */,\r\n OnError: 26 /* OnError */,\r\n SessionRenewalDateIsZero: 27 /* SessionRenewalDateIsZero */,\r\n SenderNotInitialized: 28 /* SenderNotInitialized */,\r\n StartTrackEventFailed: 29 /* StartTrackEventFailed */,\r\n StopTrackEventFailed: 30 /* StopTrackEventFailed */,\r\n StartTrackFailed: 31 /* StartTrackFailed */,\r\n StopTrackFailed: 32 /* StopTrackFailed */,\r\n TelemetrySampledAndNotSent: 33 /* TelemetrySampledAndNotSent */,\r\n TrackEventFailed: 34 /* TrackEventFailed */,\r\n TrackExceptionFailed: 35 /* TrackExceptionFailed */,\r\n TrackMetricFailed: 36 /* TrackMetricFailed */,\r\n TrackPVFailed: 37 /* TrackPVFailed */,\r\n TrackPVFailedCalc: 38 /* TrackPVFailedCalc */,\r\n TrackTraceFailed: 39 /* TrackTraceFailed */,\r\n TransmissionFailed: 40 /* TransmissionFailed */,\r\n FailedToSetStorageBuffer: 41 /* FailedToSetStorageBuffer */,\r\n FailedToRestoreStorageBuffer: 42 /* FailedToRestoreStorageBuffer */,\r\n InvalidBackendResponse: 43 /* InvalidBackendResponse */,\r\n FailedToFixDepricatedValues: 44 /* FailedToFixDepricatedValues */,\r\n InvalidDurationValue: 45 /* InvalidDurationValue */,\r\n TelemetryEnvelopeInvalid: 46 /* TelemetryEnvelopeInvalid */,\r\n CreateEnvelopeError: 47 /* CreateEnvelopeError */,\r\n // User actionable\r\n CannotSerializeObject: 48 /* CannotSerializeObject */,\r\n CannotSerializeObjectNonSerializable: 49 /* CannotSerializeObjectNonSerializable */,\r\n CircularReferenceDetected: 50 /* CircularReferenceDetected */,\r\n ClearAuthContextFailed: 51 /* ClearAuthContextFailed */,\r\n ExceptionTruncated: 52 /* ExceptionTruncated */,\r\n IllegalCharsInName: 53 /* IllegalCharsInName */,\r\n ItemNotInArray: 54 /* ItemNotInArray */,\r\n MaxAjaxPerPVExceeded: 55 /* MaxAjaxPerPVExceeded */,\r\n MessageTruncated: 56 /* MessageTruncated */,\r\n NameTooLong: 57 /* NameTooLong */,\r\n SampleRateOutOfRange: 58 /* SampleRateOutOfRange */,\r\n SetAuthContextFailed: 59 /* SetAuthContextFailed */,\r\n SetAuthContextFailedAccountName: 60 /* SetAuthContextFailedAccountName */,\r\n StringValueTooLong: 61 /* StringValueTooLong */,\r\n StartCalledMoreThanOnce: 62 /* StartCalledMoreThanOnce */,\r\n StopCalledWithoutStart: 63 /* StopCalledWithoutStart */,\r\n TelemetryInitializerFailed: 64 /* TelemetryInitializerFailed */,\r\n TrackArgumentsNotSpecified: 65 /* TrackArgumentsNotSpecified */,\r\n UrlTooLong: 66 /* UrlTooLong */,\r\n SessionStorageBufferFull: 67 /* SessionStorageBufferFull */,\r\n CannotAccessCookie: 68 /* CannotAccessCookie */,\r\n IdTooLong: 69 /* IdTooLong */,\r\n InvalidEvent: 70 /* InvalidEvent */,\r\n FailedMonitorAjaxSetRequestHeader: 71 /* FailedMonitorAjaxSetRequestHeader */,\r\n SendBrowserInfoOnUserInit: 72 /* SendBrowserInfoOnUserInit */,\r\n PluginException: 73 /* PluginException */,\r\n NotificationException: 74 /* NotificationException */,\r\n SnippetScriptLoadFailure: 99 /* SnippetScriptLoadFailure */,\r\n InvalidInstrumentationKey: 100 /* InvalidInstrumentationKey */,\r\n CannotParseAiBlobValue: 101 /* CannotParseAiBlobValue */,\r\n InvalidContentBlob: 102 /* InvalidContentBlob */,\r\n TrackPageActionEventFailed: 103 /* TrackPageActionEventFailed */,\r\n FailedAddingCustomDefinedRequestContext: 104 /* FailedAddingCustomDefinedRequestContext */,\r\n InMemoryStorageBufferFull: 105 /* InMemoryStorageBufferFull */\r\n});\r\n//# sourceMappingURL=LoggingEnums.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;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"}
1
+ {"version":3,"file":"LoggingEnums.js.map","sources":["LoggingEnums.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { createEnumStyle } from \"../JavaScriptSDK.Enums/EnumHelperFuncs\";\r\nexport var LoggingSeverity = createEnumStyle({\r\n CRITICAL: 1 /* CRITICAL */,\r\n WARNING: 2 /* WARNING */\r\n});\r\n/**\r\n * Internal message ID. Please create a new one for every conceptually different message. Please keep alphabetically ordered\r\n */\r\nexport var _InternalMessageId = createEnumStyle({\r\n // Non user actionable\r\n BrowserDoesNotSupportLocalStorage: 0 /* BrowserDoesNotSupportLocalStorage */,\r\n BrowserCannotReadLocalStorage: 1 /* BrowserCannotReadLocalStorage */,\r\n BrowserCannotReadSessionStorage: 2 /* BrowserCannotReadSessionStorage */,\r\n BrowserCannotWriteLocalStorage: 3 /* BrowserCannotWriteLocalStorage */,\r\n BrowserCannotWriteSessionStorage: 4 /* BrowserCannotWriteSessionStorage */,\r\n BrowserFailedRemovalFromLocalStorage: 5 /* BrowserFailedRemovalFromLocalStorage */,\r\n BrowserFailedRemovalFromSessionStorage: 6 /* BrowserFailedRemovalFromSessionStorage */,\r\n CannotSendEmptyTelemetry: 7 /* CannotSendEmptyTelemetry */,\r\n ClientPerformanceMathError: 8 /* ClientPerformanceMathError */,\r\n ErrorParsingAISessionCookie: 9 /* ErrorParsingAISessionCookie */,\r\n ErrorPVCalc: 10 /* ErrorPVCalc */,\r\n ExceptionWhileLoggingError: 11 /* ExceptionWhileLoggingError */,\r\n FailedAddingTelemetryToBuffer: 12 /* FailedAddingTelemetryToBuffer */,\r\n FailedMonitorAjaxAbort: 13 /* FailedMonitorAjaxAbort */,\r\n FailedMonitorAjaxDur: 14 /* FailedMonitorAjaxDur */,\r\n FailedMonitorAjaxOpen: 15 /* FailedMonitorAjaxOpen */,\r\n FailedMonitorAjaxRSC: 16 /* FailedMonitorAjaxRSC */,\r\n FailedMonitorAjaxSend: 17 /* FailedMonitorAjaxSend */,\r\n FailedMonitorAjaxGetCorrelationHeader: 18 /* FailedMonitorAjaxGetCorrelationHeader */,\r\n FailedToAddHandlerForOnBeforeUnload: 19 /* FailedToAddHandlerForOnBeforeUnload */,\r\n FailedToSendQueuedTelemetry: 20 /* FailedToSendQueuedTelemetry */,\r\n FailedToReportDataLoss: 21 /* FailedToReportDataLoss */,\r\n FlushFailed: 22 /* FlushFailed */,\r\n MessageLimitPerPVExceeded: 23 /* MessageLimitPerPVExceeded */,\r\n MissingRequiredFieldSpecification: 24 /* MissingRequiredFieldSpecification */,\r\n NavigationTimingNotSupported: 25 /* NavigationTimingNotSupported */,\r\n OnError: 26 /* OnError */,\r\n SessionRenewalDateIsZero: 27 /* SessionRenewalDateIsZero */,\r\n SenderNotInitialized: 28 /* SenderNotInitialized */,\r\n StartTrackEventFailed: 29 /* StartTrackEventFailed */,\r\n StopTrackEventFailed: 30 /* StopTrackEventFailed */,\r\n StartTrackFailed: 31 /* StartTrackFailed */,\r\n StopTrackFailed: 32 /* StopTrackFailed */,\r\n TelemetrySampledAndNotSent: 33 /* TelemetrySampledAndNotSent */,\r\n TrackEventFailed: 34 /* TrackEventFailed */,\r\n TrackExceptionFailed: 35 /* TrackExceptionFailed */,\r\n TrackMetricFailed: 36 /* TrackMetricFailed */,\r\n TrackPVFailed: 37 /* TrackPVFailed */,\r\n TrackPVFailedCalc: 38 /* TrackPVFailedCalc */,\r\n TrackTraceFailed: 39 /* TrackTraceFailed */,\r\n TransmissionFailed: 40 /* TransmissionFailed */,\r\n FailedToSetStorageBuffer: 41 /* FailedToSetStorageBuffer */,\r\n FailedToRestoreStorageBuffer: 42 /* FailedToRestoreStorageBuffer */,\r\n InvalidBackendResponse: 43 /* InvalidBackendResponse */,\r\n FailedToFixDepricatedValues: 44 /* FailedToFixDepricatedValues */,\r\n InvalidDurationValue: 45 /* InvalidDurationValue */,\r\n TelemetryEnvelopeInvalid: 46 /* TelemetryEnvelopeInvalid */,\r\n CreateEnvelopeError: 47 /* CreateEnvelopeError */,\r\n // User actionable\r\n CannotSerializeObject: 48 /* CannotSerializeObject */,\r\n CannotSerializeObjectNonSerializable: 49 /* CannotSerializeObjectNonSerializable */,\r\n CircularReferenceDetected: 50 /* CircularReferenceDetected */,\r\n ClearAuthContextFailed: 51 /* ClearAuthContextFailed */,\r\n ExceptionTruncated: 52 /* ExceptionTruncated */,\r\n IllegalCharsInName: 53 /* IllegalCharsInName */,\r\n ItemNotInArray: 54 /* ItemNotInArray */,\r\n MaxAjaxPerPVExceeded: 55 /* MaxAjaxPerPVExceeded */,\r\n MessageTruncated: 56 /* MessageTruncated */,\r\n NameTooLong: 57 /* NameTooLong */,\r\n SampleRateOutOfRange: 58 /* SampleRateOutOfRange */,\r\n SetAuthContextFailed: 59 /* SetAuthContextFailed */,\r\n SetAuthContextFailedAccountName: 60 /* SetAuthContextFailedAccountName */,\r\n StringValueTooLong: 61 /* StringValueTooLong */,\r\n StartCalledMoreThanOnce: 62 /* StartCalledMoreThanOnce */,\r\n StopCalledWithoutStart: 63 /* StopCalledWithoutStart */,\r\n TelemetryInitializerFailed: 64 /* TelemetryInitializerFailed */,\r\n TrackArgumentsNotSpecified: 65 /* TrackArgumentsNotSpecified */,\r\n UrlTooLong: 66 /* UrlTooLong */,\r\n SessionStorageBufferFull: 67 /* SessionStorageBufferFull */,\r\n CannotAccessCookie: 68 /* CannotAccessCookie */,\r\n IdTooLong: 69 /* IdTooLong */,\r\n InvalidEvent: 70 /* InvalidEvent */,\r\n FailedMonitorAjaxSetRequestHeader: 71 /* FailedMonitorAjaxSetRequestHeader */,\r\n SendBrowserInfoOnUserInit: 72 /* SendBrowserInfoOnUserInit */,\r\n PluginException: 73 /* PluginException */,\r\n NotificationException: 74 /* NotificationException */,\r\n SnippetScriptLoadFailure: 99 /* SnippetScriptLoadFailure */,\r\n InvalidInstrumentationKey: 100 /* InvalidInstrumentationKey */,\r\n CannotParseAiBlobValue: 101 /* CannotParseAiBlobValue */,\r\n InvalidContentBlob: 102 /* InvalidContentBlob */,\r\n TrackPageActionEventFailed: 103 /* TrackPageActionEventFailed */,\r\n FailedAddingCustomDefinedRequestContext: 104 /* FailedAddingCustomDefinedRequestContext */,\r\n InMemoryStorageBufferFull: 105 /* InMemoryStorageBufferFull */\r\n});\r\n//# sourceMappingURL=LoggingEnums.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;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"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
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 - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - Core, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export { MinChannelPriorty } from "./JavaScriptSDK.Interfaces/IChannelControls";
@@ -9,13 +9,14 @@ export { BaseCore } from "./JavaScriptSDK/BaseCore";
9
9
  export { BaseTelemetryPlugin } from "./JavaScriptSDK/BaseTelemetryPlugin";
10
10
  export { randomValue, random32, mwcRandomSeed, mwcRandom32, newId } from "./JavaScriptSDK/RandomHelper";
11
11
  export { CoreUtils, EventHelper, Undefined, newGuid, perfNow, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr } from "./JavaScriptSDK/CoreUtils";
12
- export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal, createEnumStyle, objExtend, objToString } from "./JavaScriptSDK/HelperFuncs";
12
+ export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal, objExtend, objToString } from "./JavaScriptSDK/HelperFuncs";
13
+ export { createEnumStyle, createEnumMap, createValueMap } from "./JavaScriptSDK.Enums/EnumHelperFuncs";
13
14
  export { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, __getRegisteredEvents } from "./JavaScriptSDK/EventHelpers";
14
15
  export { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported } from "./JavaScriptSDK/EnvUtils";
15
16
  export { getGlobal, objCreateFn as objCreate, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from "@microsoft/applicationinsights-shims";
16
17
  export { NotificationManager } from "./JavaScriptSDK/NotificationManager";
17
18
  export { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from "./JavaScriptSDK/PerfManager";
18
- export { safeGetLogger, DiagnosticLogger, _InternalLogMessage, _throwInternal } from "./JavaScriptSDK/DiagnosticLogger";
19
+ export { safeGetLogger, DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole, _logInternalMessage } from "./JavaScriptSDK/DiagnosticLogger";
19
20
  export { ProcessTelemetryContext, createProcessTelemetryContext
20
21
  // Explicitly NOT exporting createProcessTelemetryUnloadContext() and createProcessTelemetryUpdateContext() as these should only be created internally
21
22
  } from "./JavaScriptSDK/ProcessTelemetryContext";
@@ -1 +1 @@
1
- {"version":3,"file":"applicationinsights-core-js.js.map","sources":["applicationinsights-core-js.js"],"sourcesContent":["export { MinChannelPriorty } from \"./JavaScriptSDK.Interfaces/IChannelControls\";\r\nexport { EventsDiscardedReason } from \"./JavaScriptSDK.Enums/EventsDiscardedReason\";\r\nexport { AppInsightsCore } from \"./JavaScriptSDK/AppInsightsCore\";\r\nexport { BaseCore } from \"./JavaScriptSDK/BaseCore\";\r\nexport { BaseTelemetryPlugin } from \"./JavaScriptSDK/BaseTelemetryPlugin\";\r\nexport { randomValue, random32, mwcRandomSeed, mwcRandom32, newId } from \"./JavaScriptSDK/RandomHelper\";\r\nexport { CoreUtils, EventHelper, Undefined, newGuid, perfNow, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr } from \"./JavaScriptSDK/CoreUtils\";\r\nexport { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal, createEnumStyle, objExtend, objToString } from \"./JavaScriptSDK/HelperFuncs\";\r\nexport { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, __getRegisteredEvents } from \"./JavaScriptSDK/EventHelpers\";\r\nexport { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported } from \"./JavaScriptSDK/EnvUtils\";\r\nexport { getGlobal, objCreateFn as objCreate, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from \"@microsoft/applicationinsights-shims\";\r\nexport { NotificationManager } from \"./JavaScriptSDK/NotificationManager\";\r\nexport { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from \"./JavaScriptSDK/PerfManager\";\r\nexport { safeGetLogger, DiagnosticLogger, _InternalLogMessage, _throwInternal } from \"./JavaScriptSDK/DiagnosticLogger\";\r\nexport { ProcessTelemetryContext, createProcessTelemetryContext\r\n// Explicitly NOT exporting createProcessTelemetryUnloadContext() and createProcessTelemetryUpdateContext() as these should only be created internally\r\n } from \"./JavaScriptSDK/ProcessTelemetryContext\";\r\nexport { initializePlugins, sortPlugins, unloadComponents } from \"./JavaScriptSDK/TelemetryHelpers\";\r\nexport { _InternalMessageId, LoggingSeverity } from \"./JavaScriptSDK.Enums/LoggingEnums\";\r\nexport { InstrumentProto, InstrumentProtos, InstrumentFunc, InstrumentFuncs } from \"./JavaScriptSDK/InstrumentHooks\";\r\nexport { createCookieMgr, safeGetCookieMgr, uaDisallowsSameSiteNone, areCookiesSupported } from \"./JavaScriptSDK/CookieMgr\";\r\nexport { strIKey, strExtensionConfig } from \"./JavaScriptSDK/Constants\";\r\nexport { getDebugListener, getDebugExt } from \"./JavaScriptSDK/DbgExtensionUtils\";\r\nexport { createUniqueNamespace } from \"./JavaScriptSDK/DataCacheHelper\";\r\nexport { createUnloadHandlerContainer } from \"./JavaScriptSDK/UnloadHandlerContainer\";\r\n//# sourceMappingURL=applicationinsights-core-js.js.map"],"names":[],"mappings":";;;;AAAA;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"}
1
+ {"version":3,"file":"applicationinsights-core-js.js.map","sources":["applicationinsights-core-js.js"],"sourcesContent":["export { MinChannelPriorty } from \"./JavaScriptSDK.Interfaces/IChannelControls\";\r\nexport { EventsDiscardedReason } from \"./JavaScriptSDK.Enums/EventsDiscardedReason\";\r\nexport { AppInsightsCore } from \"./JavaScriptSDK/AppInsightsCore\";\r\nexport { BaseCore } from \"./JavaScriptSDK/BaseCore\";\r\nexport { BaseTelemetryPlugin } from \"./JavaScriptSDK/BaseTelemetryPlugin\";\r\nexport { randomValue, random32, mwcRandomSeed, mwcRandom32, newId } from \"./JavaScriptSDK/RandomHelper\";\r\nexport { CoreUtils, EventHelper, Undefined, newGuid, perfNow, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr } from \"./JavaScriptSDK/CoreUtils\";\r\nexport { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal, objExtend, objToString } from \"./JavaScriptSDK/HelperFuncs\";\r\nexport { createEnumStyle, createEnumMap, createValueMap } from \"./JavaScriptSDK.Enums/EnumHelperFuncs\";\r\nexport { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, __getRegisteredEvents } from \"./JavaScriptSDK/EventHelpers\";\r\nexport { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported } from \"./JavaScriptSDK/EnvUtils\";\r\nexport { getGlobal, objCreateFn as objCreate, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from \"@microsoft/applicationinsights-shims\";\r\nexport { NotificationManager } from \"./JavaScriptSDK/NotificationManager\";\r\nexport { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from \"./JavaScriptSDK/PerfManager\";\r\nexport { safeGetLogger, DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole, _logInternalMessage } from \"./JavaScriptSDK/DiagnosticLogger\";\r\nexport { ProcessTelemetryContext, createProcessTelemetryContext\r\n// Explicitly NOT exporting createProcessTelemetryUnloadContext() and createProcessTelemetryUpdateContext() as these should only be created internally\r\n } from \"./JavaScriptSDK/ProcessTelemetryContext\";\r\nexport { initializePlugins, sortPlugins, unloadComponents } from \"./JavaScriptSDK/TelemetryHelpers\";\r\nexport { _InternalMessageId, LoggingSeverity } from \"./JavaScriptSDK.Enums/LoggingEnums\";\r\nexport { InstrumentProto, InstrumentProtos, InstrumentFunc, InstrumentFuncs } from \"./JavaScriptSDK/InstrumentHooks\";\r\nexport { createCookieMgr, safeGetCookieMgr, uaDisallowsSameSiteNone, areCookiesSupported } from \"./JavaScriptSDK/CookieMgr\";\r\nexport { strIKey, strExtensionConfig } from \"./JavaScriptSDK/Constants\";\r\nexport { getDebugListener, getDebugExt } from \"./JavaScriptSDK/DbgExtensionUtils\";\r\nexport { createUniqueNamespace } from \"./JavaScriptSDK/DataCacheHelper\";\r\nexport { createUnloadHandlerContainer } from \"./JavaScriptSDK/UnloadHandlerContainer\";\r\n//# sourceMappingURL=applicationinsights-core-js.js.map"],"names":[],"mappings":";;;;AAAA;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"}
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.0-beta.2203-16",
4
+ "version": "2.8.0-nightly.2204-05",
5
5
  "description": "Microsoft Application Insights Core Javascript SDK",
6
6
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
7
7
  "keywords": [
@@ -65,6 +65,6 @@
65
65
  "@microsoft/dynamicproto-js": "^1.1.4"
66
66
  },
67
67
  "publishConfig": {
68
- "tag": "beta"
68
+ "tag": "nightly"
69
69
  }
70
70
  }
@@ -5,7 +5,7 @@ import { BaseCore } from "./BaseCore";
5
5
  import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
6
6
  import { IPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
7
7
  import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
8
- import { EventsDiscardedReason } from "../JavaScriptSDK.Enums/EventsDiscardedReason";
8
+ import { eEventsDiscardedReason } from "../JavaScriptSDK.Enums/EventsDiscardedReason";
9
9
  import { NotificationManager } from "./NotificationManager";
10
10
  import { doPerf } from "./PerfManager";
11
11
  import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
@@ -14,8 +14,6 @@ import { DiagnosticLogger } from "./DiagnosticLogger";
14
14
  import dynamicProto from "@microsoft/dynamicproto-js";
15
15
  import { isNullOrUndefined, throwError } from "./HelperFuncs";
16
16
 
17
- "use strict";
18
-
19
17
  export class AppInsightsCore extends BaseCore implements IAppInsightsCore {
20
18
  constructor() {
21
19
  super();
@@ -51,7 +49,7 @@ export class AppInsightsCore extends BaseCore implements IAppInsightsCore {
51
49
  function _notifyInvalidEvent(telemetryItem: ITelemetryItem): void {
52
50
  let manager = _self.getNotifyMgr();
53
51
  if (manager) {
54
- manager.eventsDiscarded([telemetryItem], EventsDiscardedReason.InvalidEvent);
52
+ manager.eventsDiscarded([telemetryItem], eEventsDiscardedReason.InvalidEvent);
55
53
  }
56
54
  }
57
55
  });
@@ -22,7 +22,7 @@ import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
22
22
  import { createCookieMgr } from "./CookieMgr";
23
23
  import { arrForEach, isNullOrUndefined, toISOString, getSetValue, setValue, throwError, isNotTruthy, isFunction, objFreeze, proxyFunctionAs, proxyFunctions } from "./HelperFuncs";
24
24
  import { strExtensionConfig, strIKey } from "./Constants";
25
- import { DiagnosticLogger, _InternalLogMessage, _throwInternal } from "./DiagnosticLogger";
25
+ import { DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole } from "./DiagnosticLogger";
26
26
  import { getDebugListener } from "./DbgExtensionUtils";
27
27
  import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
28
28
  import { ChannelControllerPriority, createChannelControllerPlugin, createChannelQueues, IChannelController, IInternalChannelController, _IInternalChannels } from "./ChannelController";
@@ -71,7 +71,7 @@ function _validateExtensions(logger: IDiagnosticLogger, channelPriority: number,
71
71
 
72
72
  if (ext && extPriority) {
73
73
  if (!isNullOrUndefined(extPriorities[extPriority])) {
74
- logger.warnToConsole("Two extensions have same priority #" + extPriority + " - " + extPriorities[extPriority] + ", " + identifier);
74
+ _warnToConsole(logger, "Two extensions have same priority #" + extPriority + " - " + extPriorities[extPriority] + ", " + identifier);
75
75
  } else {
76
76
  // set a value
77
77
  extPriorities[extPriority] = identifier;
@@ -7,7 +7,7 @@ import { newId } from "./RandomHelper";
7
7
 
8
8
  const _objDefineProperty = ObjDefineProperty;
9
9
 
10
- const version = "2.8.0-beta.2203-16";
10
+ const version = "2.8.0-nightly.2204-05";
11
11
  let instanceName = "." + newId(6);
12
12
  let _dataUid = 0;
13
13
 
@@ -321,6 +321,10 @@ export class DiagnosticLogger implements IDiagnosticLogger {
321
321
  }
322
322
  }
323
323
 
324
+ function _getLogger(logger: IDiagnosticLogger) {
325
+ return (logger || new DiagnosticLogger());
326
+ }
327
+
324
328
  /**
325
329
  * This is a helper method which will call throwInternal on the passed logger, will throw exceptions in
326
330
  * debug mode or attempt to log the error as a console warning. This helper is provided mostly to better
@@ -334,3 +338,21 @@ export function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSever
334
338
  (logger || new DiagnosticLogger()).throwInternal(severity, msgId, msg, properties, isUserAct);
335
339
  }
336
340
 
341
+ /**
342
+ * This is a helper method which will call warnToConsole on the passed logger with the provided message.
343
+ * @param logger - The Diagnostic Logger instance to use.
344
+ * @param message {_InternalLogMessage} - The log message.
345
+ */
346
+ export function _warnToConsole(logger: IDiagnosticLogger, message: string) {
347
+ _getLogger(logger).warnToConsole(message);
348
+ }
349
+
350
+ /**
351
+ * Logs a message to the internal queue.
352
+ * @param logger - The Diagnostic Logger instance to use.
353
+ * @param severity {LoggingSeverity} - The severity of the log message
354
+ * @param message {_InternalLogMessage} - The message to log.
355
+ */
356
+ export function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage) {
357
+ _getLogger(logger).logInternalMessage(severity, message);
358
+ }
@@ -781,9 +781,18 @@ export function proxyAssign<T, S>(target: T, source: S, chkSet?: (name: string,
781
781
  return target;
782
782
  }
783
783
 
784
- export function proxyFunctionAs<T, S>(target: T, name: string, source: S | (() => S), theFunc: (keyof S), overwriteTarget: boolean = true) {
784
+ /**
785
+ * Creates a proxy function on the target which internally will call the source version with all arguments passed to the target method.
786
+ *
787
+ * @param target - The target object to be assigned with the source properties and functions
788
+ * @param name - The function name that will be added on the target
789
+ * @param source - The source object which will be assigned / called by setting / calling the targets proxies
790
+ * @param theFunc - The function name on the source that will be proxied on the target
791
+ * @param overwriteTarget - If `false` this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name
792
+ */
793
+ export function proxyFunctionAs<T, S>(target: T, name: string, source: S | (() => S), theFunc: (keyof S), overwriteTarget?: boolean) {
785
794
  if (target && name && source) {
786
- if (overwriteTarget || isUndefined(target[name])) {
795
+ if (overwriteTarget !== false || isUndefined(target[name])) {
787
796
  (target as any)[name] = _createProxyFunction(source, theFunc);
788
797
  }
789
798
  }
@@ -795,8 +804,9 @@ export function proxyFunctionAs<T, S>(target: T, name: string, source: S | (() =
795
804
  * @param target - The target object to be assigned with the source properties and functions
796
805
  * @param source - The source object which will be assigned / called by setting / calling the targets proxies
797
806
  * @param functionsToProxy - An array of function names that will be proxied on the target
807
+ * @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name
798
808
  */
799
- export function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget: boolean = true) {
809
+ export function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget?: boolean) {
800
810
  if (target && source && isObject(target) && isArray(functionsToProxy)) {
801
811
  arrForEach(functionsToProxy, (theFuncName) => {
802
812
  if (isString(theFuncName)) {
@@ -825,25 +835,6 @@ export function createClassFromInterface<T>(defaults?: T) {
825
835
  } as new () => T;
826
836
  }
827
837
 
828
- /**
829
- * Create an enum style object which has both the key => value and value => key mappings
830
- * @param values - The values to populate on the new object
831
- * @returns
832
- */
833
- export function createEnumStyle<T>(values: T) {
834
- let enumClass: any = {};
835
- objForEachKey(values, (field, value) => {
836
- enumClass[field] = value;
837
- // Add Reverse lookup
838
- if (!isUndefined(enumClass[value])) {
839
- throwError("[" + value + "] exists for " + field);
840
- }
841
- enumClass[value] = field;
842
- });
843
-
844
- return objFreeze(enumClass as T);
845
- }
846
-
847
838
  /**
848
839
  * A helper function to assist with JIT performance for objects that have properties added / removed dynamically
849
840
  * this is primarily for chromium based browsers and has limited effects on Firefox and none of IE. Only call this
@@ -0,0 +1,56 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ import { objForEachKey, deepFreeze } from "../JavaScriptSDK/HelperFuncs";
5
+
6
+ export declare type EnumValue<E = any> = { readonly [key in keyof E]: E[key] };
7
+ export declare type EnumMap<E = any, I = E> = { readonly [key in keyof E extends string ? keyof E : never]: key extends string ? key : keyof E } & I;
8
+
9
+ /**
10
+ * Create an enum style object which has both the key => value and value => key mappings
11
+ * @param values - The values to populate on the new object
12
+ * @returns
13
+ */
14
+ export function createEnumStyle<E>(values: { [key in keyof E]: E[keyof E] }): EnumValue<E> {
15
+ let enumClass: any = {};
16
+ objForEachKey(values, (field, value) => {
17
+ enumClass[field] = value;
18
+ enumClass[value] = field;
19
+ });
20
+
21
+ return deepFreeze(enumClass);
22
+ }
23
+
24
+ /**
25
+ * Create a 2 index map that maps an enum's key as both the key and value, X["key"] => "key" and X[0] => "keyof 0".
26
+ * @param values - The values to populate on the new object
27
+ * @returns
28
+ */
29
+ export function createEnumMap<E, I = keyof E>(values: { [key in keyof E]: E[keyof E] }): EnumMap<E, I> {
30
+ let mapClass: any = {};
31
+ objForEachKey(values, (field, value) => {
32
+ mapClass[field] = field;
33
+ mapClass[value] = field;
34
+ });
35
+
36
+ return deepFreeze(mapClass);
37
+ }
38
+
39
+ /**
40
+ * Create a 2 index map that maps an enum's key and value to the defined map value, X["key"] => mapValue and X[0] => mapValue.
41
+ * Generic values
42
+ * - E = the const enum type (typeof eRequestHeaders);
43
+ * - V = Identifies the valid values for the keys, this should include both the enum numeric and string key of the type. The
44
+ * resulting "Value" of each entry identifies the valid values withing the assignments.
45
+ * @param values - The values to populate on the new object
46
+ * @returns
47
+ */
48
+ export function createValueMap<E, V = E>(values: { [key in keyof E]: [ eValue: E[keyof E], mapValue: V[keyof V]] }): V {
49
+ let mapClass: any = {};
50
+ objForEachKey(values, (field, value) => {
51
+ mapClass[field] = value[1];
52
+ mapClass[value[0]] = value[1];
53
+ });
54
+
55
+ return deepFreeze(mapClass);
56
+ }
@@ -1,31 +1,71 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
+
4
+ import { createEnumStyle } from "../JavaScriptSDK.Enums/EnumHelperFuncs";
5
+
6
+ /**
7
+ * The eEventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
8
+ */
9
+ export const enum eEventsDiscardedReason {
10
+ /**
11
+ * Unknown.
12
+ */
13
+ Unknown = 0,
14
+ /**
15
+ * Status set to non-retryable.
16
+ */
17
+ NonRetryableStatus = 1,
18
+ /**
19
+ * The event is invalid.
20
+ */
21
+ InvalidEvent = 2,
22
+ /**
23
+ * The size of the event is too large.
24
+ */
25
+ SizeLimitExceeded = 3,
26
+ /**
27
+ * The server is not accepting events from this instrumentation key.
28
+ */
29
+ KillSwitch = 4,
30
+ /**
31
+ * The event queue is full.
32
+ */
33
+ QueueFull = 5
34
+ }
35
+
3
36
  /**
4
37
  * The EventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
5
38
  */
6
- export const EventsDiscardedReason = {
39
+ export const EventsDiscardedReason = createEnumStyle<typeof eEventsDiscardedReason>({
7
40
  /**
8
41
  * Unknown.
9
42
  */
10
- Unknown: 0,
43
+ Unknown: eEventsDiscardedReason.Unknown,
44
+
11
45
  /**
12
46
  * Status set to non-retryable.
13
47
  */
14
- NonRetryableStatus: 1,
48
+ NonRetryableStatus: eEventsDiscardedReason.NonRetryableStatus,
49
+
15
50
  /**
16
51
  * The event is invalid.
17
52
  */
18
- InvalidEvent: 2,
53
+ InvalidEvent: eEventsDiscardedReason.InvalidEvent,
54
+
19
55
  /**
20
56
  * The size of the event is too large.
21
57
  */
22
- SizeLimitExceeded: 3,
58
+ SizeLimitExceeded: eEventsDiscardedReason.SizeLimitExceeded,
59
+
23
60
  /**
24
61
  * The server is not accepting events from this instrumentation key.
25
62
  */
26
- KillSwitch: 4,
63
+ KillSwitch: eEventsDiscardedReason.KillSwitch,
64
+
27
65
  /**
28
66
  * The event queue is full.
29
67
  */
30
- QueueFull: 5
31
- };
68
+ QueueFull: eEventsDiscardedReason.QueueFull
69
+ });
70
+
71
+ export type EventsDiscardedReason = number | eEventsDiscardedReason;
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { createEnumStyle } from "../JavaScriptSDK/HelperFuncs";
4
+ import { createEnumStyle } from "../JavaScriptSDK.Enums/EnumHelperFuncs";
5
5
 
6
6
  export const enum eLoggingSeverity {
7
7
  /**
@@ -15,8 +15,7 @@ export const enum eLoggingSeverity {
15
15
  WARNING = 2
16
16
  }
17
17
 
18
-
19
- export const LoggingSeverity = createEnumStyle<{ [key in (keyof typeof eLoggingSeverity)]: number; }>({
18
+ export const LoggingSeverity = createEnumStyle<typeof eLoggingSeverity>({
20
19
  CRITICAL: eLoggingSeverity.CRITICAL,
21
20
  WARNING: eLoggingSeverity.WARNING
22
21
  });
@@ -112,7 +111,7 @@ export const enum _eInternalMessageId {
112
111
  /**
113
112
  * Internal message ID. Please create a new one for every conceptually different message. Please keep alphabetically ordered
114
113
  */
115
- export const _InternalMessageId = createEnumStyle<{ [key in (keyof typeof _eInternalMessageId)]: number; }>({
114
+ export const _InternalMessageId = createEnumStyle<typeof _eInternalMessageId>({
116
115
  // Non user actionable
117
116
  BrowserDoesNotSupportLocalStorage: _eInternalMessageId.BrowserDoesNotSupportLocalStorage,
118
117
  BrowserCannotReadLocalStorage: _eInternalMessageId.BrowserCannotReadLocalStorage,
@@ -73,3 +73,16 @@ export declare class DiagnosticLogger implements IDiagnosticLogger {
73
73
  * @param message {_InternalLogMessage} - The log message.
74
74
  */
75
75
  export declare function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
76
+ /**
77
+ * This is a helper method which will call warnToConsole on the passed logger with the provided message.
78
+ * @param logger - The Diagnostic Logger instance to use.
79
+ * @param message {_InternalLogMessage} - The log message.
80
+ */
81
+ export declare function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
82
+ /**
83
+ * Logs a message to the internal queue.
84
+ * @param logger - The Diagnostic Logger instance to use.
85
+ * @param severity {LoggingSeverity} - The severity of the log message
86
+ * @param message {_InternalLogMessage} - The message to log.
87
+ */
88
+ export declare function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage): void;