@alterior/core
Advanced tools
Comparing version 0.0.23 to 1.0.0
@@ -15,2 +15,3 @@ "use strict"; | ||
var args_1 = require('./args'); | ||
require('source-map-support').install(); | ||
/** | ||
@@ -166,3 +167,4 @@ * Bootstrap an Alterior application. | ||
.forEach(function (x) { return args_2.push(middleware_1.prepareMiddleware(childInjector, x)); }); | ||
var routeParams = (route.path || "").match(/:([A-Za-z][A-Za-z0-9]*)/) || []; | ||
var routeParams = (route.path || "").match(/:([A-Za-z][A-Za-z0-9]*)/g) || []; | ||
routeParams = routeParams.map(function (x) { return x.substr(1); }); | ||
// Do analysis of the controller method ahead of time so we can | ||
@@ -199,3 +201,4 @@ // minimize the amount of overhead of actual web requests | ||
else { | ||
throw new Error("Unable to fulfill route method parameter '" + paramName + "' of type '" + paramType.name + "'"); | ||
throw new Error(("Unable to fulfill route method parameter '" + paramName + "' of type '" + paramType.name + "'\r\n") | ||
+ ("While preparing route " + route.method + " " + route.path + " with method " + route.method + "()")); | ||
} | ||
@@ -202,0 +205,0 @@ }; |
@@ -18,2 +18,4 @@ import 'reflect-metadata'; | ||
require('source-map-support').install(); | ||
/** | ||
@@ -221,4 +223,6 @@ * Bootstrap an Alterior application. | ||
let routeParams = (route.path || "").match(/:([A-Za-z][A-Za-z0-9]*)/) || []; | ||
let routeParams = (route.path || "").match(/:([A-Za-z][A-Za-z0-9]*)/g) || []; | ||
routeParams = routeParams.map(x => x.substr(1)); | ||
// Do analysis of the controller method ahead of time so we can | ||
@@ -252,5 +256,7 @@ // minimize the amount of overhead of actual web requests | ||
} else { | ||
throw new Error(`Unable to fulfill route method parameter '${paramName}' of type '${paramType.name}'`); | ||
throw new Error( | ||
`Unable to fulfill route method parameter '${paramName}' of type '${paramType.name}'\r\n` | ||
+ `While preparing route ${route.method} ${route.path} with method ${route.method}()` | ||
); | ||
} | ||
} | ||
@@ -257,0 +263,0 @@ } else { |
{ | ||
"name": "@alterior/core", | ||
"version": "0.0.23", | ||
"version": "1.0.0", | ||
"private": false, | ||
@@ -28,3 +28,4 @@ "description": "An Express-based Typescript MVC framework using decorators and Angular 2 dependency injection.", | ||
"reflect-metadata": "^0.1.8", | ||
"rxjs": "^5.0.0-beta.12" | ||
"rxjs": "^5.0.0-beta.12", | ||
"source-map-support": "^0.4.6" | ||
}, | ||
@@ -31,0 +32,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
183063
2513
1
9
+ Addedsource-map-support@^0.4.6
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-support@0.4.18(transitive)