shipit
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -87,3 +87,14 @@ (function() { | ||
DhlGmClient.prototype.getEta = function(data) {}; | ||
DhlGmClient.prototype.getEta = function(data) { | ||
var $, eta; | ||
if (data == null) { | ||
return; | ||
} | ||
$ = data; | ||
eta = $(".status-info > .row .est-delivery > p").text(); | ||
if (!(eta != null ? eta.length : void 0)) { | ||
return; | ||
} | ||
return moment("" + eta + " 23:59:59 +00:00").toDate(); | ||
}; | ||
@@ -90,0 +101,0 @@ DhlGmClient.prototype.getService = function(data) { |
{ | ||
"name": "shipit", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"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", |
103484
2396