mirror of
https://github.com/brianc/node-postgres.git
synced 2026-02-01 16:47:23 +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'
|
'use strict'
|
||||||
const Result = require('./pg').Result
|
const Result = require('pg/lib/result.js')
|
||||||
const prepare = require('./pg').prepareValue
|
const prepare = require('pg/lib/utils.js').prepareValue
|
||||||
const EventEmitter = require('events').EventEmitter
|
const EventEmitter = require('events').EventEmitter
|
||||||
const util = require('util')
|
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