Socket
Socket
Sign inDemoInstall

universal-analytics

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-analytics - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

4

HISTORY.md
# 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 @@

11

lib/index.js

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc