saucelabs
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -269,3 +269,3 @@ var https = require('https'); | ||
}else if(typeof use_hour == 'function'){ | ||
callback = hour; | ||
callback = use_hour; | ||
use_hour = null; | ||
@@ -276,3 +276,3 @@ } | ||
if(self.username && self.password){ | ||
if(self.options.username && self.options.password){ | ||
if(datetime instanceof Date){ | ||
@@ -290,3 +290,5 @@ //in format YYYY-MM-DD-HH or YYYY-MM-DD | ||
} | ||
console.log(datetime_string); | ||
} | ||
console.log(self.options.username + ':' + self.options.password + (datetime_string ? ':' + datetime_string : '')); | ||
var hash = crypto.createHmac('md5', self.options.username + ':' + self.options.password + (datetime_string ? ':' + datetime_string : '')).update(id).digest('hex'); | ||
@@ -293,0 +295,0 @@ url += '?auth=' + hash; |
@@ -5,3 +5,3 @@ { | ||
"description": "A wrapper around Saucelabs REST API", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"homepage": "https://github.com/holidayextras/node-saucelabs", | ||
@@ -8,0 +8,0 @@ "repository": { |
15150
307