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.11-alpha.1019811623 to 2.8.12-alpha.1020133779

hooks-585c70a1.js

33

index.cjs.js

@@ -16,2 +16,3 @@ 'use strict';

var connectivity = require('@frontegg/redux-store/connectivity');
var subscriptions = require('@frontegg/redux-store/subscriptions');

@@ -239,2 +240,28 @@ /*! *****************************************************************************

var usePlans = function () {
return useSelector(function (state) { return state[subscriptions.subscriptionsStoreName]['plans']; }, reactRedux.shallowEqual);
};
var usePlansActions = function () {
var dispatch = useDispatch();
return React.useMemo(function () { return toolkit.bindActionCreators(subscriptions.subscriptionActions.plans, dispatch); }, [subscriptions.subscriptionActions.plans]);
};
var useCheckout = function () {
return useSelector(function (state) { return state[subscriptions.subscriptionsStoreName]['checkout']; }, reactRedux.shallowEqual);
};
var useCheckoutActions = function () {
var dispatch = useDispatch();
return React.useMemo(function () { return toolkit.bindActionCreators(subscriptions.subscriptionActions.checkout, dispatch); }, [subscriptions.subscriptionActions.checkout]);
};
var useBilling = function (billingKey) {
return useSelector(function (state) { return state[subscriptions.subscriptionsStoreName]['billing'][billingKey]; }, reactRedux.shallowEqual);
};
var useBillingActions = function (billingKey) {
var dispatch = useDispatch();
return React.useMemo(function () { return toolkit.bindActionCreators(subscriptions.subscriptionActions.billing[billingKey], dispatch); }, [
subscriptions.subscriptionActions.billing[billingKey],
]);
};
var useBillingInformation = function () { return useBilling('information'); };
var useBillingInformationActions = function () { return useBillingActions('information'); };
var setLoading = function (loading) {

@@ -359,2 +386,6 @@ var isSSR = typeof document === 'undefined' || typeof window === 'undefined';

exports.useAuthUserOrNull = useAuthUserOrNull;
exports.useBillingInformation = useBillingInformation;
exports.useBillingInformationActions = useBillingInformationActions;
exports.useCheckout = useCheckout;
exports.useCheckoutActions = useCheckoutActions;
exports.useConnectivityActions = useConnectivityActions;

@@ -371,2 +402,4 @@ exports.useConnectivityState = useConnectivityState;

exports.useOnRedirectTo = useOnRedirectTo;
exports.usePlans = usePlans;
exports.usePlansActions = usePlansActions;
exports.useProfileActions = useProfileActions;

@@ -373,0 +406,0 @@ exports.useProfileState = useProfileState;

1

index.d.ts
export * from './audits';
export * from './auth';
export * from './connectivity';
export * from './subscriptions';
export * from './FronteggProvider';
export * from './FronteggStoreContext';

@@ -17,2 +17,4 @@ import './tslib.es6-e3c82a74.js';

export { u as useConnectivityActions, a as useConnectivityState } from './hooks-5cf64e79.js';
import '@frontegg/redux-store/subscriptions';
export { d as useBillingInformation, e as useBillingInformationActions, b as useCheckout, c as useCheckoutActions, u as usePlans, a as usePlansActions } from './hooks-585c70a1.js';

@@ -19,0 +21,0 @@ var setLoading = function (loading) {

4

package.json
{
"name": "@frontegg/react-hooks",
"libName": "FronteggReactHooks",
"version": "2.8.11-alpha.1019811623",
"version": "2.8.12-alpha.1020133779",
"author": "Frontegg LTD",

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

"dependencies": {
"@frontegg/redux-store": "2.8.11-alpha.1019811623",
"@frontegg/redux-store": "2.8.12-alpha.1020133779",
"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