@availity/authorizations-axios 6.0.0-alpha.9 → 6.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/.eslintrc.yml ADDED
@@ -0,0 +1,2 @@
1
+ extends: ../../.eslintrc.yml
2
+ ignorePatterns: ['!**/*', 'node_modules/', 'lib/', 'dist/']
package/CHANGELOG.md CHANGED
@@ -1,7 +1,218 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
+
5
+ # [6.0.0](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.55...@availity/authorizations-axios@6.0.0) (2022-04-28)
6
+
7
+
8
+ * build!: switch from lerna to nx and compile to esm with tsup ([c586085](https://github.com/Availity/sdk-js/commit/c5860856ca96b743a0653d335ea00f0889132f7f))
9
+
10
+
11
+ ### BREAKING CHANGES
12
+
13
+ * Drop Internet Explorer support
14
+
15
+
16
+
17
+ ## [5.0.55](https://github.com/availity/sdk-js/compare/@availity/authorizations-axios@5.0.53...@availity/authorizations-axios@5.0.55) (2022-02-22)
18
+
19
+ **Note:** Version bump only for package @availity/authorizations-axios
20
+
21
+
22
+
23
+
24
+
25
+ ## [5.0.54](https://github.com/availity/sdk-js/compare/@availity/authorizations-axios@5.0.53...@availity/authorizations-axios@5.0.54) (2022-01-19)
26
+
27
+ **Note:** Version bump only for package @availity/authorizations-axios
28
+
29
+
30
+
31
+
32
+
33
+ ## 5.0.53 (2021-12-21)
34
+
35
+ **Note:** Version bump only for package @availity/authorizations-axios
36
+
37
+
38
+
39
+
40
+
41
+ ## [5.0.52](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.51...@availity/authorizations-axios@5.0.52) (2021-10-29)
42
+
43
+ **Note:** Version bump only for package @availity/authorizations-axios
44
+
45
+
46
+
47
+
48
+
49
+ ## [5.0.51](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.50...@availity/authorizations-axios@5.0.51) (2021-10-22)
50
+
51
+ **Note:** Version bump only for package @availity/authorizations-axios
52
+
53
+
54
+
55
+
56
+
57
+ ## 5.0.50 (2021-10-20)
58
+
59
+ **Note:** Version bump only for package @availity/authorizations-axios
60
+
61
+
62
+
63
+
64
+
65
+ ## 5.0.49 (2021-10-19)
66
+
67
+ **Note:** Version bump only for package @availity/authorizations-axios
68
+
69
+
70
+
71
+
72
+
73
+ ## [5.0.48](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.47...@availity/authorizations-axios@5.0.48) (2021-09-30)
74
+
75
+ **Note:** Version bump only for package @availity/authorizations-axios
76
+
77
+
78
+
79
+
80
+
81
+ ## [5.0.47](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.46...@availity/authorizations-axios@5.0.47) (2021-09-30)
82
+
83
+ **Note:** Version bump only for package @availity/authorizations-axios
84
+
85
+
86
+
87
+
88
+
89
+ ## [5.0.46](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.45...@availity/authorizations-axios@5.0.46) (2021-09-28)
90
+
91
+ **Note:** Version bump only for package @availity/authorizations-axios
92
+
93
+
94
+
95
+
96
+
97
+ ## 5.0.45 (2021-09-16)
98
+
99
+ **Note:** Version bump only for package @availity/authorizations-axios
100
+
101
+
102
+
103
+
104
+
105
+ ## [5.0.44](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.43...@availity/authorizations-axios@5.0.44) (2021-05-25)
106
+
107
+ **Note:** Version bump only for package @availity/authorizations-axios
108
+
109
+
110
+
111
+
112
+
113
+ ## [5.0.43](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.42...@availity/authorizations-axios@5.0.43) (2021-05-20)
114
+
115
+ **Note:** Version bump only for package @availity/authorizations-axios
116
+
117
+
118
+
119
+
120
+
121
+ ## [5.0.42](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.41...@availity/authorizations-axios@5.0.42) (2021-05-17)
122
+
123
+ **Note:** Version bump only for package @availity/authorizations-axios
124
+
125
+
126
+
127
+
128
+
129
+ ## 5.0.41 (2021-04-01)
130
+
131
+ **Note:** Version bump only for package @availity/authorizations-axios
132
+
133
+
134
+
135
+
136
+
137
+ ## 5.0.40 (2020-12-16)
138
+
139
+ **Note:** Version bump only for package @availity/authorizations-axios
140
+
141
+
142
+
143
+
144
+
145
+ ## [5.0.39](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.38...@availity/authorizations-axios@5.0.39) (2020-08-24)
146
+
147
+ **Note:** Version bump only for package @availity/authorizations-axios
148
+
149
+
150
+
151
+
152
+
153
+ ## [5.0.38](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.37...@availity/authorizations-axios@5.0.38) (2020-07-08)
154
+
155
+ **Note:** Version bump only for package @availity/authorizations-axios
156
+
157
+
158
+
159
+
160
+
161
+ ## [5.0.37](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.36...@availity/authorizations-axios@5.0.37) (2020-06-22)
162
+
163
+ **Note:** Version bump only for package @availity/authorizations-axios
164
+
165
+
166
+
167
+
168
+
169
+ ## [5.0.36](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.35...@availity/authorizations-axios@5.0.36) (2020-06-15)
170
+
171
+ **Note:** Version bump only for package @availity/authorizations-axios
172
+
173
+
174
+
175
+
176
+
177
+ ## [5.0.35](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.34...@availity/authorizations-axios@5.0.35) (2020-06-08)
178
+
179
+ **Note:** Version bump only for package @availity/authorizations-axios
180
+
181
+
182
+
183
+
184
+
185
+ ## [5.0.34](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.33...@availity/authorizations-axios@5.0.34) (2020-06-04)
186
+
187
+ **Note:** Version bump only for package @availity/authorizations-axios
188
+
189
+
190
+
191
+
192
+
193
+ ## [5.0.33](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.32...@availity/authorizations-axios@5.0.33) (2020-06-04)
194
+
195
+ **Note:** Version bump only for package @availity/authorizations-axios
196
+
197
+
198
+
199
+
200
+
201
+ ## 5.0.32 (2020-06-04)
202
+
203
+ **Note:** Version bump only for package @availity/authorizations-axios
204
+
205
+
206
+
207
+
208
+
209
+ ## 5.0.31 (2020-06-03)
210
+
211
+ **Note:** Version bump only for package @availity/authorizations-axios
212
+
213
+
214
+
2
215
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
216
 
6
217
  ## [5.0.30](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@5.0.29...@availity/authorizations-axios@5.0.30) (2020-05-11)
7
218
 
package/README.md CHANGED
@@ -1,21 +1,23 @@
1
- # authorizations-axios
1
+ # @availity/authorizations-axios
2
2
 
3
3
  > A package providing a base authorizations class to help check which permissions a user has.
4
4
 
5
5
  [![Version](https://img.shields.io/npm/v/@availity/authorizations-axios.svg?style=for-the-badge)](https://www.npmjs.com/package/@availity/authorizations-axios)
6
+ [![NPM Downloads](https://img.shields.io/npm/dt/@availity/authorizations-axios.svg?style=for-the-badge)](https://www.npmjs.com/package/@availity/authorizations-axios)
7
+ [![Dependecy Status](https://img.shields.io/librariesio/release/npm/@availity/authorizations-axios?style=for-the-badge)](https://github.com/Availity/sdk-js/blob/master/packages/authorizations-axios/package.json)
6
8
 
7
9
  ## Install
8
10
 
9
11
  ### NPM
10
12
 
11
13
  ```bash
12
- $ npm install @availity/authorizations-axios
14
+ npm install @availity/authorizations-axios
13
15
  ```
14
16
 
15
17
  ### Yarn
16
18
 
17
19
  ```bash
18
- $ yarn add @availity/authorizations-axios
20
+ yarn add @availity/authorizations-axios
19
21
  ```
20
22
 
21
23
  ## Configuration
@@ -59,7 +61,7 @@ For all methods, if no region is passed in, defaults to current region.
59
61
 
60
62
  **Kasey Powers**
61
63
 
62
- - [kaseyepowers@gmail.com](kaseyepowers@gmail.com)
64
+ - [kaseyepowers@gmail.com](kaseyepowers@gmail.com)
63
65
 
64
66
  ## License
65
67
 
@@ -0,0 +1,5 @@
1
+ import AvAuthorizationsCore from '@availity/authorizations-core';
2
+
3
+ declare const avAuthorizationsAxios: AvAuthorizationsCore;
4
+
5
+ export { avAuthorizationsAxios as default };
package/dist/index.js ADDED
@@ -0,0 +1,37 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/index.js
23
+ var src_exports = {};
24
+ __export(src_exports, {
25
+ default: () => src_default
26
+ });
27
+ module.exports = __toCommonJS(src_exports);
28
+ var import_authorizations_core = __toESM(require("@availity/authorizations-core"));
29
+ var import_api_axios = require("@availity/api-axios");
30
+ var AvAuthorizationsReact = class extends import_authorizations_core.default {
31
+ constructor() {
32
+ super(import_api_axios.avUserPermissionsApi, import_api_axios.avRegionsApi, Promise);
33
+ }
34
+ };
35
+ var src_default = new AvAuthorizationsReact();
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {});
package/dist/index.mjs ADDED
@@ -0,0 +1,12 @@
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 src_default = new AvAuthorizationsReact();
10
+ export {
11
+ src_default as default
12
+ };
package/jest.config.js ADDED
@@ -0,0 +1,16 @@
1
+ const { pathsToModuleNameMapper } = require('ts-jest/utils');
2
+
3
+ const { compilerOptions } = require('../../tsconfig.json');
4
+
5
+ module.exports = {
6
+ displayName: 'authorizations-axios',
7
+ preset: '../../jest.preset.js',
8
+ globals: {
9
+ 'ts-jest': {
10
+ tsconfig: '<rootDir>/tsconfig.spec.json',
11
+ },
12
+ },
13
+ coverageDirectory: '../../coverage/authorizations-axios',
14
+ coverageReporters: ['json'],
15
+ moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/../../' }),
16
+ };
package/package.json CHANGED
@@ -1,25 +1,43 @@
1
1
  {
2
2
  "name": "@availity/authorizations-axios",
3
- "version": "6.0.0-alpha.9+f0d746e",
3
+ "version": "6.0.0",
4
4
  "description": "Availity authorizations react logic",
5
- "main": "lib/index.js",
6
- "module": "src/index.js",
7
- "author": "Kasey Powers <kasey.powers@availity.com>",
5
+ "homepage": "https://availity.github.io/sdk-js/api/authorizations",
6
+ "bugs": {
7
+ "url": "https://github.com/availity/sdk-js/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/availity/sdk-js.git",
12
+ "directory": "packages/authorizations-axios"
13
+ },
8
14
  "license": "MIT",
9
- "peerDependencies": {
10
- "@availity/api-axios": "^5.0.0 || ^4.0.0",
11
- "@availity/api-core": "^5.0.0 || ^4.0.1",
12
- "@availity/authorizations-core": "^1.0.0",
13
- "axios": "^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0"
15
+ "author": "Kasey Powers <kasey.powers@availity.com>",
16
+ "main": "./dist/index.js",
17
+ "module": "./dist/index.mjs",
18
+ "types": "./dist/index.d.ts",
19
+ "scripts": {
20
+ "build": "tsup src/index.js --format esm,cjs --dts",
21
+ "dev": "tsup src/index.js --format esm,cjs --watch --dts",
22
+ "lint": "eslint src",
23
+ "lint:fix": "eslint src --fix",
24
+ "clean": "rm -rf node_modules && rm -rf dist",
25
+ "bundlesize": "bundlesize",
26
+ "publish": "yarn npm publish --tolerate-republish --access public"
27
+ },
28
+ "dependencies": {
29
+ "@availity/api-axios": "7.0.0",
30
+ "@availity/authorizations-core": "3.0.0"
14
31
  },
15
32
  "devDependencies": {
16
- "@availity/api-axios": "^6.0.0-alpha.9+f0d746e",
17
- "@availity/api-core": "^7.0.0-alpha.9+f0d746e",
18
- "@availity/authorizations-core": "^1.0.21",
19
- "axios": "^0.19.0"
33
+ "axios": "^0.21.1",
34
+ "tsup": "^5.10.1",
35
+ "typescript": "^4.5.3"
36
+ },
37
+ "peerDependencies": {
38
+ "axios": "^0.21.1"
20
39
  },
21
40
  "publishConfig": {
22
41
  "access": "public"
23
- },
24
- "gitHead": "f0d746e72dc44112fc306105c9708767644c6372"
25
- }
42
+ }
43
+ }
package/project.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "root": "packages/authorizations-axios",
3
+ "projectType": "library",
4
+ "targets": {
5
+ "test": {
6
+ "executor": "@nrwl/jest:jest",
7
+ "outputs": ["coverage/authorizations-axios"],
8
+ "options": {
9
+ "jestConfig": "packages/authorizations-axios/jest.config.js",
10
+ "passWithNoTests": true
11
+ }
12
+ },
13
+ "version": {
14
+ "executor": "@jscutlery/semver:version",
15
+ "options": {
16
+ "preset": "angular",
17
+ "commitMessageFormat": "chore(${projectName}): release version ${version} [skip ci]",
18
+ "tagPrefix": "@availity/${projectName}@",
19
+ "baseBranch": "master"
20
+ }
21
+ }
22
+ }
23
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import AvAuthorizationsCore from '@availity/authorizations-core';
2
+
3
+ declare const avAuthorizationsAxios: AvAuthorizationsCore;
4
+
5
+ export default avAuthorizationsAxios;
package/tsconfig.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "include": ["."],
4
+ "exclude": ["dist", "build", "node_modules"]
5
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "module": "commonjs",
6
+ "types": ["jest", "node"],
7
+ "allowJs": true
8
+ },
9
+ "include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
10
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016-present Availity, LLC
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/lib/index.js DELETED
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
-
14
- var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
15
-
16
- var _authorizationsCore = _interopRequireDefault(require("@availity/authorizations-core"));
17
-
18
- var _apiAxios = require("@availity/api-axios");
19
-
20
- var AvAuthorizationsReact = /*#__PURE__*/function (_AvAuthorizations) {
21
- (0, _inherits2["default"])(AvAuthorizationsReact, _AvAuthorizations);
22
-
23
- var _super = (0, _createSuper2["default"])(AvAuthorizationsReact);
24
-
25
- function AvAuthorizationsReact() {
26
- (0, _classCallCheck2["default"])(this, AvAuthorizationsReact);
27
- return _super.call(this, _apiAxios.avUserPermissionsApi, _apiAxios.avRegionsApi, Promise);
28
- }
29
-
30
- return AvAuthorizationsReact;
31
- }(_authorizationsCore["default"]);
32
-
33
- var _default = new AvAuthorizationsReact();
34
-
35
- exports["default"] = _default;
@@ -1,7 +0,0 @@
1
- import avAuthorizations from '../index';
2
-
3
- describe('AvAuthorizations', () => {
4
- test('AvAuthorizations should be defined', () => {
5
- expect(avAuthorizations).toBeDefined();
6
- });
7
- });