@microsoft/applicationinsights-properties-js 2.7.3-nightly.2112-07 → 2.7.3

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 (30) hide show
  1. package/browser/applicationinsights-properties-js.integrity.json +9 -9
  2. package/browser/applicationinsights-properties-js.js +41 -31
  3. package/browser/applicationinsights-properties-js.js.map +1 -1
  4. package/browser/applicationinsights-properties-js.min.js +2 -2
  5. package/browser/applicationinsights-properties-js.min.js.map +1 -1
  6. package/dist/applicationinsights-properties-js.api.json +1 -1
  7. package/dist/applicationinsights-properties-js.d.ts +1 -1
  8. package/dist/applicationinsights-properties-js.js +41 -31
  9. package/dist/applicationinsights-properties-js.js.map +1 -1
  10. package/dist/applicationinsights-properties-js.min.js +2 -2
  11. package/dist/applicationinsights-properties-js.min.js.map +1 -1
  12. package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
  13. package/dist-esm/Context/Application.js +1 -1
  14. package/dist-esm/Context/Device.js +1 -1
  15. package/dist-esm/Context/Internal.js +2 -2
  16. package/dist-esm/Context/Internal.js.map +1 -1
  17. package/dist-esm/Context/Location.js +1 -1
  18. package/dist-esm/Context/Session.js +1 -1
  19. package/dist-esm/Context/TelemetryTrace.js +1 -1
  20. package/dist-esm/Context/User.js +1 -1
  21. package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
  22. package/dist-esm/Interfaces/ITelemetryConfig.js +1 -1
  23. package/dist-esm/PropertiesPlugin.js +1 -1
  24. package/dist-esm/TelemetryContext.js +1 -1
  25. package/dist-esm/applicationinsights-properties-js.js +1 -1
  26. package/package.json +58 -61
  27. package/src/Context/Internal.ts +1 -1
  28. package/src/Context/Session.ts +2 -2
  29. package/src/Context/User.ts +1 -1
  30. package/types/tsdoc-metadata.json +1 -1
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "applicationinsights-properties-js",
3
- "version": "2.7.3-nightly.2112-07",
3
+ "version": "2.7.3",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-properties-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-5oqGVU3oBdZf0iRTNtYEIi3T6aGLQ6RPi5DXeOb6tiU= sha384-PBH1BjViOkVvhz17KoV3TTA79UYPfwLd1UBbLVQZHpzVYG01/jc54xxpWbHk8lcG sha512-mmmrTEXvcJrLTJz1l5p3Gp436Ib+UvFtWGZCi59pX9k0QULagGSRvs0r2LAjNHY+fJbnRhybIQAYlhbGJM2EOQ==",
8
+ "integrity": "sha256-xYPjQi+tDGmaGzckXRmZGvbmgxeKhBS5b6p5Az2ETU8= sha384-2JfOgHGRAGNE89+wHCxahgPOroLSrKEX8ZQYAxsNcqBvJd6ZPMMO2+z4+3GymVNO sha512-2urpGcMgE7wIu0QaJp1XwH7KGmjBAGf9xaIphujk5nK9GQpJgxYmCOkKQR1IyVf3Ub9c/GMWs1oUjrqlVowEEw==",
9
9
  "hashes": {
10
- "sha256": "5oqGVU3oBdZf0iRTNtYEIi3T6aGLQ6RPi5DXeOb6tiU=",
11
- "sha384": "PBH1BjViOkVvhz17KoV3TTA79UYPfwLd1UBbLVQZHpzVYG01/jc54xxpWbHk8lcG",
12
- "sha512": "mmmrTEXvcJrLTJz1l5p3Gp436Ib+UvFtWGZCi59pX9k0QULagGSRvs0r2LAjNHY+fJbnRhybIQAYlhbGJM2EOQ=="
10
+ "sha256": "xYPjQi+tDGmaGzckXRmZGvbmgxeKhBS5b6p5Az2ETU8=",
11
+ "sha384": "2JfOgHGRAGNE89+wHCxahgPOroLSrKEX8ZQYAxsNcqBvJd6ZPMMO2+z4+3GymVNO",
12
+ "sha512": "2urpGcMgE7wIu0QaJp1XwH7KGmjBAGf9xaIphujk5nK9GQpJgxYmCOkKQR1IyVf3Ub9c/GMWs1oUjrqlVowEEw=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-properties-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-2I+dRi7KcHCI9aPH+NnU15VsQFqxhHpTGd4iAsJqIYQ= sha384-LCuZPsklH7+eps0EjoprV+Mv6RnQzFrwowZPnyi2RS6GHXLQiPjdqyIjBLGRHCYj sha512-vrcQWl5aEgMQvSIaGTfvyuhlw1SEAsvcfMhB7akl/TFymWJft2nYCFngl75MWMhcVUKSoe2PcrtPVJr+FxghXg==",
18
+ "integrity": "sha256-3mz4IFP9Bl69gZf1HxDkddXrmuZU5dYFH1Iy8Z3sYk8= sha384-ioAvcPjatVNak6pH2uIAJ+mvAN/BlAwrDnPVN1EgBt78QMqxJoCCZaZfz0LYe4Dn sha512-HrJ0Hp3kLNXgM1hn14ba8l3s2gsZm4ekMx6HsVWC7Oh6IjpFsI5t2JGmQVcjfz+9qNhUp3rlAX1o5160s8qnBQ==",
19
19
  "hashes": {
20
- "sha256": "2I+dRi7KcHCI9aPH+NnU15VsQFqxhHpTGd4iAsJqIYQ=",
21
- "sha384": "LCuZPsklH7+eps0EjoprV+Mv6RnQzFrwowZPnyi2RS6GHXLQiPjdqyIjBLGRHCYj",
22
- "sha512": "vrcQWl5aEgMQvSIaGTfvyuhlw1SEAsvcfMhB7akl/TFymWJft2nYCFngl75MWMhcVUKSoe2PcrtPVJr+FxghXg=="
20
+ "sha256": "3mz4IFP9Bl69gZf1HxDkddXrmuZU5dYFH1Iy8Z3sYk8=",
21
+ "sha384": "ioAvcPjatVNak6pH2uIAJ+mvAN/BlAwrDnPVN1EgBt78QMqxJoCCZaZfz0LYe4Dn",
22
+ "sha512": "HrJ0Hp3kLNXgM1hn14ba8l3s2gsZm4ekMx6HsVWC7Oh6IjpFsI5t2JGmQVcjfz+9qNhUp3rlAX1o5160s8qnBQ=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Properties Plugin, 2.7.3-nightly.2112-07
2
+ * Application Insights JavaScript SDK - Properties Plugin, 2.7.3
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -19,20 +19,24 @@
19
19
  var ObjDefineProperty = ObjClass["defineProperty"];
20
20
  var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
21
21
 
22
- function getGlobal() {
23
- if (typeof globalThis !== strShimUndefined && globalThis) {
24
- return globalThis;
25
- }
26
- if (typeof self !== strShimUndefined && self) {
27
- return self;
28
- }
29
- if (typeof window !== strShimUndefined && window) {
30
- return window;
31
- }
32
- if (typeof global !== strShimUndefined && global) {
33
- return global;
22
+ var _cachedGlobal = null;
23
+ function getGlobal(useCached) {
24
+ if (useCached === void 0) { useCached = true; }
25
+ if (!_cachedGlobal || !useCached) {
26
+ if (typeof globalThis !== strShimUndefined && globalThis) {
27
+ _cachedGlobal = globalThis;
28
+ }
29
+ if (typeof self !== strShimUndefined && self) {
30
+ _cachedGlobal = self;
31
+ }
32
+ if (typeof window !== strShimUndefined && window) {
33
+ _cachedGlobal = window;
34
+ }
35
+ if (typeof global !== strShimUndefined && global) {
36
+ _cachedGlobal = global;
37
+ }
34
38
  }
35
- return null;
39
+ return _cachedGlobal;
36
40
  }
37
41
  function throwTypeError(message) {
38
42
  throw new TypeError(message);
@@ -408,6 +412,7 @@
408
412
  InMemoryStorageBufferFull: 105
409
413
  };
410
414
 
415
+ var strToISOString = "toISOString";
411
416
  var _objDefineProperty = ObjDefineProperty;
412
417
  function objToString(obj) {
413
418
  return ObjProto.toString.call(obj);
@@ -475,22 +480,27 @@
475
480
  return typeof value === "string";
476
481
  }
477
482
  function toISOString(date) {
478
- if (isDate(date)) {
479
- var pad = function (num) {
480
- var r = String(num);
481
- if (r.length === 1) {
482
- r = "0" + r;
483
- }
484
- return r;
485
- };
486
- return date.getUTCFullYear()
487
- + "-" + pad(date.getUTCMonth() + 1)
488
- + "-" + pad(date.getUTCDate())
489
- + "T" + pad(date.getUTCHours())
490
- + ":" + pad(date.getUTCMinutes())
491
- + ":" + pad(date.getUTCSeconds())
492
- + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
493
- + "Z";
483
+ if (date) {
484
+ if (date[strToISOString]) {
485
+ return date[strToISOString]();
486
+ }
487
+ if (isDate(date)) {
488
+ var pad = function (num) {
489
+ var r = String(num);
490
+ if (r.length === 1) {
491
+ r = "0" + r;
492
+ }
493
+ return r;
494
+ };
495
+ return date.getUTCFullYear()
496
+ + "-" + pad(date.getUTCMonth() + 1)
497
+ + "-" + pad(date.getUTCDate())
498
+ + "T" + pad(date.getUTCHours())
499
+ + ":" + pad(date.getUTCMinutes())
500
+ + ":" + pad(date.getUTCSeconds())
501
+ + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
502
+ + "Z";
503
+ }
494
504
  }
495
505
  }
496
506
  function arrForEach(arr, callbackfn, thisArg) {
@@ -2079,7 +2089,7 @@
2079
2089
  return Device;
2080
2090
  }());
2081
2091
 
2082
- var Version = "2.7.3-nightly.2112-07";
2092
+ var Version = "2.7.3";
2083
2093
  var Internal = /** @class */ (function () {
2084
2094
  function Internal(config) {
2085
2095
  this.sdkVersion = (config.sdkExtension && config.sdkExtension() ? config.sdkExtension() + "_" : "") + "javascript:" + Version;