@microsoft/applicationinsights-common 3.0.6 → 3.0.7-nightly3.2312-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 (103) hide show
  1. package/browser/es5/applicationinsights-common.cjs.js +358 -14
  2. package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-common.gbl.js +360 -16
  6. package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-common.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-common.js +360 -16
  11. package/browser/es5/applicationinsights-common.js.map +1 -1
  12. package/browser/es5/applicationinsights-common.min.js +2 -2
  13. package/browser/es5/applicationinsights-common.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-common.js +358 -14
  15. package/dist/es5/applicationinsights-common.js.map +1 -1
  16. package/dist/es5/applicationinsights-common.min.js +2 -2
  17. package/dist/es5/applicationinsights-common.min.js.map +1 -1
  18. package/dist-es5/ConnectionStringParser.js +1 -1
  19. package/dist-es5/Constants.js +1 -1
  20. package/dist-es5/DomHelperFuncs.js +1 -1
  21. package/dist-es5/Enums.js +1 -1
  22. package/dist-es5/HelperFuncs.js +1 -1
  23. package/dist-es5/Interfaces/ConnectionString.js +1 -1
  24. package/dist-es5/Interfaces/Context/IApplication.js +1 -1
  25. package/dist-es5/Interfaces/Context/IDevice.js +1 -1
  26. package/dist-es5/Interfaces/Context/IInternal.js +1 -1
  27. package/dist-es5/Interfaces/Context/ILocation.js +1 -1
  28. package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
  29. package/dist-es5/Interfaces/Context/ISample.js +1 -1
  30. package/dist-es5/Interfaces/Context/ISession.js +1 -1
  31. package/dist-es5/Interfaces/Context/ISessionManager.js +1 -1
  32. package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
  33. package/dist-es5/Interfaces/Context/IUser.js +1 -1
  34. package/dist-es5/Interfaces/Context/IWeb.js +1 -1
  35. package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
  36. package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
  37. package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
  38. package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
  39. package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
  40. package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
  41. package/dist-es5/Interfaces/Contracts/IData.js +1 -1
  42. package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
  43. package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
  44. package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
  45. package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
  46. package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
  47. package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
  48. package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
  49. package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
  50. package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
  51. package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
  52. package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
  53. package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
  54. package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
  55. package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
  56. package/dist-es5/Interfaces/IAppInsights.js +1 -1
  57. package/dist-es5/Interfaces/IConfig.js +1 -1
  58. package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
  59. package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
  60. package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
  61. package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
  62. package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
  63. package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  64. package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
  65. package/dist-es5/Interfaces/IPartC.js +1 -1
  66. package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
  67. package/dist-es5/Interfaces/IRequestContext.js +1 -1
  68. package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
  69. package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
  70. package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
  71. package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
  72. package/dist-es5/Interfaces/PartAExtensions.js +1 -1
  73. package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
  74. package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
  75. package/dist-es5/Offline.js +138 -0
  76. package/dist-es5/Offline.js.map +1 -0
  77. package/dist-es5/RequestResponseHeaders.js +1 -1
  78. package/dist-es5/StorageHelperFuncs.js +3 -3
  79. package/dist-es5/StorageHelperFuncs.js.map +1 -1
  80. package/dist-es5/Telemetry/Common/Data.js +1 -1
  81. package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
  82. package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
  83. package/dist-es5/Telemetry/Common/Envelope.js +1 -1
  84. package/dist-es5/Telemetry/Event.js +1 -1
  85. package/dist-es5/Telemetry/Exception.js +4 -4
  86. package/dist-es5/Telemetry/Exception.js.map +1 -1
  87. package/dist-es5/Telemetry/Metric.js +1 -1
  88. package/dist-es5/Telemetry/PageView.js +1 -1
  89. package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
  90. package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
  91. package/dist-es5/Telemetry/Trace.js +1 -1
  92. package/dist-es5/TelemetryItemCreator.js +1 -1
  93. package/dist-es5/ThrottleMgr.js +3 -3
  94. package/dist-es5/ThrottleMgr.js.map +1 -1
  95. package/dist-es5/UrlHelperFuncs.js +1 -1
  96. package/dist-es5/Util.js +1 -1
  97. package/dist-es5/__DynamicConstants.js +2 -1
  98. package/dist-es5/__DynamicConstants.js.map +1 -1
  99. package/dist-es5/applicationinsights-common.js +2 -1
  100. package/dist-es5/applicationinsights-common.js.map +1 -1
  101. package/package.json +66 -63
  102. package/types/applicationinsights-common.d.ts +47 -1
  103. package/types/applicationinsights-common.namespaced.d.ts +47 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/dist-es5/Enums.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  import { ContextTagKeys } from "./Contracts/ContextTagKeys";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -0,0 +1,138 @@
