@microsoft/applicationinsights-common 3.0.0-beta.2303-11 → 3.0.0-nightly3.2304-28

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 (371) hide show
  1. package/browser/es5/applicationinsights-common.cjs.js +3965 -0
  2. package/browser/es5/applicationinsights-common.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-common.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -0
  5. package/browser/es5/applicationinsights-common.gbl.js +3969 -0
  6. package/browser/es5/applicationinsights-common.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-common.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-common.integrity.json +66 -0
  10. package/browser/{applicationinsights-common.js → es5/applicationinsights-common.js} +194 -167
  11. package/browser/es5/applicationinsights-common.js.map +1 -0
  12. package/browser/es5/applicationinsights-common.min.js +6 -0
  13. package/browser/es5/applicationinsights-common.min.js.map +1 -0
  14. package/dist/{applicationinsights-common.js → es5/applicationinsights-common.js} +194 -167
  15. package/dist/es5/applicationinsights-common.js.map +1 -0
  16. package/dist/es5/applicationinsights-common.min.js +6 -0
  17. package/dist/es5/applicationinsights-common.min.js.map +1 -0
  18. package/{dist-esm → dist-es5}/ConnectionStringParser.js +1 -1
  19. package/{dist-esm → dist-es5}/Constants.js +1 -1
  20. package/{dist-esm → dist-es5}/DomHelperFuncs.js +1 -1
  21. package/{dist-esm → dist-es5}/Enums.js +1 -1
  22. package/{dist-esm → dist-es5}/HelperFuncs.js +1 -1
  23. package/dist-es5/Interfaces/ConnectionString.js +6 -0
  24. package/dist-es5/Interfaces/Context/IApplication.js +8 -0
  25. package/dist-es5/Interfaces/Context/IDevice.js +8 -0
  26. package/dist-es5/Interfaces/Context/IInternal.js +8 -0
  27. package/dist-es5/Interfaces/Context/ILocation.js +8 -0
  28. package/dist-es5/Interfaces/Context/IOperatingSystem.js +8 -0
  29. package/dist-es5/Interfaces/Context/ISample.js +8 -0
  30. package/dist-es5/Interfaces/Context/ISession.js +8 -0
  31. package/dist-es5/Interfaces/Context/ITelemetryTrace.js +8 -0
  32. package/dist-es5/Interfaces/Context/IUser.js +8 -0
  33. package/dist-es5/Interfaces/Context/IWeb.js +8 -0
  34. package/{dist-esm → dist-es5}/Interfaces/Contracts/AvailabilityData.js +1 -1
  35. package/{dist-esm → dist-es5}/Interfaces/Contracts/ContextTagKeys.js +1 -1
  36. package/dist-es5/Interfaces/Contracts/DataPointType.js +8 -0
  37. package/dist-es5/Interfaces/Contracts/DependencyKind.js +8 -0
  38. package/dist-es5/Interfaces/Contracts/DependencySourceType.js +8 -0
  39. package/dist-es5/Interfaces/Contracts/IBase.js +8 -0
  40. package/dist-es5/Interfaces/Contracts/IData.js +8 -0
  41. package/dist-es5/Interfaces/Contracts/IDataPoint.js +6 -0
  42. package/dist-es5/Interfaces/Contracts/IDomain.js +8 -0
  43. package/{dist-esm → dist-es5}/Interfaces/Contracts/IEnvelope.js +1 -1
  44. package/dist-es5/Interfaces/Contracts/IEventData.js +8 -0
  45. package/dist-es5/Interfaces/Contracts/IExceptionData.js +8 -0
  46. package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +8 -0
  47. package/dist-es5/Interfaces/Contracts/IMessageData.js +8 -0
  48. package/dist-es5/Interfaces/Contracts/IMetricData.js +8 -0
  49. package/dist-es5/Interfaces/Contracts/IPageViewData.js +8 -0
  50. package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +8 -0
  51. package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +8 -0
  52. package/dist-es5/Interfaces/Contracts/IStackFrame.js +8 -0
  53. package/{dist-esm → dist-es5}/Interfaces/Contracts/RequestData.js +1 -1
  54. package/{dist-esm → dist-es5}/Interfaces/Contracts/SeverityLevel.js +1 -1
  55. package/dist-es5/Interfaces/IAppInsights.js +8 -0
  56. package/{dist-esm → dist-es5}/Interfaces/IConfig.js +1 -1
  57. package/dist-es5/Interfaces/ICorrelationConfig.js +8 -0
  58. package/dist-es5/Interfaces/IDependencyTelemetry.js +8 -0
  59. package/dist-es5/Interfaces/IEventTelemetry.js +6 -0
  60. package/dist-es5/Interfaces/IExceptionTelemetry.js +8 -0
  61. package/dist-es5/Interfaces/IMetricTelemetry.js +6 -0
  62. package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +6 -0
  63. package/dist-es5/Interfaces/IPageViewTelemetry.js +6 -0
  64. package/dist-es5/Interfaces/IPartC.js +8 -0
  65. package/dist-es5/Interfaces/IPropertiesPlugin.js +8 -0
  66. package/dist-es5/Interfaces/IRequestContext.js +6 -0
  67. package/dist-es5/Interfaces/ITelemetryContext.js +8 -0
  68. package/dist-es5/Interfaces/IThrottleMgr.js +6 -0
  69. package/dist-es5/Interfaces/ITraceTelemetry.js +8 -0
  70. package/{dist-esm → dist-es5}/Interfaces/PartAExtensions.js +1 -1
  71. package/dist-es5/Interfaces/Telemetry/IEnvelope.js +8 -0
  72. package/dist-es5/Interfaces/Telemetry/ISerializable.js +8 -0
  73. package/{dist-esm → dist-es5}/RequestResponseHeaders.js +1 -1
  74. package/{dist-esm → dist-es5}/StorageHelperFuncs.js +1 -1
  75. package/{dist-esm → dist-es5}/Telemetry/Common/Data.js +1 -1
  76. package/{dist-esm → dist-es5}/Telemetry/Common/DataPoint.js +1 -1
  77. package/{dist-esm → dist-es5}/Telemetry/Common/DataSanitizer.js +3 -2
  78. package/dist-es5/Telemetry/Common/DataSanitizer.js.map +1 -0
  79. package/{dist-esm → dist-es5}/Telemetry/Common/Envelope.js +1 -1
  80. package/{dist-esm → dist-es5}/Telemetry/Event.js +1 -1
  81. package/{dist-esm → dist-es5}/Telemetry/Exception.js +1 -1
  82. package/{dist-esm → dist-es5}/Telemetry/Metric.js +1 -1
  83. package/{dist-esm → dist-es5}/Telemetry/PageView.js +1 -1
  84. package/{dist-esm → dist-es5}/Telemetry/PageViewPerformance.js +1 -1
  85. package/{dist-esm → dist-es5}/Telemetry/RemoteDependencyData.js +1 -1
  86. package/{dist-esm → dist-es5}/Telemetry/Trace.js +1 -1
  87. package/{dist-esm → dist-es5}/TelemetryItemCreator.js +1 -1
  88. package/{dist-esm → dist-es5}/ThrottleMgr.js +1 -1
  89. package/{dist-esm → dist-es5}/UrlHelperFuncs.js +1 -1
  90. package/{dist-esm → dist-es5}/Util.js +1 -1
  91. package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
  92. package/{dist-esm → dist-es5}/applicationinsights-common.js +1 -1
  93. package/package.json +18 -17
  94. package/tsconfig.json +4 -3
  95. package/types/applicationinsights-common.d.ts +2561 -58
  96. package/{dist/applicationinsights-common.d.ts → types/applicationinsights-common.namespaced.d.ts} +1 -1
  97. package/browser/applicationinsights-common.integrity.json +0 -26
  98. package/browser/applicationinsights-common.js.map +0 -1
  99. package/browser/applicationinsights-common.min.js +0 -6
  100. package/browser/applicationinsights-common.min.js.map +0 -1
  101. package/dist/applicationinsights-common.api.json +0 -19540
  102. package/dist/applicationinsights-common.api.md +0 -1224
  103. package/dist/applicationinsights-common.js.map +0 -1
  104. package/dist/applicationinsights-common.min.js +0 -6
  105. package/dist/applicationinsights-common.min.js.map +0 -1
  106. package/dist/applicationinsights-common.rollup.d.ts +0 -2562
  107. package/dist-esm/Interfaces/ConnectionString.js +0 -6
  108. package/dist-esm/Interfaces/Context/IApplication.js +0 -8
  109. package/dist-esm/Interfaces/Context/IDevice.js +0 -8
  110. package/dist-esm/Interfaces/Context/IInternal.js +0 -8
  111. package/dist-esm/Interfaces/Context/ILocation.js +0 -8
  112. package/dist-esm/Interfaces/Context/IOperatingSystem.js +0 -8
  113. package/dist-esm/Interfaces/Context/ISample.js +0 -8
  114. package/dist-esm/Interfaces/Context/ISession.js +0 -8
  115. package/dist-esm/Interfaces/Context/ITelemetryTrace.js +0 -8
  116. package/dist-esm/Interfaces/Context/IUser.js +0 -8
  117. package/dist-esm/Interfaces/Context/IWeb.js +0 -8
  118. package/dist-esm/Interfaces/Contracts/DataPointType.js +0 -8
  119. package/dist-esm/Interfaces/Contracts/DependencyKind.js +0 -8
  120. package/dist-esm/Interfaces/Contracts/DependencySourceType.js +0 -8
  121. package/dist-esm/Interfaces/Contracts/IBase.js +0 -8
  122. package/dist-esm/Interfaces/Contracts/IData.js +0 -8
  123. package/dist-esm/Interfaces/Contracts/IDataPoint.js +0 -6
  124. package/dist-esm/Interfaces/Contracts/IDomain.js +0 -8
  125. package/dist-esm/Interfaces/Contracts/IEventData.js +0 -8
  126. package/dist-esm/Interfaces/Contracts/IExceptionData.js +0 -8
  127. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +0 -8
  128. package/dist-esm/Interfaces/Contracts/IMessageData.js +0 -8
  129. package/dist-esm/Interfaces/Contracts/IMetricData.js +0 -8
  130. package/dist-esm/Interfaces/Contracts/IPageViewData.js +0 -8
  131. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +0 -8
  132. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +0 -8
  133. package/dist-esm/Interfaces/Contracts/IStackFrame.js +0 -8
  134. package/dist-esm/Interfaces/IAppInsights.js +0 -8
  135. package/dist-esm/Interfaces/ICorrelationConfig.js +0 -8
  136. package/dist-esm/Interfaces/IDependencyTelemetry.js +0 -8
  137. package/dist-esm/Interfaces/IEventTelemetry.js +0 -6
  138. package/dist-esm/Interfaces/IExceptionTelemetry.js +0 -8
  139. package/dist-esm/Interfaces/IMetricTelemetry.js +0 -6
  140. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +0 -6
  141. package/dist-esm/Interfaces/IPageViewTelemetry.js +0 -6
  142. package/dist-esm/Interfaces/IPartC.js +0 -8
  143. package/dist-esm/Interfaces/IPropertiesPlugin.js +0 -8
  144. package/dist-esm/Interfaces/IRequestContext.js +0 -6
  145. package/dist-esm/Interfaces/ITelemetryContext.js +0 -8
  146. package/dist-esm/Interfaces/IThrottleMgr.js +0 -6
  147. package/dist-esm/Interfaces/ITraceTelemetry.js +0 -8
  148. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +0 -8
  149. package/dist-esm/Interfaces/Telemetry/ISerializable.js +0 -8
  150. package/dist-esm/Telemetry/Common/DataSanitizer.js.map +0 -1
  151. package/src/ConnectionStringParser.ts +0 -47
  152. package/src/Constants.ts +0 -18
  153. package/src/DomHelperFuncs.ts +0 -19
  154. package/src/Enums.ts +0 -65
  155. package/src/HelperFuncs.ts +0 -54
  156. package/src/Interfaces/ConnectionString.ts +0 -3
  157. package/src/Interfaces/Context/IApplication.ts +0 -14
  158. package/src/Interfaces/Context/IDevice.ts +0 -28
  159. package/src/Interfaces/Context/IInternal.ts +0 -29
  160. package/src/Interfaces/Context/ILocation.ts +0 -9
  161. package/src/Interfaces/Context/IOperatingSystem.ts +0 -7
  162. package/src/Interfaces/Context/ISample.ts +0 -13
  163. package/src/Interfaces/Context/ISession.ts +0 -22
  164. package/src/Interfaces/Context/ITelemetryTrace.ts +0 -33
  165. package/src/Interfaces/Context/IUser.ts +0 -50
  166. package/src/Interfaces/Context/IWeb.ts +0 -39
  167. package/src/Interfaces/Contracts/AvailabilityData.ts +0 -57
  168. package/src/Interfaces/Contracts/ContextTagKeys.ts +0 -299
  169. package/src/Interfaces/Contracts/DataPointType.ts +0 -10
  170. package/src/Interfaces/Contracts/DependencyKind.ts +0 -11
  171. package/src/Interfaces/Contracts/DependencySourceType.ts +0 -11
  172. package/src/Interfaces/Contracts/IBase.ts +0 -13
  173. package/src/Interfaces/Contracts/IData.ts +0 -19
  174. package/src/Interfaces/Contracts/IDataPoint.ts +0 -44
  175. package/src/Interfaces/Contracts/IDomain.ts +0 -8
  176. package/src/Interfaces/Contracts/IEnvelope.ts +0 -50
  177. package/src/Interfaces/Contracts/IEventData.ts +0 -30
  178. package/src/Interfaces/Contracts/IExceptionData.ts +0 -37
  179. package/src/Interfaces/Contracts/IExceptionDetails.ts +0 -45
  180. package/src/Interfaces/Contracts/IMessageData.ts +0 -36
  181. package/src/Interfaces/Contracts/IMetricData.ts +0 -31
  182. package/src/Interfaces/Contracts/IPageViewData.ts +0 -26
  183. package/src/Interfaces/Contracts/IPageViewPerfData.ts +0 -35
  184. package/src/Interfaces/Contracts/IRemoteDependencyData.ts +0 -65
  185. package/src/Interfaces/Contracts/IStackFrame.ts +0 -33
  186. package/src/Interfaces/Contracts/RequestData.ts +0 -50
  187. package/src/Interfaces/Contracts/SeverityLevel.ts +0 -28
  188. package/src/Interfaces/IAppInsights.ts +0 -31
  189. package/src/Interfaces/IConfig.ts +0 -396
  190. package/src/Interfaces/ICorrelationConfig.ts +0 -71
  191. package/src/Interfaces/IDependencyTelemetry.ts +0 -22
  192. package/src/Interfaces/IEventTelemetry.ts +0 -20
  193. package/src/Interfaces/IExceptionTelemetry.ts +0 -143
  194. package/src/Interfaces/IMetricTelemetry.ts +0 -56
  195. package/src/Interfaces/IPageViewPerformanceTelemetry.ts +0 -61
  196. package/src/Interfaces/IPageViewTelemetry.ts +0 -65
  197. package/src/Interfaces/IPartC.ts +0 -18
  198. package/src/Interfaces/IPropertiesPlugin.ts +0 -8
  199. package/src/Interfaces/IRequestContext.ts +0 -6
  200. package/src/Interfaces/ITelemetryContext.ts +0 -69
  201. package/src/Interfaces/IThrottleMgr.ts +0 -111
  202. package/src/Interfaces/ITraceTelemetry.ts +0 -28
  203. package/src/Interfaces/PartAExtensions.ts +0 -14
  204. package/src/Interfaces/Telemetry/IEnvelope.ts +0 -47
  205. package/src/Interfaces/Telemetry/ISerializable.ts +0 -11
  206. package/src/RequestResponseHeaders.ts +0 -96
  207. package/src/StorageHelperFuncs.ts +0 -223
  208. package/src/Telemetry/Common/Data.ts +0 -35
  209. package/src/Telemetry/Common/DataPoint.ts +0 -58
  210. package/src/Telemetry/Common/DataSanitizer.ts +0 -197
  211. package/src/Telemetry/Common/Envelope.ts +0 -81
  212. package/src/Telemetry/Event.ts +0 -52
  213. package/src/Telemetry/Exception.ts +0 -681
  214. package/src/Telemetry/Metric.ts +0 -61
  215. package/src/Telemetry/PageView.ts +0 -79
  216. package/src/Telemetry/PageViewPerformance.ts +0 -113
  217. package/src/Telemetry/RemoteDependencyData.ts +0 -122
  218. package/src/Telemetry/Trace.ts +0 -64
  219. package/src/TelemetryItemCreator.ts +0 -75
  220. package/src/ThrottleMgr.ts +0 -345
  221. package/src/UrlHelperFuncs.ts +0 -101
  222. package/src/Util.ts +0 -221
  223. package/src/__DynamicConstants.ts +0 -50
  224. package/src/applicationinsights-common.ts +0 -76
  225. package/types/ConnectionStringParser.d.ts +0 -5
  226. package/types/Constants.d.ts +0 -15
  227. package/types/DomHelperFuncs.d.ts +0 -1
  228. package/types/Enums.d.ts +0 -49
  229. package/types/HelperFuncs.d.ts +0 -8
  230. package/types/Interfaces/ConnectionString.d.ts +0 -4
  231. package/types/Interfaces/Context/IApplication.d.ts +0 -10
  232. package/types/Interfaces/Context/IDevice.d.ts +0 -22
  233. package/types/Interfaces/Context/IInternal.d.ts +0 -23
  234. package/types/Interfaces/Context/ILocation.d.ts +0 -6
  235. package/types/Interfaces/Context/IOperatingSystem.d.ts +0 -3
  236. package/types/Interfaces/Context/ISample.d.ts +0 -8
  237. package/types/Interfaces/Context/ISession.d.ts +0 -17
  238. package/types/Interfaces/Context/ITelemetryTrace.d.ts +0 -25
  239. package/types/Interfaces/Context/IUser.d.ts +0 -39
  240. package/types/Interfaces/Context/IWeb.d.ts +0 -30
  241. package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
  242. package/types/Interfaces/Contracts/ContextTagKeys.d.ts +0 -175
  243. package/types/Interfaces/Contracts/DataPointType.d.ts +0 -7
  244. package/types/Interfaces/Contracts/DependencyKind.d.ts +0 -8
  245. package/types/Interfaces/Contracts/DependencySourceType.d.ts +0 -8
  246. package/types/Interfaces/Contracts/IBase.d.ts +0 -9
  247. package/types/Interfaces/Contracts/IData.d.ts +0 -14
  248. package/types/Interfaces/Contracts/IDataPoint.d.ts +0 -34
  249. package/types/Interfaces/Contracts/IDomain.d.ts +0 -5
  250. package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
  251. package/types/Interfaces/Contracts/IEventData.d.ts +0 -22
  252. package/types/Interfaces/Contracts/IExceptionData.d.ts +0 -28
  253. package/types/Interfaces/Contracts/IExceptionDetails.d.ts +0 -34
  254. package/types/Interfaces/Contracts/IMessageData.d.ts +0 -27
  255. package/types/Interfaces/Contracts/IMetricData.d.ts +0 -23
  256. package/types/Interfaces/Contracts/IPageViewData.d.ts +0 -18
  257. package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +0 -26
  258. package/types/Interfaces/Contracts/IRemoteDependencyData.d.ts +0 -50
  259. package/types/Interfaces/Contracts/IStackFrame.d.ts +0 -25
  260. package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
  261. package/types/Interfaces/Contracts/SeverityLevel.d.ts +0 -15
  262. package/types/Interfaces/IAppInsights.d.ts +0 -37
  263. package/types/Interfaces/IConfig.d.ts +0 -323
  264. package/types/Interfaces/ICorrelationConfig.d.ts +0 -59
  265. package/types/Interfaces/IDependencyTelemetry.d.ts +0 -17
  266. package/types/Interfaces/IEventTelemetry.d.ts +0 -15
  267. package/types/Interfaces/IExceptionTelemetry.d.ts +0 -123
  268. package/types/Interfaces/IMetricTelemetry.d.ts +0 -46
  269. package/types/Interfaces/IPageViewPerformanceTelemetry.d.ts +0 -55
  270. package/types/Interfaces/IPageViewTelemetry.d.ts +0 -52
  271. package/types/Interfaces/IPartC.d.ts +0 -18
  272. package/types/Interfaces/IPropertiesPlugin.d.ts +0 -4
  273. package/types/Interfaces/IRequestContext.d.ts +0 -6
  274. package/types/Interfaces/ITelemetryContext.d.ts +0 -55
  275. package/types/Interfaces/IThrottleMgr.d.ts +0 -96
  276. package/types/Interfaces/ITraceTelemetry.d.ts +0 -22
  277. package/types/Interfaces/PartAExtensions.d.ts +0 -12
  278. package/types/Interfaces/Telemetry/IEnvelope.d.ts +0 -37
  279. package/types/Interfaces/Telemetry/ISerializable.d.ts +0 -8
  280. package/types/RequestResponseHeaders.d.ts +0 -68
  281. package/types/StorageHelperFuncs.d.ts +0 -23
  282. package/types/Telemetry/Common/Data.d.ts +0 -24
  283. package/types/Telemetry/Common/DataPoint.d.ts +0 -46
  284. package/types/Telemetry/Common/DataSanitizer.d.ts +0 -42
  285. package/types/Telemetry/Common/Envelope.d.ts +0 -45
  286. package/types/Telemetry/Event.d.ts +0 -34
  287. package/types/Telemetry/Exception.d.ts +0 -150
  288. package/types/Telemetry/Metric.d.ts +0 -36
  289. package/types/Telemetry/PageView.d.ts +0 -53
  290. package/types/Telemetry/PageViewPerformance.d.ts +0 -78
  291. package/types/Telemetry/RemoteDependencyData.d.ts +0 -79
  292. package/types/Telemetry/Trace.d.ts +0 -41
  293. package/types/TelemetryItemCreator.d.ts +0 -27
  294. package/types/ThrottleMgr.d.ts +0 -13
  295. package/types/UrlHelperFuncs.d.ts +0 -6
  296. package/types/Util.d.ts +0 -36
  297. package/types/__DynamicConstants.d.ts +0 -38
  298. package/types/tsdoc-metadata.json +0 -11
  299. /package/{dist-esm → dist-es5}/ConnectionStringParser.js.map +0 -0
  300. /package/{dist-esm → dist-es5}/Constants.js.map +0 -0
  301. /package/{dist-esm → dist-es5}/DomHelperFuncs.js.map +0 -0
  302. /package/{dist-esm → dist-es5}/Enums.js.map +0 -0
  303. /package/{dist-esm → dist-es5}/HelperFuncs.js.map +0 -0
  304. /package/{dist-esm → dist-es5}/Interfaces/ConnectionString.js.map +0 -0
  305. /package/{dist-esm → dist-es5}/Interfaces/Context/IApplication.js.map +0 -0
  306. /package/{dist-esm → dist-es5}/Interfaces/Context/IDevice.js.map +0 -0
  307. /package/{dist-esm → dist-es5}/Interfaces/Context/IInternal.js.map +0 -0
  308. /package/{dist-esm → dist-es5}/Interfaces/Context/ILocation.js.map +0 -0
  309. /package/{dist-esm → dist-es5}/Interfaces/Context/IOperatingSystem.js.map +0 -0
  310. /package/{dist-esm → dist-es5}/Interfaces/Context/ISample.js.map +0 -0
  311. /package/{dist-esm → dist-es5}/Interfaces/Context/ISession.js.map +0 -0
  312. /package/{dist-esm → dist-es5}/Interfaces/Context/ITelemetryTrace.js.map +0 -0
  313. /package/{dist-esm → dist-es5}/Interfaces/Context/IUser.js.map +0 -0
  314. /package/{dist-esm → dist-es5}/Interfaces/Context/IWeb.js.map +0 -0
  315. /package/{dist-esm → dist-es5}/Interfaces/Contracts/AvailabilityData.js.map +0 -0
  316. /package/{dist-esm → dist-es5}/Interfaces/Contracts/ContextTagKeys.js.map +0 -0
  317. /package/{dist-esm → dist-es5}/Interfaces/Contracts/DataPointType.js.map +0 -0
  318. /package/{dist-esm → dist-es5}/Interfaces/Contracts/DependencyKind.js.map +0 -0
  319. /package/{dist-esm → dist-es5}/Interfaces/Contracts/DependencySourceType.js.map +0 -0
  320. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IBase.js.map +0 -0
  321. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IData.js.map +0 -0
  322. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IDataPoint.js.map +0 -0
  323. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IDomain.js.map +0 -0
  324. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IEnvelope.js.map +0 -0
  325. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IEventData.js.map +0 -0
  326. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IExceptionData.js.map +0 -0
  327. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IExceptionDetails.js.map +0 -0
  328. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IMessageData.js.map +0 -0
  329. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IMetricData.js.map +0 -0
  330. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IPageViewData.js.map +0 -0
  331. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IPageViewPerfData.js.map +0 -0
  332. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IRemoteDependencyData.js.map +0 -0
  333. /package/{dist-esm → dist-es5}/Interfaces/Contracts/IStackFrame.js.map +0 -0
  334. /package/{dist-esm → dist-es5}/Interfaces/Contracts/RequestData.js.map +0 -0
  335. /package/{dist-esm → dist-es5}/Interfaces/Contracts/SeverityLevel.js.map +0 -0
  336. /package/{dist-esm → dist-es5}/Interfaces/IAppInsights.js.map +0 -0
  337. /package/{dist-esm → dist-es5}/Interfaces/IConfig.js.map +0 -0
  338. /package/{dist-esm → dist-es5}/Interfaces/ICorrelationConfig.js.map +0 -0
  339. /package/{dist-esm → dist-es5}/Interfaces/IDependencyTelemetry.js.map +0 -0
  340. /package/{dist-esm → dist-es5}/Interfaces/IEventTelemetry.js.map +0 -0
  341. /package/{dist-esm → dist-es5}/Interfaces/IExceptionTelemetry.js.map +0 -0
  342. /package/{dist-esm → dist-es5}/Interfaces/IMetricTelemetry.js.map +0 -0
  343. /package/{dist-esm → dist-es5}/Interfaces/IPageViewPerformanceTelemetry.js.map +0 -0
  344. /package/{dist-esm → dist-es5}/Interfaces/IPageViewTelemetry.js.map +0 -0
  345. /package/{dist-esm → dist-es5}/Interfaces/IPartC.js.map +0 -0
  346. /package/{dist-esm → dist-es5}/Interfaces/IPropertiesPlugin.js.map +0 -0
  347. /package/{dist-esm → dist-es5}/Interfaces/IRequestContext.js.map +0 -0
  348. /package/{dist-esm → dist-es5}/Interfaces/ITelemetryContext.js.map +0 -0
  349. /package/{dist-esm → dist-es5}/Interfaces/IThrottleMgr.js.map +0 -0
  350. /package/{dist-esm → dist-es5}/Interfaces/ITraceTelemetry.js.map +0 -0
  351. /package/{dist-esm → dist-es5}/Interfaces/PartAExtensions.js.map +0 -0
  352. /package/{dist-esm → dist-es5}/Interfaces/Telemetry/IEnvelope.js.map +0 -0
  353. /package/{dist-esm → dist-es5}/Interfaces/Telemetry/ISerializable.js.map +0 -0
  354. /package/{dist-esm → dist-es5}/RequestResponseHeaders.js.map +0 -0
  355. /package/{dist-esm → dist-es5}/StorageHelperFuncs.js.map +0 -0
  356. /package/{dist-esm → dist-es5}/Telemetry/Common/Data.js.map +0 -0
  357. /package/{dist-esm → dist-es5}/Telemetry/Common/DataPoint.js.map +0 -0
  358. /package/{dist-esm → dist-es5}/Telemetry/Common/Envelope.js.map +0 -0
  359. /package/{dist-esm → dist-es5}/Telemetry/Event.js.map +0 -0
  360. /package/{dist-esm → dist-es5}/Telemetry/Exception.js.map +0 -0
  361. /package/{dist-esm → dist-es5}/Telemetry/Metric.js.map +0 -0
  362. /package/{dist-esm → dist-es5}/Telemetry/PageView.js.map +0 -0
  363. /package/{dist-esm → dist-es5}/Telemetry/PageViewPerformance.js.map +0 -0
  364. /package/{dist-esm → dist-es5}/Telemetry/RemoteDependencyData.js.map +0 -0
  365. /package/{dist-esm → dist-es5}/Telemetry/Trace.js.map +0 -0
  366. /package/{dist-esm → dist-es5}/TelemetryItemCreator.js.map +0 -0
  367. /package/{dist-esm → dist-es5}/ThrottleMgr.js.map +0 -0
  368. /package/{dist-esm → dist-es5}/UrlHelperFuncs.js.map +0 -0
  369. /package/{dist-esm → dist-es5}/Util.js.map +0 -0
  370. /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
  371. /package/{dist-esm → dist-es5}/applicationinsights-common.js.map +0 -0
