@microsoft/applicationinsights-cfgsync-js 0.0.3-nightly3.2309-09 → 0.0.3-nightly3.2309-11

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 (42) hide show
  1. package/README.md +53 -0
  2. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.cjs.js → ai.cfgsync.0.0.3-nightly3.2309-11.cjs.js} +3 -3
  3. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.cjs.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.cjs.js.map} +1 -1
  4. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.cjs.min.js → ai.cfgsync.0.0.3-nightly3.2309-11.cjs.min.js} +3 -3
  5. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.cjs.min.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.cjs.min.js.map} +1 -1
  6. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.gbl.js → ai.cfgsync.0.0.3-nightly3.2309-11.gbl.js} +5 -5
  7. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.gbl.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.gbl.js.map} +1 -1
  8. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.gbl.min.js → ai.cfgsync.0.0.3-nightly3.2309-11.gbl.min.js} +3 -3
  9. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.gbl.min.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.gbl.min.js.map} +1 -1
  10. package/browser/es5/ai.cfgsync.0.0.3-nightly3.2309-11.integrity.json +66 -0
  11. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.js → ai.cfgsync.0.0.3-nightly3.2309-11.js} +5 -5
  12. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.js.map} +1 -1
  13. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.min.js → ai.cfgsync.0.0.3-nightly3.2309-11.min.js} +3 -3
  14. package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.min.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.min.js.map} +1 -1
  15. package/browser/es5/ai.cfgsync.0.cjs.js +2 -2
  16. package/browser/es5/ai.cfgsync.0.cjs.js.map +1 -1
  17. package/browser/es5/ai.cfgsync.0.cjs.min.js +2 -2
  18. package/browser/es5/ai.cfgsync.0.cjs.min.js.map +1 -1
  19. package/browser/es5/ai.cfgsync.0.gbl.js +4 -4
  20. package/browser/es5/ai.cfgsync.0.gbl.js.map +1 -1
  21. package/browser/es5/ai.cfgsync.0.gbl.min.js +2 -2
  22. package/browser/es5/ai.cfgsync.0.gbl.min.js.map +1 -1
  23. package/browser/es5/ai.cfgsync.0.integrity.json +25 -25
  24. package/browser/es5/ai.cfgsync.0.js +4 -4
  25. package/browser/es5/ai.cfgsync.0.js.map +1 -1
  26. package/browser/es5/ai.cfgsync.0.min.js +2 -2
  27. package/browser/es5/ai.cfgsync.0.min.js.map +1 -1
  28. package/dist/es5/applicationinsights-cfgsync-js.js +2 -2
  29. package/dist/es5/applicationinsights-cfgsync-js.js.map +1 -1
  30. package/dist/es5/applicationinsights-cfgsync-js.min.js +2 -2
  31. package/dist/es5/applicationinsights-cfgsync-js.min.js.map +1 -1
  32. package/dist-es5/CfgSyncHelperFuncs.js +1 -1
  33. package/dist-es5/CfgSyncPlugin.js +1 -1
  34. package/dist-es5/Interfaces/ICfgSyncCdnConfig.js +1 -1
  35. package/dist-es5/Interfaces/ICfgSyncConfig.js +1 -1
  36. package/dist-es5/Interfaces/ICfgSyncPlugin.js +1 -1
  37. package/dist-es5/__DynamicConstants.js +1 -1
  38. package/dist-es5/applicationinsights-cfgsync-js.js +1 -1
  39. package/package.json +4 -4
  40. package/types/applicationinsights-cfgsync-js.d.ts +19 -16
  41. package/types/applicationinsights-cfgsync-js.namespaced.d.ts +19 -16
  42. package/browser/es5/ai.cfgsync.0.0.3-nightly3.2309-09.integrity.json +0 -66
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+
2
+ # Microsoft Application Insights JavaScript SDK - CfgSync Plugin
3
+
4
+ [![GitHub Workflow Status (main)](https://img.shields.io/github/actions/workflow/status/microsoft/ApplicationInsights-JS/ci.yml?branch=main)](https://github.com/microsoft/ApplicationInsights-JS/tree/main)
5
+ [![Build Status](https://dev.azure.com/mseng/AppInsights/_apis/build/status/AppInsights%20-%20DevTools/1DS%20JavaScript%20SDK%20web%20SKU%20vNext?branchName=main)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=8184&branchName=main)
6
+ [![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-cfgsync-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-cfgsync-js)
7
+
8
+ Application Insights CfgSync Plugin enables configuration change communication among mutiple instances.
9
+ Refer to [our GitHub page](https://github.com/microsoft/ApplicationInsights-JS) for more details on getting started.
10
+
11
+ ## Configuration
12
+
13
+ | Name | Type | Default | Description |
14
+ |------|------|---------|-------------|
15
+ | syncMode | ICfgSyncMode<br>[Optional]| Broadcast | Sync mode of current instance. If set to `None`, current instance will NOT receive or broadcast config changes. If set to `Broadcast`, current instance will ONLY broadcast changes. If set to `Receive`, instance will ONLY receive config changes but NOT broadcast config changes. |
16
+ | customEvtName | string<br>[Optional] | ai_cfgsync | Event name for sending or listening to configuration change details. |
17
+ | cfgUrl | string<br>[Optional] | null | CDN endpoint for fetching configuration. If cfgUrl is defined, instance will NOT listen to core configuration changes. Details defined in the CDN endpoint should follow `ICfgSyncCdnConfig` interface. |
18
+ | blkCdnCfg | boolean<br>[Optional] | false | Determines if fetching the CDN endpoint should be blocked or not. |
19
+ | onCfgChangeReceive | function<br>[Optional] | null | Overrides callback function to handle event details when changes are received via event listener. |
20
+ | overrideSyncFn | function<br>[Optional] | null | Overrides sync() function to broadcast changes. |
21
+ | overrideFetchFn | function<br>[Optional] | null | Overrides fetch function to get config from cfgUrl when cfgUrl is defined. |
22
+ | nonOverrideConfigs | NonOverrideCfg<br>[Optional] | {instrumentationKey: true, connectionString: true, endpointUrl: true } | When current instance is set with syncMode: `Receive`, config fields under nonOverrideConfigs will NOT be changed by any confif details sent out from other instances. |
23
+ | scheduleFetchTimeout | number<br>[Optional] | 30 mins | Identifies the time interval (in milliseconds) for fetching config details from cfgUrl when cfgUrl is defined. If set to 0, the fetch operation will only be called once during initialization. |
24
+
25
+
26
+ ## Contributing
27
+
28
+ This project welcomes contributions and suggestions. Most contributions require you to
29
+ agree to a Contributor License Agreement (CLA) declaring that you have the right to,
30
+ and actually do, grant us the rights to use your contribution. For details, visit
31
+ <https://cla.microsoft.com>.
32
+
33
+ When you submit a pull request, a CLA-bot will automatically determine whether you need
34
+ to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
35
+ instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
36
+
37
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
38
+ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
39
+ or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
40
+
41
+ ## Data Collection
42
+
43
+ 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.
44
+
45
+ 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.
46
+
47
+ ## Trademarks
48
+
49
+ 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.
50
+
51
+ ## License
52
+
53
+ [MIT](LICENSE)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 0.0.3-nightly3.2309-09
2
+ * Application Insights JavaScript SDK - Properties Plugin, 0.0.3-nightly3.2309-11
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -1503,7 +1503,7 @@ function newId(maxLength) {
1503
1503
  return result;
1504
1504
  }
1505
1505
 
1506
- var version = '3.0.4-nightly3.2309-09';
1506
+ var version = '3.0.4-nightly3.2309-11';
1507
1507
  var instanceName = "." + newId(6);
1508
1508
  var _dataUid = 0;
1509
1509
  function _canAcceptData(target) {
@@ -3675,4 +3675,4 @@ var CfgSyncPlugin = /** @class */ (function (_super) {
3675
3675
  }(BaseTelemetryPlugin));
3676
3676
 
3677
3677
  exports.CfgSyncPlugin = CfgSyncPlugin;
3678
- //# sourceMappingURL=ai.cfgsync.0.0.3-nightly3.2309-09.cjs.js.map
3678
+ //# sourceMappingURL=ai.cfgsync.0.0.3-nightly3.2309-11.cjs.js.map