Comparing version 0.0.8 to 0.0.9
@@ -73,3 +73,4 @@ (function() { | ||
FedexClient.prototype.validateResponse = function(response, cb) { | ||
return this.parser.parseString(response, function(xmlErr, trackResult) { | ||
var error, handleResponse; | ||
handleResponse = function(xmlErr, trackResult) { | ||
var notifications, success, _ref1, _ref2, _ref3; | ||
@@ -88,3 +89,9 @@ if ((xmlErr != null) || (trackResult == null)) { | ||
return cb(null, (_ref2 = trackResult['TrackReply']) != null ? (_ref3 = _ref2['TrackDetails']) != null ? _ref3[0] : void 0 : void 0); | ||
}); | ||
}; | ||
try { | ||
return this.parser.parseString(response, handleResponse); | ||
} catch (_error) { | ||
error = _error; | ||
return cb(error); | ||
} | ||
}; | ||
@@ -91,0 +98,0 @@ |
@@ -34,3 +34,11 @@ (function() { | ||
} | ||
address = (city != null) && (stateCode != null) ? "" + city + ", " + stateCode : void 0; | ||
if (stateCode != null) { | ||
if (city != null) { | ||
address = "" + city + ", " + stateCode; | ||
} else { | ||
address = stateCode; | ||
} | ||
} else { | ||
address = city; | ||
} | ||
postalCode = this.presentPostalCode(postalCode); | ||
@@ -37,0 +45,0 @@ if (countryCode != null) { |
{ | ||
"name": "shipit", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "This module allows you to connect to many shipping carriers like UPS and FedEx and download tracking data for your packages in a common schema", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
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
28965
535