@@ -1,6 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
- export {};
6
- //# sourceMappingURL=ConnectionString.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IApplication.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IDevice.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IInternal.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=ILocation.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IOperatingSystem.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=ISample.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=ISession.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=ITelemetryTrace.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IUser.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IWeb.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=DataPointType.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=DependencyKind.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=DependencySourceType.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IBase.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IData.js.map
@@ -1,6 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
- export {};
6
- //# sourceMappingURL=IDataPoint.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IDomain.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IEventData.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IExceptionData.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IExceptionDetails.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IMessageData.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IMetricData.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IPageViewData.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IPageViewPerfData.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IRemoteDependencyData.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IStackFrame.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IAppInsights.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=ICorrelationConfig.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IDependencyTelemetry.js.map
@@ -1,6 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
- export {};
6
- //# sourceMappingURL=IEventTelemetry.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IExceptionTelemetry.js.map
@@ -1,6 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
- export {};
6
- //# sourceMappingURL=IMetricTelemetry.js.map
@@ -1,6 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
- export {};
6
- //# sourceMappingURL=IPageViewPerformanceTelemetry.js.map
@@ -1,6 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
- export {};
6
- //# sourceMappingURL=IPageViewTelemetry.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IPartC.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IPropertiesPlugin.js.map
@@ -1,6 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
- export {};
6
- //# sourceMappingURL=IRequestContext.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=ITelemetryContext.js.map
@@ -1,6 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
- export {};
6
- //# sourceMappingURL=IThrottleMgr.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=ITraceTelemetry.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=IEnvelope.js.map
@@ -1,8 +0,0 @@
1
- /*
2
- * Application Insights JavaScript SDK - Common, 3.0.0-beta.2303-11
3
- * Copyright (c) Microsoft and contributors. All rights reserved.
4
- */
5
-
6
-
7
- export {};
8
- //# sourceMappingURL=ISerializable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSanitizer.js.map","sources":["DataSanitizer.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { _throwInternal, getJSON, hasJSON, isObject, objForEachKey, strTrim } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_LENGTH, _DYN_STRINGIFY, _DYN_SUBSTRING, _DYN_TO_STRING } from \"../../__DynamicConstants\";\r\nexport function dataSanitizeKeyAndAddUniqueness(logger, key, map) {\r\n var origLength = key[_DYN_LENGTH /* @min:%2elength */];\r\n var field = dataSanitizeKey(logger, key);\r\n // validation truncated the length. We need to add uniqueness\r\n if (field[_DYN_LENGTH /* @min:%2elength */] !== origLength) {\r\n var i = 0;\r\n var uniqueField = field;\r\n while (map[uniqueField] !== undefined) {\r\n i++;\r\n uniqueField = field[_DYN_SUBSTRING /* @min:%2esubstring */](0, 150 /* DataSanitizerValues.MAX_NAME_LENGTH */ - 3) + dsPadNumber(i);\r\n }\r\n field = uniqueField;\r\n }\r\n return field;\r\n}\r\nexport function dataSanitizeKey(logger, name) {\r\n var nameTrunc;\r\n if (name) {\r\n // Remove any leading or trailing whitespace\r\n name = strTrim(name[_DYN_TO_STRING /* @min:%2etoString */]());\r\n // truncate the string to 150 chars\r\n if (name[_DYN_LENGTH /* @min:%2elength */] > 150 /* DataSanitizerValues.MAX_NAME_LENGTH */) {\r\n nameTrunc = name[_DYN_SUBSTRING /* @min:%2esubstring */](0, 150 /* DataSanitizerValues.MAX_NAME_LENGTH */);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 57 /* _eInternalMessageId.NameTooLong */, \"name is too long. It has been truncated to \" + 150 /* DataSanitizerValues.MAX_NAME_LENGTH */ + \" characters.\", { name: name }, true);\r\n }\r\n }\r\n return nameTrunc || name;\r\n}\r\nexport function dataSanitizeString(logger, value, maxLength) {\r\n if (maxLength === void 0) { maxLength = 1024 /* DataSanitizerValues.MAX_STRING_LENGTH */; }\r\n var valueTrunc;\r\n if (value) {\r\n maxLength = maxLength ? maxLength : 1024 /* DataSanitizerValues.MAX_STRING_LENGTH */; // in case default parameters dont work\r\n value = strTrim(value[_DYN_TO_STRING /* @min:%2etoString */]());\r\n if (value[_DYN_LENGTH /* @min:%2elength */] > maxLength) {\r\n valueTrunc = value[_DYN_SUBSTRING /* @min:%2esubstring */](0, maxLength);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 61 /* _eInternalMessageId.StringValueTooLong */, \"string value is too long. It has been truncated to \" + maxLength + \" characters.\", { value: value }, true);\r\n }\r\n }\r\n return valueTrunc || value;\r\n}\r\nexport function dataSanitizeUrl(logger, url) {\r\n return dataSanitizeInput(logger, url, 2048 /* DataSanitizerValues.MAX_URL_LENGTH */, 66 /* _eInternalMessageId.UrlTooLong */);\r\n}\r\nexport function dataSanitizeMessage(logger, message) {\r\n var messageTrunc;\r\n if (message) {\r\n if (message[_DYN_LENGTH /* @min:%2elength */] > 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */) {\r\n messageTrunc = message[_DYN_SUBSTRING /* @min:%2esubstring */](0, 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 56 /* _eInternalMessageId.MessageTruncated */, \"message is too long, it has been truncated to \" + 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */ + \" characters.\", { message: message }, true);\r\n }\r\n }\r\n return messageTrunc || message;\r\n}\r\nexport function dataSanitizeException(logger, exception) {\r\n var exceptionTrunc;\r\n if (exception) {\r\n // Make surte its a string\r\n var value = \"\" + exception;\r\n if (value[_DYN_LENGTH /* @min:%2elength */] > 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */) {\r\n exceptionTrunc = value[_DYN_SUBSTRING /* @min:%2esubstring */](0, 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 52 /* _eInternalMessageId.ExceptionTruncated */, \"exception is too long, it has been truncated to \" + 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */ + \" characters.\", { exception: exception }, true);\r\n }\r\n }\r\n return exceptionTrunc || exception;\r\n}\r\nexport function dataSanitizeProperties(logger, properties) {\r\n if (properties) {\r\n var tempProps_1 = {};\r\n objForEachKey(properties, function (prop, value) {\r\n if (isObject(value) && hasJSON()) {\r\n // Stringify any part C properties\r\n try {\r\n value = getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](value);\r\n }\r\n catch (e) {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 49 /* _eInternalMessageId.CannotSerializeObjectNonSerializable */, \"custom property is not valid\", { exception: e }, true);\r\n }\r\n }\r\n value = dataSanitizeString(logger, value, 8192 /* DataSanitizerValues.MAX_PROPERTY_LENGTH */);\r\n prop = dataSanitizeKeyAndAddUniqueness(logger, prop, tempProps_1);\r\n tempProps_1[prop] = value;\r\n });\r\n properties = tempProps_1;\r\n }\r\n return properties;\r\n}\r\nexport function dataSanitizeMeasurements(logger, measurements) {\r\n if (measurements) {\r\n var tempMeasurements_1 = {};\r\n objForEachKey(measurements, function (measure, value) {\r\n measure = dataSanitizeKeyAndAddUniqueness(logger, measure, tempMeasurements_1);\r\n tempMeasurements_1[measure] = value;\r\n });\r\n measurements = tempMeasurements_1;\r\n }\r\n return measurements;\r\n}\r\nexport function dataSanitizeId(logger, id) {\r\n return id ? dataSanitizeInput(logger, id, 128 /* DataSanitizerValues.MAX_ID_LENGTH */, 69 /* _eInternalMessageId.IdTooLong */)[_DYN_TO_STRING /* @min:%2etoString */]() : id;\r\n}\r\nexport function dataSanitizeInput(logger, input, maxLength, _msgId) {\r\n var inputTrunc;\r\n if (input) {\r\n input = strTrim(input[_DYN_TO_STRING /* @min:%2etoString */]());\r\n if (input[_DYN_LENGTH /* @min:%2elength */] > maxLength) {\r\n inputTrunc = input[_DYN_SUBSTRING /* @min:%2esubstring */](0, maxLength);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, _msgId, \"input is too long, it has been truncated to \" + maxLength + \" characters.\", { data: input }, true);\r\n }\r\n }\r\n return inputTrunc || input;\r\n}\r\nexport function dsPadNumber(num) {\r\n var s = \"00\" + num;\r\n return s.substr(s[_DYN_LENGTH /* @min:%2elength */] - 3);\r\n}\r\n//# sourceMappingURL=DataSanitizer.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;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,47 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- import { arrReduce, objKeys } from "@microsoft/applicationinsights-core-js";
5
- import { DEFAULT_BREEZE_ENDPOINT } from "./Constants";
6
- import { ConnectionString, ConnectionStringKey } from "./Interfaces/ConnectionString";
7
-
8
- const _FIELDS_SEPARATOR = ";";
9
- const _FIELD_KEY_VALUE_SEPARATOR = "=";
10
-
11
- export function parseConnectionString(connectionString?: string): ConnectionString {
12
- if (!connectionString) {
13
- return {};
14
- }
15
-
16
- const kvPairs = connectionString.split(_FIELDS_SEPARATOR);
17
-
18
- const result: ConnectionString = arrReduce(kvPairs, (fields: ConnectionString, kv: string) => {
19
- const kvParts = kv.split(_FIELD_KEY_VALUE_SEPARATOR);
20
-
21
- if (kvParts.length === 2) { // only save fields with valid formats
22
- const key = kvParts[0].toLowerCase() as ConnectionStringKey;
23
- const value = kvParts[1];
24
- fields[key] = value as string;
25
- }
26
- return fields;
27
- }, {});
28
-
29
- if (objKeys(result).length > 0) {
30
- // this is a valid connection string, so parse the results
31
-
32
- if (result.endpointsuffix) {
33
- // use endpoint suffix where overrides are not provided
34
- const locationPrefix = result.location ? result.location + "." : "";
35
- result.ingestionendpoint = result.ingestionendpoint || ("https://" + locationPrefix + "dc." + result.endpointsuffix);
36
- }
37
-
38
- // apply the default endpoints
39
- result.ingestionendpoint = result.ingestionendpoint || DEFAULT_BREEZE_ENDPOINT;
40
- }
41
-
42
- return result;
43
- }
44
-
45
- export const ConnectionStringParser = {
46
- parse: parseConnectionString
47
- };
package/src/Constants.ts DELETED
@@ -1,18 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- /**
5
- * This is an internal property used to cause internal (reporting) requests to be ignored from reporting
6
- * additional telemetry, to handle polyfil implementations ALL urls used with a disabled request will
7
- * also be ignored for future requests even when this property is not provided.
8
- * Tagging as Ignore as this is an internal value and is not expected to be used outside of the SDK
9
- * @ignore
10
- */
11
- export const DisabledPropertyName: string = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
12
- export const SampleRate = "sampleRate";
13
- export const ProcessLegacy = "ProcessLegacy";
14
- export const HttpMethod = "http.method";
15
- export const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
16
- export const DEFAULT_BREEZE_PATH = "/v2/track";
17
- export const strNotSpecified = "not_specified";
18
- export const strIkey = "iKey";
@@ -1,19 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
- import { isFunction, getDocument } from "@microsoft/applicationinsights-core-js";
4
-
5
- export function createDomEvent(eventName: string): Event {
6
- let event: Event = null;
7
-
8
- if (isFunction(Event)) { // Use Event constructor when available
9
- event = new Event(eventName);
10
- } else { // Event has no constructor in IE
11
- let doc = getDocument();
12
- if (doc && doc.createEvent) {
13
- event = doc.createEvent("Event");
14
- event.initEvent(eventName, true, true);
15
- }
16
- }
17
-
18
- return event;
19
- }
package/src/Enums.ts DELETED
@@ -1,65 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- import { createEnumStyle } from "@microsoft/applicationinsights-core-js";
5
-
6
- /**
7
- * Type of storage to differentiate between local storage and session storage
8
- */
9
- export const enum eStorageType {
10
- LocalStorage,
11
- SessionStorage
12
- }
13
-
14
- export const StorageType = createEnumStyle<typeof eStorageType>({
15
- LocalStorage: eStorageType.LocalStorage,
16
- SessionStorage: eStorageType.SessionStorage
17
- });
18
- export type StorageType = eStorageType | typeof StorageType;
19
-
20
- /**
21
- * Enum is used in aiDataContract to describe how fields are serialized.
22
- * For instance: (Fieldtype.Required | FieldType.Array) will mark the field as required and indicate it's an array
23
- */
24
- export const enum FieldType { Default = 0, Required = 1, Array = 2, Hidden = 4 }
25
-
26
- export const enum eDistributedTracingModes {
27
- /**
28
- * (Default) Send Application Insights correlation headers
29
- */
30
-
31
- AI = 0,
32
-
33
- /**
34
- * Send both W3C Trace Context headers and back-compatibility Application Insights headers
35
- */
36
- AI_AND_W3C,
37
-
38
- /**
39
- * Send W3C Trace Context headers
40
- */
41
- W3C
42
- }
43
-
44
- export const DistributedTracingModes = createEnumStyle<typeof eDistributedTracingModes>({
45
- AI: eDistributedTracingModes.AI,
46
- AI_AND_W3C: eDistributedTracingModes.AI_AND_W3C,
47
- W3C: eDistributedTracingModes.W3C
48
- });
49
- export type DistributedTracingModes = number | eDistributedTracingModes;
50
-
51
- export const enum IThrottleMsgKey {
52
- /**
53
- * Default Message key for non pre-defined message
54
- */
55
- default = 0,
56
- /**
57
- * Message key for ikey Deprecation
58
- */
59
- ikeyDeprecate = 1,
60
- /**
61
- * Message key for cdn Deprecation
62
- */
63
- cdnDeprecate = 2
64
- }
65
-
@@ -1,54 +0,0 @@
1
- // Copyright (c) Microsoft Corporation. All rights reserved.
2
- // Licensed under the MIT License.
3
-
4
- import { IPlugin, arrForEach, isString } from "@microsoft/applicationinsights-core-js";
5
-
6
- const strEmpty = "";
7
-
8
- export function stringToBoolOrDefault(str: any, defaultValue = false): boolean {
9
- if (str === undefined || str === null) {
10
- return defaultValue;
11
- }
12
-
13
- return str.toString().toLowerCase() === "true";
14
- }
15
-
16
- /**
17
- * Convert ms to c# time span format
18
- */
19
- export function msToTimeSpan(totalms: number): string {
20
- if (isNaN(totalms) || totalms < 0) {
21
- totalms = 0;
22
- }
23
-
24
- totalms = Math.round(totalms);
25
-
26
- let ms = strEmpty + totalms % 1000;
27
- let sec = strEmpty + Math.floor(totalms / 1000) % 60;
28
- let min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
29
- let hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
30
- const days = Math.floor(totalms / (1000 * 60 * 60 * 24));
31
-
32
- ms = ms.length === 1 ? "00" + ms : ms.length === 2 ? "0" + ms : ms;
33
- sec = sec.length < 2 ? "0" + sec : sec;
34
- min = min.length < 2 ? "0" + min : min;
35
- hour = hour.length < 2 ? "0" + hour : hour;
36
-
37
- return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
38
- }
39
-
40
- export function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null {
41
- let extension: IPlugin = null;
42
- arrForEach(extensions, (value) => {
43
- if (value.identifier === identifier) {
44
- extension = value;
45
- return -1;
46
- }
47
- });
48
-
49
- return extension;
50
- }
51
-
52
- export function isCrossOriginError(message: string|Event, url: string, lineNumber: number, columnNumber: number, error: Error | Event): boolean {
53
- return !error && isString(message) && (message === "Script error." || message === "Script error");
54
- }
@@ -1,3 +0,0 @@
1
- export type ConnectionStringKey = "authorization" | "instrumentationkey" | "ingestionendpoint" | "location" | "endpointsuffix";
2
-
3
- export type ConnectionString = { [key in ConnectionStringKey]?: string };