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

@frontegg/react-hooks

Package Overview
Dependencies
Maintainers
3
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 7.11.0 to 7.12.0-alpha.0

10

common/index.js

@@ -9,2 +9,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";

export const ShadowDomContext = /*#__PURE__*/createContext({});
const defaultPathOnRedirectTo = path => {
var _window$history, _window$history$pushS;
return typeof window !== 'undefined' && ((_window$history = window.history) == null ? void 0 : (_window$history$pushS = _window$history.pushState) == null ? void 0 : _window$history$pushS.call(_window$history, null, '', path));
};
const defaultHashOnRedirectTo = path => {
var _window$history2, _window$history2$push;
return typeof window !== 'undefined' && ((_window$history2 = window.history) == null ? void 0 : (_window$history2$push = _window$history2.pushState) == null ? void 0 : _window$history2$push.call(_window$history2, null, '', `#${path}`));
};
export const useShadowDom = () => {

@@ -15,3 +23,3 @@ var _rest$injector$name, _rest$injector;

urlStrategy = 'path',
onRedirectTo = urlStrategy === 'path' ? path => window.history.pushState(null, '', path) : path => window.history.pushState(null, '', `#${path}`),
onRedirectTo = urlStrategy === 'path' ? defaultPathOnRedirectTo : defaultHashOnRedirectTo,
renderByRoute = false,

@@ -18,0 +26,0 @@ customLoader = false,

2

index.js

@@ -1,2 +0,2 @@

/** @license Frontegg v7.11.0
/** @license Frontegg v7.12.0-alpha.0
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -34,2 +34,10 @@ "use strict";

exports.ShadowDomContext = ShadowDomContext;
const defaultPathOnRedirectTo = path => {
var _window$history, _window$history$pushS;
return typeof window !== 'undefined' && ((_window$history = window.history) == null ? void 0 : (_window$history$pushS = _window$history.pushState) == null ? void 0 : _window$history$pushS.call(_window$history, null, '', path));
};
const defaultHashOnRedirectTo = path => {
var _window$history2, _window$history2$push;
return typeof window !== 'undefined' && ((_window$history2 = window.history) == null ? void 0 : (_window$history2$push = _window$history2.pushState) == null ? void 0 : _window$history2$push.call(_window$history2, null, '', `#${path}`));
};
const useShadowDom = () => {

@@ -40,3 +48,3 @@ var _rest$injector$name, _rest$injector;

urlStrategy = 'path',
onRedirectTo = urlStrategy === 'path' ? path => window.history.pushState(null, '', path) : path => window.history.pushState(null, '', `#${path}`),
onRedirectTo = urlStrategy === 'path' ? defaultPathOnRedirectTo : defaultHashOnRedirectTo,
renderByRoute = false,

@@ -43,0 +51,0 @@ customLoader = false,

@@ -1,2 +0,2 @@

/** @license Frontegg v7.11.0
/** @license Frontegg v7.12.0-alpha.0
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

{
"name": "@frontegg/react-hooks",
"version": "7.11.0",
"version": "7.12.0-alpha.0",
"main": "./node/index.js",

@@ -9,4 +9,4 @@ "license": "MIT",

"@babel/runtime": "^7.18.6",
"@frontegg/redux-store": "7.11.0",
"@frontegg/types": "7.11.0",
"@frontegg/redux-store": "7.12.0-alpha.0",
"@frontegg/types": "7.12.0-alpha.0",
"@types/react": "*",

@@ -13,0 +13,0 @@ "@types/react-is": "^17.0.7",

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