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 3.1.0 to 3.1.1

4

CHANGELOG.md

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

## [3.1.1] - 2019-07-23
### Fixed
- Fix for AWS request path without basePath
## [3.1.0] - 2019-07-20

@@ -9,0 +13,0 @@ ### Added

2

lib/dispatcher.js

@@ -16,3 +16,3 @@ 'use strict';

this.endpoint = requestData.endpoint;
this.endpoint = requestData.endpoint.replace(/^\/?(api\/)?/i, '');
this.method = requestData.method || 'get';

@@ -19,0 +19,0 @@ this.data = requestData.data || {};

@@ -8,3 +8,3 @@ 'use strict';

const {
flow, tail, toLower, split, join
flow, toLower, split, join
} = require('lodash/fp');

@@ -46,3 +46,2 @@ let { filter } = require('lodash/fp');

split('/'),
tail
)(this.endpoint);

@@ -68,3 +67,2 @@

split('/'),
tail,
filter((value, index) => index % 2 === 1)

@@ -71,0 +69,0 @@ )(this.endpoint);

{
"name": "@janiscommerce/api",
"version": "3.1.0",
"version": "3.1.1",
"description": "A package for managing API from any origin",

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