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

@janiscommerce/api

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@janiscommerce/api - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

7

CHANGELOG.md

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

14

lib/api.js

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

4

package.json
{
"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",

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