Socket
Socket
Sign inDemoInstall

@availity/api-core

Package Overview
Dependencies
Maintainers
0
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 8.0.5 to 8.0.6

4

CHANGELOG.md

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

## [8.0.6](https://github.com/Availity/sdk-js/compare/@availity/api-core@8.0.5...@availity/api-core@8.0.6) (2024-07-29)
## [8.0.5](https://github.com/Availity/sdk-js/compare/@availity/api-core@8.0.4...@availity/api-core@8.0.5) (2023-08-23)

@@ -7,0 +11,0 @@

@@ -79,2 +79,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

/* eslint-disable unicorn/prefer-export-from */
export { AvMicroservice, AvApi as default };

18

dist/index.js

@@ -250,3 +250,3 @@ "use strict";

getPageBust() {
if (typeof this.pageBustValue === "undefined") {
if (this.pageBustValue === void 0) {
this.setPageBust();

@@ -258,3 +258,3 @@ }

setPageBust(value) {
this.pageBustValue = typeof value === "undefined" ? Date.now() : value;
this.pageBustValue = value === void 0 ? Date.now() : value;
}

@@ -269,3 +269,3 @@ // get final url from config

parts = name ? ["", path, version, name, id] : [url, id];
const uri = parts.join("/").replace(/\/+/g, "/").replace(/\/$/, "");
const uri = parts.join("/").replaceAll(/\/+/g, "/").replace(/\/$/, "");
const hostname = url ? null : resolveHost(host, config.window || window);

@@ -511,3 +511,3 @@ return (hostname ? `https://${hostname}` : "") + uri;

}
const uri = parts.join("/").replace(/\/+/g, "/").replace(/\/$/, "");
const uri = parts.join("/").replaceAll(/\/+/g, "/").replace(/\/$/, "");
const hostname = resolveHost(config.host, config.window || window);

@@ -678,3 +678,3 @@ return (hostname ? `https://${hostname}` : "") + uri;

const fields = Object.keys(flattened).map((key) => {
const name = key.replace(/\[\d+]/g, "[]");
const name = key.replaceAll(/\[\d+]/g, "[]");
const value = flattened[key];

@@ -722,3 +722,3 @@ return `${name}=${encodeURIComponent(value)}`;

const fields = Object.keys(flattened).map((key) => {
const name = key.replace(/\[\d+]/g, "[]");
const name = key.replaceAll(/\[\d+]/g, "[]");
const value = flattened[key];

@@ -996,4 +996,4 @@ return `${name}=${encodeURIComponent(value)}`;

}
const idSet = /* @__PURE__ */ new Set([...permissionArray]);
const idSetPrev = /* @__PURE__ */ new Set([...prevPermissionArray]);
const idSet = new Set(permissionArray);
const idSetPrev = new Set(prevPermissionArray);
const idSetCombined = /* @__PURE__ */ new Set([...permissionArray, ...prevPermissionArray]);

@@ -1083,3 +1083,3 @@ return idSet.size === idSetPrev.size && idSet.size === idSetCombined.size;

for (const provider of cloned) {
provider.name = provider.businessName ? provider.businessName : `${provider.lastName}, ${provider.firstName}`;
provider.name = provider.businessName || `${provider.lastName}, ${provider.firstName}`;
}

@@ -1086,0 +1086,0 @@ return cloned;

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

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

"dependencies": {
"@availity/env-var": "2.0.4",
"@availity/resolve-url": "2.0.4",
"qs": "^6.11.2"
"@availity/env-var": "3.1.1",
"@availity/resolve-url": "2.0.7",
"qs": "^6.12.3"
},
"devDependencies": {
"tsup": "^7.2.0",
"typescript": "^5.1.6"
"typescript": "^5.5.4"
},

@@ -37,0 +37,0 @@ "publishConfig": {

{
"root": "packages/api-core",
"name": "@availity/api-core",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",

@@ -7,6 +8,5 @@ "targets": {

"executor": "@nx/jest:jest",
"outputs": ["coverage/api-core"],
"outputs": ["{workspaceRoot}/coverage/api-core"],
"options": {
"jestConfig": "packages/api-core/jest.config.js",
"passWithNoTests": true
"jestConfig": "packages/api-core/jest.config.js"
}

@@ -19,3 +19,3 @@ },

"commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
"tagPrefix": "@availity/{projectName}@",
"tagPrefix": "{projectName}@",
"baseBranch": "master"

@@ -25,6 +25,5 @@ }

"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"eslintConfig": ".eslintrc.yaml",
"lintFilePatterns": ["packages/api-core/**/*.{js,ts}"],
"silent": false,

@@ -31,0 +30,0 @@ "fix": false,

@@ -86,3 +86,3 @@ /* eslint-disable promise/no-nesting */

getPageBust() {
if (typeof this.pageBustValue === 'undefined') {
if (this.pageBustValue === undefined) {
this.setPageBust();

@@ -96,3 +96,3 @@ }

setPageBust(value) {
this.pageBustValue = typeof value === 'undefined' ? Date.now() : value;
this.pageBustValue = value === undefined ? Date.now() : value;
}

@@ -112,3 +112,3 @@

// join parts, remove multiple /'s and trailing /
const uri = parts.join('/').replace(/\/+/g, '/').replace(/\/$/, '');
const uri = parts.join('/').replaceAll(/\/+/g, '/').replace(/\/$/, '');

@@ -115,0 +115,0 @@ const hostname = url ? null : resolveHost(host, config.window || window);

@@ -0,1 +1,2 @@

/* eslint-disable unicorn/prefer-export-from */
import AvApi from './api';

@@ -2,0 +3,0 @@ import AvMicroservice from './ms';

@@ -0,1 +1,2 @@

/* eslint-disable unicorn/prefer-export-from */
import AvApi from './api';

@@ -2,0 +3,0 @@ import AvMicroservice from './ms';

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

}
const uri = parts.join('/').replace(/\/+/g, '/').replace(/\/$/, '');
const uri = parts.join('/').replaceAll(/\/+/g, '/').replace(/\/$/, '');

@@ -26,0 +26,0 @@ const hostname = resolveHost(config.host, config.window || window);

@@ -31,3 +31,3 @@ import flattenObject from '../flattenObject';

.map((key) => {
const name = key.replace(/\[\d+]/g, '[]');
const name = key.replaceAll(/\[\d+]/g, '[]');
const value = flattened[key];

@@ -34,0 +34,0 @@ return `${name}=${encodeURIComponent(value)}`;

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

.map((key) => {
const name = key.replace(/\[\d+]/g, '[]');
const name = key.replaceAll(/\[\d+]/g, '[]');
const value = flattened[key];

@@ -31,0 +31,0 @@ return `${name}=${encodeURIComponent(value)}`;

@@ -265,4 +265,4 @@ /* eslint-disable unicorn/consistent-destructuring */

const idSet = new Set([...permissionArray]);
const idSetPrev = new Set([...prevPermissionArray]);
const idSet = new Set(permissionArray);
const idSetPrev = new Set(prevPermissionArray);
const idSetCombined = new Set([...permissionArray, ...prevPermissionArray]);

@@ -269,0 +269,0 @@

@@ -27,5 +27,3 @@ import AvApi from '../api';

for (const provider of cloned) {
provider.name = provider.businessName
? provider.businessName
: `${provider.lastName}, ${provider.firstName}`;
provider.name = provider.businessName || `${provider.lastName}, ${provider.firstName}`;
}

@@ -32,0 +30,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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