2015-05-02 13:14:32 -04:00
|
|
|
// Knex.js
|
2015-04-24 14:57:35 -04:00
|
|
|
// --------------
|
2016-08-09 13:33:47 -04:00
|
|
|
// (c) 2013-present Tim Griesser
|
2015-04-24 14:57:35 -04:00
|
|
|
// Knex may be freely distributed under the MIT license.
|
|
|
|
// For details and documentation:
|
|
|
|
// http://knexjs.org
|
|
|
|
|
2018-12-10 18:20:06 +02:00
|
|
|
const oldPromise = global.Promise;
|
|
|
|
|
2018-09-26 23:41:00 +02:00
|
|
|
// Should be safe to remove after support for Node.js 6 is dropped
|
|
|
|
require('@babel/polyfill');
|
|
|
|
|
2018-12-10 18:20:06 +02:00
|
|
|
// Preserve any Promise overrides set globally prior to importing knex
|
|
|
|
if (oldPromise) {
|
|
|
|
global.Promise = oldPromise;
|
|
|
|
}
|
|
|
|
|
2016-05-17 01:01:34 +10:00
|
|
|
module.exports = require('./lib/index');
|