@microsoft/applicationinsights-core-js 2.8.6-nightly.2207-25 → 2.8.6

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 (75) hide show
  1. package/CONTRIBUTING.md +14 -0
  2. package/LICENSE +17 -17
  3. package/NOTICE +17 -0
  4. package/PRIVACY +3 -0
  5. package/README.md +19 -8
  6. package/browser/applicationinsights-core-js.integrity.json +9 -9
  7. package/browser/applicationinsights-core-js.js +5 -11
  8. package/browser/applicationinsights-core-js.js.map +1 -1
  9. package/browser/applicationinsights-core-js.min.js +2 -2
  10. package/browser/applicationinsights-core-js.min.js.map +1 -1
  11. package/dist/applicationinsights-core-js.api.json +1 -1
  12. package/dist/applicationinsights-core-js.d.ts +1 -1
  13. package/dist/applicationinsights-core-js.js +5 -11
  14. package/dist/applicationinsights-core-js.js.map +1 -1
  15. package/dist/applicationinsights-core-js.min.js +2 -2
  16. package/dist/applicationinsights-core-js.min.js.map +1 -1
  17. package/dist/applicationinsights-core-js.rollup.d.ts +1 -1
  18. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
  19. package/dist-esm/JavaScriptSDK/BaseCore.js +1 -1
  20. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  21. package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
  22. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  23. package/dist-esm/JavaScriptSDK/CoreUtils.js +4 -9
  24. package/dist-esm/JavaScriptSDK/CoreUtils.js.map +1 -1
  25. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  26. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  27. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  28. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
  29. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  30. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  31. package/dist-esm/JavaScriptSDK/HelperFuncs.js +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/W3cTraceParent.js +1 -1
  42. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  43. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  44. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  45. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  46. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  47. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  48. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  49. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  50. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  69. package/dist-esm/__DynamicConstants.js +3 -3
  70. package/dist-esm/__DynamicConstants.js.map +1 -1
  71. package/dist-esm/applicationinsights-core-js.js +1 -1
  72. package/package.json +70 -73
  73. package/src/JavaScriptSDK/CoreUtils.ts +3 -7
  74. package/types/__DynamicConstants.d.ts +1 -1
  75. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,14 @@
1
+ # Contributing
2
+
3
+ This project welcomes contributions and suggestions. Most contributions require you to
4
+ agree to a Contributor License Agreement (CLA) declaring that you have the right to,
5
+ and actually do, grant us the rights to use your contribution. For details, visit
6
+ https://cla.microsoft.com.
7
+
8
+ When you submit a pull request, a CLA-bot will automatically determine whether you need
9
+ to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
10
+ instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
11
+
12
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
13
+ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
14
+ or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
1
+ The MIT License (MIT)
2
2
 
3
- Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Copyright (c) Microsoft Corporation
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
11
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,17 @@
1
+ NOTICES AND INFORMATION
2
+ Do Not Translate or Localize
3
+
4
+ This software incorporates material from third parties. Microsoft makes certain
5
+ open source code available at https://3rdpartysource.microsoft.com, or you may
6
+ send a check or money order for US $5.00, including the product name, the open
7
+ source component name, and version number, to:
8
+
9
+ Source Code Compliance Team
10
+ Microsoft Corporation
11
+ One Microsoft Way
12
+ Redmond, WA 98052
13
+ USA
14
+
15
+ Notwithstanding any other terms, you may reverse engineer this software to the
16
+ extent required to debug changes to any libraries licensed under the GNU Lesser
17
+ General Public License.
package/PRIVACY ADDED
@@ -0,0 +1,3 @@
1
+ # Data Collection
2
+
3
+ The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
package/README.md CHANGED
@@ -13,17 +13,28 @@ Core SDK layer for next version of application insights javascript SDK.
13
13
 
14
14
  ## Contributing
15
15
 
