preact-router
Advanced tools
Comparing version 2.5.3 to 2.5.4
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35551
723