@janiscommerce/api
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -7,2 +7,9 @@ # Changelog | ||
## [3.0.0] - 2019-07-18 | ||
### Removed | ||
- `API base` - getInstance helper | ||
### Changed | ||
- Updated `active-client` package for having getInstance | ||
## [2.0.1] - 2019-07-18 | ||
@@ -9,0 +16,0 @@ ### Fixed |
@@ -94,18 +94,4 @@ 'use strict'; | ||
/** | ||
* Gets the instance of a module and inject de client | ||
* | ||
* @param {class} moduleClass The module class | ||
* @return {object} The instance. | ||
*/ | ||
getInstance(moduleClass) { | ||
const obj = new moduleClass(); // eslint-disable-line | ||
if(this.client) | ||
obj.client = this.client; | ||
return obj; | ||
} | ||
} | ||
module.exports = API; |
{ | ||
"name": "@janiscommerce/api", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "A package for managing API from any origin", | ||
@@ -37,3 +37,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@janiscommerce/active-client": "^1.1.1", | ||
"@janiscommerce/active-client": "^1.2.0", | ||
"@janiscommerce/logger": "^1.1.0", | ||
@@ -40,0 +40,0 @@ "@janiscommerce/settings": "^1.0.1", |
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
20040
414