aurelia-router
Advanced tools
Comparing version 1.0.0-rc.1.0.0 to 1.0.0-rc.1.0.1
{ | ||
"name": "aurelia-router", | ||
"version": "1.0.0-rc.1.0.0", | ||
"version": "1.0.0-rc.1.0.1", | ||
"description": "A powerful client-side router.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
System.config({ | ||
defaultJSExtensions: true, | ||
transpiler: "babel", | ||
babelOptions: { | ||
"optional": [ | ||
"runtime", | ||
"es7.decorators" | ||
] | ||
}, | ||
paths: { | ||
@@ -11,0 +4,0 @@ "github:*": "jspm_packages/github/*", |
@@ -307,2 +307,3 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-dependency-injection', 'aurelia-history', 'aurelia-event-aggregator'], function (exports, _aureliaLogging, _aureliaRouteRecognizer, _aureliaDependencyInjection, _aureliaHistory, _aureliaEventAggregator) { | ||
path = encodeURI(path); | ||
return this.fragment.substr(0, this.fragment.lastIndexOf(path)); | ||
@@ -971,2 +972,4 @@ }; | ||
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState); | ||
} else { | ||
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState); | ||
} | ||
@@ -973,0 +976,0 @@ } |
@@ -24,3 +24,3 @@ import * as LogManager from 'aurelia-logging'; | ||
*/ | ||
complete(result: any): Promise<any>; | ||
complete(result?: any): Promise<any>; | ||
@@ -30,3 +30,3 @@ /** | ||
*/ | ||
cancel(result: any): Promise<any>; | ||
cancel(result?: any): Promise<any>; | ||
@@ -36,3 +36,3 @@ /** | ||
*/ | ||
reject(result: any): Promise<any>; | ||
reject(result?: any): Promise<any>; | ||
@@ -333,2 +333,7 @@ /** | ||
config: RouteConfig; | ||
/** | ||
* The router associated with this navitation model. | ||
*/ | ||
router: Router; | ||
constructor(router: Router, relativeHref: string); | ||
@@ -335,0 +340,0 @@ |
@@ -77,3 +77,3 @@ import * as LogManager from 'aurelia-logging'; | ||
*/ | ||
complete: (result: any) => Promise<any>, | ||
complete: (result?: any) => Promise<any>, | ||
@@ -83,3 +83,3 @@ /** | ||
*/ | ||
cancel: (result: any) => Promise<any>, | ||
cancel: (result?: any) => Promise<any>, | ||
@@ -89,3 +89,3 @@ /** | ||
*/ | ||
reject: (result: any) => Promise<any> | ||
reject: (result?: any) => Promise<any> | ||
} | ||
@@ -360,2 +360,3 @@ | ||
path = encodeURI(path); | ||
return this.fragment.substr(0, this.fragment.lastIndexOf(path)); | ||
@@ -487,2 +488,7 @@ } | ||
/** | ||
* The router associated with this navitation model. | ||
*/ | ||
router: Router; | ||
constructor(router: Router, relativeHref: string) { | ||
@@ -1310,2 +1316,4 @@ this.router = router; | ||
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState); | ||
} else { | ||
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState); | ||
} | ||
@@ -1312,0 +1320,0 @@ } |
@@ -262,2 +262,3 @@ 'use strict'; | ||
path = encodeURI(path); | ||
return this.fragment.substr(0, this.fragment.lastIndexOf(path)); | ||
@@ -926,2 +927,4 @@ }; | ||
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState); | ||
} else { | ||
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState); | ||
} | ||
@@ -928,0 +931,0 @@ } |
@@ -214,2 +214,3 @@ import * as LogManager from 'aurelia-logging'; | ||
path = encodeURI(path); | ||
return this.fragment.substr(0, this.fragment.lastIndexOf(path)); | ||
@@ -819,2 +820,4 @@ } | ||
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState); | ||
} else { | ||
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState); | ||
} | ||
@@ -821,0 +824,0 @@ } |
@@ -241,2 +241,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
path = encodeURI(path); | ||
return this.fragment.substr(0, this.fragment.lastIndexOf(path)); | ||
@@ -905,2 +906,4 @@ }; | ||
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState); | ||
} else { | ||
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState); | ||
} | ||
@@ -907,0 +910,0 @@ } |
@@ -759,2 +759,3 @@ 'use strict'; | ||
path = encodeURI(path); | ||
return this.fragment.substr(0, this.fragment.lastIndexOf(path)); | ||
@@ -1376,2 +1377,4 @@ }; | ||
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState); | ||
} else { | ||
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState); | ||
} | ||
@@ -1378,0 +1381,0 @@ } |
@@ -0,1 +1,17 @@ | ||
<a name="1.0.0-rc.1.0.1"></a> | ||
# [1.0.0-rc.1.0.1](https://github.com/aurelia/router/compare/1.0.0-rc.1.0.0...v1.0.0-rc.1.0.1) (2016-07-12) | ||
### Bug Fixes | ||
* **navigation-instruction:** incorrect base url extraction ([b8036e4](https://github.com/aurelia/router/commit/b8036e4)), closes [#309](https://github.com/aurelia/router/issues/309) | ||
* **router:** navigation model explicit href normalization ([e80a16c](https://github.com/aurelia/router/commit/e80a16c)) | ||
### Features | ||
* **nav-model:** add router property to dts ([fe0070c](https://github.com/aurelia/router/commit/fe0070c)), closes [#359](https://github.com/aurelia/router/issues/359) | ||
<a name="1.0.0-rc.1.0.0"></a> | ||
@@ -2,0 +18,0 @@ # [1.0.0-rc.1.0.0](https://github.com/aurelia/router/compare/1.0.0-beta.2.0.1...v1.0.0-rc.1.0.0) (2016-06-22) |
{ | ||
"name": "aurelia-router", | ||
"version": "1.0.0-rc.1.0.0", | ||
"version": "1.0.0-rc.1.0.1", | ||
"description": "A powerful client-side router.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -36,2 +36,7 @@ /** | ||
/** | ||
* The router associated with this navitation model. | ||
*/ | ||
router: Router; | ||
constructor(router: Router, relativeHref: string) { | ||
@@ -38,0 +43,0 @@ this.router = router; |
@@ -170,2 +170,3 @@ interface NavigationInstructionInit { | ||
path = encodeURI(path); | ||
return this.fragment.substr(0, this.fragment.lastIndexOf(path)); | ||
@@ -172,0 +173,0 @@ } |
@@ -24,3 +24,3 @@ /** | ||
*/ | ||
complete: (result: any) => Promise<any>, | ||
complete: (result?: any) => Promise<any>, | ||
@@ -30,3 +30,3 @@ /** | ||
*/ | ||
cancel: (result: any) => Promise<any>, | ||
cancel: (result?: any) => Promise<any>, | ||
@@ -36,3 +36,3 @@ /** | ||
*/ | ||
reject: (result: any) => Promise<any> | ||
reject: (result?: any) => Promise<any> | ||
} | ||
@@ -39,0 +39,0 @@ |
@@ -8,2 +8,3 @@ import {RouteRecognizer} from 'aurelia-route-recognizer'; | ||
import { | ||
_normalizeAbsolutePath, | ||
_createRootedPath, | ||
@@ -346,2 +347,4 @@ _resolveUrl} from './util'; | ||
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState); | ||
} else { | ||
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState); | ||
} | ||
@@ -348,0 +351,0 @@ } |
Sorry, the diff of this file is too big to display
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
885033
12993