Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
bump dependencies
Browse files Browse the repository at this point in the history
Fix #7.
Fix #8.
  • Loading branch information
benesch committed Jan 31, 2019
1 parent 3f974c3 commit c95a83e
Show file tree
Hide file tree
Showing 6 changed files with 542 additions and 22 deletions.
4 changes: 2 additions & 2 deletions lib/parser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var _ = require("lodash")
var curry = require("lodash.partial")
, Range = require("./range");

var RANGE_MATCHER = /(\[|\()("((?:\\"|[^"])*)"|[^"]*),("((?:\\"|[^"])*)"|[^"]*)(\]|\))/;
Expand Down Expand Up @@ -60,7 +60,7 @@ function install(pg, rangeOid, subtypeOid) {
}

subtypeParser = pg.types.getTypeParser(subtypeOid, "text");
pg.types.setTypeParser(rangeOid, _.partial(parseRange, subtypeParser));
pg.types.setTypeParser(rangeOid, curry(parseRange, subtypeParser));
}

module.exports = {
Expand Down
Loading

0 comments on commit c95a83e

Please sign in to comment.