Socket
Socket
Sign inDemoInstall

@availity/api-core

Package Overview
Dependencies
Maintainers
8
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/api-core - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

12

CHANGELOG.md

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

56

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

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