Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@financial-times/o-tracking

Package Overview
Dependencies
Maintainers
14
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/o-tracking - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

4

dist/javascript/core/send.js

@@ -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',

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