New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amtrak

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amtrak - npm Package Compare versions

Comparing version 2.1.5 to 2.2.0

2

package.json
{
"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")

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