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.2.0 to 1.2.1

4

CHANGELOG.md

@@ -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

6

lib/active-client.js

@@ -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",

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