Socket
Socket
Sign inDemoInstall

@feathersjs/errors

Package Overview
Dependencies
Maintainers
4
Versions
115
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.1 to 3.2.2

12

CHANGELOG.md
# Change Log
## [v3.2.1](https://github.com/feathersjs/errors/tree/v3.2.1) (2018-01-03)
[Full Changelog](https://github.com/feathersjs/errors/compare/v3.2.0...v3.2.1)
**Closed issues:**
- Error handler usage/setup is mis-documented [\#96](https://github.com/feathersjs/errors/issues/96)
**Merged pull requests:**
- Update readme to correspond with latest release [\#98](https://github.com/feathersjs/errors/pull/98) ([daffl](https://github.com/daffl))
- Update semistandard to the latest version 🚀 [\#97](https://github.com/feathersjs/errors/pull/97) ([greenkeeper[bot]](https://github.com/apps/greenkeeper))
## [v3.2.0](https://github.com/feathersjs/errors/tree/v3.2.0) (2017-11-19)

@@ -4,0 +16,0 @@ [Full Changelog](https://github.com/feathersjs/errors/compare/v3.1.0...v3.2.0)

39

lib/index.js

@@ -62,4 +62,9 @@ const debug = require('debug')('@feathersjs/errors');

FeathersError.prototype = Object.create(Error.prototype);
function inheritsFrom (Child, Parent) {
Child.prototype = Object.create(Parent.prototype);
Child.prototype.constructor = Child;
}
inheritsFrom(FeathersError, Error);
// NOTE (EK): A little hack to get around `message` not

@@ -85,3 +90,3 @@ // being included in the default toJSON call.

BadRequest.prototype = FeathersError.prototype;
inheritsFrom(BadRequest, FeathersError);

@@ -93,3 +98,3 @@ // 401 - Not Authenticated

NotAuthenticated.prototype = FeathersError.prototype;
inheritsFrom(NotAuthenticated, FeathersError);

@@ -101,3 +106,3 @@ // 402 - Payment Error

PaymentError.prototype = FeathersError.prototype;
inheritsFrom(PaymentError, FeathersError);

@@ -109,3 +114,3 @@ // 403 - Forbidden

Forbidden.prototype = FeathersError.prototype;
inheritsFrom(Forbidden, FeathersError);

@@ -117,3 +122,3 @@ // 404 - Not Found

NotFound.prototype = FeathersError.prototype;
inheritsFrom(NotFound, FeathersError);

@@ -125,3 +130,3 @@ // 405 - Method Not Allowed

MethodNotAllowed.prototype = FeathersError.prototype;
inheritsFrom(MethodNotAllowed, FeathersError);

@@ -133,3 +138,3 @@ // 406 - Not Acceptable

NotAcceptable.prototype = FeathersError.prototype;
inheritsFrom(NotAcceptable, FeathersError);

@@ -141,3 +146,3 @@ // 408 - Timeout

Timeout.prototype = FeathersError.prototype;
inheritsFrom(Timeout, FeathersError);

@@ -149,3 +154,3 @@ // 409 - Conflict

Conflict.prototype = FeathersError.prototype;
inheritsFrom(Conflict, FeathersError);

@@ -157,3 +162,3 @@ // 411 - Length Required

LengthRequired.prototype = FeathersError.prototype;
inheritsFrom(LengthRequired, FeathersError);

@@ -165,3 +170,3 @@ // 422 Unprocessable

Unprocessable.prototype = FeathersError.prototype;
inheritsFrom(Unprocessable, FeathersError);

@@ -173,3 +178,3 @@ // 429 Too Many Requests

TooManyRequests.prototype = FeathersError.prototype;
inheritsFrom(TooManyRequests, FeathersError);

@@ -181,3 +186,3 @@ // 500 - General Error

GeneralError.prototype = FeathersError.prototype;
inheritsFrom(GeneralError, FeathersError);

@@ -189,3 +194,3 @@ // 501 - Not Implemented

NotImplemented.prototype = FeathersError.prototype;
inheritsFrom(NotImplemented, FeathersError);

@@ -197,3 +202,3 @@ // 502 - Bad Gateway

BadGateway.prototype = FeathersError.prototype;
inheritsFrom(BadGateway, FeathersError);

@@ -205,3 +210,3 @@ // 503 - Unavailable

Unavailable.prototype = FeathersError.prototype;
inheritsFrom(Unavailable, FeathersError);

@@ -208,0 +213,0 @@ const errors = {

{
"name": "@feathersjs/errors",
"description": "Common error types for feathers apps",
"version": "3.2.1",
"version": "3.2.2",
"homepage": "https://github.com/feathersjs/errors",

@@ -55,3 +55,3 @@ "main": "lib/index",

"istanbul": "^1.1.0-alpha.1",
"mocha": "^4.0.0",
"mocha": "^5.0.0",
"request": "^2.69.0",

@@ -58,0 +58,0 @@ "semistandard": "^12.0.0",

@@ -15,3 +15,3 @@ # @feathersjs/errors

```
npm install @feathersjs/primus-client --save
npm install @feathersjs/errors --save
```

@@ -18,0 +18,0 @@

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