@availity/dl-axios 4.0.0-alpha.9 → 4.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,191 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
+
5
+ ## [4.0.2](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@4.0.1...@availity/dl-axios@4.0.2) (2022-05-24)
6
+
7
+
8
+
9
+ ## [4.0.1](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@4.0.0...@availity/dl-axios@4.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
+ # [4.0.0](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.64...@availity/dl-axios@4.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
+ ## [3.0.64](https://github.com/availity/sdk-js/compare/@availity/dl-axios@3.0.63...@availity/dl-axios@3.0.64) (2022-02-22)
31
+
32
+ **Note:** Version bump only for package @availity/dl-axios
33
+
34
+
35
+
36
+
37
+
38
+ ## 3.0.63 (2021-12-21)
39
+
40
+ **Note:** Version bump only for package @availity/dl-axios
41
+
42
+
43
+
44
+
45
+
46
+ ## [3.0.62](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.61...@availity/dl-axios@3.0.62) (2021-10-29)
47
+
48
+ **Note:** Version bump only for package @availity/dl-axios
49
+
50
+
51
+
52
+
53
+
54
+ ## 3.0.61 (2021-10-22)
55
+
56
+ **Note:** Version bump only for package @availity/dl-axios
57
+
58
+
59
+
60
+
61
+
62
+ ## 3.0.60 (2021-09-30)
63
+
64
+ **Note:** Version bump only for package @availity/dl-axios
65
+
66
+
67
+
68
+
69
+
70
+ ## 3.0.59 (2021-09-16)
71
+
72
+ **Note:** Version bump only for package @availity/dl-axios
73
+
74
+
75
+
76
+
77
+
78
+ ## [3.0.58](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.57...@availity/dl-axios@3.0.58) (2021-05-25)
79
+
80
+ **Note:** Version bump only for package @availity/dl-axios
81
+
82
+
83
+
84
+
85
+
86
+ ## [3.0.57](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.56...@availity/dl-axios@3.0.57) (2021-05-20)
87
+
88
+ **Note:** Version bump only for package @availity/dl-axios
89
+
90
+
91
+
92
+
93
+
94
+ ## [3.0.56](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.55...@availity/dl-axios@3.0.56) (2021-05-17)
95
+
96
+ **Note:** Version bump only for package @availity/dl-axios
97
+
98
+
99
+
100
+
101
+
102
+ ## 3.0.55 (2021-04-01)
103
+
104
+ **Note:** Version bump only for package @availity/dl-axios
105
+
106
+
107
+
108
+
109
+
110
+ ## 3.0.54 (2020-12-16)
111
+
112
+ **Note:** Version bump only for package @availity/dl-axios
113
+
114
+
115
+
116
+
117
+
118
+ ## [3.0.53](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.52...@availity/dl-axios@3.0.53) (2020-08-24)
119
+
120
+ **Note:** Version bump only for package @availity/dl-axios
121
+
122
+
123
+
124
+
125
+
126
+ ## [3.0.52](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.51...@availity/dl-axios@3.0.52) (2020-07-08)
127
+
128
+ **Note:** Version bump only for package @availity/dl-axios
129
+
130
+
131
+
132
+
133
+
134
+ ## [3.0.51](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.50...@availity/dl-axios@3.0.51) (2020-06-22)
135
+
136
+ **Note:** Version bump only for package @availity/dl-axios
137
+
138
+
139
+
140
+
141
+
142
+ ## [3.0.50](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.49...@availity/dl-axios@3.0.50) (2020-06-15)
143
+
144
+ **Note:** Version bump only for package @availity/dl-axios
145
+
146
+
147
+
148
+
149
+
150
+ ## [3.0.49](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.48...@availity/dl-axios@3.0.49) (2020-06-08)
151
+
152
+ **Note:** Version bump only for package @availity/dl-axios
153
+
154
+
155
+
156
+
157
+
158
+ ## [3.0.48](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.47...@availity/dl-axios@3.0.48) (2020-06-04)
159
+
160
+ **Note:** Version bump only for package @availity/dl-axios
161
+
162
+
163
+
164
+
165
+
166
+ ## [3.0.47](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.46...@availity/dl-axios@3.0.47) (2020-06-04)
167
+
168
+ **Note:** Version bump only for package @availity/dl-axios
169
+
170
+
171
+
172
+
173
+
174
+ ## 3.0.46 (2020-06-04)
175
+
176
+ **Note:** Version bump only for package @availity/dl-axios
177
+
178
+
179
+
180
+
181
+
182
+ ## 3.0.45 (2020-06-03)
183
+
184
+ **Note:** Version bump only for package @availity/dl-axios
185
+
186
+
187
+
2
188
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
189
 
