Comparing version 0.0.13 to 0.0.14
(function() { | ||
var FedexClient, UpsClient; | ||
var FedexClient, UpsClient, UspsClient; | ||
@@ -8,7 +8,10 @@ UpsClient = require('./ups').UpsClient; | ||
UspsClient = require('./usps').UspsClient; | ||
module.exports = { | ||
UpsClient: UpsClient, | ||
FedexClient: FedexClient | ||
FedexClient: FedexClient, | ||
UspsClient: UspsClient | ||
}; | ||
}).call(this); |
@@ -218,8 +218,9 @@ (function() { | ||
UspsClient.prototype.requestOptions = function(_arg) { | ||
var clientIp, test, trackingNumber, xml; | ||
var clientIp, endpoint, test, trackingNumber, xml; | ||
trackingNumber = _arg.trackingNumber, clientIp = _arg.clientIp, test = _arg.test; | ||
endpoint = test ? 'ShippingAPITest.dll' : 'ShippingAPI.dll'; | ||
xml = this.generateRequest(trackingNumber, clientIp); | ||
return { | ||
method: 'GET', | ||
uri: "http://production.shippingapis.com/ShippingAPITest.dll?API=TrackV2&XML=" + xml | ||
uri: "http://production.shippingapis.com/" + endpoint + "?API=TrackV2&XML=" + xml | ||
}; | ||
@@ -226,0 +227,0 @@ }; |
{ | ||
"name": "shipit", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"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
38242
747