universal-analytics
Advanced tools
Comparing version 0.3.10 to 0.3.11
# History | ||
## 0.3.11 / 2016-03-16 | ||
- Added requestOptions to allow custom modifications for the request call | ||
## 0.3.10 / 2015-12-18 | ||
@@ -4,0 +8,0 @@ |
@@ -33,2 +33,4 @@ | ||
this.requestOptions = this.options.requestOptions || {}; | ||
if (this.options.https) { | ||
@@ -340,9 +342,8 @@ var parsedHostname = url.parse(config.hostname); | ||
var iterator = function (fn) { | ||
var params = self._queue.shift() | ||
var params = self._queue.shift(); | ||
var path = config.hostname + config.path; | ||
self._log(count++ + ": " + JSON.stringify(params)); | ||
var options = { | ||
form: params, | ||
headers: self.options.headers || {} | ||
}; | ||
var options = JSON.parse(JSON.stringify(self.requestOptions)); | ||
options['form'] = params; | ||
options['headers'] = self.requestOptions['headers'] || self.options.headers || {}; | ||
request.post(path, options, fn); | ||
@@ -349,0 +350,0 @@ } |
{ | ||
"name": "universal-analytics", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"description": "A node module for Google's Universal Analytics tracking", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -59,3 +59,3 @@ | ||
var parsedUrl = url.parse(args[0]) | ||
var parsedUrl = url.parse(args[0]); | ||
@@ -68,7 +68,7 @@ Math.random(); // I have absolutely no idea why it fails unless there was some processing to be done after url.parse… | ||
done() | ||
done(); | ||
}); | ||
var visitor = ua(); | ||
visitor._queue.push.apply(visitor._queue, paramSets) | ||
visitor._queue.push.apply(visitor._queue, paramSets); | ||
visitor.send(fn); | ||
@@ -75,0 +75,0 @@ }); |
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
152012