knex/knex.js

19 lines
487 B
JavaScript
Raw Normal View History

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