snowplow-tracker-core
Advanced tools
Comparing version 0.7.1-beta1 to 0.7.1-beta2
@@ -303,24 +303,10 @@ "use strict"; | ||
var event_schema = ''; | ||
var event_data = {}; | ||
var event_data = { formId: formId, elementId: elementId, nodeName: nodeName, elementClasses: elementClasses, value: value }; | ||
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 | ||
}; | ||
event_data.type = type; | ||
} | ||
else if (schema === 'focus_form') { | ||
event_schema = 'iglu:com.snowplowanalytics.snowplow/focus_form/jsonschema/1-0-0'; | ||
event_data = { | ||
formId: formId, | ||
elementId: elementId, | ||
nodeName: nodeName, | ||
elementType: type, | ||
elementClasses: elementClasses, | ||
value: value | ||
}; | ||
event_data.elementType = type; | ||
} | ||
@@ -327,0 +313,0 @@ return trackSelfDescribingEvent({ |
@@ -848,21 +848,9 @@ /* | ||
let event_schema = ''; | ||
let event_data = {}; | ||
let event_data:any = {formId, elementId, nodeName, elementClasses, value}; | ||
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}; | ||
event_data.type = type | ||
} else if (schema === 'focus_form') { | ||
event_schema = 'iglu:com.snowplowanalytics.snowplow/focus_form/jsonschema/1-0-0'; | ||
event_data = { | ||
formId: formId, | ||
elementId: elementId, | ||
nodeName: nodeName, | ||
elementType: type, | ||
elementClasses: elementClasses, | ||
value: value}; | ||
event_data.elementType = type | ||
} | ||
@@ -869,0 +857,0 @@ return trackSelfDescribingEvent({ |
{ | ||
"name": "snowplow-tracker-core", | ||
"version": "0.7.1-beta1", | ||
"version": "0.7.1-beta2", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
155205
2730