Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/react-hooks

Package Overview
Dependencies
Maintainers
1
Versions
1083
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/react-hooks - npm Package Compare versions

Comparing version 2.8.0-alpha.956868304 to 2.8.0-alpha.958143646

7

index.cjs.js

@@ -306,8 +306,9 @@ 'use strict';

var FronteggProvider = function (_a) {
var _b, _c, _d, _e;
var _b, _c, _d, _e, _f, _g;
var children = _a.children, app = _a.app, contextOptions = _a.contextOptions, setLoadingProps = _a.setLoading;
var context = (_c = (_b = app === null || app === void 0 ? void 0 : app.options) === null || _b === void 0 ? void 0 : _b.contextOptions) !== null && _c !== void 0 ? _c : contextOptions;
var previewMode = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.previewMode) !== null && _e !== void 0 ? _e : false;
var routes = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.authRoutes) !== null && _e !== void 0 ? _e : {};
var previewMode = (_g = (_f = app === null || app === void 0 ? void 0 : app.options) === null || _f === void 0 ? void 0 : _f.previewMode) !== null && _g !== void 0 ? _g : false;
restApi.ContextHolder.setContext(context);
var store = React.useMemo(function () { return reduxStore.createFronteggStore({ context: context }, app, previewMode); }, [app, previewMode]);
var store = React.useMemo(function () { return reduxStore.createFronteggStore({ context: context }, app, previewMode, { routes: routes }); }, [app, previewMode]);
return (React__default.createElement(reactRedux.Provider, { context: FronteggStoreContext, store: store },

@@ -314,0 +315,0 @@ React__default.createElement(FronteggContent, { setLoading: setLoadingProps !== null && setLoadingProps !== void 0 ? setLoadingProps : setLoading, app: app }, children)));

@@ -86,8 +86,9 @@ import './tslib.es6-e3c82a74.js';

var FronteggProvider = function (_a) {
var _b, _c, _d, _e;
var _b, _c, _d, _e, _f, _g;
var children = _a.children, app = _a.app, contextOptions = _a.contextOptions, setLoadingProps = _a.setLoading;
var context = (_c = (_b = app === null || app === void 0 ? void 0 : app.options) === null || _b === void 0 ? void 0 : _b.contextOptions) !== null && _c !== void 0 ? _c : contextOptions;
var previewMode = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.previewMode) !== null && _e !== void 0 ? _e : false;
var routes = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.authRoutes) !== null && _e !== void 0 ? _e : {};
var previewMode = (_g = (_f = app === null || app === void 0 ? void 0 : app.options) === null || _f === void 0 ? void 0 : _f.previewMode) !== null && _g !== void 0 ? _g : false;
ContextHolder.setContext(context);
var store = useMemo(function () { return createFronteggStore({ context: context }, app, previewMode); }, [app, previewMode]);
var store = useMemo(function () { return createFronteggStore({ context: context }, app, previewMode, { routes: routes }); }, [app, previewMode]);
return (React.createElement(Provider, { context: FronteggStoreContext, store: store },

@@ -94,0 +95,0 @@ React.createElement(FronteggContent, { setLoading: setLoadingProps !== null && setLoadingProps !== void 0 ? setLoadingProps : setLoading, app: app }, children)));

{
"name": "@frontegg/react-hooks",
"libName": "FronteggReactHooks",
"version": "2.8.0-alpha.956868304",
"version": "2.8.0-alpha.958143646",
"author": "Frontegg LTD",

@@ -15,3 +15,3 @@ "main": "index.cjs.js",

"dependencies": {
"@frontegg/redux-store": "2.8.0-alpha.956868304",
"@frontegg/redux-store": "2.8.0-alpha.958143646",
"react-redux": "^7.x"

@@ -18,0 +18,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc