courier_tracking_auspost
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -63,5 +63,8 @@ const uniqWith = require("lodash.uniqwith"); | ||
if (trackingInfo.length > 0) { | ||
const firstScan = trackingInfo[trackingInfo.length - 1]; | ||
pickedupAt = { date: firstScan.date, time: firstScan.time }; | ||
pickedUp = true; | ||
trackingInfo.forEach(item => { | ||
if (item.action.toLowerCase().indexOf("picked up") != -1) { | ||
pickedupAt = { date: item.date, time: item.time }; | ||
pickedUp = true; | ||
} | ||
}); | ||
} | ||
@@ -68,0 +71,0 @@ |
{ | ||
"name": "courier_tracking_auspost", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Courier tracking from provided connote for Australia Post", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
95156
234