@availity/dl-axios 5.0.1 → 5.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
@@ -2,6 +2,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [5.0.2](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@5.0.1...@availity/dl-axios@5.0.2) (2023-09-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **dl-axios:** v1.x of axios broke an import, update this class ([0890294](https://github.com/Availity/sdk-js/commit/08902949794961d0596fd5522da822933e244c64))
11
+
12
+
13
+
5
14
  ## [5.0.1](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@5.0.0...@availity/dl-axios@5.0.1) (2023-08-23)
6
15
 
7
16
 
package/dist/index.js CHANGED
@@ -35,17 +35,14 @@ __export(src_exports, {
35
35
  module.exports = __toCommonJS(src_exports);
36
36
 
37
37
  // src/download.js
38
- var import_axios = __toESM(require("axios"));
39
- var import_utils = __toESM(require("axios/lib/utils"));
40
38
  var import_dl_core = __toESM(require("@availity/dl-core"));
41
- var { merge } = import_utils.default;
42
39
  var AvDownloadApi = class extends import_dl_core.default {
43
- constructor(options) {
40
+ constructor({ http, promise, merge, config }) {
44
41
  super({
45
- http: import_axios.default,
46
- promise: Promise,
42
+ http,
43
+ promise,
47
44
  merge,
48
- config: options
45
+ config
49
46
  });
50
47
  }
51
48
  };
package/dist/index.mjs CHANGED
@@ -1,15 +1,12 @@
1
1
  // src/download.js
2
- import axios from "axios";
3
- import utils from "axios/lib/utils";
4
2
  import DownloadMicroservice from "@availity/dl-core";
5
- var { merge } = utils;
6
3
  var AvDownloadApi = class extends DownloadMicroservice {
7
- constructor(options) {
4
+ constructor({ http, promise, merge, config }) {
8
5
  super({
9
- http: axios,
10
- promise: Promise,
6
+ http,
7
+ promise,
11
8
  merge,
12
- config: options
9
+ config
13
10
  });
14
11
  }
15
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/dl-axios",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Utility to download files from services",
5
5
  "keywords": [
6
6
  "download",
package/src/download.js CHANGED
@@ -1,16 +1,12 @@
1
- import axios from 'axios';
2
- import utils from 'axios/lib/utils';
3
1
  import DownloadMicroservice from '@availity/dl-core';
4
2
 
5
- const { merge } = utils;
6
-
7
3
  export default class AvDownloadApi extends DownloadMicroservice {
8
- constructor(options) {
4
+ constructor({ http, promise, merge, config }) {
9
5
  super({
10
- http: axios,
11
- promise: Promise,
6
+ http,
7
+ promise,
12
8
  merge,
13
- config: options,
9
+ config,
14
10
  });
15
11
  }
16
12
  }