Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

comboios

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comboios - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

lib/journeys.js

@@ -72,2 +72,5 @@ 'use strict'

if (!s.arrival && !s.departure) throw new Error('stopover must have either departure or arrival time')
if (!s.arrival && s.departure) s.arrival = s.departure
if (!s.departure && s.arrival) s.departure = s.arrival
const arrivalTime = +moment.duration(s.arrival)

@@ -74,0 +77,0 @@ if (arrivalTime < lastTime) date.add(1, 'days')

@@ -25,2 +25,5 @@ 'use strict'

// format times
if (!st.arrival && !st.departure) throw new Error('stopover must have either departure or arrival time')
if (!st.arrival && st.departure) st.arrival = st.departure
if (!st.departure && st.arrival) st.departure = st.arrival
const arrivalTime = +moment.duration(st.arrival)

@@ -27,0 +30,0 @@ if (arrivalTime < lastTime) date.add(1, 'days')

2

package.json
{
"name": "comboios",
"version": "0.1.0",
"version": "0.1.1",
"description": "Comboios de Portugal (CP, Portugese Railways) API client.",

@@ -5,0 +5,0 @@ "keywords": [

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