@microsoft/applicationinsights-common 2.8.15-nightly.2307-26 → 2.8.16-nightly.2308-02

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 (101) hide show
  1. package/browser/applicationinsights-common.integrity.json +9 -9
  2. package/browser/applicationinsights-common.js +16 -7
  3. package/browser/applicationinsights-common.js.map +1 -1
  4. package/browser/applicationinsights-common.min.js +2 -2
  5. package/browser/applicationinsights-common.min.js.map +1 -1
  6. package/dist/applicationinsights-common.api.json +45 -0
  7. package/dist/applicationinsights-common.api.md +3 -0
  8. package/dist/applicationinsights-common.d.ts +3 -1
  9. package/dist/applicationinsights-common.js +16 -7
  10. package/dist/applicationinsights-common.js.map +1 -1
  11. package/dist/applicationinsights-common.min.js +2 -2
  12. package/dist/applicationinsights-common.min.js.map +1 -1
  13. package/dist/applicationinsights-common.rollup.d.ts +3 -1
  14. package/dist-esm/ConnectionStringParser.js +1 -1
  15. package/dist-esm/Constants.js +1 -1
  16. package/dist-esm/DomHelperFuncs.js +1 -1
  17. package/dist-esm/Enums.js +1 -1
  18. package/dist-esm/HelperFuncs.js +1 -1
  19. package/dist-esm/Interfaces/ConnectionString.js +1 -1
  20. package/dist-esm/Interfaces/Context/IApplication.js +1 -1
  21. package/dist-esm/Interfaces/Context/IDevice.js +1 -1
  22. package/dist-esm/Interfaces/Context/IInternal.js +1 -1
  23. package/dist-esm/Interfaces/Context/ILocation.js +1 -1
  24. package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
  25. package/dist-esm/Interfaces/Context/ISample.js +1 -1
  26. package/dist-esm/Interfaces/Context/ISession.js +1 -1
  27. package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
  28. package/dist-esm/Interfaces/Context/IUser.js +1 -1
  29. package/dist-esm/Interfaces/Context/IWeb.js +1 -1
  30. package/dist-esm/Interfaces/Contracts/AvailabilityData.js +1 -1
  31. package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
  32. package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
  33. package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
  34. package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
  35. package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
  36. package/dist-esm/Interfaces/Contracts/IData.js +1 -1
  37. package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
  38. package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
  39. package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
  40. package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
  41. package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
  42. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
  43. package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
  44. package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
  45. package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
  46. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
  47. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
  48. package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
  49. package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
  50. package/dist-esm/Interfaces/Contracts/SeverityLevel.js +1 -1
  51. package/dist-esm/Interfaces/IAppInsights.js +1 -1
  52. package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
  53. package/dist-esm/Interfaces/IConfig.js +1 -1
  54. package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
  55. package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
  56. package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
  57. package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
  58. package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
  59. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  60. package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
  61. package/dist-esm/Interfaces/IPartC.js +1 -1
  62. package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
  63. package/dist-esm/Interfaces/IRequestContext.js +1 -1
  64. package/dist-esm/Interfaces/IStorageBuffer.js +1 -1
  65. package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
  66. package/dist-esm/Interfaces/IThrottleMgr.js +1 -1
  67. package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
  68. package/dist-esm/Interfaces/PartAExtensions.js +1 -1
  69. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
  70. package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
  71. package/dist-esm/RequestResponseHeaders.js +1 -1
  72. package/dist-esm/StorageHelperFuncs.js +9 -4
  73. package/dist-esm/StorageHelperFuncs.js.map +1 -1
  74. package/dist-esm/Telemetry/Common/Data.js +1 -1
  75. package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
  76. package/dist-esm/Telemetry/Common/DataSanitizer.js +1 -1
  77. package/dist-esm/Telemetry/Common/Envelope.js +1 -1
  78. package/dist-esm/Telemetry/Event.js +1 -1
  79. package/dist-esm/Telemetry/Exception.js +5 -2
  80. package/dist-esm/Telemetry/Exception.js.map +1 -1
  81. package/dist-esm/Telemetry/Metric.js +1 -1
  82. package/dist-esm/Telemetry/PageView.js +1 -1
  83. package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
  84. package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
  85. package/dist-esm/Telemetry/Trace.js +1 -1
  86. package/dist-esm/TelemetryItemCreator.js +1 -1
  87. package/dist-esm/ThrottleMgr.js +1 -1
  88. package/dist-esm/UrlHelperFuncs.js +1 -1
  89. package/dist-esm/Util.js +1 -1
  90. package/dist-esm/__DynamicConstants.js +2 -2
  91. package/dist-esm/__DynamicConstants.js.map +1 -1
  92. package/dist-esm/applicationinsights-common.js +2 -2
  93. package/dist-esm/applicationinsights-common.js.map +1 -1
  94. package/package.json +2 -2
  95. package/src/StorageHelperFuncs.ts +9 -3
  96. package/src/Telemetry/Exception.ts +4 -1
  97. package/src/__DynamicConstants.ts +1 -1
  98. package/src/applicationinsights-common.ts +1 -1
  99. package/types/StorageHelperFuncs.d.ts +1 -0
  100. package/types/__DynamicConstants.d.ts +1 -1
  101. package/types/applicationinsights-common.d.ts +1 -1