16
- This project welcomes contributions and suggestions. Most contributions require you to agree to a
17
- Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
18
- the rights to use your contribution. For details, visit https://cla.microsoft.com.
16
+ This project welcomes contributions and suggestions. Most contributions require you to
17
+ agree to a Contributor License Agreement (CLA) declaring that you have the right to,
18
+ and actually do, grant us the rights to use your contribution. For details, visit
19
+ https://cla.microsoft.com.
19
20
 
20
- When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
21
- a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
22
- provided by the bot. You will only need to do this once across all repos using our CLA.
21
+ When you submit a pull request, a CLA-bot will automatically determine whether you need
22
+ to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
23
+ instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
23
24
 
24
25
  This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
25
- For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
26
- contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
26
+ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
27
+ or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
28
+
29
+ ## Data Collection
30
+
31
+ As this SDK is designed to enable applications to perform data collection which is sent to the Microsoft collection endpoints the following is required to identify our privacy statement.
32
+
33
+ The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
34
+
35
+ ## Trademarks
36
+
37
+ This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.
27
38
 
28
39
  ## License
29
40
 
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "applicationinsights-core-js",
3
- "version": "2.8.6-nightly.2207-25",
3
+ "version": "2.8.6",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-core-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-QHAsfx3eJTQVAZfrLii5Z2AQbEc23gQFgeX96SICzJA= sha384-gqNH2v9ecVC9cKDv5Hs/B/870vY6Qc5kGq6T+hiEVP4eT/v+Pp8BDYP+3PQuUGls sha512-olRW45dPb6+Jv0mwTJGDjaXxXE2nmgVJaNv6xP2PaTISalFVcOUsBkDSWeeMQXtU3OCpi9OrcYMgkzlH38pcDw==",
8
+ "integrity": "sha256-jyAR+2yfwFtmbCwyYhvm2TWmrz8B6H/h4yDBgjsj95U= sha384-pmYB4+VUvZCQR1wDr9Z2p5LsiXLFNtVLqw5wHv3r126HN1qkiqx6RdAM/eNFD58Z sha512-Gq54iWu4BFgfpx4q2NPj1zqEmjamf35VYP9ElZ4ZrUjRdayYxGfmybF5Q89osipTK7BQTifaHRzQ2gVdZVY6qw==",
9
9
  "hashes": {
10
- "sha256": "QHAsfx3eJTQVAZfrLii5Z2AQbEc23gQFgeX96SICzJA=",
11
- "sha384": "gqNH2v9ecVC9cKDv5Hs/B/870vY6Qc5kGq6T+hiEVP4eT/v+Pp8BDYP+3PQuUGls",
12
- "sha512": "olRW45dPb6+Jv0mwTJGDjaXxXE2nmgVJaNv6xP2PaTISalFVcOUsBkDSWeeMQXtU3OCpi9OrcYMgkzlH38pcDw=="
10
+ "sha256": "jyAR+2yfwFtmbCwyYhvm2TWmrz8B6H/h4yDBgjsj95U=",
11
+ "sha384": "pmYB4+VUvZCQR1wDr9Z2p5LsiXLFNtVLqw5wHv3r126HN1qkiqx6RdAM/eNFD58Z",
12
+ "sha512": "Gq54iWu4BFgfpx4q2NPj1zqEmjamf35VYP9ElZ4ZrUjRdayYxGfmybF5Q89osipTK7BQTifaHRzQ2gVdZVY6qw=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-core-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-s8OHnHF5SfpAZ7SCq+qLwSiEWacFTd5gK1LT4NWQkyA= sha384-F+mOaIfd8SFIL1RCIv4yV+bLSliVbGNEfHw6RRKfQai/m2LYNseaadTjpewx93v7 sha512-dX5qbJUMYoWDxvha3mIR/ODHaG+PvdRQspiVwdqjJTup4owWDx0pPX719mt8Bot7hMdQLarV8x8PqGibyjW3AA==",
18
+ "integrity": "sha256-db/lKu/yC323CQrzr+soGRALIQOTCtMBr+9vCNS5cOA= sha384-8WhhyV8djcLczNHAdVZiWsHe3UIHgxC1ORAApF5xu5BD8Z8D1F5xJ65qOa6C/Y28 sha512-4RYcSc+5bs4byyPyAlD1ZNTb4llTy4Us5SKOrf4YX87Rq3LpdEGbepPm3/fRQvruQZnOHcyBxeR+E6J7CSn1pw==",
19
19
  "hashes": {
20
- "sha256": "s8OHnHF5SfpAZ7SCq+qLwSiEWacFTd5gK1LT4NWQkyA=",
21
- "sha384": "F+mOaIfd8SFIL1RCIv4yV+bLSliVbGNEfHw6RRKfQai/m2LYNseaadTjpewx93v7",
22
- "sha512": "dX5qbJUMYoWDxvha3mIR/ODHaG+PvdRQspiVwdqjJTup4owWDx0pPX719mt8Bot7hMdQLarV8x8PqGibyjW3AA=="
20
+ "sha256": "db/lKu/yC323CQrzr+soGRALIQOTCtMBr+9vCNS5cOA=",
21
+ "sha384": "8WhhyV8djcLczNHAdVZiWsHe3UIHgxC1ORAApF5xu5BD8Z8D1F5xJ65qOa6C/Y28",
22
+ "sha512": "4RYcSc+5bs4byyPyAlD1ZNTb4llTy4Us5SKOrf4YX87Rq3LpdEGbepPm3/fRQvruQZnOHcyBxeR+E6J7CSn1pw=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Core, 2.8.6-nightly.2207-25
2
+ * Application Insights JavaScript SDK - Core, 2.8.6
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -131,10 +131,10 @@
131
131
  var _DYN_USER_AGENT = "userAgent";
132
132
  var _DYN_SPLIT = "split";
133
133
  var _DYN_SET_ENABLED = "setEnabled";
134
- var _DYN_REPLACE = "replace";
135
134
  var _DYN_SUBSTR = "substr";
136
135
  var _DYN_NODE_TYPE = "nodeType";
137
136
  var _DYN_APPLY = "apply";
137
+ var _DYN_REPLACE = "replace";
138
138
  var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
139
139
  var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
140
140
  var _DYN_TO_LOWER_CASE = "toLowerCase";
@@ -1672,7 +1672,7 @@
1672
1672
  }
1673
1673
 
1674
1674
  var _objDefineProperty = ObjDefineProperty;
1675
- var version = "2.8.6-nightly.2207-25";
1675
+ var version = '2.8.6';
1676
1676
  var instanceName = "." + newId(6);
1677
1677
  var _dataUid = 0;
1678
1678
  function _createAccessor(target, prop, value) {
@@ -2304,13 +2304,8 @@
2304
2304
  var _canUseCookies;
2305
2305
  var Undefined = strShimUndefined;
2306
2306
  function newGuid() {
2307
- function randomHexDigit() {
2308
- return randomValue(15);
2309
- }
2310
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[_DYN_REPLACE ](GuidRegex, function (c) {
2311
- var r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
2312
- return v.toString(16);
2313
- });
2307
+ var uuid = generateW3CId();
2308
+ return uuid[_DYN_SUBSTRING ](0, 8) + "-" + uuid[_DYN_SUBSTRING ](8, 12) + "-" + uuid[_DYN_SUBSTRING ](12, 16) + "-" + uuid[_DYN_SUBSTRING ](16, 20) + "-" + uuid[_DYN_SUBSTRING ](20);
2314
2309
  }
2315
2310
  function perfNow() {
2316
2311
  var perf = getPerformance();
@@ -2373,7 +2368,6 @@
2373
2368
  mwcRandom32: mwcRandom32,
2374
2369
  generateW3CId: generateW3CId
2375
2370
  };
2376
- var GuidRegex = /[xy]/g;
2377
2371
  var EventHelper = {
2378
2372
  Attach: attachEvent,
2379
2373
  AttachEvent: attachEvent,