@microsoft/applicationinsights-channel-js 2.7.3-nightly.2201-01 → 2.7.4-nightly.2202-01

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 (29) hide show
  1. package/browser/applicationinsights-channel-js.integrity.json +9 -9
  2. package/browser/applicationinsights-channel-js.js +43 -33
  3. package/browser/applicationinsights-channel-js.js.map +1 -1
  4. package/browser/applicationinsights-channel-js.min.js +2 -2
  5. package/browser/applicationinsights-channel-js.min.js.map +1 -1
  6. package/dist/applicationinsights-channel-js.api.json +1 -1
  7. package/dist/applicationinsights-channel-js.d.ts +1 -1
  8. package/dist/applicationinsights-channel-js.js +43 -33
  9. package/dist/applicationinsights-channel-js.js.map +1 -1
  10. package/dist/applicationinsights-channel-js.min.js +2 -2
  11. package/dist/applicationinsights-channel-js.min.js.map +1 -1
  12. package/dist/applicationinsights-channel-js.rollup.d.ts +1 -1
  13. package/dist-esm/EnvelopeCreator.js +2 -2
  14. package/dist-esm/EnvelopeCreator.js.map +1 -1
  15. package/dist-esm/Interfaces.js +1 -1
  16. package/dist-esm/Offline.js +1 -1
  17. package/dist-esm/SendBuffer.js +1 -1
  18. package/dist-esm/Sender.js +1 -1
  19. package/dist-esm/Serializer.js +1 -1
  20. package/dist-esm/TelemetryProcessors/Sample.js +1 -1
  21. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  22. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  23. package/dist-esm/applicationinsights-channel-js.js +1 -1
  24. package/package.json +4 -4
  25. package/src/EnvelopeCreator.ts +2 -2
  26. package/src/Offline.ts +1 -1
  27. package/src/SendBuffer.ts +1 -1
  28. package/src/Sender.ts +1 -1
  29. package/types/tsdoc-metadata.json +1 -1
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "applicationinsights-channel-js",
3
- "version": "2.7.3-nightly.2201-01",
3
+ "version": "2.7.4-nightly.2202-01",
4
4
  "ext": {
5
5
  "@js": {
6
6
  "file": "applicationinsights-channel-js.js",
7
7
  "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-zGkLL2fXDz4v1Ks8Q3XAiQvxq4KLBrq0C1YkMv5k51M= sha384-sh9jUq5lPuglwzYvgKMgJfF7twOfYR39zNbwYipiYwbCp5XNN0Kqvmsjjw+e2AzU sha512-eS4Uj43xdNtJHHbvwKADjyIcUmiNTiK0/TJCqyl/utGyH2i8+8x8Dhog6j9I9uGKnQhwJ1w3i1TjXM0GCi//Vw==",
8
+ "integrity": "sha256-DlJ2cS1TmkjWJVJqIYcbwXuE0blJSnmDU74r8lb6Ric= sha384-Dex4c2KUfjptFglmaEI+Uawtd3xJPr90TJ1hcVlaaL0beeQ5r/d/r5VSfzaON3K1 sha512-3FAJ2VPN/xzf5EXHFR6dh5hXVU1IevNpfOLQqm/+YHE5bUjl1Bw9z1mLJ0mUFfwmE917jgbPPtFoz2I0mBEGWw==",
9
9
  "hashes": {
10
- "sha256": "zGkLL2fXDz4v1Ks8Q3XAiQvxq4KLBrq0C1YkMv5k51M=",
11
- "sha384": "sh9jUq5lPuglwzYvgKMgJfF7twOfYR39zNbwYipiYwbCp5XNN0Kqvmsjjw+e2AzU",
12
- "sha512": "eS4Uj43xdNtJHHbvwKADjyIcUmiNTiK0/TJCqyl/utGyH2i8+8x8Dhog6j9I9uGKnQhwJ1w3i1TjXM0GCi//Vw=="
10
+ "sha256": "DlJ2cS1TmkjWJVJqIYcbwXuE0blJSnmDU74r8lb6Ric=",
11
+ "sha384": "Dex4c2KUfjptFglmaEI+Uawtd3xJPr90TJ1hcVlaaL0beeQ5r/d/r5VSfzaON3K1",
12
+ "sha512": "3FAJ2VPN/xzf5EXHFR6dh5hXVU1IevNpfOLQqm/+YHE5bUjl1Bw9z1mLJ0mUFfwmE917jgbPPtFoz2I0mBEGWw=="
13
13
  }
14
14
  },
15
15
  "@min.js": {
16
16
  "file": "applicationinsights-channel-js.min.js",
17
17
  "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-u7Z0Q1FH0P6B335FblLqig7frIeYaHQoiaTrWTpN7DY= sha384-MCi6rJfC036aZOTXNW/SzSU51H7EhXMTggZWdP609wgHeP3PyIswCRGeVGxY18Wg sha512-AIEWGGRWiDWTtUTpn5CFev4poDoy/VjImcZwYNHaA3NJTZaMIEAO4sEiM5WED2wIqYfxifPmdK8QLkmWOiBY2Q==",
18
+ "integrity": "sha256-2VFe8eXhCYJe7redFN8RhPpnE2oMSU3063JXvr+Ef8w= sha384-U0Mg+AYIys3x/9Jnz0V+SUZkXtNnPKvz3sVXwB0WWeljXoah8wcY0y5D5lsBhfJ8 sha512-dYo6sdjl1dskiSSRsCbocXbl3XkE7IgISToF09ETO8sj/381ZMqj2cQKc1zUuYvKZrNgBBXeEDhQsKJdwNEOfw==",
19
19
  "hashes": {
20
- "sha256": "u7Z0Q1FH0P6B335FblLqig7frIeYaHQoiaTrWTpN7DY=",
21
- "sha384": "MCi6rJfC036aZOTXNW/SzSU51H7EhXMTggZWdP609wgHeP3PyIswCRGeVGxY18Wg",
22
- "sha512": "AIEWGGRWiDWTtUTpn5CFev4poDoy/VjImcZwYNHaA3NJTZaMIEAO4sEiM5WED2wIqYfxifPmdK8QLkmWOiBY2Q=="
20
+ "sha256": "2VFe8eXhCYJe7redFN8RhPpnE2oMSU3063JXvr+Ef8w=",
21
+ "sha384": "U0Mg+AYIys3x/9Jnz0V+SUZkXtNnPKvz3sVXwB0WWeljXoah8wcY0y5D5lsBhfJ8",
22
+ "sha512": "dYo6sdjl1dskiSSRsCbocXbl3XkE7IgISToF09ETO8sj/381ZMqj2cQKc1zUuYvKZrNgBBXeEDhQsKJdwNEOfw=="
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Channel, 2.7.3-nightly.2201-01
2
+ * Application Insights JavaScript SDK - Channel, 2.7.4-nightly.2202-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -20,20 +20,24 @@
20
20
  var ObjDefineProperty = ObjClass["defineProperty"];
21
21
  var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
22
22
 
23
- function getGlobal() {
24
- if (typeof globalThis !== strShimUndefined && globalThis) {
25
- return globalThis;
26
- }
27
- if (typeof self !== strShimUndefined && self) {
28
- return self;
29
- }
30
- if (typeof window !== strShimUndefined && window) {
31
- return window;
32
- }
33
- if (typeof global !== strShimUndefined && global) {
34
- return global;
23
+ var _cachedGlobal = null;
24
+ function getGlobal(useCached) {
25
+ if (useCached === void 0) { useCached = true; }
26
+ if (!_cachedGlobal || !useCached) {
27
+ if (typeof globalThis !== strShimUndefined && globalThis) {
28
+ _cachedGlobal = globalThis;
29
+ }
30
+ if (typeof self !== strShimUndefined && self) {
31
+ _cachedGlobal = self;
32
+ }
33
+ if (typeof window !== strShimUndefined && window) {
34
+ _cachedGlobal = window;
35
+ }
36
+ if (typeof global !== strShimUndefined && global) {
37
+ _cachedGlobal = global;
38
+ }
35
39
  }
36
- return null;
40
+ return _cachedGlobal;
37
41
  }
38
42
  function throwTypeError(message) {
39
43
  throw new TypeError(message);
@@ -424,6 +428,7 @@
424
428
  var strOnPrefix = "on";
425
429
  var strAttachEvent = "attachEvent";
426
430
  var strAddEventHelper = "addEventListener";
431
+ var strToISOString = "toISOString";
427
432
  var _objDefineProperty = ObjDefineProperty;
428
433
  function objToString(obj) {
429
434
  return ObjProto.toString.call(obj);
@@ -490,22 +495,27 @@
490
495
  return typeof value === "number";
491
496
  }
492
497
  function toISOString(date) {
493
- if (isDate(date)) {
494
- var pad = function (num) {
495
- var r = String(num);
496
- if (r.length === 1) {
497
- r = "0" + r;
498
- }
499
- return r;
500
- };
501
- return date.getUTCFullYear()
502
- + "-" + pad(date.getUTCMonth() + 1)
503
- + "-" + pad(date.getUTCDate())
504
- + "T" + pad(date.getUTCHours())
505
- + ":" + pad(date.getUTCMinutes())
506
- + ":" + pad(date.getUTCSeconds())
507
- + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
508
- + "Z";
498
+ if (date) {
499
+ if (date[strToISOString]) {
500
+ return date[strToISOString]();
501
+ }
502
+ if (isDate(date)) {
503
+ var pad = function (num) {
504
+ var r = String(num);
505
+ if (r.length === 1) {
506
+ r = "0" + r;
507
+ }
508
+ return r;
509
+ };
510
+ return date.getUTCFullYear()
511
+ + "-" + pad(date.getUTCMonth() + 1)
512
+ + "-" + pad(date.getUTCDate())
513
+ + "T" + pad(date.getUTCHours())
514
+ + ":" + pad(date.getUTCMinutes())
515
+ + ":" + pad(date.getUTCSeconds())
516
+ + "." + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)
517
+ + "Z";
518
+ }
509
519
  }
510
520
  }
511
521
  function arrForEach(arr, callbackfn, thisArg) {
@@ -798,7 +808,7 @@
798
808
  }
799
809
  function useXDomainRequest() {
800
810
  if (_useXDomainRequest === null) {
801
- _useXDomainRequest = (typeof XDomainRequest !== undefined);
811
+ _useXDomainRequest = (typeof XDomainRequest !== "undefined");
802
812
  if (_useXDomainRequest && isXhrSupported()) {
803
813
  _useXDomainRequest = _useXDomainRequest && !_hasProperty(getGlobalInst("XMLHttpRequest"), "withCredentials");
804
814
  }
@@ -2057,7 +2067,7 @@
2057
2067
  return exceptionData;
2058
2068
  };
2059
2069
  Exception.prototype.toInterface = function () {
2060
- var _a = this, exceptions = _a.exceptions, properties = _a.properties, measurements = _a.measurements, severityLevel = _a.severityLevel; _a.ver; var problemGroup = _a.problemGroup, id = _a.id, isManual = _a.isManual;
2070
+ var _a = this, exceptions = _a.exceptions, properties = _a.properties, measurements = _a.measurements, severityLevel = _a.severityLevel, problemGroup = _a.problemGroup, id = _a.id, isManual = _a.isManual;
2061
2071
  var exceptionDetailsInterface = exceptions instanceof Array
2062
2072
  && arrMap(exceptions, function (exception) { return exception.toInterface(); })
2063
2073
  || undefined;
@@ -2832,7 +2842,7 @@
2832
2842
  }
2833
2843
  }
2834
2844
  var EnvelopeCreator = {
2835
- Version: "2.7.3-nightly.2201-01"
2845
+ Version: "2.7.4-nightly.2202-01"
2836
2846
  };
2837
2847
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
2838
2848
  EnvelopeCreatorInit(logger, telemetryItem);