Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More ā†’
Socket
Sign inDemoInstall
Socket

@feathersjs/errors

Package Overview
Dependencies
Maintainers
4
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/errors - npm Package Compare versions

Comparing version 3.2.2 to 3.3.0

15

CHANGELOG.md
# 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)

6

lib/not-found-handler.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc