multi-path-matcher
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "multi-path-matcher", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"type": "module", | ||
@@ -30,10 +30,10 @@ "publishConfig": { | ||
"devDependencies": { | ||
"ava": "^2.3.0", | ||
"c8": "^5.0.2", | ||
"documentation": "^12.1.1", | ||
"ava": "^2.4.0", | ||
"c8": "^5.0.4", | ||
"documentation": "^12.1.2", | ||
"esm": "^3.2.25", | ||
"semantic-release": "^15.13.24" | ||
"semantic-release": "^15.13.26" | ||
}, | ||
"engines": { | ||
"node": ">=12.10.0" | ||
"node": ">=12.12.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "repository": { |
@@ -21,3 +21,3 @@ [![npm](https://img.shields.io/npm/v/multi-path-matcher.svg)](https://www.npmjs.com/package/multi-path-matcher) | ||
With paramus | ||
With params | ||
@@ -53,3 +53,3 @@ ```js | ||
{ path: "/*" }, | ||
{ path: "/about"}, | ||
{ path: "/about" }, | ||
{ path: "/login" } | ||
@@ -60,6 +60,6 @@ ]; | ||
matcher(compiled "/"); // routes[0] | ||
matcher(compiled "/index.html"); // routes[1] | ||
matcher(compiled "/about"); // routes[2] | ||
matcher(compiled "/login"); // routes[3] | ||
matcher(compiled, "/"); // routes[0] | ||
matcher(compiled, "/index.html"); // routes[1] | ||
matcher(compiled, "/about"); // routes[2] | ||
matcher(compiled, "/login?param=1"); // routes[3] | ||
``` | ||
@@ -74,15 +74,15 @@ | ||
- [CompiledRoutes](#compiledroutes) | ||
- [Parameters](#parameters) | ||
- [Properties](#properties) | ||
- [Route](#route) | ||
- [Properties](#properties) | ||
- [Properties](#properties-1) | ||
- [Match](#match) | ||
- [Properties](#properties-1) | ||
- [Properties](#properties-2) | ||
- [compile](#compile) | ||
- [Parameters](#parameters-1) | ||
- [Parameters](#parameters) | ||
- [CompiledRoute](#compiledroute) | ||
- [Properties](#properties-2) | ||
- [Properties](#properties-3) | ||
- [pathToRegexp](#pathtoregexp) | ||
- [Parameters](#parameters-1) | ||
- [matcher](#matcher) | ||
- [Parameters](#parameters-2) | ||
- [matcher](#matcher) | ||
- [Parameters](#parameters-3) | ||
@@ -95,6 +95,6 @@ ## CompiledRoutes | ||
### Parameters | ||
### Properties | ||
- `priority` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** | ||
- `keys` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** | ||
- `priority` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** higher number reflect more precise matches | ||
- `keys` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** param names | ||
- `regex` **RegEx** | ||
@@ -147,3 +147,3 @@ | ||
- `regex` **[RegExp](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)** for later checking and params extration | ||
- `keys` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** all keys found in the route | ||
- `keys` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** all keys found in the route | ||
- `priority` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** order in which to check | ||
@@ -150,0 +150,0 @@ |
Sorry, the diff of this file is not supported yet
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
11363