@mediocre/bloodhound
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -14,6 +14,7 @@ const async = require('async'); | ||
activitiesList = [package.Activity]; | ||
} else { | ||
activitiesList = package.Activity; | ||
} | ||
// Filter undefined activities | ||
activitiesList = activitiesList.filter(a => a); | ||
if (activitiesList.length) { | ||
@@ -20,0 +21,0 @@ activitiesList.forEach(activity => { |
@@ -194,3 +194,5 @@ const async = require('async'); | ||
// Add details to the most recent event | ||
results.events[0].details = data.TrackResponse.TrackInfo[0].StatusSummary[0]; | ||
if (results.events[0] && data.TrackResponse && data.TrackResponse.TrackInfo && data.TrackResponse.TrackInfo[0] && data.TrackResponse.TrackInfo[0].StatusSummary && data.TrackResponse.TrackInfo[0].StatusSummary[0]) { | ||
results.events[0].details = data.TrackResponse.TrackInfo[0].StatusSummary[0]; | ||
} | ||
@@ -197,0 +199,0 @@ // Add url to carrier tracking page |
@@ -42,3 +42,3 @@ { | ||
}, | ||
"version": "1.7.1" | ||
"version": "1.7.2" | ||
} |
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
68297
982