Socket
Socket
Sign inDemoInstall

postgres-date

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgres-date - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

index.js

@@ -33,3 +33,3 @@ 'use strict'

var ms = matches[7]
ms = ms ? Math.round(1000 * parseFloat(ms)) : 0
ms = ms ? 1000 * parseFloat(ms) : 0

@@ -36,0 +36,0 @@ var date

{
"name": "postgres-date",
"main": "index.js",
"version": "1.0.5",
"version": "1.0.6",
"description": "Postgres date column parser",

@@ -27,3 +27,3 @@ "license": "MIT",

"standard": "^14.0.0",
"tape": "^4.0.0"
"tape": "^5.0.0"
},

@@ -30,0 +30,0 @@ "files": [

# postgres-date [![Build Status](https://travis-ci.org/bendrucker/postgres-date.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-date) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/postgres-date.svg)](https://greenkeeper.io/)
> Postgres date column parser
> Postgres date output parser
This package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.
If you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.
**Supported Postgres Versions:** `>= 9.6`
All prior versions of Postgres are likely compatible but not officially supported.
## Install

@@ -32,4 +39,12 @@

## Releases
The following semantic versioning increments will be used for changes:
* **Major**: Removal of support for Node.js versions or Postgres versions (not expected)
* **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format
* **Patch**: Any fix for parsing behavior
## License
MIT © [Ben Drucker](http://bendrucker.me)
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