Socket
Socket
Sign inDemoInstall

@availity/api-core

Package Overview
Dependencies
Maintainers
18
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 7.0.5 to 7.0.6

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [7.0.6](https://github.com/Availity/sdk-js/compare/@availity/api-core@7.0.5...@availity/api-core@7.0.6) (2021-10-29)
**Note:** Version bump only for package @availity/api-core
## 7.0.5 (2021-10-22)

@@ -8,0 +16,0 @@

6

lib/flattenObject.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
require("core-js/modules/es.object.to-string");

@@ -10,2 +12,4 @@

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
require("core-js/modules/es.regexp.to-string.js");

@@ -32,3 +36,3 @@

toReturn[k] = ob[k].toJSON();
} else if (ob[k] && typeof ob[k] === 'object') {
} else if (ob[k] && (0, _typeof2["default"])(ob[k]) === 'object') {
var flatObject = flattenObject(ob[k]);

@@ -35,0 +39,0 @@ var isArray = Array.isArray(ob[k]);

4

lib/resources/organizations.js

@@ -72,2 +72,4 @@ "use strict";

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));

@@ -189,3 +191,3 @@

});
} else if (typeof data === 'object') {
} else if ((0, _typeof2["default"])(data) === 'object') {
_data = data, _region = _data.region;

@@ -192,0 +194,0 @@

{
"name": "@availity/api-core",
"version": "7.0.5",
"version": "7.0.6",
"description": "Base API definitions for the Availity REST API",

@@ -24,9 +24,9 @@ "keywords": [

"dependencies": {
"@availity/env-var": "^1.11.2",
"@availity/resolve-url": "^1.1.22",
"@babel/runtime": "^7.10.2",
"@availity/env-var": "^1.11.1",
"@availity/resolve-url": "^1.1.23",
"@babel/runtime": "^7.15.4",
"core-js": "^3.12.1",
"qs": "^6.5.2"
},
"gitHead": "a247c20c27816eb3e3b68b983d12631a6cadd72b"
"gitHead": "19644de90a510481a5086fcf737d43491061690b"
}
// Copied from https://github.com/Availity/sdk-js/blob/master/packages/native-form/flattenObject.js
const parseValue = (value) =>
value === undefined || value === null ? value : value.toString();
const parseValue = (value) => (value === undefined || value === null ? value : value.toString());

@@ -14,5 +13,3 @@ const flattenObject = (ob) =>

for (const k2 of Object.keys(flatObject)) {
toReturn[
`${k}${isArray ? k2.replace(/^(\d+)(\..*)?/, '[$1]$2') : `.${k2}`}`
] = parseValue(flatObject[k2]);
toReturn[`${k}${isArray ? k2.replace(/^(\d+)(\..*)?/, '[$1]$2') : `.${k2}`}`] = parseValue(flatObject[k2]);
}

@@ -19,0 +16,0 @@ } else {

@@ -24,6 +24,3 @@ import AvApi from '../api';

flattened.X_Client_ID = this.clientId;
flattened.X_XSRF_TOKEN = document.cookie.replace(
/(?:(?:^|.*;\s*)XSRF-TOKEN\s*=\s*([^;]*).*$)|^.*$/,
'$1'
);
flattened.X_XSRF_TOKEN = document.cookie.replace(/(?:(?:^|.*;\s*)XSRF-TOKEN\s*=\s*([^;]*).*$)|^.*$/, '$1');

@@ -30,0 +27,0 @@ const fields = Object.keys(flattened)

@@ -35,6 +35,3 @@ import AvApi from '../api';

return this.avUsers.me().then((user) => {
const queryConfig = this.addParams(
{ applicationId, userId: user.id },
config
);
const queryConfig = this.addParams({ applicationId, userId: user.id }, config);
return this.query(queryConfig);

@@ -49,6 +46,3 @@ });

if (
typeof applicationId !== 'string' &&
typeof applicationId !== 'number'
) {
if (typeof applicationId !== 'string' && typeof applicationId !== 'number') {
config = data;

@@ -55,0 +49,0 @@ data = applicationId;

@@ -9,4 +9,3 @@ import qs from 'qs';

name: 'axi-user-permissions',
paramsSerializer: (params) =>
qs.stringify(params, { arrayFormat: 'repeat' }),
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: 'repeat' }),
...config,

@@ -23,5 +22,3 @@ };

afterQuery(response) {
return response && response.data && response.data.axiUserPermissions
? response.data.axiUserPermissions
: [];
return response && response.data && response.data.axiUserPermissions ? response.data.axiUserPermissions : [];
}

@@ -28,0 +25,0 @@

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