New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

crowdstart-analytics

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crowdstart-analytics - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

14

lib/integrations/generic.js
// Generated by CoffeeScript 1.10.0
var Generic, Integration, isFunction,
var Generic, Integration,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },

@@ -8,4 +8,2 @@ hasProp = {}.hasOwnProperty;

isFunction = require('is-function');
module.exports = Generic = (function(superClass) {

@@ -36,3 +34,3 @@ extend(Generic, superClass);

Generic.prototype.track = function(event, props, opts, cb) {
var ref, ref1;
var err, error, fn;
if (cb == null) {

@@ -45,4 +43,8 @@ cb = function() {};

this.log('Generic.track', this.opts.name, event, props, opts);
if (isFunction((ref = this.opts) != null ? ref.fn : void 0)) {
return (ref1 = this.opts) != null ? ref1.fn(event, props, opts, cb) : void 0;
try {
fn = new Function("function(event, props, opts, cb) {" + opts.code + "}");
return fn(event, props, opts, cb);
} catch (error) {
err = error;
return this.log('Generic.error', this.opts.name, event, props, opts);
}

@@ -49,0 +51,0 @@ };

{
"name": "crowdstart-analytics",
"version": "0.2.9",
"version": "0.2.10",
"description": "Analytics support for Crowdstart.",

@@ -40,3 +40,2 @@ "main": "lib",

"dependencies": {
"is-function": "1.0.1",
"load-iframe": "^1.0.0",

@@ -43,0 +42,0 @@ "load-script": "^1.0.0"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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