Socket
Socket
Sign inDemoInstall

@databeat/tracker

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@databeat/tracker - npm Package Compare versions

Comparing version 0.6.3 to 0.7.0

3

dist/databeat-tracker.d.ts

@@ -8,2 +8,3 @@ declare enum EventType {

event: string;
projectId?: number;
source?: string;

@@ -35,2 +36,3 @@ ident?: number;

defaultEnabled?: boolean;
projectId?: number;
privacy?: PrivacyOptions;

@@ -60,2 +62,3 @@ userIdentTracking?: boolean;

private allowUserTracking;
private projectId;
private queue;

@@ -62,0 +65,0 @@ private flushTimeout;

@@ -180,2 +180,8 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class; var _class2; var _class3;// src/rpc/proto/databeat.gen.ts

};
var WebrpcInternalErrorError = class _WebrpcInternalErrorError extends WebrpcError {
constructor(name = "WebrpcInternalError", code = -7, message = "internal error", status = 0, cause) {
super(name, code, message, status, cause);
Object.setPrototypeOf(this, _WebrpcInternalErrorError.prototype);
}
};
var UnauthorizedError = class _UnauthorizedError extends WebrpcError {

@@ -225,2 +231,3 @@ constructor(name = "Unauthorized", code = 1e3, message = "Unauthorized access", status = 0, cause) {

[-6]: WebrpcServerPanicError,
[-7]: WebrpcInternalErrorError,
[1e3]: UnauthorizedError,

@@ -286,2 +293,3 @@ [2e3]: PermissionDeniedError,

constructor(host, authToken, options) {;_class3.prototype.__init8.call(this);_class3.prototype.__init9.call(this);

@@ -294,2 +302,3 @@ this.authToken = authToken;

defaultEnabled: options.defaultEnabled || defaultDatabeatOptions.defaultEnabled,
projectId: options.projectId || null,
privacy: options.privacy || defaultDatabeatOptions.privacy,

@@ -307,2 +316,3 @@ userIdentTracking: options.userIdentTracking || defaultDatabeatOptions.userIdentTracking,

this.enabled = isEnabled(this.options.defaultEnabled, this.authToken);
this.projectId = this.options.projectId || null;
this.userId = null;

@@ -385,2 +395,5 @@ this.sessionId = genSessionId();

events[i].sessionId = this.sessionId;
if (!events[i].projectId && this.projectId) {
events[i].projectId = this.projectId;
}
}

@@ -392,2 +405,5 @@ this.queue.push(...events);

events.sessionId = this.sessionId;
if (!events.projectId && this.projectId) {
events.projectId = this.projectId;
}
this.queue.push(events);

@@ -394,0 +410,0 @@ }

2

package.json
{
"name": "@databeat/tracker",
"version": "0.6.3",
"version": "0.7.0",
"description": "databeat tracker client for Web browsers and node.js",

@@ -5,0 +5,0 @@ "main": "dist/databeat-tracker.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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