@availity/authorizations-axios 9.1.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +4 -3
- package/dist/index.cjs +43 -0
- package/dist/{index.d.mts → index.d.cts} +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -38
- package/{jest.config.js → jest.config.cjs} +1 -1
- package/package.json +15 -14
- package/project.json +1 -1
- package/src/index.d.ts +2 -0
- package/dist/index.mjs +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [10.0.0](https://github.com/availity/sdk-js/compare/@availity/authorizations-axios@9.1.1...@availity/authorizations-axios@10.0.0) (2026-06-08)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `api-axios` updated to version `9.1.1`
|
|
10
|
+
* `authorizations-core` updated to version `9.1.1`
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* resolve lint errors, type errors, and add typecheck script ([a08d393](https://github.com/availity/sdk-js/commit/a08d3934497934bdcdf2f7a19d9d3c9479186c41))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
* feat!: migrate to ESM and drop Node 20 support ([a665467](https://github.com/availity/sdk-js/commit/a6654672c2e96adb325d100a6dfdb7b5baf16bcd))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
* All packages now use ESM as the primary module format.
|
|
23
|
+
CJS is still available via the `require` condition in package exports.
|
|
24
|
+
|
|
25
|
+
- Add `"type": "module"` to all packages
|
|
26
|
+
- Swap export paths: `.js` is now ESM, `.cjs` is now CJS
|
|
27
|
+
- Drop Node 20 from engines (now requires ^22.0.0 || ^24.0.0)
|
|
28
|
+
- Rename config files from .js to .cjs (jest, prettier, commitlint, etc.)
|
|
29
|
+
- Upgrade yarn to ^4, jest to 30.4.x, typescript to 5.9.3, undici to ^8
|
|
30
|
+
- Add `sideEffects: false` to all packages for better tree-shaking
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [9.1.1](https://github.com/availity/sdk-js/compare/@availity/authorizations-axios@9.1.0...@availity/authorizations-axios@9.1.1) (2026-05-28)
|
|
35
|
+
|
|
36
|
+
### Dependency Updates
|
|
37
|
+
|
|
38
|
+
* `api-axios` updated to version `9.1.0`
|
|
39
|
+
|
|
40
|
+
|
|
5
41
|
# [9.1.0](https://github.com/availity/sdk-js/compare/@availity/authorizations-axios@9.0.16...@availity/authorizations-axios@9.1.0) (2026-05-27)
|
|
6
42
|
|
|
7
43
|
### Dependency Updates
|
package/README.md
CHANGED
|
@@ -22,11 +22,12 @@ yarn add @availity/authorizations-axios
|
|
|
22
22
|
|
|
23
23
|
## Configuration
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
The default export is a pre-configured instance that uses `AvUserPermissionsApi` and `AvRegionsApi` from [Api-Axios](../api-axios).
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
import
|
|
29
|
-
|
|
28
|
+
import avAuthorizations from '@availity/authorizations-axios';
|
|
29
|
+
|
|
30
|
+
const authorized = await avAuthorizations.isAuthorized('1234');
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
## Methods
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.js
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
default: () => index_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
var import_authorizations_core = __toESM(require("@availity/authorizations-core"), 1);
|
|
37
|
+
var import_api_axios = require("@availity/api-axios");
|
|
38
|
+
var AvAuthorizationsReact = class extends import_authorizations_core.default {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(import_api_axios.avUserPermissionsApi, import_api_axios.avRegionsApi, Promise);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var index_default = new AvAuthorizationsReact();
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,43 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
1
|
// src/index.js
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(index_exports);
|
|
36
|
-
var import_authorizations_core = __toESM(require("@availity/authorizations-core"));
|
|
37
|
-
var import_api_axios = require("@availity/api-axios");
|
|
38
|
-
var AvAuthorizationsReact = class extends import_authorizations_core.default {
|
|
2
|
+
import AvAuthorizations from "@availity/authorizations-core";
|
|
3
|
+
import { avUserPermissionsApi, avRegionsApi } from "@availity/api-axios";
|
|
4
|
+
var AvAuthorizationsReact = class extends AvAuthorizations {
|
|
39
5
|
constructor() {
|
|
40
|
-
super(
|
|
6
|
+
super(avUserPermissionsApi, avRegionsApi, Promise);
|
|
41
7
|
}
|
|
42
8
|
};
|
|
43
9
|
var index_default = new AvAuthorizationsReact();
|
|
10
|
+
export {
|
|
11
|
+
index_default as default
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/authorizations-axios",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Availity authorizations react logic",
|
|
5
5
|
"homepage": "https://availity.github.io/sdk-js/api/authorizations",
|
|
6
6
|
"bugs": {
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Kasey Powers <kasey.powers@availity.com>",
|
|
16
|
-
"
|
|
17
|
-
"main": "./dist/index.
|
|
18
|
-
"module": "./dist/index.
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "./dist/index.cjs",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"exports": {
|
|
21
21
|
"./package.json": "./package.json",
|
|
22
22
|
".": {
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
|
-
"import": "./dist/index.
|
|
25
|
-
"require": "./dist/index.
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": "^
|
|
29
|
+
"node": "^22.0.0 || ^24.0.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsup src/index.js --format esm,cjs --dts",
|
|
@@ -37,18 +37,19 @@
|
|
|
37
37
|
"publish": "yarn npm publish --tolerate-republish --access public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@availity/api-axios": "
|
|
41
|
-
"@availity/authorizations-core": "
|
|
40
|
+
"@availity/api-axios": "13.0.0",
|
|
41
|
+
"@availity/authorizations-core": "6.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"axios": "^1.
|
|
45
|
-
"tsup": "^8.
|
|
46
|
-
"typescript": "^5.
|
|
44
|
+
"axios": "^1.17.0",
|
|
45
|
+
"tsup": "^8.5.1",
|
|
46
|
+
"typescript": "^5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"axios": "^1.
|
|
49
|
+
"axios": "^1.17.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"sideEffects": false
|
|
54
55
|
}
|
package/project.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"executor": "@nx/jest:jest",
|
|
8
8
|
"outputs": ["{workspaceRoot}/coverage/authorizations-axios"],
|
|
9
9
|
"options": {
|
|
10
|
-
"jestConfig": "packages/authorizations-axios/jest.config.
|
|
10
|
+
"jestConfig": "packages/authorizations-axios/jest.config.cjs"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"version": {
|
package/src/index.d.ts
CHANGED
package/dist/index.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// src/index.js
|
|
2
|
-
import AvAuthorizations from "@availity/authorizations-core";
|
|
3
|
-
import { avUserPermissionsApi, avRegionsApi } from "@availity/api-axios";
|
|
4
|
-
var AvAuthorizationsReact = class extends AvAuthorizations {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(avUserPermissionsApi, avRegionsApi, Promise);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
var index_default = new AvAuthorizationsReact();
|
|
10
|
-
export {
|
|
11
|
-
index_default as default
|
|
12
|
-
};
|