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
10
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 4.3.2 to 4.4.0

7

CHANGELOG.md
# Changelog
## [4.4.0](https://www.github.com/Financial-Times/origami/compare/o-tracking-v4.3.2...o-tracking-v4.4.0) (2022-07-12)
### Features
* o-tracking, add test mode minus debug logs ([fcea526](https://www.github.com/Financial-Times/origami/commit/fcea526f883ce422e5cd48f7b318242afa7fced8))
### [4.3.2](https://www.github.com/Financial-Times/origami/compare/o-tracking-v4.3.1...o-tracking-v4.3.2) (2022-04-21)

@@ -4,0 +11,0 @@

2

package.json
{
"name": "@financial-times/o-tracking",
"version": "4.3.2",
"version": "4.4.0",
"description": "Provides tracking for a product. Tracking requests are sent to the Spoor API.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -93,2 +93,14 @@ # o-tracking

o-tracking also has a `test-data` mode to mark events as test events without the debugging information in the console:
```js
import oTracking from '@financial-times/o-tracking';
const config = {
test_data: true, // Mark the events as test events without extra debug logging.
...
};
oTracking.init(config);
```
#### Methods

@@ -95,0 +107,0 @@

@@ -50,3 +50,3 @@ import {get as getSetting} from './settings.js';

if (getSetting('config').test) {
if (getSetting('config').test || getSetting('config').test_data) {
system.is_live = false;

@@ -53,0 +53,0 @@ } else {

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