mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Releasing 0.9.1
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
### 0.9.1 (Jan 24, 2016)
|
||||||
|
|
||||||
|
- Improving handling of request timeout in node ([#124](https://github.com/mzabriskie/axios/issues/124))
|
||||||
|
- Fixing network errors not rejecting ([#205](https://github.com/mzabriskie/axios/pull/205))
|
||||||
|
- Fixing issue with IE rejecting on HTTP 204 ([#201](https://github.com/mzabriskie/axios/issues/201))
|
||||||
|
- Fixing host/port when following redirects ([#198](https://github.com/mzabriskie/axios/pull/198))
|
||||||
|
|
||||||
### 0.9.0 (Jan 18, 2016)
|
### 0.9.0 (Jan 18, 2016)
|
||||||
|
|
||||||
- Adding support for custom adapters
|
- Adding support for custom adapters
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"main": "./dist/axios.js",
|
"main": "./dist/axios.js",
|
||||||
"version": "0.9.0",
|
"version": "0.9.1",
|
||||||
"homepage": "https://github.com/mzabriskie/axios",
|
"homepage": "https://github.com/mzabriskie/axios",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Matt Zabriskie"
|
"Matt Zabriskie"
|
||||||
|
|||||||
Vendored
+17
-4
@@ -1,4 +1,4 @@
|
|||||||
/* axios v0.9.0 | (c) 2016 by Matt Zabriskie */
|
/* axios v0.9.1 | (c) 2016 by Matt Zabriskie */
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
module.exports = factory();
|
module.exports = factory();
|
||||||
@@ -597,13 +597,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
responseHeaders,
|
responseHeaders,
|
||||||
config.transformResponse
|
config.transformResponse
|
||||||
),
|
),
|
||||||
status: request.status,
|
// IE sends 1223 instead of 204 (https://github.com/mzabriskie/axios/issues/201)
|
||||||
statusText: request.statusText,
|
status: request.status === 1223 ? 204 : request.status,
|
||||||
|
statusText: request.status === 1223 ? 'No Content' : request.statusText,
|
||||||
headers: responseHeaders,
|
headers: responseHeaders,
|
||||||
config: config
|
config: config
|
||||||
};
|
};
|
||||||
|
|
||||||
// Resolve or reject the Promise based on the status
|
// Resolve or reject the Promise based on the status
|
||||||
((request.status >= 200 && request.status < 300) || (!('status' in request) && request.responseText) ?
|
((response.status >= 200 && response.status < 300) ||
|
||||||
|
(!('status' in request) && response.responseText) ?
|
||||||
resolve :
|
resolve :
|
||||||
reject)(response);
|
reject)(response);
|
||||||
|
|
||||||
@@ -611,6 +614,16 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
request = null;
|
request = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Handle low level network errors
|
||||||
|
request.onerror = function handleError() {
|
||||||
|
// Real errors are hidden from us by the browser
|
||||||
|
// onerror should only fire if it's a network error
|
||||||
|
reject(new Error('Network Error'));
|
||||||
|
|
||||||
|
// Clean up request
|
||||||
|
request = null;
|
||||||
|
};
|
||||||
|
|
||||||
// Add xsrf header
|
// Add xsrf header
|
||||||
// This is only done if running in a standard browser environment.
|
// This is only done if running in a standard browser environment.
|
||||||
// Specifically not if we're in a web worker, or react-native.
|
// Specifically not if we're in a web worker, or react-native.
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "0.9.0",
|
"version": "0.9.1",
|
||||||
"description": "Promise based HTTP client for the browser and node.js",
|
"description": "Promise based HTTP client for the browser and node.js",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user