You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

postgres-bytea

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgres-bytea - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+4
-2
index.js
'use strict'
var bufferFrom = Buffer.from || Buffer
module.exports = function parseBytea (input) {
if (/^\\x/.test(input)) {
// new 'hex' style response (pg >9.0)
return new Buffer(input.substr(2), 'hex')
return bufferFrom(input.substr(2), 'hex')
}

@@ -30,3 +32,3 @@ var output = ''

}
return new Buffer(output, 'binary')
return bufferFrom(output, 'binary')
}
{
"name": "postgres-bytea",
"main": "index.js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Postgres bytea parser",

@@ -6,0 +6,0 @@ "license": "MIT",