Comparing version 2.1.0 to 2.1.1
2.1.1 / 2011-03-29 | ||
================== | ||
* Added; expose `err.view` object when failing to locate a view | ||
* Fixed `res.partial()` call `next(err)` when no callback is given [reported by aheckmann] | ||
* Fixed; `res.send(undefined)` responds with 204 [aheckmann] | ||
2.1.0 / 2011-03-24 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -30,3 +30,3 @@ | ||
exports.version = '2.1.0'; | ||
exports.version = '2.1.1'; | ||
@@ -33,0 +33,0 @@ /** |
@@ -54,3 +54,3 @@ | ||
// allow 0 args as 204 | ||
if (!arguments.length) body = status = 204; | ||
if (!arguments.length || undefined === body) body = status = 204; | ||
@@ -57,0 +57,0 @@ // determine content type |
@@ -182,4 +182,5 @@ | ||
} else { | ||
throw err; | ||
this.req.next(err); | ||
} | ||
return; | ||
} | ||
@@ -224,3 +225,4 @@ | ||
fn(err); | ||
// unwind to root call | ||
// unwind to root call to prevent | ||
// several next(err) calls | ||
} else if (sub) { | ||
@@ -309,3 +311,5 @@ throw err; | ||
if (app.enabled('hints')) hintAtViewPaths(orig, options); | ||
throw new Error('failed to locate view "' + orig.view + '"'); | ||
var err = new Error('failed to locate view "' + orig.view + '"'); | ||
err.view = orig; | ||
throw err; | ||
} | ||
@@ -312,0 +316,0 @@ |
{ | ||
"name": "express", | ||
"description": "Sinatra inspired web development framework", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -18,2 +18,3 @@ "contributors": [ | ||
"keywords": ["framework", "sinatra", "web", "rest", "restful"], | ||
"repository": "git://github.com/visionmedia/express", | ||
"main": "index", | ||
@@ -20,0 +21,0 @@ "bin": { "express": "./bin/express" }, |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
84951
1795