@availity/authorizations-axios 6.0.0-alpha.9 → 6.0.2

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 CHANGED
@@ -1,7 +1,231 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
+
5
+ ## [6.0.2](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@6.0.1...@availity/authorizations-axios@6.0.2) (2022-05-24)
6
+
7
+
8
+
9
+ ## [6.0.1](https://github.com/Availity/sdk-js/compare/@availity/authorizations-axios@6.0.0...@availity/authorizations-axios@6.0.1) (2022-04-28)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add browser field for output ([0ce7170](https://github.com/Availity/sdk-js/commit/0ce717075a82675b8707e4db0cc07cd4af370f3d))
15
+
16
+
17
+
18
+ # [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)
19
+
20
+
21
+ * build!: switch from lerna to nx and compile to esm with tsup ([c586085](https://github.com/Availity/sdk-js/commit/c5860856ca96b743a0653d335ea00f0889132f7f))
22
+
23
+
24
+ ### BREAKING CHANGES
25
+
26
+ * Drop Internet Explorer support
27
+
28
+
29
+
30
+ ## [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)
31
+
32
+ **Note:** Version bump only for package @availity/authorizations-axios
33
+
34
+
35
+
36
+
37
+
38
+ ## [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)
39
+
40
+ **Note:** Version bump only for package @availity/authorizations-axios
41
+
42
+
43
+
44
+
45
+
46
+ ## 5.0.53 (2021-12-21)
47
+
48
+ **Note:** Version bump only for package @availity/authorizations-axios
49
+
50
+
51
+
52
+
53
+
54
+ ## [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)
55
+
56
+ **Note:** Version bump only for package @availity/authorizations-axios
57
+
58
+
59
+
60
+
61
+
62
+ ## [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)
63
+
64
+ **Note:** Version bump only for package @availity/authorizations-axios
65
+
66
+
67
+
68
+
69
+
70
+ ## 5.0.50 (2021-10-20)
71
+
72
+ **Note:** Version bump only for package @availity/authorizations-axios
73
+
74
+
75
+
76
+
77
+
78
+ ## 5.0.49 (2021-10-19)
79
+
80
+ **Note:** Version bump only for package @availity/authorizations-axios
81
+
82
+
83
+
84
+
85
+
86
+ ## [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)
87
+
88
+ **Note:** Version bump only for package @availity/authorizations-axios
89
+
90
+
91
+
92
+
93
+
94
+ ## [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)
95
+
96
+ **Note:** Version bump only for package @availity/authorizations-axios
97
+
98
+
99
+
100
+
101
+
102
+ ## [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)
103
+
104
+ **Note:** Version bump only for package @availity/authorizations-axios
105
+
106
+
107
+
108
+
109
+
110
+ ## 5.0.45 (2021-09-16)
111
+
112
+ **Note:** Version bump only for package @availity/authorizations-axios
113
+
114
+
115
+
116
+
117
+
118
+ ## [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)
119
+
120
+ **Note:** Version bump only for package @availity/authorizations-axios
121
+
122
+
123
+
124
+
125
+
126
+ ## [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)
127
+
128
+ **Note:** Version bump only for package @availity/authorizations-axios
129
+
130
+
131
+
132
+
133
+
134
+ ## [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)
135
+
136
+ **Note:** Version bump only for package @availity/authorizations-axios
137
+
138
+
139
+
140
+
141
+
142
+ ## 5.0.41 (2021-04-01)
143
+
144
+ **Note:** Version bump only for package @availity/authorizations-axios
145
+
146
+
147
+
148
+
149
+
150
+ ## 5.0.40 (2020-12-16)
151
+
152
+ **Note:** Version bump only for package @availity/authorizations-axios
153
+
154
+
155
+
156
+
157
+
158
+ ## [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)
159
+
160
+ **Note:** Version bump only for package @availity/authorizations-axios
161
+
162
+
163
+
164
+
165
+
166
+ ## [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)
167
+
168
+ **Note:** Version bump only for package @availity/authorizations-axios
169
+
170
+
171
+
172
+
173
+
174
+ ## [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)
175
+
176
+ **Note:** Version bump only for package @availity/authorizations-axios
177
+
178
+
179
+
180
+
181
+
182
+ ## [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)
183
+
184
+ **Note:** Version bump only for package @availity/authorizations-axios
185
+
186
+
187
+
188
+
189
+
190
+ ## [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)
191
+
192
+ **Note:** Version bump only for package @availity/authorizations-axios
193
+
194
+
195
+
196
+
197
+
198
+ ## [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)
199
+
200
+ **Note:** Version bump only for package @availity/authorizations-axios
201
+
202
+
203
+
204
+
205
+
206
+ ## [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)
207
+
208
+ **Note:** Version bump only for package @availity/authorizations-axios
209
+
210
+
211
+
212
+
213
+
214
+ ## 5.0.32 (2020-06-04)
215
+
216
+ **Note:** Version bump only for package @availity/authorizations-axios
217
+
218
+
219
+
220
+
221
+
222
+ ## 5.0.31 (2020-06-03)
223
+
224
+ **Note:** Version bump only for package @availity/authorizations-axios
225
+
226
+
227
+
2
228
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
229
 
6
230
  ## [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
231
 
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,7 @@
1
+ const global = require('../../jest.config');
2
+
3
+ module.exports = {
4
+ ...global,
5
+ displayName: 'authorizations-axios',
6
+ coverageDirectory: '../../coverage/authorizations-axios',
7
+ };
package/package.json CHANGED
@@ -1,25 +1,44 @@
1
1
  {
2
2
  "name": "@availity/authorizations-axios",
3
- "version": "6.0.0-alpha.9+f0d746e",
3
+ "version": "6.0.2",
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
+ "browser": "./dist/index.js",
17
+ "main": "./dist/index.js",
18
+ "module": "./dist/index.mjs",
19
+ "types": "./dist/index.d.ts",
20
+ "scripts": {
21
+ "build": "tsup src/index.js --format esm,cjs --dts",
22
+ "dev": "tsup src/index.js --format esm,cjs --watch --dts",
23
+ "lint": "eslint src",
24
+ "lint:fix": "eslint src --fix",
25
+ "clean": "rm -rf node_modules && rm -rf dist",
26
+ "bundlesize": "bundlesize",
27
+ "publish": "yarn npm publish --tolerate-republish --access public"
28
+ },
29
+ "dependencies": {
30
+ "@availity/api-axios": "7.0.2",
31
+ "@availity/authorizations-core": "3.0.2"
14
32
  },
15
33
  "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"
34
+ "axios": "^0.21.1",
35
+ "tsup": "^5.12.8",
36
+ "typescript": "^4.6.4"
37
+ },
38
+ "peerDependencies": {
39
+ "axios": "^0.21.1"
20
40
  },
21
41
  "publishConfig": {
22
42
  "access": "public"
23
- },
24
- "gitHead": "f0d746e72dc44112fc306105c9708767644c6372"
25
- }
43
+ }
44
+ }
package/project.json ADDED
@@ -0,0 +1,39 @@
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
+ "lint": {
23
+ "executor": "@nrwl/linter:eslint",
24
+ "options": {
25
+ "eslintConfig": ".eslintrc.yaml",
26
+ "lintFilePatterns": ["packages/authorizations-axios/**/*.{js,ts}"],
27
+ "silent": false,
28
+ "fix": false,
29
+ "cache": true,
30
+ "cacheLocation": "./node_modules/.cache/authorizations-axios/.eslintcache",
31
+ "maxWarnings": -1,
32
+ "quiet": false,
33
+ "noEslintrc": false,
34
+ "hasTypeAwareRules": true,
35
+ "cacheStrategy": "metadata"
36
+ }
37
+ }
38
+ }
39
+ }
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
- });