Skip to content

Commit 39e134d

Browse files
briancBrian Carlson
and
Brian Carlson
authored
Make pg-cursor compatible with older versions of pg (#3440)
Co-authored-by: Brian Carlson <brian.carlson@getcruise.com>
1 parent 0c1629b commit 39e134d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/pg-cursor/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
2-
const pg = require('pg')
3-
const { Result, utils } = pg
4-
const prepare = utils.prepareValue
2+
// note: can remove these deep requires when we bump min version of pg to 9.x
3+
const Result = require('pg/lib/result.js')
4+
const prepare = require('pg/lib/utils.js').prepareValue
55
const EventEmitter = require('events').EventEmitter
66
const util = require('util')
77

0 commit comments

Comments
 (0)