6
190
  ## [3.0.44](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@3.0.43...@availity/dl-axios@3.0.44) (2020-05-11)
7
191
 
package/README.md CHANGED
@@ -1,19 +1,21 @@
1
- # dl-axios
1
+ # @availity/dl-axios
2
2
 
3
3
  > Utility to download files from services
4
4
 
5
5
  [![Version](https://img.shields.io/npm/v/@availity/dl-axios.svg?style=for-the-badge)](https://www.npmjs.com/package/@availity/dl-axios)
6
+ [![NPM Downloads](https://img.shields.io/npm/dt/@availity/dl-axios.svg?style=for-the-badge)](https://www.npmjs.com/package/@availity/dl-axios)
7
+ [![Dependecy Status](https://img.shields.io/librariesio/release/npm/@availity/dl-axios?style=for-the-badge)](https://github.com/Availity/sdk-js/blob/master/packages/dl-axios/package.json)
6
8
 
7
9
  ## Install
8
10
 
9
11
  ### NPM
10
12
 
11
13
  ```bash
12
- $ npm install @availity/dl-axios
14
+ npm install @availity/dl-axios
13
15
  ```
14
16
 
15
17
  ### Yarn
16
18
 
17
19
  ```bash
18
- $ yarn add @availity/dl-axios
20
+ yarn add @availity/dl-axios
19
21
  ```
@@ -0,0 +1,5 @@
1
+ import DownloadCore from '@availity/dl-core';
2
+
3
+ declare class AvDownloadApi extends DownloadCore {}
4
+
5
+ export { AvDownloadApi as default };
package/dist/index.js ADDED
@@ -0,0 +1,48 @@
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
+
29
+ // src/download.js
30
+ var import_axios = __toESM(require("axios"));
31
+ var import_utils = __toESM(require("axios/lib/utils"));
32
+ var import_dl_core = __toESM(require("@availity/dl-core"));
33
+ var { merge } = import_utils.default;
34
+ var AvDownloadApi = class extends import_dl_core.default {
35
+ constructor(options) {
36
+ super({
37
+ http: import_axios.default,
38
+ promise: Promise,
39
+ merge,
40
+ config: options
41
+ });
42
+ }
43
+ };
44
+
45
+ // src/index.js
46
+ var src_default = AvDownloadApi;
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {});
package/dist/index.mjs ADDED
@@ -0,0 +1,21 @@
1
+ // src/download.js
2
+ import axios from "axios";
3
+ import utils from "axios/lib/utils";
4
+ import DownloadMicroservice from "@availity/dl-core";
5
+ var { merge } = utils;
6
+ var AvDownloadApi = class extends DownloadMicroservice {
7
+ constructor(options) {
8
+ super({
9
+ http: axios,
10
+ promise: Promise,
11
+ merge,
12
+ config: options
13
+ });
14
+ }
15
+ };
16
+
17
+ // src/index.js
18
+ var src_default = AvDownloadApi;
19
+ export {
20
+ src_default as default
21
+ };
package/jest.config.js ADDED
@@ -0,0 +1,7 @@
1
+ const global = require('../../jest.config');
2
+
3
+ module.exports = {
4
+ ...global,
5
+ displayName: 'dl-axios',
6
+ coverageDirectory: '../../coverage/dl-axios',
7
+ };
package/package.json CHANGED
@@ -1,29 +1,48 @@
1
1
  {
2
2
  "name": "@availity/dl-axios",
3
- "version": "4.0.0-alpha.9+f0d746e",
3
+ "version": "4.0.2",
4
4
  "description": "Utility to download files from services",
5
- "main": "lib/index.js",
6
- "module": "src/index.js",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
5
  "keywords": [
11
6
  "download",
12
7
  "file",
13
8
  "availity"
14
9
  ],
15
- "author": "Robert McGuinness",
10
+ "homepage": "https://availity.github.io/sdk-js/api/downloads",
11
+ "bugs": {
12
+ "url": "https://github.com/availity/sdk-js/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/availity/sdk-js.git",
17
+ "directory": "packages/dl-axios"
18
+ },
16
19
  "license": "MIT",
17
- "peerDependencies": {
18
- "@availity/dl-core": "^2.3.3",
19
- "axios": "^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0"
20
+ "author": "Robert McGuinness",
21
+ "browser": "./dist/index.js",
22
+ "main": "./dist/index.js",
23
+ "module": "./dist/index.mjs",
24
+ "types": "./dist/index.d.ts",
25
+ "scripts": {
26
+ "build": "tsup src/index.js --format esm,cjs --dts",
27
+ "dev": "tsup src/index.js --format esm,cjs --watch --dts",
28
+ "lint": "eslint src",
29
+ "lint:fix": "eslint src --fix",
30
+ "clean": "rm -rf node_modules && rm -rf dist",
31
+ "bundlesize": "bundlesize",
32
+ "publish": "yarn npm publish --tolerate-republish --access public"
33
+ },
34
+ "dependencies": {
35
+ "@availity/dl-core": "4.0.2"
20
36
  },
21
37
  "devDependencies": {
22
- "@availity/dl-core": "^4.0.0-alpha.9+f0d746e",
23
- "axios": "^0.19.0"
38
+ "axios": "^0.21.1",
39
+ "tsup": "^5.12.8",
40
+ "typescript": "^4.6.4"
41
+ },
42
+ "peerDependencies": {
43
+ "axios": "^0.21.1"
24
44
  },
25
45
  "publishConfig": {
26
46
  "access": "public"
27
- },
28
- "gitHead": "f0d746e72dc44112fc306105c9708767644c6372"
29
- }
47
+ }
48
+ }
package/project.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "root": "packages/dl-axios",
3
+ "projectType": "library",
4
+ "targets": {
5
+ "test": {
6
+ "executor": "@nrwl/jest:jest",
7
+ "outputs": ["coverage/dl-axios"],
8
+ "options": {
9
+ "jestConfig": "packages/dl-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/dl-axios/**/*.{js,ts}"],
27
+ "silent": false,
28
+ "fix": false,
29
+ "cache": true,
30
+ "cacheLocation": "./node_modules/.cache/dl-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 DownloadCore from '@availity/dl-core';
2
+
3
+ declare class AvDownloadApi extends DownloadCore {}
4
+
5
+ export default AvDownloadApi;
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/download.js DELETED
@@ -1,42 +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 _axios = _interopRequireDefault(require("axios"));
17
-
18
- var _utils = _interopRequireDefault(require("axios/lib/utils"));
19
-
20
- var _dlCore = _interopRequireDefault(require("@availity/dl-core"));
21
-
22
- var merge = _utils["default"].merge;
23
-
24
- var AvDownloadApi = /*#__PURE__*/function (_DownloadMicroservice) {
25
- (0, _inherits2["default"])(AvDownloadApi, _DownloadMicroservice);
26
-
27
- var _super = (0, _createSuper2["default"])(AvDownloadApi);
28
-
29
- function AvDownloadApi(options) {
30
- (0, _classCallCheck2["default"])(this, AvDownloadApi);
31
- return _super.call(this, {
32
- http: _axios["default"],
33
- promise: Promise,
34
- merge: merge,
35
- config: options
36
- });
37
- }
38
-
39
- return AvDownloadApi;
40
- }(_dlCore["default"]);
41
-
42
- exports["default"] = AvDownloadApi;
package/lib/index.js DELETED
@@ -1,13 +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 _download = _interopRequireDefault(require("./download"));
11
-
12
- var _default = _download["default"];
13
- exports["default"] = _default;