We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c9ebdc commit 1398681Copy full SHA for 1398681
lib/core/CPAxios.js
@@ -3,9 +3,7 @@ const CPromise = require('c-promise2');
3
const {Axios} = axios;
4
5
const isThenable = (thing) => thing && typeof thing.then === 'function';
6
-const _setImmediate = typeof setImmediate === 'function' ? setImmediate : function setImmediateShim(cb) {
7
- setTimeout(cb, 0)
8
-}
+const _setImmediate = typeof setImmediate === 'function' ? setImmediate : setTimeout;
9
10
class CPAxios extends Axios {
11
request(config) {
0 commit comments