Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pg-types

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-types - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

14

lib/textParsers.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc