2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Removing es6-promise dependency

This commit is contained in:
mzabriskie
2015-06-18 22:49:36 -06:00
parent cc451b38c1
commit e8cf487ad0
3 changed files with 2 additions and 13 deletions
-10
View File
@@ -5,16 +5,6 @@ var utils = require('./utils');
var dispatchRequest = require('./core/dispatchRequest');
var InterceptorManager = require('./core/InterceptorManager');
// Polyfill ES6 Promise if needed
(function () {
// webpack is being used to set es6-promise to the native Promise
// for the standalone build. It's necessary to make sure polyfill exists.
var P = require('es6-promise');
if (P && typeof P.polyfill === 'function') {
P.polyfill();
}
})();
var axios = module.exports = function axios(config) {
config = utils.merge({
method: 'get',
+1 -3
View File
@@ -26,11 +26,9 @@
"url": "https://github.com/mzabriskie/axios/issues"
},
"homepage": "https://github.com/mzabriskie/axios",
"dependencies": {
"es6-promise": "^2.3.0"
},
"devDependencies": {
"coveralls": "^2.11.2",
"es6-promise": "^2.3.0",
"grunt": "^0.4.5",
"grunt-banner": "^0.4.0",
"grunt-contrib-clean": "^0.6.0",
+1
View File
@@ -1,3 +1,4 @@
require('es6-promise').polyfill();
var axios = require('../../index');
describe('promise', function () {