Comparing version 2.3.0 to 2.3.1
@@ -105,2 +105,3 @@ "use strict"; | ||
lastValTS: new Date(originalTrain.lastValTS), | ||
trainTimeZone: originalTrain.trainTimeZone, | ||
lastArr: new Date(originalTrain.lastArr), | ||
@@ -299,2 +300,3 @@ trainState: originalTrain.trainState, | ||
lastValTS: dateOrNull(new Date(`${originalTrain.LastValTS} ${trainTimeZone}`)), | ||
trainTimeZone: trainTimeZone, | ||
lastArr: lastArrTime, | ||
@@ -301,0 +303,0 @@ trainState: originalTrain.TrainState, |
@@ -89,2 +89,3 @@ export interface stationRaw { | ||
lastValTS: Date; | ||
trainTimeZone: string; | ||
lastArr: Date; | ||
@@ -91,0 +92,0 @@ trainState: string; |
{ | ||
"name": "amtrak", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A simple and easy way to parse data from Amtrak's train tracking API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/amtrak/amtrak.js", |
@@ -290,2 +290,3 @@ import { stationRaw, station, stationMin, trainDataRaw, trainData } from "../types/types"; | ||
lastValTS: dateOrNull(new Date(`${originalTrain.LastValTS} ${trainTimeZone}`)), //Date object which train was last updated | ||
// @ts-ignore | ||
trainTimeZone: trainTimeZone, //the current time zone of the train | ||
@@ -292,0 +293,0 @@ // @ts-ignore |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1067177
33180