mirror of
https://github.com/axios/axios.git
synced 2026-04-12 02:31:57 +08:00
* Added data URL support for node.js; Added missed data URL protocol for the browser environment; Optimized JSON parsing in the default response transformer; Refactored project structure; Added `cause` prop for AxiosError instance that refers to the original error if it was wrapped with `AxiosError.from` method; Added fromDataURI helper; Added test for handling data:url as an `arraybuffer|text|stream`; * Added throwing of 405 HTTP error if the method is not GET;
12 lines
278 B
JavaScript
12 lines
278 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
isNode: true,
|
|
classes: {
|
|
URLSearchParams: require('./classes/URLSearchParams'),
|
|
FormData: require('./classes/FormData'),
|
|
Blob: typeof Blob !== 'undefined' && Blob || null
|
|
},
|
|
protocols: [ 'http', 'https', 'file', 'data' ]
|
|
};
|