index.js 863 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2015-present, Vitaly Tomilov
  3. *
  4. * See the LICENSE file at the top-level directory of this distribution
  5. * for licensing information.
  6. *
  7. * Removal or modification of this copyright notice is prohibited.
  8. */
  9. /* eslint no-var: off */
  10. var v = process.versions.node.split('.'),
  11. highVer = +v[0];
  12. // istanbul ignore next
  13. if (highVer < 14) {
  14. // From pg-promise v11.0.0, the oldest supported Node.js is v14.0.0
  15. // Node.js v12.0.0 was supported up to pg-promise v10.15.4
  16. // Node.js v8.0.0 was supported up to pg-promise v10.14.2
  17. // Node.js v7.6.0 was supported up to pg-promise v10.3.5
  18. // Node.js v4.5.0 was supported up to pg-promise v8.7.5
  19. // Node.js v0.10 was supported up to pg-promise v5.5.8
  20. throw new Error('Minimum Node.js version supported by pg-promise is 14.0.0');
  21. }
  22. module.exports = require('./main');