'use strict';

if (require('node-version').major >= 4) {
    module.exports = require('./lib');
} else {
    global.Promise = require('promise-polyfill');
    module.exports = require('./lib-es5');
}

'use strict';

if (require('node-version').major >= 4) {
    module.exports = require('./lib');
} else {
    global.Promise = global.Promise || require('promise-polyfill');
    module.exports = require('./lib-es5');
}

Use Promise polyfill if it is already available
Use Promise polyfill if it is already available
