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

@venncity/errors

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@venncity/errors - npm Package Compare versions

Comparing version 1.7.1 to 1.7.2

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [1.7.2](https://github.com/venn-city/npm-shelf/compare/@venncity/errors@1.7.1...@venncity/errors@1.7.2) (2020-05-26)
**Note:** Version bump only for package @venncity/errors
## [1.7.1](https://github.com/venn-city/npm-shelf/compare/@venncity/errors@1.7.0...@venncity/errors@1.7.1) (2020-05-21)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "@venncity/errors",
"version": "1.7.1",
"version": "1.7.2",
"author": "Venn Engineering",

@@ -32,3 +32,3 @@ "main": "src/index.js",

},
"gitHead": "8285f069b31d9eaff5d9fcb4797eb3a6777420a9"
"gitHead": "a7a93cd663f5da53548c44de3e71e9cdd4e8b869"
}

@@ -0,7 +1,21 @@

### Errors
![Coverage](https://api.venn.city/production/coverage/badge?branch=master&repository=@venncity/errors)
### Errors
Provides data validation and common error objects.
#### provides data validation and common errors
uses VError and Joi libraries under the hood
#### **Error types:**
* VennError
* VennUnknownError
* VennForbiddenError
* VennThrottlingError
* VennServerDataValidationError
* VennClientDataValidationError
#### **validator.assert(value, schema, overrides)**
Used to validate an object schema against a schema (using the joi dsl - https://github.com/hapijs/joi/blob/v15.0.0/lib/language.js).
The `ValidationError` field in the overrides param lets you select what type of error will be thrown upon a validation error.
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