@janiscommerce/api
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -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 |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20315
413