@microsoft/1ds-core-js 3.2.4 → 3.2.5

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 (56) hide show
  1. package/CODE_OF_CONDUCT.md +9 -0
  2. package/CONTRIBUTING.md +14 -0
  3. package/LICENSE.TXT +3 -3
  4. package/NOTICE +17 -0
  5. package/PRIVACY +3 -0
  6. package/README.md +15 -1
  7. package/SECURITY.md +41 -0
  8. package/SUPPORT.md +14 -0
  9. package/bundle/{ms.core-3.2.4.gbl.js → ms.core-3.2.5.gbl.js} +10 -16
  10. package/bundle/ms.core-3.2.5.gbl.js.map +1 -0
  11. package/bundle/ms.core-3.2.5.gbl.min.js +7 -0
  12. package/bundle/ms.core-3.2.5.gbl.min.js.map +1 -0
  13. package/bundle/ms.core-3.2.5.integrity.json +46 -0
  14. package/bundle/{ms.core-3.2.4.js → ms.core-3.2.5.js} +10 -16
  15. package/bundle/ms.core-3.2.5.js.map +1 -0
  16. package/bundle/ms.core-3.2.5.min.js +7 -0
  17. package/bundle/ms.core-3.2.5.min.js.map +1 -0
  18. package/bundle/ms.core.gbl.js +9 -15
  19. package/bundle/ms.core.gbl.js.map +1 -1
  20. package/bundle/ms.core.gbl.min.js +2 -2
  21. package/bundle/ms.core.gbl.min.js.map +1 -1
  22. package/bundle/ms.core.integrity.json +17 -17
  23. package/bundle/ms.core.js +9 -15
  24. package/bundle/ms.core.js.map +1 -1
  25. package/bundle/ms.core.min.js +2 -2
  26. package/bundle/ms.core.min.js.map +1 -1
  27. package/dist/ms.core.js +5 -5
  28. package/dist/ms.core.js.map +1 -1
  29. package/dist/ms.core.min.js +2 -2
  30. package/dist/ms.core.min.js.map +1 -1
  31. package/dist-esm/src/AppInsightsCore.js +3 -3
  32. package/dist-esm/src/AppInsightsCore.js.map +1 -1
  33. package/dist-esm/src/BaseCore.js +2 -2
  34. package/dist-esm/src/BaseCore.js.map +1 -1
  35. package/dist-esm/src/DataModels.d.ts +5 -0
  36. package/dist-esm/src/DataModels.js +1 -1
  37. package/dist-esm/src/ESPromise.js +1 -1
  38. package/dist-esm/src/ESPromiseScheduler.js +1 -1
  39. package/dist-esm/src/Enums.js +1 -1
  40. package/dist-esm/src/Index.js +1 -1
  41. package/dist-esm/src/InternalConstants.js +1 -1
  42. package/dist-esm/src/Utils.d.ts +1 -1
  43. package/dist-esm/src/Utils.js +2 -2
  44. package/dist-esm/src/Utils.js.map +1 -1
  45. package/dist-esm/src/ValueSanitizer.js +1 -1
  46. package/package.json +2 -2
  47. package/src/AppInsightsCore.ts +2 -2
  48. package/src/BaseCore.ts +1 -1
  49. package/src/DataModels.ts +6 -0
  50. package/bundle/ms.core-3.2.4.gbl.js.map +0 -1
  51. package/bundle/ms.core-3.2.4.gbl.min.js +0 -7
  52. package/bundle/ms.core-3.2.4.gbl.min.js.map +0 -1
  53. package/bundle/ms.core-3.2.4.integrity.json +0 -46
  54. package/bundle/ms.core-3.2.4.js.map +0 -1
  55. package/bundle/ms.core-3.2.4.min.js +0 -7
  56. package/bundle/ms.core-3.2.4.min.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ # Microsoft Open Source Code of Conduct
2
+
3
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4
+
5
+ Resources:
6
+
7
+ - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8
+ - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9
+ - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
@@ -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.TXT CHANGED
@@ -1,6 +1,6 @@
1
- Copyright (c) Microsoft Corporation.
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) Microsoft Corporation
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
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
@@ -16,7 +16,7 @@ ms.reviewedBy: ramthi
16
16
 
17
17
  ## npm
18
18
 
19
- Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-core-js/3.2.4/versions).
19
+ Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-core-js/overview/3.2.5).
20
20
 
21
21
  ## Basic Usage
22
22
 
@@ -130,6 +130,20 @@ var coreConfig: IExtendedConfiguration = {
130
130
  };
