aurelia-router
Advanced tools
Comparing version 1.0.0-rc.1.0.1 to 1.0.0-rc.1.0.2
{ | ||
"name": "aurelia-router", | ||
"version": "1.0.0-rc.1.0.1", | ||
"version": "1.0.0-rc.1.0.2", | ||
"description": "A powerful client-side router.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -918,3 +918,3 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-dependency-injection', 'aurelia-history', 'aurelia-event-aggregator'], function (exports, _aureliaLogging, _aureliaRouteRecognizer, _aureliaDependencyInjection, _aureliaHistory, _aureliaEventAggregator) { | ||
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) { | ||
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.'); | ||
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.'); | ||
} | ||
@@ -1083,7 +1083,8 @@ | ||
if (typeof config.route !== 'string') { | ||
throw new Error('Invalid Route Config: You must specify a route pattern.'); | ||
var _name2 = config.name || '(no name)'; | ||
throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.'); | ||
} | ||
if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) { | ||
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.'); | ||
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".'); | ||
} | ||
@@ -1090,0 +1091,0 @@ } |
@@ -1239,3 +1239,3 @@ import * as LogManager from 'aurelia-logging'; | ||
if ((!navModel.href && navModel.href !== '') && (state.types.dynamics || state.types.stars)) { | ||
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.'); | ||
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.'); | ||
} | ||
@@ -1411,7 +1411,8 @@ | ||
if (typeof config.route !== 'string') { | ||
throw new Error('Invalid Route Config: You must specify a route pattern.'); | ||
let name = config.name || '(no name)'; | ||
throw new Error('Invalid Route Config for "' + name + '": You must specify a "route:" pattern.'); | ||
} | ||
if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) { | ||
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.'); | ||
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".'); | ||
} | ||
@@ -1418,0 +1419,0 @@ } |
@@ -873,3 +873,3 @@ 'use strict'; | ||
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) { | ||
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.'); | ||
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.'); | ||
} | ||
@@ -1038,7 +1038,8 @@ | ||
if (typeof config.route !== 'string') { | ||
throw new Error('Invalid Route Config: You must specify a route pattern.'); | ||
var _name2 = config.name || '(no name)'; | ||
throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.'); | ||
} | ||
if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) { | ||
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.'); | ||
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".'); | ||
} | ||
@@ -1045,0 +1046,0 @@ } |
@@ -770,3 +770,3 @@ import * as LogManager from 'aurelia-logging'; | ||
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) { | ||
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.'); | ||
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.'); | ||
} | ||
@@ -915,7 +915,8 @@ | ||
if (typeof config.route !== 'string') { | ||
throw new Error('Invalid Route Config: You must specify a route pattern.'); | ||
let name = config.name || '(no name)'; | ||
throw new Error('Invalid Route Config for "' + name + '": You must specify a "route:" pattern.'); | ||
} | ||
if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) { | ||
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.'); | ||
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".'); | ||
} | ||
@@ -922,0 +923,0 @@ } |
@@ -852,3 +852,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; }; | ||
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) { | ||
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.'); | ||
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.'); | ||
} | ||
@@ -1017,7 +1017,8 @@ | ||
if (typeof config.route !== 'string') { | ||
throw new Error('Invalid Route Config: You must specify a route pattern.'); | ||
var _name2 = config.name || '(no name)'; | ||
throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.'); | ||
} | ||
if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) { | ||
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.'); | ||
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".'); | ||
} | ||
@@ -1024,0 +1025,0 @@ } |
@@ -110,7 +110,8 @@ 'use strict'; | ||
if (typeof config.route !== 'string') { | ||
throw new Error('Invalid Route Config: You must specify a route pattern.'); | ||
var _name2 = config.name || '(no name)'; | ||
throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.'); | ||
} | ||
if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) { | ||
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.'); | ||
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".'); | ||
} | ||
@@ -1324,3 +1325,3 @@ } | ||
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) { | ||
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.'); | ||
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.'); | ||
} | ||
@@ -1327,0 +1328,0 @@ |
@@ -0,1 +1,6 @@ | ||
<a name="1.0.0-rc.1.0.2"></a> | ||
# [1.0.0-rc.1.0.2](https://github.com/aurelia/router/compare/1.0.0-rc.1.0.1...v1.0.0-rc.1.0.2) (2016-07-24) | ||
<a name="1.0.0-rc.1.0.1"></a> | ||
@@ -2,0 +7,0 @@ # [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) |
{ | ||
"name": "aurelia-router", | ||
"version": "1.0.0-rc.1.0.1", | ||
"version": "1.0.0-rc.1.0.2", | ||
"description": "A powerful client-side router.", | ||
@@ -116,5 +116,10 @@ "keywords": [ | ||
"documentation": { | ||
"articles": [] | ||
"articles": [ | ||
{ | ||
"title": "Router Configuration", | ||
"href": "doc/article/en-US/router-configuration.md" | ||
} | ||
] | ||
} | ||
} | ||
} |
@@ -274,3 +274,3 @@ import {RouteRecognizer} from 'aurelia-route-recognizer'; | ||
if ((!navModel.href && navModel.href !== '') && (state.types.dynamics || state.types.stars)) { | ||
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.'); | ||
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.'); | ||
} | ||
@@ -446,7 +446,8 @@ | ||
if (typeof config.route !== 'string') { | ||
throw new Error('Invalid Route Config: You must specify a route pattern.'); | ||
let name = config.name || '(no name)'; | ||
throw new Error('Invalid Route Config for "' + name + '": You must specify a "route:" pattern.'); | ||
} | ||
if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) { | ||
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.'); | ||
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".'); | ||
} | ||
@@ -453,0 +454,0 @@ } |
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
918689
82
13000