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

@types/react-router

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-router - npm Package Compare versions

Comparing version 2.0.31 to 2.0.32

4

react-router/package.json
{
"name": "@types/react-router",
"version": "2.0.31",
"version": "2.0.32",
"description": "TypeScript definitions for react-router v2.0.0",
"license": "MIT",
"author": "Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>",
"author": "Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>",
"main": "",

@@ -8,0 +8,0 @@ "repository": {

// Type definitions for react-router v2.0.0
// Project: https://github.com/rackt/react-router
// Definitions by: Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>
// Definitions by: Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -228,3 +228,24 @@

/* Higher Order Component */
// Wrap a component using withRouter(Component) to provide a router object
// to the Component's props, allowing the Component to programmatically call
// push and other functions.
//
// https://github.com/reactjs/react-router/blob/v2.4.0/upgrade-guides/v2.4.0.md
interface InjectedRouter {
push: (pathOrLoc: H.LocationDescriptor) => void
replace: (pathOrLoc: H.LocationDescriptor) => void
go: (n: number) => void
goBack: () => void
goForward: () => void
setRouteLeaveHook(route: PlainRoute, callback: RouteHook): void
createPath(path: H.Path, query?: H.Query): H.Path
createHref(path: H.Path, query?: H.Query): H.Href
isActive: (pathOrLoc: H.LocationDescriptor, indexOnly?: boolean) => boolean
}
function withRouter<C extends React.ComponentClass<any>>(component: C): C
/* utils */

@@ -423,2 +444,6 @@

declare module "react-router/lib/withRouter" {
export default ReactRouter.withRouter;
}
declare module "react-router" {

@@ -466,2 +491,4 @@

import withRouter from "react-router/lib/withRouter";
// PlainRoute is defined in the API documented at:

@@ -508,3 +535,4 @@ // https://github.com/rackt/react-router/blob/master/docs/API.md

useRouterHistory,
createMemoryHistory
createMemoryHistory,
withRouter
}

@@ -511,0 +539,0 @@

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 17 Aug 2016 20:29:40 GMT
* Last updated: Thu, 18 Aug 2016 13:51:19 GMT
* File structure: MultipleModules

@@ -19,2 +19,2 @@ * Library Dependencies: react

# Credits
These definitions were written by Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>.
These definitions were written by Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>.
{
"authors": "Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>",
"authors": "Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>",
"definitionFilename": "react-router.d.ts",

@@ -40,2 +40,3 @@ "libraryDependencies": [

"react-router/lib/createMemoryHistory",
"react-router/lib/withRouter",
"react-router",

@@ -58,3 +59,3 @@ "history/lib/createBrowserHistory",

"hasPackageJson": false,
"contentHash": "0a8e220dc00808df85c66c9950293dfdfd40fe84f2483a862fd63d48eeeaf5aa"
"contentHash": "2fd66d4d4a46c82bad7bff86a58dd34c48c62240dc425f79447a263d8c1e431c"
}
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