@microsoft/applicationinsights-react-js 3.2.1-nightly.202110-15 → 3.2.1-nightly.202110-16
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.
- package/browser/applicationinsights-react-js.js +12 -1
- package/browser/applicationinsights-react-js.js.map +1 -1
- package/browser/applicationinsights-react-js.min.js +2 -2
- package/browser/applicationinsights-react-js.min.js.map +1 -1
- package/dist/applicationinsights-react-js.api.json +91 -0
- package/dist/applicationinsights-react-js.api.md +7 -0
- package/dist/applicationinsights-react-js.d.ts +10 -1
- package/dist/applicationinsights-react-js.js +12 -1
- package/dist/applicationinsights-react-js.js.map +1 -1
- package/dist/applicationinsights-react-js.min.js +2 -2
- package/dist/applicationinsights-react-js.min.js.map +1 -1
- package/dist/applicationinsights-react-js.rollup.d.ts +10 -1
- package/dist-esm/AppInsightsContext.js +1 -1
- package/dist-esm/AppInsightsErrorBoundary.js +1 -1
- package/dist-esm/Interfaces/IReactExtensionConfig.js +1 -1
- package/dist-esm/ReactPlugin.js +15 -2
- package/dist-esm/ReactPlugin.js.map +1 -1
- package/dist-esm/applicationinsights-react-js.js +1 -1
- package/dist-esm/useTrackEvent.js +1 -1
- package/dist-esm/useTrackMetric.js +1 -1
- package/dist-esm/withAITracking.js +1 -1
- package/package.json +3 -3
- package/src/ReactPlugin.ts +20 -2
- package/types/ReactPlugin.d.ts +8 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Plugin, 3.2.1-nightly.202110-
|
|
2
|
+
* Application Insights JavaScript SDK - React Plugin, 3.2.1-nightly.202110-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1791,6 +1791,9 @@
|
|
|
1791
1791
|
ReactPlugin.prototype.getCookieMgr = function () {
|
|
1792
1792
|
return safeGetCookieMgr(this.core);
|
|
1793
1793
|
};
|
|
1794
|
+
ReactPlugin.prototype.getAppInsights = function () {
|
|
1795
|
+
return this._analyticsPlugin;
|
|
1796
|
+
};
|
|
1794
1797
|
ReactPlugin.prototype.processTelemetry = function (event, itemCtx) {
|
|
1795
1798
|
this.processNext(event, itemCtx);
|
|
1796
1799
|
};
|
|
@@ -1826,6 +1829,14 @@
|
|
|
1826
1829
|
this.diagLog().throwInternal(LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, "Analytics plugin is not available, React plugin telemetry will not be sent: ");
|
|
1827
1830
|
}
|
|
1828
1831
|
};
|
|
1832
|
+
ReactPlugin.prototype.trackTrace = function (trace, customProperties) {
|
|
1833
|
+
if (this._analyticsPlugin) {
|
|
1834
|
+
this._analyticsPlugin.trackTrace(trace, customProperties);
|
|
1835
|
+
}
|
|
1836
|
+
else {
|
|
1837
|
+
this.diagLog().throwInternal(LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, "Analytics plugin is not available, React plugin telemetry will not be sent: ");
|
|
1838
|
+
}
|
|
1839
|
+
};
|
|
1829
1840
|
ReactPlugin.prototype.addHistoryListener = function (history) {
|
|
1830
1841
|
var _this = this;
|
|
1831
1842
|
var locationListener = function (location, action) {
|