delivery-tracker
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -0,1 +1,4 @@ | ||
# 1.6.1 | ||
* sort UPS checkpoints. | ||
# 1.6.0 | ||
@@ -2,0 +5,0 @@ * add UPS. |
@@ -155,2 +155,5 @@ 'use strict' | ||
checkpoints = checkpoints.concat(trace.checkpoints) | ||
checkpoints.sort(function (a, b) { | ||
return (+new Date(b.time)) - (+new Date(a.time)) | ||
}) | ||
complete() | ||
@@ -157,0 +160,0 @@ }) |
@@ -43,3 +43,3 @@ 'use strict' | ||
status: tracker.STATUS.IN_TRANSIT, | ||
time: moment([cols.eq(1).text().trim(), cols.eq(2).text().trim()].join(' '), 'YYYY/MM/DD HH:mm').utcOffset(-480).format('YYYY-MM-DDTHH:mm') | ||
time: moment([cols.eq(1).text().trim(), cols.eq(2).text().trim()].join(' '), 'YYYY/MM/DD HH:mm').format('YYYY-MM-DDTHH:mm') | ||
} | ||
@@ -46,0 +46,0 @@ |
{ | ||
"name": "delivery-tracker", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "egg", |
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
52420
1403