@@ -21875,6 +21875,51 @@
21875
21875
  }
21876
21876
  ],
21877
21877
  "name": "utlSetSessionStorage"
21878
+ },
21879
+ {
21880
+ "kind": "Function",
21881
+ "canonicalReference": "@microsoft/applicationinsights-common!utlSetStoragePrefix:function(1)",
21882
+ "docComment": "",
21883
+ "excerptTokens": [
21884
+ {
21885
+ "kind": "Content",
21886
+ "text": "export declare function utlSetStoragePrefix(storagePrefix: "
21887
+ },
21888
+ {
21889
+ "kind": "Content",
21890
+ "text": "string"
21891
+ },
21892
+ {
21893
+ "kind": "Content",
21894
+ "text": "): "
21895
+ },
21896
+ {
21897
+ "kind": "Content",
21898
+ "text": "void"
21899
+ },
21900
+ {
21901
+ "kind": "Content",
21902
+ "text": ";"
21903
+ }
21904
+ ],
21905
+ "fileUrlPath": "types/StorageHelperFuncs.d.ts",
21906
+ "returnTypeTokenRange": {
21907
+ "startIndex": 3,
21908
+ "endIndex": 4
21909
+ },
21910
+ "releaseTag": "Public",
21911
+ "overloadIndex": 1,
21912
+ "parameters": [
21913
+ {
21914
+ "parameterName": "storagePrefix",
21915
+ "parameterTypeTokenRange": {
21916
+ "startIndex": 1,
21917
+ "endIndex": 2
21918
+ },
21919
+ "isOptional": false
21920
+ }
21921
+ ],
21922
+ "name": "utlSetStoragePrefix"
21878
21923
  }
21879
21924
  ]
21880
21925
  }
