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

react-router-navigation-prompt

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-navigation-prompt - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

package.json
{
"name": "react-router-navigation-prompt",
"version": "1.5.0",
"version": "1.5.1",
"description": "A replacement component for the react-router `<Prompt/>`. Allows for more flexible dialogs.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -79,3 +79,3 @@ /* @flow */

action = {
'POP': 'goBack',
'POP': 'push',
'PUSH': 'push',

@@ -88,7 +88,3 @@ 'REPLACE': 'replace'

this.state.unblock();
if (action === 'goBack') {
history.goBack();
} else {
history[action](nextLocation.pathname);
}
history[action](nextLocation.pathname);
this.setState({

@@ -95,0 +91,0 @@ ...initState,

Sorry, the diff of this file is too big to display

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