snowplow-tracker-core
Advanced tools
Comparing version 0.7.0 to 0.7.1-beta1
@@ -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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
155980
2756
0
1