@solidjs/router
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -12,2 +12,5 @@ import { isServer, delegateEvents, createComponent as createComponent$1, spread, mergeProps as mergeProps$1, template } from 'solid-js/web'; | ||
function querySelector(selector) { | ||
if (selector === "#") { | ||
return null; | ||
} | ||
// Guard against selector being an invalid CSS selector | ||
@@ -14,0 +17,0 @@ try { |
@@ -10,2 +10,5 @@ import { createSignal, onCleanup } from "solid-js"; | ||
function querySelector(selector) { | ||
if (selector === "#") { | ||
return null; | ||
} | ||
// Guard against selector being an invalid CSS selector | ||
@@ -12,0 +15,0 @@ try { |
@@ -56,3 +56,3 @@ import { Component, JSX } from "solid-js"; | ||
}); | ||
export type MatchFilter = string[] | RegExp | ((s: string) => boolean); | ||
export type MatchFilter = readonly string[] | RegExp | ((s: string) => boolean); | ||
export type PathParams<P extends string | readonly string[]> = P extends `${infer Head}/${infer Tail}` ? [...PathParams<Head>, ...PathParams<Tail>] : P extends `:${infer S}?` ? [S] : P extends `:${infer S}` ? [S] : P extends `*${infer S}` ? [S] : []; | ||
@@ -59,0 +59,0 @@ export type MatchFilters<P extends string | readonly string[] = any> = P extends string ? { |
@@ -9,3 +9,3 @@ { | ||
"license": "MIT", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"homepage": "https://github.com/solidjs/solid-router#readme", | ||
@@ -12,0 +12,0 @@ "repository": { |
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
97433
2071