131
131
  ```
132
132
 
133
+ ## Contributing
134
+
135
+ Read our [contributing guide](./CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Application Insights.
136
+
137
+ ## Data Collection
138
+
139
+ 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.
140
+
141
+ 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.
142
+
143
+ ## Trademarks
144
+
145
+ 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.
146
+
133
147
  ## License
134
148
 
135
149
  [MIT](./LICENSE.TXT)
package/SECURITY.md ADDED
@@ -0,0 +1,41 @@
1
+ <!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->
2
+
3
+ ## Security
4
+
5
+ Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6
+
7
+ If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8
+
9
+ ## Reporting Security Issues
10
+
11
+ **Please do not report security vulnerabilities through public GitHub issues.**
12
+
13
+ Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14
+
15
+ If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16
+
17
+ You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18
+
19
+ Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20
+
21
+ * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22
+ * Full paths of source file(s) related to the manifestation of the issue
23
+ * The location of the affected source code (tag/branch/commit or direct URL)
24
+ * Any special configuration required to reproduce the issue
25
+ * Step-by-step instructions to reproduce the issue
26
+ * Proof-of-concept or exploit code (if possible)
27
+ * Impact of the issue, including how an attacker might exploit the issue
28
+
29
+ This information will help us triage your report more quickly.
30
+
31
+ If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32
+
33
+ ## Preferred Languages
34
+
35
+ We prefer all communications to be in English.
36
+
37
+ ## Policy
38
+
39
+ Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40
+
41
+ <!-- END MICROSOFT SECURITY.MD BLOCK -->
package/SUPPORT.md ADDED
@@ -0,0 +1,14 @@
1
+ # Support
2
+
3
+ ## How to file issues and get help
4
+
5
+ This project uses GitHub Issues to track bugs and feature requests. Please search the existing
6
+ issues before filing new issues to avoid duplicates. For new issues, file your bug or
7
+ feature request as a new Issue.
8
+
9
+ For help and questions about using this project, please create a Support request issue on
10
+ https://github.com/microsoft/ApplicationInsights-JS/issues.
11
+
12
+ ## Microsoft Support Policy
13
+
14
+ Support for this **PROJECT or PRODUCT** is limited to the resources listed above.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK Core, 3.2.4
2
+ * 1DS JS SDK Core, 3.2.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -137,10 +137,10 @@
137
137
  var _DYN_USER_AGENT = "userAgent";
138
138
  var _DYN_SPLIT = "split";
139
139
  var _DYN_SET_ENABLED = "setEnabled";
140
- var _DYN_REPLACE = "replace";
141
140
  var _DYN_SUBSTR = "substr";
142
141
  var _DYN_NODE_TYPE = "nodeType";
143
142
  var _DYN_APPLY = "apply";
143
+ var _DYN_REPLACE = "replace";
144
144
  var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
145
145
  var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
146
146
  var _DYN_TO_LOWER_CASE = "toLowerCase";
@@ -1629,7 +1629,7 @@
1629
1629
  }
1630
1630
 
1631
1631
  var _objDefineProperty = ObjDefineProperty;
1632
- var version = '2.8.5';
1632
+ var version = '2.8.6';
1633
1633
  var instanceName = "." + newId(6);
1634
1634
  var _dataUid = 0;
1635
1635
  function _createAccessor(target, prop, value) {
@@ -2258,13 +2258,8 @@
2258
2258
  }
2259
2259
 
2260
2260
  function newGuid() {
2261
- function randomHexDigit() {
2262
- return randomValue(15);
2263
- }
2264
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[_DYN_REPLACE ](GuidRegex, function (c) {
2265
- var r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
2266
- return v.toString(16);
2267
- });
2261
+ var uuid = generateW3CId();
2262
+ 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);
2268
2263
  }
2269
2264
  function perfNow() {
2270
2265
  var perf = getPerformance();
@@ -2291,7 +2286,6 @@
2291
2286
  var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];
2292
2287
  return oct[_DYN_SUBSTR ](0, 8) + oct[_DYN_SUBSTR ](9, 4) + "4" + oct[_DYN_SUBSTR ](13, 3) + clockSequenceHi + oct[_DYN_SUBSTR ](16, 3) + oct[_DYN_SUBSTR ](19, 12);
2293
2288
  }
2294
- var GuidRegex = /[xy]/g;
2295
2289
  var EventHelper = {
2296
2290
  Attach: attachEvent,
2297
2291
  AttachEvent: attachEvent,
@@ -4099,7 +4093,7 @@
4099
4093
  var STR_PROPERTIES = "properties";
4100
4094
 
4101
4095
  var _a;
4102
- var Version = '3.2.4';
4096
+ var Version = '3.2.5';
4103
4097
  var FullVersionString = "1DS-Web-JS-" + Version;
4104
4098
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
4105
4099
  var strWithCredentials = "withCredentials";
@@ -4488,7 +4482,7 @@
4488
4482
  }
4489
4483
  }
4490
4484
  _self.getWParam = function () {
4491
- return typeof document !== "undefined" ? 0 : -1;
4485
+ return (typeof document !== "undefined" || !!config.enableWParam) ? 0 : -1;
4492
4486
  };
4493
4487
  if (extensions) {
4494
4488
  arrForEach(extensions, function (ext) {
@@ -4529,7 +4523,7 @@
4529
4523
  var baseData = telemetryItem.baseData = telemetryItem.baseData || {};
4530
4524
  baseData[STR_PROPERTIES] = baseData[STR_PROPERTIES] || {};
4531
4525
  var itemProperties = baseData[STR_PROPERTIES];
4532
- itemProperties[STR_VERSION] = _self.pluginVersionString || itemProperties[STR_VERSION] || STR_EMPTY;
4526
+ itemProperties[STR_VERSION] = itemProperties[STR_VERSION] || _self.pluginVersionString || STR_EMPTY;
4533
4527
  }
4534
4528
  _base.track(telemetryItem);
4535
4529
  }, function () { return ({ item: item }); }, !(item.sync));
@@ -4552,7 +4546,7 @@
4552
4546
  config.endpointUrl = STR_DEFAULT_ENDPOINT_URL;
4553
4547
  }
4554
4548
  _self.getWParam = function () {
4555
- return isDocumentObjectAvailable ? 0 : -1;
4549
+ return (isDocumentObjectAvailable || !!config.enableWParam) ? 0 : -1;
4556
4550
  };
4557
4551
  try {
4558
4552
  _base.initialize(config, extensions, logger, notificationManager);
@@ -5318,4 +5312,4 @@
5318
5312
  (function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
5319
5313
 
5320
5314
  })(this.oneDS = this.oneDS || {});
5321
- //# sourceMappingURL=ms.core-3.2.4.gbl.js.map
5315
+ //# sourceMappingURL=ms.core-3.2.5.gbl.js.map