Socket
Socket
Sign inDemoInstall

@kano/kbc-telemetry

Package Overview
Dependencies
Maintainers
12
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kano/kbc-telemetry - npm Package Compare versions

Comparing version 4.2.1-alpha.0 to 4.2.2-alpha.0

1

lib/kbc-telemetry.js

@@ -31,3 +31,2 @@ "use strict";

dispatch: (data) => {
console.log('data', data);
const dataWithDate = Object.assign({}, data, { date: new Date() });

@@ -34,0 +33,0 @@ (window.dataLayer = window.dataLayer || []).push(dataWithDate);

19

lib/utils/telemetry.js

@@ -34,13 +34,14 @@ "use strict";

exports.sendData = (url = '', batch) => __awaiter(this, void 0, void 0, function* () {
const events = batch.data.map((event) => {
const events = batch.data.map((e) => {
return JSON.stringify({
page_path: window.location.pathname,
name: event.event,
properties: event.data,
action: event.action,
module: event.module,
time: Math.round(event.date.getTime() / 1000),
timezone_offset: event.date.getTimezoneOffset(),
session_id: event.sessionId,
version: event.appVersion,
name: e.event,
properties: e.data,
action: e.action,
module: e.module,
time: Math.round(e.date.getTime()),
timezone_offset: e.date.getTimezoneOffset(),
session_id: e.sessionId,
user_id: e.userId,
version: e.appVersion,
});

@@ -47,0 +48,0 @@ });

{
"name": "@kano/kbc-telemetry",
"version": "4.2.1-alpha.0",
"version": "4.2.2-alpha.0",
"description": "Telemetry module for boilerplate apps, using react-tracking",

@@ -34,3 +34,3 @@ "author": "Kano Computing",

},
"gitHead": "f4e344080865dacddc8d38e3d5034afa3e684403"
"gitHead": "2dac8dfb838187ec64887079286d5198b2211b5f"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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