error-handler-e2
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -0,1 +1,7 @@ | ||
#### 3.0.3 (2021-08-06) | ||
##### Documentation Changes | ||
* update docs ([e85b9e0e](https://github.com/miladezzat/error-handler-e2/commit/e85b9e0e872c575ed75556d272109aa95cf2562d)) | ||
#### 3.0.2 (2021-07-29) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "error-handler-e2", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "This is handle error package", | ||
@@ -40,11 +40,11 @@ "main": "./build/index.js", | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.2.0", | ||
"@rollup/plugin-typescript": "^8.2.5", | ||
"@types/chai": "^4.2.15", | ||
"@types/mocha": "^9.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.28.5", | ||
"@typescript-eslint/parser": "^4.28.5", | ||
"@typescript-eslint/eslint-plugin": "^4.29.0", | ||
"@typescript-eslint/parser": "^4.29.0", | ||
"chai": "^4.3.0", | ||
"commitizen": "^4.2.3", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^7.20.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
@@ -57,3 +57,3 @@ "eslint-plugin-import": "^2.22.1", | ||
"pinst": "^2.1.6", | ||
"rollup": "^2.55.0", | ||
"rollup": "^2.56.0", | ||
"ts-node": "^10.1.0", | ||
@@ -60,0 +60,0 @@ "typescript": "^4.1.5" |
@@ -42,11 +42,2 @@ # Error Handler E2 | ||
2. Http Status | ||
* [NO_CONTENT 204](#no_content-204) | ||
* [BAD_REQUEST 400](#bad_request-400) | ||
* [UNAUTHENTICATED 401](#unauthenticated-401) | ||
* [UNAUTHORIZED 403](#unauthorized-403) | ||
* [NOT_FOUND 404](#not_found-404) | ||
* [CONFLICT 409](#conflict-409) | ||
* [UNPROCURABLE_ENTITY 422](#unprocurable_entity-422) | ||
* [INTERNAL_SERVER_ERROR 500](#internal_server_error-500) | ||
### BadRequestError | ||
@@ -114,3 +105,13 @@ ```js | ||
## NO_CONTENT 204 | ||
2. Http Status | ||
* [NO_CONTENT 204](#no_content-204) | ||
* [BAD_REQUEST 400](#bad_request-400) | ||
* [UNAUTHENTICATED 401](#unauthenticated-401) | ||
* [UNAUTHORIZED 403](#unauthorized-403) | ||
* [NOT_FOUND 404](#not_found-404) | ||
* [CONFLICT 409](#conflict-409) | ||
* [UNPROCURABLE_ENTITY 422](#unprocurable_entity-422) | ||
* [INTERNAL_SERVER_ERROR 500](#internal_server_error-500) | ||
### NO_CONTENT 204 | ||
```js | ||
@@ -120,29 +121,29 @@ const { StatusCodes: { NO_CONTENT } } = require('error-handler-e2'); | ||
``` | ||
## BAD_REQUEST 400 | ||
### BAD_REQUEST 400 | ||
```js | ||
const { StatusCodes: { BAD_REQUEST } } = require('error-handler-e2'); | ||
``` | ||
## UNAUTHENTICATED 401 | ||
### UNAUTHENTICATED 401 | ||
```js | ||
const { StatusCodes: { UNAUTHENTICATED } } = require('error-handler-e2'); | ||
``` | ||
## UNAUTHORIZED 403 | ||
### UNAUTHORIZED 403 | ||
```js | ||
const { StatusCodes: { UNAUTHORIZED } } = require('error-handler-e2'); | ||
``` | ||
## NOT_FOUND 404 | ||
### NOT_FOUND 404 | ||
```js | ||
const { StatusCodes: { NOT_FOUND } } = require('error-handler-e2'); | ||
``` | ||
## CONFLICT 409 | ||
### CONFLICT 409 | ||
```js | ||
const { StatusCodes: { CONFLICT } } = require('error-handler-e2'); | ||
``` | ||
## UNPROCURABLE_ENTITY 422 | ||
### UNPROCURABLE_ENTITY 422 | ||
```js | ||
const { StatusCodes: { UNPROCURABLE_ENTITY } } = require('error-handler-e2'); | ||
``` | ||
## INTERNAL_SERVER_ERROR 500 | ||
### INTERNAL_SERVER_ERROR 500 | ||
```js | ||
const { StatusCodes: { INTERNAL_SERVER_ERROR } } = require('error-handler-e2'); | ||
``` |
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
19692
146