1
+ /*
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-05
3
+ * Copyright (c) Microsoft and contributors. All rights reserved.
4
+ */
5
+ import { arrForEach, createUniqueNamespace, eventOff, eventOn, getDocument, getNavigator, getWindow, isNullOrUndefined, isUndefined, mergeEvtNamespace } from "@microsoft/applicationinsights-core-js";
6
+ import { _DYN_PUSH } from "./__DynamicConstants";
7
+ function _disableEvents(target, evtNamespace) {
8
+ eventOff(target, null, null, evtNamespace);
9
+ }
10
+ /**
11
+ * Create a new OfflineListener instance to monitor browser online / offline events
12
+ * @param parentEvtNamespace - The parent event namespace to append to any specific events for this instance
13
+ */
14
+ export function createOfflineListener(parentEvtNamespace) {
15
+ var _document = getDocument();
16
+ var _navigator = getNavigator(); // Gets the window.navigator or workerNavigator depending on the global
17
+ var _isListening = false;
18
+ var listenerList = [];
19
+ // Set the initial state
20
+ // rState is changed by the browser, both via events and when we check the navigator.onLine property
21
+ var rState = 1 /* eOfflineValue.Online */;
22
+ if (_navigator && !isNullOrUndefined(_navigator.onLine) && !_navigator.onLine) { // navigator.onLine is undefined in react-native
23
+ rState = 2 /* eOfflineValue.Offline */;
24
+ }
25
+ // ustate is changed by the user calling setOnlineState
26
+ var uState = 0 /* eOfflineValue.Unknown */;
27
+ // current state would be updated each time rState or uState is changed
28
+ // it is a resolved value of rState and uState
29
+ var _currentState = calCurrentState();
30
+ var _evtNamespace = mergeEvtNamespace(createUniqueNamespace("OfflineListener"), parentEvtNamespace);
31
+ try {
32
+ if (_enableEvents(getWindow())) {
33
+ _isListening = true;
34
+ }
35
+ if (_document) {
36
+ // Also attach to the document.body or document
37
+ var target = _document.body || _document;
38
+ if (target.ononline) {
39
+ if (_enableEvents(target)) {
40
+ _isListening = true;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ catch (e) {
46
+ // this makes react-native less angry
47
+ _isListening = false;
48
+ }
49
+ function _enableEvents(target) {
50
+ var enabled = false;
51
+ if (target) {
52
+ enabled = eventOn(target, "online", _setOnline, _evtNamespace);
53
+ if (enabled) {
54
+ eventOn(target, "offline", _setOffline, _evtNamespace);
55
+ }
56
+ }
57
+ return enabled;
58
+ }
59
+ function _isOnline() {
60
+ return _currentState;
61
+ }
62
+ function calCurrentState() {
63
+ if (uState === 2 /* eOfflineValue.Offline */ || rState === 2 /* eOfflineValue.Offline */) {
64
+ return false;
65
+ }
66
+ return true; // if both unknown, then we assume the network is good
67
+ }
68
+ function listnerNoticeCheck() {
69
+ // we were offline and are now online or we were online and now offline
70
+ var newState = calCurrentState();
71
+ if (_currentState !== newState) {
72
+ _currentState = newState; // use the resolved state to update
73
+ // send all the callbacks with the current state
74
+ arrForEach(listenerList, function (callback) {
75
+ var offlineState = {
76
+ isOnline: _currentState,
77
+ rState: rState,
78
+ uState: uState
79
+ };
80
+ try {
81
+ callback(offlineState);
82
+ }
83
+ catch (e) {
84
+ // Do nothing, just making sure we run all of the callbacks
85
+ }
86
+ });
87
+ }
88
+ }
89
+ function setOnlineState(newState) {
90
+ uState = newState;
91
+ listnerNoticeCheck();
92
+ }
93
+ function _setOnline() {
94
+ rState = 1 /* eOfflineValue.Online */;
95
+ listnerNoticeCheck();
96
+ }
97
+ function _setOffline() {
98
+ rState = 2 /* eOfflineValue.Offline */;
99
+ listnerNoticeCheck();
100
+ }
101
+ function _unload() {
102
+ var win = getWindow();
103
+ if (win && _isListening) {
104
+ _disableEvents(win, _evtNamespace);
105
+ if (_document) {
106
+ // Also attach to the document.body or document
107
+ var target = _document.body || _document;
108
+ if (!isUndefined(target.ononline)) {
109
+ _disableEvents(target, _evtNamespace);
110
+ }
111
+ }
112
+ _isListening = false;
113
+ }
114
+ }
115
+ function addListener(callback) {
116
+ listenerList[_DYN_PUSH /* @min:%2epush */](callback);
117
+ // Define rm as an instance of IUnloadHook
118
+ return {
119
+ rm: function () {
120
+ var index = listenerList.indexOf(callback);
121
+ if (index > -1) {
122
+ return listenerList.splice(index, 1);
123
+ }
124
+ else {
125
+ return;
126
+ }
127
+ }
128
+ };
129
+ }
130
+ return {
131
+ isOnline: _isOnline,
132
+ isListening: function () { return _isListening; },
133
+ unload: _unload,
134
+ addListener: addListener,
135
+ setOnlineState: setOnlineState
136
+ };
137
+ }
138
+ //# sourceMappingURL=Offline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Offline.js.map","sources":["Offline.js"],"sourcesContent":["import { arrForEach, createUniqueNamespace, eventOff, eventOn, getDocument, getNavigator, getWindow, isNullOrUndefined, isUndefined, mergeEvtNamespace } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_PUSH } from \"./__DynamicConstants\";\r\nfunction _disableEvents(target, evtNamespace) {\r\n eventOff(target, null, null, evtNamespace);\r\n}\r\n/**\r\n * Create a new OfflineListener instance to monitor browser online / offline events\r\n * @param parentEvtNamespace - The parent event namespace to append to any specific events for this instance\r\n */\r\nexport function createOfflineListener(parentEvtNamespace) {\r\n var _document = getDocument();\r\n var _navigator = getNavigator(); // Gets the window.navigator or workerNavigator depending on the global\r\n var _isListening = false;\r\n var listenerList = [];\r\n // Set the initial state\r\n // rState is changed by the browser, both via events and when we check the navigator.onLine property\r\n var rState = 1 /* eOfflineValue.Online */;\r\n if (_navigator && !isNullOrUndefined(_navigator.onLine) && !_navigator.onLine) { // navigator.onLine is undefined in react-native\r\n rState = 2 /* eOfflineValue.Offline */;\r\n }\r\n // ustate is changed by the user calling setOnlineState\r\n var uState = 0 /* eOfflineValue.Unknown */;\r\n // current state would be updated each time rState or uState is changed\r\n // it is a resolved value of rState and uState\r\n var _currentState = calCurrentState();\r\n var _evtNamespace = mergeEvtNamespace(createUniqueNamespace(\"OfflineListener\"), parentEvtNamespace);\r\n try {\r\n if (_enableEvents(getWindow())) {\r\n _isListening = true;\r\n }\r\n if (_document) {\r\n // Also attach to the document.body or document\r\n var target = _document.body || _document;\r\n if (target.ononline) {\r\n if (_enableEvents(target)) {\r\n _isListening = true;\r\n }\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // this makes react-native less angry\r\n _isListening = false;\r\n }\r\n function _enableEvents(target) {\r\n var enabled = false;\r\n if (target) {\r\n enabled = eventOn(target, \"online\", _setOnline, _evtNamespace);\r\n if (enabled) {\r\n eventOn(target, \"offline\", _setOffline, _evtNamespace);\r\n }\r\n }\r\n return enabled;\r\n }\r\n function _isOnline() {\r\n return _currentState;\r\n }\r\n function calCurrentState() {\r\n if (uState === 2 /* eOfflineValue.Offline */ || rState === 2 /* eOfflineValue.Offline */) {\r\n return false;\r\n }\r\n return true; // if both unknown, then we assume the network is good\r\n }\r\n function listnerNoticeCheck() {\r\n // we were offline and are now online or we were online and now offline\r\n var newState = calCurrentState();\r\n if (_currentState !== newState) {\r\n _currentState = newState; // use the resolved state to update\r\n // send all the callbacks with the current state\r\n arrForEach(listenerList, function (callback) {\r\n var offlineState = {\r\n isOnline: _currentState,\r\n rState: rState,\r\n uState: uState\r\n };\r\n try {\r\n callback(offlineState);\r\n }\r\n catch (e) {\r\n // Do nothing, just making sure we run all of the callbacks\r\n }\r\n });\r\n }\r\n }\r\n function setOnlineState(newState) {\r\n uState = newState;\r\n listnerNoticeCheck();\r\n }\r\n function _setOnline() {\r\n rState = 1 /* eOfflineValue.Online */;\r\n listnerNoticeCheck();\r\n }\r\n function _setOffline() {\r\n rState = 2 /* eOfflineValue.Offline */;\r\n listnerNoticeCheck();\r\n }\r\n function _unload() {\r\n var win = getWindow();\r\n if (win && _isListening) {\r\n _disableEvents(win, _evtNamespace);\r\n if (_document) {\r\n // Also attach to the document.body or document\r\n var target = _document.body || _document;\r\n if (!isUndefined(target.ononline)) {\r\n _disableEvents(target, _evtNamespace);\r\n }\r\n }\r\n _isListening = false;\r\n }\r\n }\r\n function addListener(callback) {\r\n listenerList[_DYN_PUSH /* @min:%2epush */](callback);\r\n // Define rm as an instance of IUnloadHook\r\n return {\r\n rm: function () {\r\n var index = listenerList.indexOf(callback);\r\n if (index > -1) {\r\n return listenerList.splice(index, 1);\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n };\r\n }\r\n return {\r\n isOnline: _isOnline,\r\n isListening: function () { return _isListening; },\r\n unload: _unload,\r\n addListener: addListener,\r\n setOnlineState: setOnlineState\r\n };\r\n}\r\n//# sourceMappingURL=Offline.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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 - Common, 3.0.6
2
+ * Application Insights JavaScript SDK - Common, 3.0.7-nightly3.2312-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5