You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
830 B
28 lines
830 B
2 years ago
|
/*
|
||
|
* Copyright (c) 2015-present, Vitaly Tomilov
|
||
|
*
|
||
|
* See the LICENSE file at the top-level directory of this distribution
|
||
|
* for licensing information.
|
||
|
*
|
||
|
* Removal or modification of this copyright notice is prohibited.
|
||
|
*/
|
||
|
|
||
|
/* eslint no-var: off */
|
||
|
var v = process.versions.node.split(`.`),
|
||
|
highVer = +v[0];
|
||
|
|
||
|
// istanbul ignore next
|
||
|
if (highVer < 8) {
|
||
|
|
||
|
// From pg-promise v10.4.0, the oldest supported Node.js is v8.0.0,
|
||
|
// which among other things, adds method 'destroy' to streams.
|
||
|
|
||
|
// Node.js v7.6.0 was supported up to pg-promise v10.3.5
|
||
|
// Node.js v4.5.0 was supported up to pg-promise v8.7.5
|
||
|
// Node.js v0.10 was supported up to pg-promise v5.5.8
|
||
|
|
||
|
throw new Error(`Minimum Node.js version supported by pg-promise is 8.0.0`);
|
||
|
}
|
||
|
|
||
|
module.exports = require(`./main`);
|