delivery-tracker
Advanced tools
Comparing version 1.4.0 to 1.4.2
@@ -0,1 +1,4 @@ | ||
# 1.4.2 | ||
* update yello express, rincos delivery message | ||
# 1.4.0 | ||
@@ -2,0 +5,0 @@ * add EFS. |
@@ -61,9 +61,7 @@ 'use strict' | ||
checkpoint.message.indexOf('Picked Up') !== -1 && (checkpoint.status = tracker.STATUS.INFO_RECEIVED) | ||
checkpoint.message.indexOf('SUCCEED RECEIVED BY') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED) | ||
checkpoint.message.indexOf('Delivered') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED) | ||
checkpoint.message.indexOf('RELEASED TO REPRESENTATIVE') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED) | ||
checkpoint.location === 'CJ-ASIA' && checkpoint.message === 'FINAL DELIVERY' && (checkpoint.status = tracker.STATUS.DELIVERED) | ||
checkpoint.location === 'SKYNET' && checkpoint.message.indexOf('DELIVERED') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED) | ||
checkpoint.location === 'Philippines' && checkpoint.message.indexOf('DELIVERED') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED) | ||
if (/Picked Up/i.test(checkpoint.message) === true) { | ||
checkpoint.status = tracker.STATUS.INFO_RECEIVED | ||
} else if (/SUCCEED RECEIVED BY|Delivered|RELEASED TO REPRESENTATIVE|FINAL DELIVERY|DELIVERD/i.test(checkpoint.message) === true) { | ||
checkpoint.status = tracker.STATUS.DELIVERED | ||
} | ||
@@ -70,0 +68,0 @@ checkpoints.push(checkpoint) |
@@ -78,2 +78,6 @@ 'use strict' | ||
if (/Delivered/i.test(checkpoint.message) === true) { | ||
checkpoint.status = tracker.STATUS.DELIVERED | ||
} | ||
result.checkpoints.push(checkpoint) | ||
@@ -80,0 +84,0 @@ }) |
{ | ||
"name": "delivery-tracker", | ||
"version": "1.4.0", | ||
"version": "1.4.2", | ||
"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
1408
52764