Comparing version 5.6.1 to 5.6.2
@@ -192,3 +192,7 @@ "use strict"; | ||
function toNanoDate(timestamp) { | ||
const date = new Date(Math.floor(Number(timestamp) / nsPer.ms)); | ||
const secs = Math.floor(Number(timestamp) / nsPer.s); | ||
const remainingNs = timestamp.slice(String(secs).length); | ||
const remainingMs = Number(remainingNs) / nsPer.ms; | ||
const date = new Date(0); | ||
date.setUTCSeconds(secs, remainingMs); | ||
date._nanoTime = timestamp; | ||
@@ -195,0 +199,0 @@ date.getNanoTime = nanoDateMethods.getNanoTimeFromStamp; |
{ | ||
"name": "influx", | ||
"version": "5.6.1", | ||
"version": "5.6.2", | ||
"description": "InfluxDB Client", | ||
@@ -5,0 +5,0 @@ "main": "./lib/src/index.js", |
149052
4066