Skip to content

Commit a46beab

Browse files
committed
fix: keep compatability with other changes
1 parent 2149464 commit a46beab

File tree

12 files changed

+30
-21
lines changed

12 files changed

+30
-21
lines changed

dist/axios.js

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/axios.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/axios.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/axios.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/axios.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/axios.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/axios.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/axios.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node/axios.cjs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Axios v1.1.0 Copyright (c) 2022 Matt Zabriskie and contributors
22
'use strict';
33

4-
Object.defineProperty(exports, '__esModule', { value: true });
5-
64
const FormData$1 = require('form-data');
75
const url = require('url');
86
const proxyFromEnv = require('proxy-from-env');
@@ -3753,9 +3751,7 @@ axios.formToJSON = thing => {
37533751
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
37543752
};
37553753

3756-
exports.Axios = Axios;
3757-
exports.AxiosError = AxiosError;
3758-
exports.AxiosHeaders = AxiosHeaders;
3759-
exports.CanceledError = CanceledError;
3760-
exports["default"] = axios;
3754+
axios.AxiosHeaders = AxiosHeaders;
3755+
3756+
module.exports = axios;
37613757
//# sourceMappingURL=axios.cjs.map

dist/node/axios.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1+
import Axios from './lib/core/Axios.js';
2+
import AxiosHeaders from './lib/core/AxiosHeaders.js';
3+
import AxiosError from './lib/core/AxiosError.js';
4+
import CanceledError from './lib/cancel/CanceledError.js';
15
import axios from './lib/axios.js';
2-
export default axios;
6+
7+
export {
8+
axios as default,
9+
Axios,
10+
AxiosHeaders,
11+
AxiosError,
12+
CanceledError,
13+
};

lib/axios.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import toFormData from './helpers/toFormData.js';
1414
import AxiosError from './core/AxiosError.js';
1515
import spread from './helpers/spread.js';
1616
import isAxiosError from './helpers/isAxiosError.js';
17-
17+
import AxiosHeaders from './core/AxiosHeaders.js';
1818

1919
/**
2020
* Create an instance of Axios
@@ -74,4 +74,6 @@ axios.formToJSON = thing => {
7474
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
7575
};
7676

77+
axios.AxiosHeaders = AxiosHeaders;
78+
7779
export default axios

0 commit comments

Comments
 (0)