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

preact-router

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

preact-router - npm Package Compare versions

Comparing version 2.5.3 to 2.5.4

src/match.d.ts

6

package.json
{
"name": "preact-router",
"amdName": "preactRouter",
"version": "2.5.3",
"version": "2.5.4",
"description": "Connect your components up to that address bar.",

@@ -11,3 +11,3 @@ "main": "dist/preact-router.js",

"clean": "rimraf dist/",
"copy-typescript-definition": "copyfiles -f src/index.d.ts dist",
"copy-typescript-definition": "copyfiles -f src/index.d.ts src/match.d.ts .",
"build": "npm-run-all --silent clean transpile transpile:match copy-typescript-definition size",

@@ -29,3 +29,3 @@ "transpile": "rollup -c --environment FORMAT:umd && rollup -c --environment FORMAT:es",

],
"typings": "./dist/index.d.ts",
"typings": "./index.d.ts",
"keywords": [

@@ -32,0 +32,0 @@ "preact",

@@ -8,8 +8,12 @@ import * as preact from 'preact';

export interface Location {
pathname: string;
search: string;
}
export interface CustomHistory {
getCurrentLocation?: () => string;
location?: string;
listen(callback: (url: string) => void): () => void;
push?: (url: string) => void;
replace?: (url: string) => void;
listen(callback: (location: Location) => void): () => void;
location: Location;
push(path: string): void;
replace(path: string): void;
}

@@ -16,0 +20,0 @@

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