@microsoft/applicationinsights-teechannel-js 3.0.0-beta.2304-07

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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +17 -0
  3. package/PRIVACY +3 -0
  4. package/README.md +81 -0
  5. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.cjs.js +2918 -0
  6. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.cjs.js.map +1 -0
  7. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.cjs.min.js +6 -0
  8. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.cjs.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.gbl.js +2922 -0
  10. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.gbl.js.map +1 -0
  11. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.gbl.min.js +6 -0
  12. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.gbl.min.js.map +1 -0
  13. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.integrity.json +66 -0
  14. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.js +2924 -0
  15. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.js.map +1 -0
  16. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.min.js +6 -0
  17. package/browser/es5/applicationinsights-teechannel-js.3.0.0-beta.2304-07.min.js.map +1 -0
  18. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js +2918 -0
  19. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js.map +1 -0
  20. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js +6 -0
  21. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js.map +1 -0
  22. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js +2922 -0
  23. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js.map +1 -0
  24. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js +6 -0
  25. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js.map +1 -0
  26. package/browser/es5/applicationinsights-teechannel-js.3.js +2924 -0
  27. package/browser/es5/applicationinsights-teechannel-js.3.js.map +1 -0
  28. package/browser/es5/applicationinsights-teechannel-js.3.min.js +6 -0
  29. package/browser/es5/applicationinsights-teechannel-js.3.min.js.map +1 -0
  30. package/dist/es5/applicationinsights-teechannel-js.js +2924 -0
  31. package/dist/es5/applicationinsights-teechannel-js.js.map +1 -0
  32. package/dist/es5/applicationinsights-teechannel-js.min.js +6 -0
  33. package/dist/es5/applicationinsights-teechannel-js.min.js.map +1 -0
  34. package/dist-es5/ChannelController.js +170 -0
  35. package/dist-es5/ChannelController.js.map +1 -0
  36. package/dist-es5/Interfaces/ITeeChannelConfig.js +8 -0
  37. package/dist-es5/Interfaces/ITeeChannelConfig.js.map +1 -0
  38. package/dist-es5/TeeChannel.js +137 -0
  39. package/dist-es5/TeeChannel.js.map +1 -0
  40. package/dist-es5/__DynamicConstants.js +23 -0
  41. package/dist-es5/__DynamicConstants.js.map +1 -0
  42. package/dist-es5/applicationinsights-teechannel-js.js +8 -0
  43. package/dist-es5/applicationinsights-teechannel-js.js.map +1 -0
  44. package/package.json +63 -0
  45. package/tsconfig.json +28 -0
  46. package/types/applicationinsights-teechannel-js.d.ts +100 -0
  47. package/types/applicationinsights-teechannel-js.namespaced.d.ts +96 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Microsoft Corporation
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:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
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.
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 ADDED
@@ -0,0 +1,81 @@
1
+ # Microsoft Application Insights JavaScript SDK - Tee Channel
2
+
3
+ This Channel is used to support multiple channel queues as defined by the `channels` configuration, this channel will execute
4
+ all of the channels as defined in the `channels` array from index 1 onwards (`channels[1..X]`). The main ApplicationInsights
5
+ Core will process the channels as defined in the `channels[0]`.
6
+
7
+ [![Build Status](https://travis-ci.org/microsoft/applicationinsights-js.svg?branch=master)](https://travis-ci.org/microsoft/applicationinsights-js)
8
+ [![Build status](https://dev.azure.com/mseng/AppInsights/_apis/build/status/1DS%20JavaScript%20SDK%20-%20Channel)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=7614)
9
+ [![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-channel-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-channel-js)
10
+
11
+ ## Getting Started
12
+
13
+ ## NPM Setup (ignore if using Snippet Setup)
14
+
15
+ Install npm package:
16
+
17
+ ```bash
18
+ npm install --save @microsoft/applicationinsights-teechannel-js @microsoft/applicationinsights-web
19
+ ```
20
+
21
+ ```js
22
+
23
+ import { ApplicationInsights } from '@microsoft/applicationinsights-web';
24
+ import { TeeChannel } from '@microsoft/applicationinsights-teechannel-js';
25
+
26
+ const teeChannel = new TeeChannel();
27
+
28
+ // TeeChannel configuration
29
+ const teeChannelConfig = {
30
+ teeChannels: [[]],
31
+ ignoreCoreChannels: false
32
+ };
33
+
34
+ // Application Insights Configuration passing the tee Channel via extensions
35
+ const configObj = {
36
+ instrumentationKey: "YOUR INSTRUMENTATION KEY",
37
+ extensions: [teeChannel],
38
+ extensionConfig: {
39
+ [teeChannel.identifier]: teeChannelConfig
40
+ },
41
+ };
42
+
43
+ const appInsights = new ApplicationInsights({ config: configObj });
44
+ appInsights.loadAppInsights();
45
+ ```
46
+
47
+ ## Configuration
48
+
49
+ | Name | Type | Default | Description
50
+ | --------------------- | -----------------------------------| -----------| ----------------------------------------------------------------------------------------------------------------
51
+ | teeChannels | `IChannelControls`[][] | undefined | Defines the Channels specific to the TeeChannel
52
+ | ignoreCoreChannels | boolean | false |By default the TeeChannel will use the core configuration `channels` (starting at index 1 `channels[1.xxx]`) as separate tee'd channel chains for processing events. This configuration allow you to ignore any additional core channels and only use the `teeChannels`
53
+
54
+ ## Contributing
55
+
56
+ This project welcomes contributions and suggestions. Most contributions require you to
57
+ agree to a Contributor License Agreement (CLA) declaring that you have the right to,
58
+ and actually do, grant us the rights to use your contribution. For details, visit
59
+ https://cla.microsoft.com.
60
+
61
+ When you submit a pull request, a CLA-bot will automatically determine whether you need
62
+ to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
63
+ instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
64
+
65
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
66
+ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
67
+ or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
68
+
69
+ ## Data Collection
70
+
71
+ 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.
72
+
73
+ 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.
74
+
75
+ ## Trademarks
76
+
77
+ 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.
78
+
79
+ ## License
80
+
81
+ [MIT](LICENSE)