Comparing version 0.5.0 to 0.5.1
## 0.5.x | ||
### 0.5.1 | ||
* Bug fix - error results not getting rendered correctly from hyped | ||
* Change default error strategy to use an object with a `message` property to match other AH default responses | ||
* No longer return errors as message body (too dangerous a default behavior) | ||
* Add `method` property to httpEnvelope | ||
* Remove demo and dependencies on auth provider libraries | ||
### 0.5.0 | ||
@@ -4,0 +11,0 @@ * A query string value can no longer override a URL parameter (Matches behavior of the `data` object) |
{ | ||
"name": "autohost", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Resource driven, transport agnostic host", | ||
@@ -27,4 +27,2 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"autohost-nedb-auth": "~0.2.0", | ||
"autohost-riak-auth": "~0.2.0", | ||
"biggulp": "0.0.*", | ||
@@ -31,0 +29,0 @@ "chai": "^2.0.0", |
@@ -20,2 +20,3 @@ var request; | ||
this.path = this.url = req.url; | ||
this.method = req.method.toLowerCase(); | ||
this.responseStream = res; | ||
@@ -122,3 +123,3 @@ this.session = req.session; | ||
status: 500, | ||
body: error.message | ||
body: { message: 'Server error' } | ||
}; | ||
@@ -148,3 +149,3 @@ var hostError = host.errors ? host.errors[ error.name ] : undefined; | ||
}; | ||
this.reply( reply ); | ||
this.reply( this.render( host, resource, action, reply ) ); | ||
} | ||
@@ -151,0 +152,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
16
2520
149681
29