Comparing version 0.1.0 to 0.1.1
@@ -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') |
{ | ||
"name": "comboios", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Comboios de Portugal (CP, Portugese Railways) API client.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17479
362
0