@mediocre/bloodhound
Advanced tools
Comparing version 1.13.0 to 1.14.0
@@ -170,7 +170,7 @@ const async = require('async'); | ||
if (!results.deliveredAt && _event.description && DELIVERED_TRACKING_DESCRIPTIONS.includes(_event.description.toUpperCase())) { | ||
if (!results.deliveredAt && _event.description && DELIVERED_TRACKING_DESCRIPTIONS.find(desc => _event.description.toUpperCase().startsWith(desc))) { | ||
results.deliveredAt = _event.date; | ||
} | ||
if (!results.shippedAt && _event.description && SHIPPED_TRACKING_DESCRIPTIONS.includes(_event.description.toUpperCase())) { | ||
if (!results.shippedAt && _event.description && SHIPPED_TRACKING_DESCRIPTIONS.find(desc => _event.description.toUpperCase().startsWith(desc))) { | ||
results.shippedAt = _event.date; | ||
@@ -177,0 +177,0 @@ } |
@@ -175,7 +175,7 @@ const async = require('async'); | ||
if (!results.deliveredAt && _event.description && DELIVERED_TRACKING_DESCRIPTIONS.includes(_event.description.toUpperCase())) { | ||
if (!results.deliveredAt && _event.description && DELIVERED_TRACKING_DESCRIPTIONS.find(desc => _event.description.toUpperCase().startsWith(desc))) { | ||
results.deliveredAt = _event.date; | ||
} | ||
if (!results.shippedAt && _event.description && SHIPPED_TRACKING_DESCRIPTIONS.includes(_event.description.toUpperCase())) { | ||
if (!results.shippedAt && _event.description && SHIPPED_TRACKING_DESCRIPTIONS.find(desc => _event.description.toUpperCase().startsWith(desc))) { | ||
results.shippedAt = _event.date; | ||
@@ -182,0 +182,0 @@ } |
@@ -43,3 +43,3 @@ { | ||
}, | ||
"version": "1.13.0" | ||
"version": "1.14.0" | ||
} |
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
79627