Comparing version 2.1.5 to 2.2.0
{ | ||
"name": "amtrak", | ||
"version": "2.1.5", | ||
"version": "2.2.0", | ||
"description": "A simple and easy way to parse data from Amtrak's train tracking API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/amtrak/amtrak.js", |
@@ -95,2 +95,3 @@ import { stationRaw, station, stationMin, trainDataRaw, trainData } from "../types/types"; | ||
lastValTS: new Date(originalTrain.lastValTS), //Date object which train was last updated | ||
trainTimeZone: originalTrain.trainTimeZone, //the current time zone of the train | ||
lastArr: new Date(originalTrain.lastArr), //Date object which train arrived at final destination, null if still uncompleted | ||
@@ -290,2 +291,3 @@ trainState: originalTrain.trainState, //state of the train ("Predeparture", "Active", or "Completed") | ||
lastValTS: dateOrNull(new Date(`${originalTrain.LastValTS} ${trainTimeZone}`)), //Date object which train was last updated | ||
trainTimeZone: trainTimeZone, //the current time zone of the train | ||
// @ts-ignore | ||
@@ -292,0 +294,0 @@ lastArr: lastArrTime, //Date object which train arrived at final destination, null if still uncompleted |
@@ -95,2 +95,3 @@ //WHY IS EVERYTHING A STRING | ||
lastValTS: Date; //Date object which train was last updated | ||
trainTimeZone: string, //the current time zone of the train | ||
lastArr: Date; //Date object which train arrived at final destination, null if still uncompleted | ||
@@ -97,0 +98,0 @@ trainState: string; //state of the train ("Predeparture", "Active", or "Completed") |
1066957
33176