Comparing version 6.0.0 to 6.0.1
@@ -34,6 +34,6 @@ import { Promise } from 'rsvp'; | ||
readonly queryParams: Dict<unknown>; | ||
find(predicate: (this: any, routeInfo: RouteInfo, i?: number) => boolean, thisArg?: any): RouteInfo | undefined; | ||
find(predicate: (this: any, routeInfo: RouteInfo, i: number) => boolean, thisArg?: any): RouteInfo | undefined; | ||
} | ||
export interface RouteInfoWithAttributes extends RouteInfo { | ||
attributes: Dict<unknown>; | ||
attributes: any; | ||
} | ||
@@ -40,0 +40,0 @@ export declare function toReadOnlyRouteInfo(routeInfos: InternalRouteInfo<Route>[], queryParams?: Dict<unknown>, includeAttributes?: boolean): RouteInfo[]; |
@@ -46,3 +46,3 @@ 'use strict'; | ||
} | ||
for (var _i = 0; routeInfos.length > 0; _i++) { | ||
for (var _i = 0; routeInfos.length > _i; _i++) { | ||
publicInfo = ROUTE_INFOS.get(routeInfos[_i]); | ||
@@ -49,0 +49,0 @@ if (predicate.call(thisArg, publicInfo, _i, arr)) { |
@@ -32,3 +32,3 @@ import { Promise } from 'rsvp'; | ||
[STATE_SYMBOL]: TransitionState<T>; | ||
from?: RouteInfo; | ||
from: Maybe<RouteInfo>; | ||
to?: RouteInfo; | ||
@@ -35,0 +35,0 @@ router: Router<T>; |
@@ -54,3 +54,3 @@ 'use strict'; | ||
this.from = undefined; | ||
this.from = null; | ||
this.to = undefined; | ||
@@ -57,0 +57,0 @@ this.isAborted = false; |
@@ -34,6 +34,6 @@ import { Promise } from 'rsvp'; | ||
readonly queryParams: Dict<unknown>; | ||
find(predicate: (this: any, routeInfo: RouteInfo, i?: number) => boolean, thisArg?: any): RouteInfo | undefined; | ||
find(predicate: (this: any, routeInfo: RouteInfo, i: number) => boolean, thisArg?: any): RouteInfo | undefined; | ||
} | ||
export interface RouteInfoWithAttributes extends RouteInfo { | ||
attributes: Dict<unknown>; | ||
attributes: any; | ||
} | ||
@@ -40,0 +40,0 @@ export declare function toReadOnlyRouteInfo(routeInfos: InternalRouteInfo<Route>[], queryParams?: Dict<unknown>, includeAttributes?: boolean): RouteInfo[]; |
@@ -15,3 +15,3 @@ import { Promise } from 'rsvp'; | ||
} | ||
for (let i = 0; routeInfos.length > 0; i++) { | ||
for (let i = 0; routeInfos.length > i; i++) { | ||
publicInfo = ROUTE_INFOS.get(routeInfos[i]); | ||
@@ -18,0 +18,0 @@ if (predicate.call(thisArg, publicInfo, i, arr)) { |
@@ -32,3 +32,3 @@ import { Promise } from 'rsvp'; | ||
[STATE_SYMBOL]: TransitionState<T>; | ||
from?: RouteInfo; | ||
from: Maybe<RouteInfo>; | ||
to?: RouteInfo; | ||
@@ -35,0 +35,0 @@ router: Router<T>; |
@@ -24,3 +24,3 @@ import { Promise } from 'rsvp'; | ||
constructor(router, intent, state, error = undefined, previousTransition = undefined) { | ||
this.from = undefined; | ||
this.from = null; | ||
this.to = undefined; | ||
@@ -27,0 +27,0 @@ this.isAborted = false; |
{ | ||
"name": "router_js", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": | ||
@@ -5,0 +5,0 @@ "A lightweight JavaScript library is built on top of route-recognizer and rsvp.js to provide an API for handling routes", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
367644