New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pojo-router/react-browser-pathname

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pojo-router/react-browser-pathname - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2-beta.0

2

lib/index.d.ts
import type { ReactNode } from 'react';
import { UpdateContext } from './context';
declare const BrowserPathname: ({ children }: {

@@ -10,2 +11,3 @@ children: ReactNode;

export { Link } from './Link';
export { UpdateContext };
//# sourceMappingURL=index.d.ts.map

8

lib/Link.d.ts

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

replace: boolean;
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
} & (({
component: React.ComponentType<P>;
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
} & P;
} & P) | ({
component: string;
children: React.ReactChild;
} & React.AnchorHTMLAttributes<HTMLAnchorElement>));
export declare function Link<P extends Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'target'> = React.AnchorHTMLAttributes<HTMLAnchorElement>>({ to, replace, component: Component, onClick, ...rest }: LinkProps<P>): JSX.Element;

@@ -10,0 +14,0 @@ export declare namespace Link {

{
"name": "@pojo-router/react-browser-pathname",
"version": "0.3.1",
"version": "0.3.2-beta.0",
"description": "A react hooks wrapper around the browser's pathname",

@@ -65,4 +65,3 @@ "scripts": {

}
},
"gitHead": "b2c928cc400cfdc1d144b90ca4442a1a2e657751"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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