aurelia-route-recognizer
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "aurelia-route-recognizer", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A lightweight JavaScript library that matches paths against registered routes. It includes support for dynamic and star segments and nested handlers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,2 +5,10 @@ import { | ||
} from 'aurelia-path'; | ||
/* | ||
* An object that is indexed and used for route generation, particularly for dynamic routes. | ||
*/ | ||
export declare interface RouteGenerator { | ||
segments: Array<StaticSegment | DynamicSegment | StarSegment | EpsilonSegment>; | ||
handlers: HandlerEntry[]; | ||
} | ||
export declare interface RouteHandler { | ||
@@ -29,13 +37,2 @@ name: string; | ||
/** | ||
* An object that is indexed and used for route generation, particularly for dynamic routes. | ||
*/ | ||
/** | ||
* An object that is indexed and used for route generation, particularly for dynamic routes. | ||
*/ | ||
export declare interface RouteGenerator { | ||
segments: Segment[]; | ||
handlers: HandlerEntry[]; | ||
} | ||
// A State has a character specification and (`charSpec`) and a list of possible | ||
@@ -170,3 +167,3 @@ // subsequent states (`nextStates`). | ||
*/ | ||
recognize(path: string): RecognizeResults; | ||
recognize(path: string): RecognizedRoute[] | void; | ||
} |
@@ -188,2 +188,10 @@ import {buildQueryString,parseQueryString} from 'aurelia-path'; | ||
/* | ||
* An object that is indexed and used for route generation, particularly for dynamic routes. | ||
*/ | ||
interface RouteGenerator { | ||
segments: Array<StaticSegment | DynamicSegment | StarSegment | EpsilonSegment>; | ||
handlers: HandlerEntry[]; | ||
} | ||
interface RouteHandler { | ||
@@ -216,12 +224,3 @@ name: string; | ||
type Segment = StaticSegment | DynamicSegment | StarSegment | EpsilonSegment; | ||
/** | ||
* An object that is indexed and used for route generation, particularly for dynamic routes. | ||
*/ | ||
interface RouteGenerator { | ||
segments: Segment[]; | ||
handlers: HandlerEntry[]; | ||
} | ||
/** | ||
* Class that parses route patterns and matches path strings. | ||
@@ -425,3 +424,3 @@ * | ||
*/ | ||
recognize(path: string): RecognizeResults { | ||
recognize(path: string): RecognizedRoute[] | void { | ||
let states = [this.rootState]; | ||
@@ -428,0 +427,0 @@ let queryParams = {}; |
@@ -0,1 +1,6 @@ | ||
<a name="1.3.1"></a> | ||
## [1.3.1](https://github.com/aurelia/route-recognizer/compare/1.3.0...1.3.1) (2018-11-20) | ||
<a name="1.3.0"></a> | ||
@@ -2,0 +7,0 @@ # [1.3.0](https://github.com/aurelia/route-recognizer/compare/1.2.0...1.3.0) (2018-11-20) |
{ | ||
"name": "aurelia-route-recognizer", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A lightweight JavaScript library that matches paths against registered routes. It includes support for dynamic and star segments and nested handlers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import { StaticSegment, DynamicSegment, StarSegment, EpsilonSegment } from './segments'; | ||
/* | ||
* An object that is indexed and used for route generation, particularly for dynamic routes. | ||
*/ | ||
interface RouteGenerator { | ||
segments: Array<StaticSegment | DynamicSegment | StarSegment | EpsilonSegment>; | ||
handlers: HandlerEntry[]; | ||
} | ||
interface RouteHandler { | ||
@@ -29,10 +37,1 @@ name: string; | ||
} | ||
type Segment = StaticSegment | DynamicSegment | StarSegment | EpsilonSegment; | ||
/** | ||
* An object that is indexed and used for route generation, particularly for dynamic routes. | ||
*/ | ||
interface RouteGenerator { | ||
segments: Segment[]; | ||
handlers: HandlerEntry[]; | ||
} |
@@ -209,3 +209,3 @@ import {buildQueryString, parseQueryString} from 'aurelia-path'; | ||
*/ | ||
recognize(path: string): RecognizeResults { | ||
recognize(path: string): RecognizedRoute[] | void { | ||
let states = [this.rootState]; | ||
@@ -212,0 +212,0 @@ let queryParams = {}; |
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
416671
4594