Comparing version 4.0.0 to 4.0.1
@@ -21,8 +21,4 @@ const array = require('postgres-array') | ||
function parseBaseTenInt (string) { | ||
return parseInt(string, 10) | ||
} | ||
function parseIntegerArray (value) { | ||
return array.parse(value, parseBaseTenInt) | ||
return array.parse(value, Number) | ||
} | ||
@@ -124,3 +120,3 @@ | ||
function parseInt4Range (raw) { | ||
return range.parse(raw, parseBaseTenInt) | ||
return range.parse(raw, Number) | ||
} | ||
@@ -146,5 +142,5 @@ | ||
register(20, parseBigInteger) // int8 | ||
register(21, parseBaseTenInt) // int2 | ||
register(23, parseBaseTenInt) // int4 | ||
register(26, parseBaseTenInt) // oid | ||
register(21, Number) // int2 | ||
register(23, Number) // int4 | ||
register(26, Number) // oid | ||
register(700, parseFloat) // float4/real | ||
@@ -151,0 +147,0 @@ register(701, parseFloat) // float8/double |
{ | ||
"name": "pg-types", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Query result type converters for node-postgres", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17535
447