Socket
Socket
Sign inDemoInstall

react-router-link-nostack

Package Overview
Dependencies
18
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

4

CHANGELOG.md
# Change Log
## 1.0.8 29-July-2020
- improve typing on the component (or else it only accept 3 props)
## 1.0.7 29-July-2020

@@ -4,0 +8,0 @@

3

package.json
{
"name": "react-router-link-nostack",
"version": "1.0.7",
"version": "1.0.8",
"description": "🎈 <Link/> that prevent stacking in browser history upon re-navigating current route",

@@ -46,2 +46,3 @@ "main": "dist/Link.js",

"@typescript-eslint/parser": "^2.34.0",
"babel-eslint": "^10.1.0",
"babel-plugin-root-import": "^6.5.0",

@@ -48,0 +49,0 @@ "eslint": "^6.8.0",

@@ -5,7 +5,5 @@ import React from 'react';

declare const runOnSamePage: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, isSamePath: boolean, onSamePage?: ((event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void) | undefined) => void;
declare const LinkNoStack: React.FC<{
to: React.ComponentProps<typeof Link>['to'];
onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
declare const LinkNoStack: React.FC<React.ComponentProps<typeof Link> & {
onSamePage?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
}>;
export { LinkNoStack as default, checkToProps, runOnSamePage };
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc