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

jimpex

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jimpex - npm Package Compare versions

Comparing version 4.0.3 to 5.0.0

23

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://homer0.github.io/jimpex/",
"version": "4.0.3",
"version": "5.0.0",
"repository": "homer0/jimpex",

@@ -11,3 +11,3 @@ "author": "Leonardo Apiwan (@homer0) <me@homer0.com>",

"dependencies": {
"wootils": "^2.6.5",
"wootils": "^3.0.1",
"jimple": "^1.5.0",

@@ -18,3 +18,3 @@ "express": "^4.17.1",

"node-fetch": "^2.6.0",
"urijs": "^1.19.1",
"urijs": "^1.19.2",
"statuses": "^1.5.0",

@@ -26,5 +26,5 @@ "fs-extra": "^8.1.0",

"devDependencies": {
"eslint": "^6.2.2",
"eslint-plugin-homer0": "^2.0.0",
"jest-ex": "^6.1.1",
"eslint": "^6.8.0",
"eslint-plugin-homer0": "^3.0.0",
"jest-ex": "^7.0.1",
"jest-cli": "^24.9.0",

@@ -34,11 +34,10 @@ "jasmine-expect": "^4.0.3",

"esdoc-standard-plugin": "^1.0.0",
"esdoc-node": "^1.0.4",
"leasot": "^8.0.0",
"coveralls": "^3.0.6",
"husky": "^3.0.4"
"esdoc-node": "1.0.4",
"leasot": "^9.3.1",
"coveralls": "^3.0.9",
"husky": "^3.1.0"
},
"engine-strict": true,
"engines": {
"node": ">=8.0.0",
"npm": ">=3.0.0"
"node": ">=10.0.0"
},

@@ -45,0 +44,0 @@ "main": "src/index.js",

@@ -19,3 +19,3 @@ # Jimpex

| Description | Express as dependency injection container. |
| Node Version | >= v8.0.0 |
| Node Version | >= v10.0.0 |

@@ -22,0 +22,0 @@ ## Usage

@@ -19,3 +19,3 @@ # Jimpex

| Description | Express as dependency injection container. |
| Node Version | >= v8.0.0 |
| Node Version | >= v10.0.0 |

@@ -22,0 +22,0 @@ ## Usage

@@ -38,3 +38,7 @@ const ObjectUtils = require('wootils/shared/objectUtils');

constructor(apiConfig, http, HTTPError) {
super(apiConfig.url, apiConfig.endpoints, http.fetch);
super(
apiConfig.url,
apiConfig.endpoints || apiConfig.gateway,
http.fetch
);
/**

@@ -41,0 +45,0 @@ * The configuration for the API the client will make requests to.

@@ -35,2 +35,26 @@ jest.unmock('/src/utils/wrappers');

it('should be instantiated using `gateway` if `endpoint` is not available', () => {
// Given
const apiConfig = {
url: 'my-api',
gateway: {
info: 'api-info',
},
};
const http = {
fetch: () => {},
};
const HTTPError = 'HTTPError';
let sut = null;
// When
sut = new APIClient(apiConfig, http, HTTPError);
// Then
expect(sut).toBeInstanceOf(APIClientBase);
expect(sut).toBeInstanceOf(APIClient);
expect(sut.apiConfig).toEqual(apiConfig);
expect(sut.url).toBe(apiConfig.url);
expect(sut.endpoints).toEqual(apiConfig.gateway);
});
it('should format error responses using the HTTPError service', () => {

@@ -37,0 +61,0 @@ // Given

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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