File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,6 @@ var utils = require('./utils');
5
5
var dispatchRequest = require ( './core/dispatchRequest' ) ;
6
6
var InterceptorManager = require ( './core/InterceptorManager' ) ;
7
7
8
- // Polyfill ES6 Promise if needed
9
- ( function ( ) {
10
- // webpack is being used to set es6-promise to the native Promise
11
- // for the standalone build. It's necessary to make sure polyfill exists.
12
- var P = require ( 'es6-promise' ) ;
13
- if ( P && typeof P . polyfill === 'function' ) {
14
- P . polyfill ( ) ;
15
- }
16
- } ) ( ) ;
17
-
18
8
var axios = module . exports = function axios ( config ) {
19
9
config = utils . merge ( {
20
10
method : 'get' ,
Original file line number Diff line number Diff line change 26
26
"url" : " https://github.com/mzabriskie/axios/issues"
27
27
},
28
28
"homepage" : " https://github.com/mzabriskie/axios" ,
29
- "dependencies" : {
30
- "es6-promise" : " ^2.3.0"
31
- },
32
29
"devDependencies" : {
33
30
"coveralls" : " ^2.11.2" ,
31
+ "es6-promise" : " ^2.3.0" ,
34
32
"grunt" : " ^0.4.5" ,
35
33
"grunt-banner" : " ^0.4.0" ,
36
34
"grunt-contrib-clean" : " ^0.6.0" ,
Original file line number Diff line number Diff line change
1
+ require ( 'es6-promise' ) . polyfill ( ) ;
1
2
var axios = require ( '../../index' ) ;
2
3
3
4
describe ( 'promise' , function ( ) {
You can’t perform that action at this time.
0 commit comments