postgres-date
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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) |
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
5832
50