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 4.0.2 to 4.0.3

2

dist/route.d.ts
/// <reference types="react" />
export default function route(path: string): {
match: (location: string, render?: import("react").FunctionComponent<{}>) => {};
toUrl: (params: object) => string;
toUrl: (params?: object) => string;
};
{
"name": "router-hook",
"author": "Tim Field <tim@mohiohio.com>",
"version": "4.0.2",
"version": "4.0.3",
"main": "dist/index.js",

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

"react-dom": "^16",
"tslib": "^1.9.3",
"tslib": "^1.11.1",
"typescript": "^3",

@@ -32,0 +32,0 @@ "yalc": "^1.0.0-pre.27"

@@ -23,3 +23,3 @@ import pathToRegexp from "path-to-regexp"

},
toUrl: (params: object) => {
toUrl: (params?: object) => {
const defined = params

@@ -26,0 +26,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