@availity/api-core
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -6,2 +6,14 @@ # Change Log | ||
## [5.1.1](https://github.com/Availity/sdk-js/compare/@availity/api-core@5.1.0...@availity/api-core@5.1.1) (2019-04-23) | ||
### Bug Fixes | ||
* **api-core:** relative location header ([2ac4c5f](https://github.com/Availity/sdk-js/commit/2ac4c5f)), closes [#77](https://github.com/Availity/sdk-js/issues/77) | ||
* **api-core:** resolve relative url from request url ([8e6abbb](https://github.com/Availity/sdk-js/commit/8e6abbb)), closes [#77](https://github.com/Availity/sdk-js/issues/77) | ||
# [5.1.0](https://github.com/Availity/sdk-js/compare/@availity/api-core@5.0.1...@availity/api-core@5.1.0) (2019-04-17) | ||
@@ -8,0 +20,0 @@ |
{ | ||
"name": "@availity/api-core", | ||
"version": "5.1.0", | ||
"description": "Base API definitions for the Availity REST API", | ||
"keywords": [ | ||
"availity", | ||
"api", | ||
"http", | ||
"rest" | ||
], | ||
"main": "src/index.js", | ||
"author": "Kasey Powers <kasey.powers@availity.com>", | ||
"repository": "https://github.com/Availity/sdk-js", | ||
"bugs": "https://github.com/Availity/sdk-js/issues", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@availity/localstorage-core": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"@availity/localstorage-core": "^2.6.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
"qs": "^6.5.2" | ||
}, | ||
"gitHead": "719cc1c6c40a17bd8596cf9339ba2de4bc5127ff" | ||
"name": "@availity/api-core", | ||
"version": "5.1.1", | ||
"description": "Base API definitions for the Availity REST API", | ||
"keywords": [ | ||
"availity", | ||
"api", | ||
"http", | ||
"rest" | ||
], | ||
"main": "src/index.js", | ||
"author": "Kasey Powers <kasey.powers@availity.com>", | ||
"repository": "https://github.com/Availity/sdk-js", | ||
"bugs": "https://github.com/Availity/sdk-js/issues", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@availity/localstorage-core": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"@availity/localstorage-core": "^2.6.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
"@availity/resolve-url": "^1.0.0", | ||
"is-absolute-url": "^3.0.0", | ||
"qs": "^6.5.2" | ||
}, | ||
"gitHead": "21b480acb7fc70e240d88451cee8adecb5ddde56" | ||
} |
import AvLocalStorage from '@availity/localstorage-core'; | ||
import qs from 'qs'; | ||
import resolveUrl from '@availity/resolve-url'; | ||
@@ -36,3 +37,3 @@ import API_OPTIONS from './options'; | ||
// set the cache paramaters | ||
// set the cache parameters | ||
cacheParams(config) { | ||
@@ -121,11 +122,14 @@ const params = {}; | ||
getLocation(response) { | ||
let location = false; | ||
let locationUrl; | ||
const { config, headers = {} } = response; | ||
const { getHeader, base, url } = config; | ||
const { location, Location } = headers; | ||
if (response.config.getHeader) { | ||
location = response.config.getHeader(response, 'Location'); | ||
if (getHeader) { | ||
locationUrl = getHeader(response, 'Location'); | ||
} else { | ||
location = response.headers.location || response.headers.Location; | ||
locationUrl = location || Location; | ||
} | ||
return location; | ||
return resolveUrl({ relative: locationUrl, base: base || url }); | ||
} | ||
@@ -132,0 +136,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { AvMicroservice } from '..'; | ||
import AvMicroservice from '../ms'; | ||
@@ -3,0 +3,0 @@ export default class AvSlotMachine extends AvMicroservice { |
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
931
51492
4
26
+ Added@availity/resolve-url@^1.0.0
+ Addedis-absolute-url@^3.0.0
+ Added@availity/resolve-url@1.1.25(transitive)
+ Added@babel/runtime@7.25.6(transitive)
+ Addedcore-js@3.38.1(transitive)
+ Addedis-absolute-url@3.0.3(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)