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

router-hook

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

router-hook - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

2

dist/route.d.ts

@@ -5,5 +5,5 @@ import { ReactNode } from "react";

match(location: string, render?: (p: P) => ReactNode): ReactNode | P | undefined;
toUrl(params?: Record<string, unknown>): string;
toUrl(params?: P): string;
}
export default function route<P = Record<string, string>>(path: string): Route<P>;
export {};
{
"name": "router-hook",
"author": "Tim Field <tim@mohiohio.com>",
"version": "5.0.2",
"version": "5.0.3",
"main": "dist/index.js",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/tim-field/router-hook/#readme",

"prettier": "1.19.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"tslib": "2.0.0",

@@ -32,0 +32,0 @@ "typescript": "3.9.5",

@@ -20,3 +20,3 @@ import { pathToRegexp, Key, compile } from "path-to-regexp"

): ReactNode | P | undefined
toUrl(params?: Record<string, unknown>): string
toUrl(params?: P): string
}

@@ -45,3 +45,3 @@

},
toUrl(params?: Record<string, unknown>) {
toUrl(params?: P) {
const defined = params

@@ -48,0 +48,0 @@ ? Object.entries(params).reduce((acc, [k, v]) => {

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