Skip to content

Commit

Permalink
fix: keep compatability with other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsaayman committed Oct 7, 2022
1 parent 2149464 commit a46beab
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 21 deletions.
6 changes: 2 additions & 4 deletions dist/axios.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/axios.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/axios.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/axios.min.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion dist/esm/axios.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/axios.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/axios.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/axios.min.js.map

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions dist/node/axios.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Axios v1.1.0 Copyright (c) 2022 Matt Zabriskie and contributors
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const FormData$1 = require('form-data');
const url = require('url');
const proxyFromEnv = require('proxy-from-env');
Expand Down Expand Up @@ -3753,9 +3751,7 @@ axios.formToJSON = thing => {
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
};

exports.Axios = Axios;
exports.AxiosError = AxiosError;
exports.AxiosHeaders = AxiosHeaders;
exports.CanceledError = CanceledError;
exports["default"] = axios;
axios.AxiosHeaders = AxiosHeaders;

module.exports = axios;
//# sourceMappingURL=axios.cjs.map
2 changes: 1 addition & 1 deletion dist/node/axios.cjs.map

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
import Axios from './lib/core/Axios.js';
import AxiosHeaders from './lib/core/AxiosHeaders.js';
import AxiosError from './lib/core/AxiosError.js';
import CanceledError from './lib/cancel/CanceledError.js';
import axios from './lib/axios.js';
export default axios;

export {
axios as default,
Axios,
AxiosHeaders,
AxiosError,
CanceledError,
};
4 changes: 3 additions & 1 deletion lib/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import toFormData from './helpers/toFormData.js';
import AxiosError from './core/AxiosError.js';
import spread from './helpers/spread.js';
import isAxiosError from './helpers/isAxiosError.js';

import AxiosHeaders from './core/AxiosHeaders.js';

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

axios.AxiosHeaders = AxiosHeaders;

export default axios

0 comments on commit a46beab

Please sign in to comment.