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

snowplow-tracker-core

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snowplow-tracker-core - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1-beta1

22

lib/core.js

@@ -303,18 +303,28 @@ "use strict";

var event_schema = '';
var event_data = {};
if (schema === 'change_form') {
event_schema = 'iglu:com.snowplowanalytics.snowplow/change_form/jsonschema/1-0-0';
event_data = {
formId: formId,
elementId: elementId,
nodeName: nodeName,
type: type,
elementClasses: elementClasses,
value: value
};
}
else if (schema === 'focus_form') {
event_schema = 'iglu:com.snowplowanalytics.snowplow/focus_form/jsonschema/1-0-0';
}
return trackSelfDescribingEvent({
schema: event_schema,
data: removeEmptyProperties({
event_data = {
formId: formId,
elementId: elementId,
nodeName: nodeName,
type: type,
elementType: type,
elementClasses: elementClasses,
value: value
}, { value: true })
};
}
return trackSelfDescribingEvent({
schema: event_schema,
data: removeEmptyProperties(event_data, { value: true })
}, context, tstamp);

@@ -321,0 +331,0 @@ },

@@ -848,17 +848,25 @@ /*

let event_schema = '';
let event_data = {};
if (schema === 'change_form'){
event_schema = 'iglu:com.snowplowanalytics.snowplow/change_form/jsonschema/1-0-0';
event_data = {
formId: formId,
elementId: elementId,
nodeName: nodeName,
type: type,
elementClasses: elementClasses,
value: value};
} else if (schema === 'focus_form') {
event_schema = 'iglu:com.snowplowanalytics.snowplow/focus_form/jsonschema/1-0-0';
}
return trackSelfDescribingEvent({
schema: event_schema,
data: removeEmptyProperties({
event_data = {
formId: formId,
elementId: elementId,
nodeName: nodeName,
type: type,
elementType: type,
elementClasses: elementClasses,
value: value
}, {value: true})
value: value};
}
return trackSelfDescribingEvent({
schema: event_schema,
data: removeEmptyProperties(event_data, {value: true})
}, context, tstamp);

@@ -865,0 +873,0 @@ },

{
"name": "snowplow-tracker-core",
"version": "0.7.0",
"version": "0.7.1-beta1",
"devDependencies": {

@@ -5,0 +5,0 @@ "@types/es6-shim": "0.31.34",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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