@janiscommerce/active-client
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -8,2 +8,6 @@ # Changelog | ||
## [1.2.1] - 2019-08-06 | ||
### Changed | ||
- Client injection refactored | ||
## [1.2.0] - 2019-07-18 | ||
@@ -10,0 +14,0 @@ ### Added |
@@ -16,3 +16,3 @@ 'use strict'; | ||
if(client) | ||
client.getInstance = this.getInstance(client); | ||
this.inject(client); | ||
@@ -22,4 +22,4 @@ return client; | ||
static getInstance(client) { | ||
return TheClass => { | ||
static inject(client) { | ||
client.getInstance = TheClass => { | ||
const instance = new TheClass(); | ||
@@ -26,0 +26,0 @@ instance.client = client; |
{ | ||
"name": "@janiscommerce/active-client", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A simple module for getting an Active Client from a field and a value", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4752