@janiscommerce/api
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -9,2 +9,6 @@ # Changelog | ||
## [5.0.1] - 2020-06-18 | ||
### Removed | ||
- Removed useless API inheritance validation | ||
## [5.0.0] - 2020-06-15 | ||
@@ -11,0 +15,0 @@ ### Changed |
@@ -5,3 +5,2 @@ 'use strict'; | ||
const API = require('./api'); | ||
const APIError = require('./error'); | ||
@@ -95,6 +94,2 @@ | ||
// Validate api inheritance | ||
if(!(apiController instanceof API)) | ||
throw new APIError(`API '${apiController.constructor.name}' does not inherit from 'API'`, APIError.codes.INVALID_API); | ||
// Validate api process method | ||
@@ -101,0 +96,0 @@ if(!apiController.process || typeof apiController.process !== 'function') |
{ | ||
"name": "@janiscommerce/api", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "A package for managing API from any origin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
25092
400