mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
fix: remove support for deprecated pg.js package
BREAKING CHANGE: pg.js is long dead and no longer supported. Use [pg](https://www.npmjs.com/package/pg) instead.
This commit is contained in:
parent
91bdbbd3d7
commit
6fc07b4a63
4
index.js
4
index.js
@ -1,6 +1,6 @@
|
||||
'use strict'
|
||||
const Result = require('./pg').Result
|
||||
const prepare = require('./pg').prepareValue
|
||||
const Result = require('pg/lib/result.js')
|
||||
const prepare = require('pg/lib/utils.js').prepareValue
|
||||
const EventEmitter = require('events').EventEmitter
|
||||
const util = require('util')
|
||||
|
||||
|
||||
10
pg.js
10
pg.js
@ -1,10 +0,0 @@
|
||||
// support both pg & pg.js
|
||||
// this will eventually go away when i break native bindings
|
||||
// out into their own module
|
||||
try {
|
||||
module.exports.Result = require('pg/lib/result.js')
|
||||
module.exports.prepareValue = require('pg/lib/utils.js').prepareValue
|
||||
} catch (e) {
|
||||
module.exports.Result = require('pg.js/lib/result.js')
|
||||
module.exports.prepareValue = require('pg.js/lib/utils.js').prepareValue
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user