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

@brainsights/postgres-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brainsights/postgres-wrapper - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

2

package.json
{
"name": "@brainsights/postgres-wrapper",
"version": "2.1.0",
"version": "3.0.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,2 +26,17 @@ const { NumericRange } = require("./range");

let parse_NUMRANGE = (value) =>
{
const RANGE_REGEX = /(\[|\()("((?:\\"|[^"])*)"|[^"]*),("((?:\\"|[^"])*)"|[^"]*)(\]|\))/;
let matches = value.match(RANGE_REGEX);
if(!matches) {
return undefined;
}
let lower = parseInt(matches[2]);
let upper = parseInt(matches[4]);
return [lower, upper];
}
let parse_TIMESTAMP = (value) =>

@@ -40,3 +55,4 @@ {

installParser(pgTypes, oids.BIGINT, parse_BIGINT);
installParser(pgTypes, oids.INT8RANGE, parse_INT8RANGE);
// installParser(pgTypes, oids.INT8RANGE, parse_INT8RANGE);
installParser(pgTypes, oids.NUMRANGE, parse_NUMRANGE);
installParser(pgTypes, oids.TIMESTAMP, parse_TIMESTAMP);

@@ -43,0 +59,0 @@ installParser(pgTypes, oids.TIMESTAMPTZ, parse_TIMESTAMP);

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