crowdstart-analytics
Advanced tools
Comparing version 0.2.12 to 0.2.14
@@ -16,19 +16,7 @@ // Generated by CoffeeScript 1.10.0 | ||
} | ||
this.fn = new Function(this.opts.code); | ||
} | ||
Generic.prototype.init = function() { | ||
if (window._fbq != null) { | ||
return; | ||
} | ||
return window._fbq = []; | ||
}; | ||
Generic.prototype.page = function(category, name, props, opts, cb) { | ||
if (arguments.length === 1) { | ||
name = category; | ||
} | ||
return this.track(name, props, opts, cb); | ||
}; | ||
Generic.prototype.track = function(event, props, opts, cb) { | ||
var err, error; | ||
if (cb == null) { | ||
@@ -41,3 +29,8 @@ cb = function() {}; | ||
this.log('Generic.track', this.opts.name, event, props, opts); | ||
return this.opts.fn(event, props, opts, cb); | ||
try { | ||
return this.opts.fn(event, props, opts, cb); | ||
} catch (error) { | ||
err = error; | ||
return this.log("Generic integration failed, " + (err.toString())); | ||
} | ||
}; | ||
@@ -44,0 +37,0 @@ |
{ | ||
"name": "crowdstart-analytics", | ||
"version": "0.2.12", | ||
"version": "0.2.14", | ||
"description": "Analytics support for Hanzo.", | ||
@@ -9,2 +9,4 @@ "main": "lib", | ||
"cake": "^0.1.1", | ||
"cake-publish": "0.1.1", | ||
"cake-version": "0.1.9", | ||
"chai": "^3.1.0", | ||
@@ -18,3 +20,3 @@ "coffee-script": "^1.9.3", | ||
"serve-static": "^1.10.0", | ||
"shortcake": "^0.2.3", | ||
"shortcake": "1.1.18", | ||
"uglify-js": "^2.4.23", | ||
@@ -21,0 +23,0 @@ "webdriverio": "^2.4.5" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
140837
15
1793
2