@availity/dl-axios 5.0.0 → 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 +41 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.js +13 -10
- package/dist/index.mjs +4 -7
- package/package.json +4 -4
- package/project.json +4 -4
- package/src/download.js +4 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,47 @@
|
|
|
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
|
+
|
|
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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# 1.0.0 (2023-08-23)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* add browser field for output ([0ce7170](https://github.com/Availity/sdk-js/commit/0ce717075a82675b8707e4db0cc07cd4af370f3d))
|
|
24
|
+
* add lerna ignore for package-locks ([3217d96](https://github.com/Availity/sdk-js/commit/3217d96c1ad7b3b9b752d9376b88d9b91daabca6))
|
|
25
|
+
* **dl-axios:** fix export class ([9d470e0](https://github.com/Availity/sdk-js/commit/9d470e07732ceba643bc59e19345bd70ddda8d53))
|
|
26
|
+
* **dl-axios:** fix import ([d42db46](https://github.com/Availity/sdk-js/commit/d42db46f1daf3348125d6e6caac17a7f5c6179ed))
|
|
27
|
+
* fixed package-lock issues boiling down to this repo ([8c896f4](https://github.com/Availity/sdk-js/commit/8c896f486e49eb969320edfbfab422d47abe4ab1))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### chore
|
|
31
|
+
|
|
32
|
+
* **dl-axios:** bump axios to v1 ([0ffdaa8](https://github.com/Availity/sdk-js/commit/0ffdaa88d82724de0a36e3639cec4358a724e72b))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
* build!: switch from lerna to nx and compile to esm with tsup ([c586085](https://github.com/Availity/sdk-js/commit/c5860856ca96b743a0653d335ea00f0889132f7f))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### BREAKING CHANGES
|
|
39
|
+
|
|
40
|
+
* **dl-axios:** axios v1.4.0 or greater is now required
|
|
41
|
+
* Drop Internet Explorer support
|
|
42
|
+
* upgrades other packages that are using old package-locks
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
5
46
|
# [5.0.0](https://github.com/Availity/sdk-js/compare/@availity/dl-axios@4.0.3...@availity/dl-axios@5.0.0) (2023-06-14)
|
|
6
47
|
|
|
7
48
|
|
package/dist/index.d.mts
ADDED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -16,7 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
}
|
|
17
18
|
return to;
|
|
18
19
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
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
|
+
));
|
|
20
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
29
|
|
|
22
30
|
// src/index.js
|
|
@@ -27,22 +35,17 @@ __export(src_exports, {
|
|
|
27
35
|
module.exports = __toCommonJS(src_exports);
|
|
28
36
|
|
|
29
37
|
// src/download.js
|
|
30
|
-
var import_axios = __toESM(require("axios"));
|
|
31
|
-
var import_utils = __toESM(require("axios/lib/utils"));
|
|
32
38
|
var import_dl_core = __toESM(require("@availity/dl-core"));
|
|
33
|
-
var { merge } = import_utils.default;
|
|
34
39
|
var AvDownloadApi = class extends import_dl_core.default {
|
|
35
|
-
constructor(
|
|
40
|
+
constructor({ http, promise, merge, config }) {
|
|
36
41
|
super({
|
|
37
|
-
http
|
|
38
|
-
promise
|
|
42
|
+
http,
|
|
43
|
+
promise,
|
|
39
44
|
merge,
|
|
40
|
-
config
|
|
45
|
+
config
|
|
41
46
|
});
|
|
42
47
|
}
|
|
43
48
|
};
|
|
44
49
|
|
|
45
50
|
// src/index.js
|
|
46
51
|
var src_default = AvDownloadApi;
|
|
47
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
-
0 && (module.exports = {});
|
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(
|
|
4
|
+
constructor({ http, promise, merge, config }) {
|
|
8
5
|
super({
|
|
9
|
-
http
|
|
10
|
-
promise
|
|
6
|
+
http,
|
|
7
|
+
promise,
|
|
11
8
|
merge,
|
|
12
|
-
config
|
|
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.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Utility to download files from services",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"download",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"publish": "yarn npm publish --tolerate-republish --access public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@availity/dl-core": "4.0.
|
|
35
|
+
"@availity/dl-core": "4.0.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"axios": "^1.4.0",
|
|
39
|
-
"tsup": "^
|
|
40
|
-
"typescript": "^
|
|
39
|
+
"tsup": "^7.2.0",
|
|
40
|
+
"typescript": "^5.1.6"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"axios": "^0.21.1"
|
package/project.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"projectType": "library",
|
|
4
4
|
"targets": {
|
|
5
5
|
"test": {
|
|
6
|
-
"executor": "@
|
|
6
|
+
"executor": "@nx/jest:jest",
|
|
7
7
|
"outputs": ["coverage/dl-axios"],
|
|
8
8
|
"options": {
|
|
9
9
|
"jestConfig": "packages/dl-axios/jest.config.js",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"executor": "@jscutlery/semver:version",
|
|
15
15
|
"options": {
|
|
16
16
|
"preset": "angular",
|
|
17
|
-
"commitMessageFormat": "chore(
|
|
18
|
-
"tagPrefix": "@availity
|
|
17
|
+
"commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
|
|
18
|
+
"tagPrefix": "@availity/{projectName}@",
|
|
19
19
|
"baseBranch": "master"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"lint": {
|
|
23
|
-
"executor": "@
|
|
23
|
+
"executor": "@nx/linter:eslint",
|
|
24
24
|
"options": {
|
|
25
25
|
"eslintConfig": ".eslintrc.yaml",
|
|
26
26
|
"lintFilePatterns": ["packages/dl-axios/**/*.{js,ts}"],
|
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(
|
|
4
|
+
constructor({ http, promise, merge, config }) {
|
|
9
5
|
super({
|
|
10
|
-
http
|
|
11
|
-
promise
|
|
6
|
+
http,
|
|
7
|
+
promise,
|
|
12
8
|
merge,
|
|
13
|
-
config
|
|
9
|
+
config,
|
|
14
10
|
});
|
|
15
11
|
}
|
|
16
12
|
}
|