@@ -1355,6 +1355,9 @@ export function utlSetLocalStorage(logger: IDiagnosticLogger, name: string, data
1355
1355
  // @public (undocumented)
1356
1356
  export function utlSetSessionStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
1357
1357
 
1358
+ // @public (undocumented)
1359
+ export function utlSetStoragePrefix(storagePrefix: string): void;
1360
+
1358
1361
  // (No @packageDocumentation comment for this package)
1359
1362
 
1360
1363
  ```
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Common JavaScript Library, 2.8.15-nightly.2307-26
2
+ * Microsoft Application Insights Common JavaScript Library, 2.8.16-nightly.2308-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -2820,5 +2820,7 @@ declare namespace ApplicationInsights {
2820
2820
 
2821
2821
  function utlSetSessionStorage(logger: IDiagnosticLogger, name: string, data: string): boolean;
2822
2822
 
2823
+ function utlSetStoragePrefix(storagePrefix: string): void;
2824
+
2823
2825
 
2824
2826
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Common, 2.8.15-nightly.2307-26
2
+ * Application Insights JavaScript SDK - Common, 2.8.16-nightly.2308-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1176,7 +1176,7 @@
1176
1176
  }
1177
1177
 
1178
1178
  var _objDefineProperty = ObjDefineProperty;
1179
- var version = "2.8.15-nightly.2307-26";
1179
+ var version = "2.8.16-nightly.2308-02";
1180
1180
  var instanceName = "." + newId(6);
1181
1181
  var _dataUid = 0;
1182
1182
  function _createAccessor(target, prop, value) {
@@ -1874,10 +1874,10 @@
1874
1874
  var _DYN_IS_MANUAL = "isManual";
1875
1875
  var _DYN__CREATE_FROM_INTERFA1 = "CreateFromInterface";
1876
1876
  var _DYN_ASSEMBLY = "assembly";
1877
+ var _DYN_FILE_NAME = "fileName";
1877
1878
  var _DYN_HAS_FULL_STACK = "hasFullStack";
1878
1879
  var _DYN_LEVEL = "level";
1879
1880
  var _DYN_METHOD = "method";
1880
- var _DYN_FILE_NAME = "fileName";
1881
1881
  var _DYN_LINE = "line";
1882
1882
  var _DYN_DURATION = "duration";
1883
1883
  var _DYN_RECEIVED_RESPONSE = "receivedResponse";
@@ -1949,6 +1949,7 @@
1949
1949
 
1950
1950
  var _canUseLocalStorage = undefined;
1951
1951
  var _canUseSessionStorage = undefined;
1952
+ var _storagePrefix = "";
1952
1953
  function _getLocalStorageObject() {
1953
1954
  if (utlCanUseLocalStorage()) {
1954
1955
  return _getVerifiedStorageObject(StorageType.LocalStorage);
@@ -1962,9 +1963,10 @@
1962
1963
  }
1963
1964
  var uid = (new Date)[_DYN_TO_STRING ]();
1964
1965
  var storage = getGlobalInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
1965
- storage.setItem(uid, uid);
1966
- var fail = storage.getItem(uid) !== uid;
1967
- storage[_DYN_REMOVE_ITEM ](uid);
1966
+ var name_1 = _storagePrefix + uid;
1967
+ storage.setItem(name_1, uid);
1968
+ var fail = storage.getItem(name_1) !== uid;
1969
+ storage[_DYN_REMOVE_ITEM ](name_1);
1968
1970
  if (!fail) {
1969
1971
  return storage;
1970
1972
  }
@@ -1983,6 +1985,9 @@
1983
1985
  _canUseLocalStorage = false;
1984
1986
  _canUseSessionStorage = false;
1985
1987
  }
1988
+ function utlSetStoragePrefix(storagePrefix) {
1989
+ _storagePrefix = storagePrefix || "";
1990
+ }
1986
1991
  function utlEnableStorage() {
1987
1992
  _canUseLocalStorage = utlCanUseLocalStorage(true);
1988
1993
  _canUseSessionStorage = utlCanUseSessionStorage(true);
@@ -3180,7 +3185,10 @@
3180
3185
  var stack = exception[strStackDetails] || _getStackFromErrorObj(exception);
3181
3186
  _self[_DYN_PARSED_STACK ] = _parseStack(stack);
3182
3187
  if (isArray(_self[_DYN_PARSED_STACK ])) {
3183
- arrMap(_self[_DYN_PARSED_STACK ], function (frame) { return frame[_DYN_ASSEMBLY ] = dataSanitizeString(logger, frame[_DYN_ASSEMBLY ]); });
3188
+ arrMap(_self[_DYN_PARSED_STACK ], function (frame) {
3189
+ frame[_DYN_ASSEMBLY ] = dataSanitizeString(logger, frame[_DYN_ASSEMBLY ]);
3190
+ frame[_DYN_FILE_NAME ] = dataSanitizeString(logger, frame[_DYN_FILE_NAME ]);
3191
+ });
3184
3192
  }
3185
3193
  _self[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
3186
3194
  _self.hasFullStack = isArray(_self.parsedStack) && _self.parsedStack[_DYN_LENGTH ] > 0;
@@ -3707,6 +3715,7 @@
3707
3715
  exports.utlRemoveStorage = utlRemoveStorage;
3708
3716
  exports.utlSetLocalStorage = utlSetLocalStorage;
3709
3717
  exports.utlSetSessionStorage = utlSetSessionStorage;
3718
+ exports.utlSetStoragePrefix = utlSetStoragePrefix;
3710
3719
 
3711
3720
  (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 });
3712
3721