2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Releasing v0.27.2

This commit is contained in:
Jay
2022-04-27 11:58:12 +02:00
parent b9e9fb4fa0
commit bc733fec78
10 changed files with 45 additions and 13 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog
### 0.27.2 (April 27, 2022)
Fixes and Functionality:
- Fixed FormData posting in browser environment by reverting #3785 ([#4640](https://github.com/axios/axios/pull/4640))
- Enhanced protocol parsing implementation ([#4639](https://github.com/axios/axios/pull/4639))
- Fixed bundle size
### 0.27.1 (April 26, 2022)
Fixes and Functionality:
+1 -1
View File
@@ -104,6 +104,6 @@ module.exports = function(grunt) {
});
grunt.registerTask('test', 'Run the jasmine and mocha tests', ['eslint', 'mochaTest', 'karma:single']);
grunt.registerTask('build', 'Run webpack and bundle the source', ['clean', 'webpack']);
grunt.registerTask('build', 'Run webpack and bundle the source', ['clean', 'webpack', 'usebanner']);
grunt.registerTask('version', 'Sync version info for a release', ['usebanner', 'package2bower', 'package2env']);
};
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "axios",
"main": "./dist/axios.js",
"version": "0.27.1",
"version": "0.27.2",
"homepage": "https://axios-http.com",
"authors": [
"Matt Zabriskie"
+26 -3
View File
@@ -1,3 +1,4 @@
/* axios v0.27.2 | (c) 2022 by Matt Zabriskie */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
@@ -127,6 +128,7 @@ var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ ".
var transitionalDefaults = __webpack_require__(/*! ../defaults/transitional */ "./lib/defaults/transitional.js");
var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "./lib/core/AxiosError.js");
var CanceledError = __webpack_require__(/*! ../cancel/CanceledError */ "./lib/cancel/CanceledError.js");
var parseProtocol = __webpack_require__(/*! ../helpers/parseProtocol */ "./lib/helpers/parseProtocol.js");
module.exports = function xhrAdapter(config) {
return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -144,6 +146,10 @@ module.exports = function xhrAdapter(config) {
}
}
if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {
delete requestHeaders['Content-Type']; // Let the browser set it
}
var request = new XMLHttpRequest();
// HTTP basic authentication
@@ -320,8 +326,7 @@ module.exports = function xhrAdapter(config) {
requestData = null;
}
var tokens = fullPath.split(':', 2);
var protocol = tokens.length > 1 && tokens[0];
var protocol = parseProtocol(fullPath);
if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) {
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
@@ -1430,7 +1435,7 @@ module.exports = {
/***/ (function(module, exports) {
module.exports = {
"version": "0.27.1"
"version": "0.27.2"
};
/***/ }),
@@ -1862,6 +1867,24 @@ module.exports = function parseHeaders(headers) {
};
/***/ }),
/***/ "./lib/helpers/parseProtocol.js":
/*!**************************************!*\
!*** ./lib/helpers/parseProtocol.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = function parseProtocol(url) {
var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
return match && match[1] || '';
};
/***/ }),
/***/ "./lib/helpers/spread.js":
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,3 +1,3 @@
module.exports = {
"version": "0.27.1"
"version": "0.27.2"
};
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "axios",
"version": "0.27.1",
"version": "0.27.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "axios",
"version": "0.27.1",
"version": "0.27.2",
"license": "MIT",
"dependencies": {
"follow-redirects": "^1.14.9",
+3 -2
View File
@@ -1,13 +1,14 @@
{
"name": "axios",
"version": "0.27.1",
"version": "0.27.2",
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "grunt test && dtslint",
"start": "node ./sandbox/server.js",
"build": "grunt version && npm test && NODE_ENV=production grunt build",
"preversion": "grunt version && npm test",
"build": "NODE_ENV=production grunt build",
"examples": "node ./examples/server.js",
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"fix": "eslint --fix lib/**/*.js"