@financial-times/o-tracking
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -118,4 +118,4 @@ /*global module, require, window */ | ||
if (request && request.category && request.action) { | ||
const type = `type=${request.category}:${request.action}`; | ||
url = url.indexOf('?') > -1 ? `${url}&${type}` : `${url}?${type}`; | ||
const type = "type=".concat(request.category, ":").concat(request.action); | ||
url = url.indexOf('?') > -1 ? "".concat(url, "&").concat(type) : "".concat(url, "?").concat(type); | ||
} // Both developer and noSend flags have to be set to stop the request sending. | ||
@@ -122,0 +122,0 @@ |
@@ -10,3 +10,3 @@ /*global module, require */ | ||
const TRACKING_ATTRIBUTES = ['contentId', 'type', 'subtype', 'component']; | ||
const TRACKING_ATTRIBUTES = ['componentContentId', 'type', 'subtype', 'component']; | ||
@@ -13,0 +13,0 @@ const decorateEventData = (eventData, viewedEl, opts) => { |
@@ -257,3 +257,3 @@ /*global module, require, window */ | ||
} else { | ||
console.warn(`You can't set a custom property called ${prop}`); | ||
console.warn("You can't set a custom property called ".concat(prop)); | ||
} | ||
@@ -260,0 +260,0 @@ } |
@@ -69,3 +69,3 @@ "use strict"; | ||
const originalEl = el; | ||
const selector = originalEl.getAttribute('data-trackable') ? `[data-trackable="${originalEl.getAttribute('data-trackable')}"]` : originalEl.nodeName; | ||
const selector = originalEl.getAttribute('data-trackable') ? "[data-trackable=\"".concat(originalEl.getAttribute('data-trackable'), "\"]") : originalEl.nodeName; | ||
const trace = []; | ||
@@ -72,0 +72,0 @@ const customContext = {}; |
@@ -26,3 +26,3 @@ { | ||
"name": "@financial-times/o-tracking", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Origami module for FT tracking.", | ||
@@ -29,0 +29,0 @@ "dependencies": { |
@@ -204,3 +204,3 @@ # Origami Tracking component [![CircleCI](https://circleci.com/gh/Financial-Times/o-tracking.svg?style=svg&circle-token=bac74d66190dbd699381ab25baab148fb3bb010c)](https://circleci.com/gh/Financial-Times/o-tracking) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](#licence) | ||
return { | ||
contentId: el.getAttribute('data-id'), | ||
componentContentId: el.getAttribute('data-id'), | ||
type: 'audio', | ||
@@ -207,0 +207,0 @@ subtype: 'podcast', |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
70065
0