@mediocre/bloodhound
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -19,4 +19,2 @@ const async = require('async'); | ||
function FedEx(options) { | ||
const fedExClient = new FedExClient(options); | ||
this.isTrackingNumberValid = function(trackingNumber) { | ||
@@ -74,2 +72,4 @@ // Remove whitespace | ||
this.track = function(trackingNumber, callback) { | ||
const fedExClient = new FedExClient(options); | ||
// Create a FedEx track request: https://www.fedex.com/us/developer/webhelp/ws/2018/US/index.htm#t=wsdvg%2FTracking_Shipments.htm%23Tracking_Service_Optionsbc-3&rhtocid=_26_0_2 | ||
@@ -76,0 +76,0 @@ const trackRequest = { |
@@ -46,4 +46,4 @@ const async = require('async'); | ||
geography.parseLocation(location, function(err, address) { | ||
if (err) { | ||
return callback(err); | ||
if (err || !address) { | ||
return callback(err, address); | ||
} | ||
@@ -61,3 +61,3 @@ | ||
data.scanDetailsList.forEach(scanDetail => { | ||
const address = addresses.find(a => a.location === scanDetail.location); | ||
const address = addresses.find(a => a && a.location === scanDetail.location); | ||
let timezone = 'America/New_York'; | ||
@@ -64,0 +64,0 @@ |
@@ -127,4 +127,4 @@ const async = require('async'); | ||
geography.parseLocation(location, function (err, address) { | ||
if (err) { | ||
return callback(err); | ||
if (err || !address) { | ||
return callback(err, address); | ||
} | ||
@@ -142,3 +142,3 @@ | ||
scanDetailsList.forEach(scanDetail => { | ||
const address = addresses.find(a => a.location === scanDetail.location); | ||
const address = addresses.find(a => a && a.location === scanDetail.location); | ||
let timezone = 'America/New_York'; | ||
@@ -145,0 +145,0 @@ |
@@ -38,3 +38,3 @@ { | ||
}, | ||
"version": "0.2.0" | ||
"version": "0.2.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
23638