authscape 1.0.450 → 1.0.454

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.js CHANGED
@@ -243,7 +243,9 @@ function AuthScapeApp(_ref) {
243
243
  databaseDrivenPageView(window.location.pathname);
244
244
  _router["default"].events.on('routeChangeComplete', function () {
245
245
  if (ga4React != null) {
246
- ga4React.current.pageview(window.location.pathname);
246
+ try {
247
+ ga4React.current.pageview(window.location.pathname);
248
+ } catch (exp) {}
247
249
  }
248
250
  databaseDrivenPageView(window.location.pathname);
249
251
  });
@@ -329,7 +331,6 @@ function AuthScapeApp(_ref) {
329
331
  }, frontEndLoadedState != null && frontEndLoadedState && pathname != "/signin-oidc" && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, layout != null && layout({
330
332
  children: /*#__PURE__*/_react["default"].createElement(Component, _extends({}, pageProps, {
331
333
  currentUser: signedInUser.current,
332
- toast: _reactToastify.toast,
333
334
  loadedUser: frontEndLoadedState,
334
335
  setIsLoading: setIsLoading,
335
336
  logEvent: logEvent,
@@ -345,7 +346,6 @@ function AuthScapeApp(_ref) {
345
346
  setToastMessage: setToastMessage
346
347
  }), layout == null && /*#__PURE__*/_react["default"].createElement(Component, _extends({}, pageProps, {
347
348
  currentUser: signedInUser.current,
348
- toast: _reactToastify.toast,
349
349
  loadedUser: frontEndLoadedState,
350
350
  setIsLoading: setIsLoading,
351
351
  logEvent: logEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.450",
3
+ "version": "1.0.454",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -207,7 +207,11 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
207
207
 
208
208
  if (ga4React != null)
209
209
  {
210
- ga4React.current.pageview(window.location.pathname);
210
+ try
211
+ {
212
+ ga4React.current.pageview(window.location.pathname);
213
+ }
214
+ catch(exp) {}
211
215
  }
212
216
 
213
217
  databaseDrivenPageView(window.location.pathname);
@@ -304,7 +308,7 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
304
308
  {frontEndLoadedState != null && frontEndLoadedState && pathname != "/signin-oidc" &&
305
309
  <>
306
310
  {layout != null && layout({
307
- children: <Component {...pageProps} currentUser={signedInUser.current} toast={toast} loadedUser={frontEndLoadedState} setIsLoading={setIsLoading} logEvent={logEvent} logPurchase={logPurchase} store={useStore} setToastMessage={setToastMessage} />,
311
+ children: <Component {...pageProps} currentUser={signedInUser.current} loadedUser={frontEndLoadedState} setIsLoading={setIsLoading} logEvent={logEvent} logPurchase={logPurchase} store={useStore} setToastMessage={setToastMessage} />,
308
312
  currentUser: signedInUser.current,
309
313
  logEvent: logEvent,
310
314
  setIsLoading: setIsLoading,
@@ -314,7 +318,7 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
314
318
  })}
315
319
 
316
320
  {layout == null &&
317
- <Component {...pageProps} currentUser={signedInUser.current} toast={toast} loadedUser={frontEndLoadedState} setIsLoading={setIsLoading} logEvent={logEvent} logPurchase={logPurchase} store={useStore} setToastMessage={setToastMessage} />
321
+ <Component {...pageProps} currentUser={signedInUser.current} loadedUser={frontEndLoadedState} setIsLoading={setIsLoading} logEvent={logEvent} logPurchase={logPurchase} store={useStore} setToastMessage={setToastMessage} />
318
322
  }
319
323
  </>
320
324
  }