2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

fix: Add missing HttpStatusCode (#5345)

This commit is contained in:
Winnie
2022-12-06 21:34:48 +01:00
committed by GitHub
parent 981265dbf4
commit 56e9ca1a86
4 changed files with 78 additions and 1 deletions
+3
View File
@@ -15,6 +15,7 @@ import AxiosError from './core/AxiosError.js';
import spread from './helpers/spread.js';
import isAxiosError from './helpers/isAxiosError.js';
import AxiosHeaders from "./core/AxiosHeaders.js";
import HttpStatusCode from './helpers/HttpStatusCode.js';
/**
* Create an instance of Axios
@@ -77,6 +78,8 @@ axios.AxiosHeaders = AxiosHeaders;
axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
axios.HttpStatusCode = HttpStatusCode;
axios.default = axios;
// this module should only have a default export