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

@janiscommerce/active-client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@janiscommerce/active-client - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

4

CHANGELOG.md

@@ -8,2 +8,6 @@ # Changelog

## [1.2.0] - 2019-07-18
### Added
- `getInstance` with client propagation
## [1.1.1] - 2019-07-15

@@ -10,0 +14,0 @@ ### Changed

@@ -15,7 +15,19 @@ 'use strict';

if(client)
client.getInstance = this.getInstance(client);
return client;
}
static getInstance(client) {
return TheClass => {
const instance = new TheClass();
instance.client = client;
return instance;
};
}
}
module.exports = ActiveClient;

4

package.json
{
"name": "@janiscommerce/active-client",
"version": "1.1.1",
"description": "",
"version": "1.2.0",
"description": "A simple module for getting an Active Client from a field and a value",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -6,3 +6,3 @@ # active-client

**ActiveClient** is a simple module for getting a client from a field and a value.
**ActiveClient** is a simple module for getting an Active Client from a field and a value.
The module only has one method and a Model for the get.

@@ -9,0 +9,0 @@

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