@mediocre/bloodhound
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -69,7 +69,2 @@ const async = require('async'); | ||
if (res.statusCode !== 200) { | ||
// If DHL fails, try USPS | ||
if (options.usps && usps.isTrackingNumberValid(trackingNumber)) { | ||
return usps.track(trackingNumber, callback); | ||
} | ||
return callback(new Error(`${res.statusCode} ${res.request.method} ${res.request.href} ${body || ''}`.trim())); | ||
@@ -82,2 +77,7 @@ } | ||
if (err) { | ||
// If DHL fails, try USPS | ||
if (options.usps && usps.isTrackingNumberValid(trackingNumber)) { | ||
return usps.track(trackingNumber, callback); | ||
} | ||
return callback(err); | ||
@@ -84,0 +84,0 @@ } |
@@ -42,3 +42,3 @@ { | ||
}, | ||
"version": "1.7.0" | ||
"version": "1.7.1" | ||
} |
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
68004