@feathersjs/errors
Advanced tools
Comparing version 3.2.2 to 3.3.0
# Change Log | ||
## [v3.2.2](https://github.com/feathersjs/errors/tree/v3.2.2) (2018-01-23) | ||
[Full Changelog](https://github.com/feathersjs/errors/compare/v3.2.1...v3.2.2) | ||
**Closed issues:** | ||
- Handling Status Codes [\#103](https://github.com/feathersjs/errors/issues/103) | ||
- Override default error page [\#102](https://github.com/feathersjs/errors/issues/102) | ||
- wrong npm package in Installation instructions [\#100](https://github.com/feathersjs/errors/issues/100) | ||
**Merged pull requests:** | ||
- Fix instanceof and prototypical inheritance [\#104](https://github.com/feathersjs/errors/pull/104) ([nikaspran](https://github.com/nikaspran)) | ||
- Update mocha to the latest version š [\#101](https://github.com/feathersjs/errors/pull/101) ([greenkeeper[bot]](https://github.com/apps/greenkeeper)) | ||
- fix installation declaration [\#99](https://github.com/feathersjs/errors/pull/99) ([jasonmacgowan](https://github.com/jasonmacgowan)) | ||
## [v3.2.1](https://github.com/feathersjs/errors/tree/v3.2.1) (2018-01-03) | ||
@@ -4,0 +19,0 @@ [Full Changelog](https://github.com/feathersjs/errors/compare/v3.2.0...v3.2.1) |
const errors = require('./index'); | ||
module.exports = function () { | ||
module.exports = function ({ verbose = false } = {}) { | ||
return function (req, res, next) { | ||
next(new errors.NotFound('Page not found')); | ||
const { url } = req; | ||
const message = `Page not found${verbose ? ': ' + url : ''}`; | ||
next(new errors.NotFound(message, { url })); | ||
}; | ||
}; |
{ | ||
"name": "@feathersjs/errors", | ||
"description": "Common error types for feathers apps", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"homepage": "https://github.com/feathersjs/errors", | ||
@@ -6,0 +6,0 @@ "main": "lib/index", |
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
68716
299