@trackunit/react-core-hooks 0.2.263 → 0.2.265-alpha-13ecf77e3fd.0
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/index.cjs.js +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -25,7 +25,7 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
26
26
|
|
|
27
27
|
const AnalyticsContext = React.createContext(null);
|
|
28
|
-
const AnalyticsContextProvider = AnalyticsContext.Provider;
|
|
28
|
+
const AnalyticsContextProvider = AnalyticsContext.Provider; // easy import
|
|
29
29
|
/**
|
|
30
30
|
* Hook to get the analytics context.
|
|
31
31
|
*
|
|
@@ -157,7 +157,7 @@ const useEnvironment = () => {
|
|
|
157
157
|
};
|
|
158
158
|
|
|
159
159
|
const ErrorHandlingContext = React.createContext(null);
|
|
160
|
-
const ErrorHandlingContextProvider = ErrorHandlingContext.Provider;
|
|
160
|
+
const ErrorHandlingContextProvider = ErrorHandlingContext.Provider; // easy import
|
|
161
161
|
/**
|
|
162
162
|
* Hook to get the error handling context.
|
|
163
163
|
*
|
package/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { AssetRuntime, CustomerRuntime, EventRuntime, ParamsRuntime, SiteRuntime
|
|
|
5
5
|
import { filterByMultiple } from '@trackunit/shared-utils';
|
|
6
6
|
|
|
7
7
|
const AnalyticsContext = createContext(null);
|
|
8
|
-
const AnalyticsContextProvider = AnalyticsContext.Provider;
|
|
8
|
+
const AnalyticsContextProvider = AnalyticsContext.Provider; // easy import
|
|
9
9
|
/**
|
|
10
10
|
* Hook to get the analytics context.
|
|
11
11
|
*
|
|
@@ -137,7 +137,7 @@ const useEnvironment = () => {
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
const ErrorHandlingContext = createContext(null);
|
|
140
|
-
const ErrorHandlingContextProvider = ErrorHandlingContext.Provider;
|
|
140
|
+
const ErrorHandlingContextProvider = ErrorHandlingContext.Provider; // easy import
|
|
141
141
|
/**
|
|
142
142
|
* Hook to get the error handling context.
|
|
143
143
|
*
|